diff --git a/plugin.xml b/plugin.xml index 24a82e7..40a8e21 100644 --- a/plugin.xml +++ b/plugin.xml @@ -5,18 +5,18 @@ yes 1.0 10.0 - 2020-08-27 + 2020-08-24 finereport.mata [2020-08-27]新预览显示类型

+

[2020-08-24]新预览显示类型

]]>
- + diff --git a/src/main/java/com/fr/plugin/showtype/NewPreviewType.java b/src/main/java/com/fr/plugin/showtype/NewPreviewType.java index a673aee..440ca2d 100644 --- a/src/main/java/com/fr/plugin/showtype/NewPreviewType.java +++ b/src/main/java/com/fr/plugin/showtype/NewPreviewType.java @@ -1,28 +1,38 @@ package com.fr.plugin.showtype; -import com.fr.decision.authority.base.constant.type.show.ShowType; +import com.fr.decision.fun.impl.AbstractShowTypeProvider; +import com.fr.decision.web.DirectoryComponent; import com.fr.intelli.record.Focus; import com.fr.intelli.record.Original; import com.fr.record.analyzer.EnableMetrics; +import com.fr.web.struct.Atom; /** * @Author Roger - * @Date 2020/8/18 18:18 + * @Date 2020/8/18 17:42 * @Version 10.0 */ @EnableMetrics -public class NewPreviewType extends ShowType { +public class NewPreviewType extends AbstractShowTypeProvider { - public static final NewPreviewType KEY = new NewPreviewType(); + @Override + public Atom attach() { + return DirectoryComponent.KEY; + } @Override - @Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) - protected int getTypeValue() { - return 5; + public Atom client() { + return NewPreviewComponent.KEY; } @Override - public String getTypeName() { + public String typeName() { return "newPreview"; } + + @Override + @Focus(id = "com.fr.plugin.showtype.v10", text = "Fine-Plugin_New_Preview_Type", source = Original.PLUGIN) + public int typeValue() { + return 5; + } } diff --git a/src/main/java/com/fr/plugin/showtype/NewPreviewTypeProvider.java b/src/main/java/com/fr/plugin/showtype/NewPreviewTypeProvider.java deleted file mode 100644 index e7f3e15..0000000 --- a/src/main/java/com/fr/plugin/showtype/NewPreviewTypeProvider.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.fr.plugin.showtype; - -import com.fr.decision.authority.base.constant.type.show.ShowType; -import com.fr.decision.fun.impl.AbstractShowTypeProvider; -import com.fr.decision.web.DirectoryComponent; -import com.fr.web.struct.Atom; - -/** - * @Author Roger - * @Date 2020/8/18 17:42 - * @Version 10.0 - */ -public class NewPreviewTypeProvider extends AbstractShowTypeProvider { - - @Override - public String nameForShowType() { - return "newPreview"; - } - - @Override - public ShowType registerShowType() { - return NewPreviewType.KEY; - } - - @Override - public Atom attach() { - return DirectoryComponent.KEY; - } - - @Override - public Atom client() { - return NewPreviewComponent.KEY; - } -}