diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java index 2f2a1a8f67..b396d475f2 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java @@ -148,7 +148,7 @@ public class TableDataTreePane extends BasicTableDataTreePane { private EsdOffAction esdOffAction; private SwitchAction switchAction; private PreviewTableDataAction previewTableDataAction; - private Set extraActions = new HashSet<>(); + private Set extraActions = new HashSet<>(); private JPanel serverDatasetAuthTipJPanel = new JPanel(); private TableDataSearchRemindPane remindPane; @@ -727,7 +727,7 @@ public class TableDataTreePane extends BasicTableDataTreePane { } private void checkExtraActionEnable(int dataMode, int selectioncount, boolean hasSelectedIndependentColumns) { - for (ExtraAction action : extraActions) { + for (AbstractExtraAction action : extraActions) { action.setEnabled(action.checkEnable(dataMode, selectioncount, hasSelectedIndependentColumns)); } } @@ -1239,9 +1239,12 @@ public class TableDataTreePane extends BasicTableDataTreePane { } } - public abstract class ExtraAction extends UpdateAction { + /** + * TableDataTree工具栏的扩展接口Action + */ + public abstract class AbstractExtraAction extends UpdateAction { - public ExtraAction() { + public AbstractExtraAction() { init(); } diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java index cebc00685c..5746f9d136 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreeToolBarActionProvider.java @@ -21,5 +21,5 @@ public interface TableDataTreeToolBarActionProvider extends Mutable { * * @return 创建出来的Action对象 */ - TableDataTreePane.ExtraAction createAction(); + TableDataTreePane.AbstractExtraAction createAction(); }