lucian
4 years ago
3 changed files with 63 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
package com.fr.design.fun; |
||||||
|
|
||||||
|
import com.fr.stable.fun.mark.Selectable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 插件不匹配时设计器提示框的“立即处理”事件 |
||||||
|
* @author Lucian.Chen |
||||||
|
* @version 10.0 |
||||||
|
* Created by Lucian.Chen on 2021/2/20 |
||||||
|
*/ |
||||||
|
public interface PluginErrorRemindHandleProvider extends Selectable { |
||||||
|
|
||||||
|
String MARK_STRING = "PluginErrorRemindHandleProvider"; |
||||||
|
|
||||||
|
int CURRENT_LEVEL = 1; |
||||||
|
|
||||||
|
// 打开插件管理
|
||||||
|
void openPluginManager(); |
||||||
|
} |
@ -0,0 +1,30 @@ |
|||||||
|
package com.fr.design.fun.impl; |
||||||
|
|
||||||
|
import com.fr.design.fun.PluginErrorRemindHandleProvider; |
||||||
|
import com.fr.stable.fun.assist.Selector; |
||||||
|
import com.fr.stable.fun.impl.AbstractProvider; |
||||||
|
import com.fr.stable.fun.mark.API; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author Lucian.Chen |
||||||
|
* @version 10.0 |
||||||
|
* Created by Lucian.Chen on 2021/2/20 |
||||||
|
*/ |
||||||
|
@API(level = PluginErrorRemindHandleProvider.CURRENT_LEVEL) |
||||||
|
public abstract class AbstractPluginErrorRemindHandleProvider extends AbstractProvider implements PluginErrorRemindHandleProvider { |
||||||
|
|
||||||
|
public int currentAPILevel() { |
||||||
|
return CURRENT_LEVEL; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public String mark4Provider() { |
||||||
|
return getClass().getName(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Selector selector() { |
||||||
|
return Selector.ALWAYS; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue