|
|
|
@ -6,7 +6,6 @@ import com.fr.data.TableDataSource;
|
|
|
|
|
import com.fr.data.api.StoreProcedureAssist; |
|
|
|
|
import com.fr.data.impl.storeproc.StoreProcedure; |
|
|
|
|
import com.fr.design.DesignModelAdapter; |
|
|
|
|
import com.fr.design.actions.ForbiddenUpdateAction; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.data.datapane.TableDataCreatorProducer; |
|
|
|
|
import com.fr.design.data.datapane.TableDataNameObjectCreator; |
|
|
|
@ -25,16 +24,20 @@ import com.fr.design.gui.ibutton.UIHeadGroup;
|
|
|
|
|
import com.fr.design.gui.ibutton.UILockButton; |
|
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
|
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.icon.IconPathConstants; |
|
|
|
|
import com.fr.design.mainframe.DockingView; |
|
|
|
|
import com.fr.design.menu.LineSeparator; |
|
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.general.NameObject; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
import java.util.HashSet; |
|
|
|
|
import java.util.Set; |
|
|
|
|
import javax.swing.AbstractButton; |
|
|
|
|
import javax.swing.Action; |
|
|
|
|
import javax.swing.DefaultCellEditor; |
|
|
|
@ -61,6 +64,16 @@ import java.util.Objects;
|
|
|
|
|
* Time: 16:23 |
|
|
|
|
*/ |
|
|
|
|
public abstract class BasicTableDataTreePane extends DockingView implements ResponseDataSourceChange { |
|
|
|
|
|
|
|
|
|
private static final Set<String> FORBIDDEN_SET = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
FORBIDDEN_SET.add(Toolkit.i18nText("Fine-Design_Basic_Edit")); |
|
|
|
|
FORBIDDEN_SET.add(Toolkit.i18nText("Fine-Design_Basic_Remove")); |
|
|
|
|
FORBIDDEN_SET.add(Toolkit.i18nText("Fine-Design_Basic_Preview")); |
|
|
|
|
FORBIDDEN_SET.add(Toolkit.i18nText("Fine-Design_Basic_Action_Add")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected static final int PROCEDURE_NAME_INDEX = 4; |
|
|
|
|
protected static final int TEMPLATE_TABLE_DATA = 0; |
|
|
|
|
protected static final int SERVER_TABLE_DATA = 1; |
|
|
|
@ -69,6 +82,7 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp
|
|
|
|
|
protected UIHeadGroup buttonGroup; |
|
|
|
|
protected String[] allDSNames; |
|
|
|
|
protected ConnectionTableAction connectionTableAction; |
|
|
|
|
protected ToolBarDef toolbarDef; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String type = ""; |
|
|
|
@ -399,7 +413,7 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp
|
|
|
|
|
return prefix + count; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected class PreviewTableDataAction extends ForbiddenUpdateAction { |
|
|
|
|
protected class PreviewTableDataAction extends UpdateAction { |
|
|
|
|
private TableDataTree dataTree; |
|
|
|
|
|
|
|
|
|
public PreviewTableDataAction(TableDataTree dataTree) { |
|
|
|
@ -482,4 +496,12 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void refreshToolBar() { |
|
|
|
|
toolbarDef.refreshToolBar(FORBIDDEN_SET); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void checkEnable() { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|