|
|
|
@ -36,8 +36,6 @@ 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; |
|
|
|
@ -55,8 +53,10 @@ import java.awt.event.KeyAdapter;
|
|
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
|
import java.util.EventObject; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.HashSet; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Coder: zack |
|
|
|
@ -83,6 +83,7 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp
|
|
|
|
|
protected String[] allDSNames; |
|
|
|
|
protected ConnectionTableAction connectionTableAction; |
|
|
|
|
protected ToolBarDef toolbarDef; |
|
|
|
|
protected TableDataTreePaneListener listener = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String type = ""; |
|
|
|
@ -142,6 +143,17 @@ public abstract class BasicTableDataTreePane extends DockingView implements Resp
|
|
|
|
|
|
|
|
|
|
public abstract void dgEdit(final AbstractTableDataPane<?> uPanel, String originalName, boolean isUpdate); |
|
|
|
|
|
|
|
|
|
public void showEditPane(final AbstractTableDataPane<?> tableDataPane, String originalName, TableDataTreePaneListener listener) { |
|
|
|
|
this.listener = listener; |
|
|
|
|
dgEdit(tableDataPane, originalName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public interface TableDataTreePaneListener { |
|
|
|
|
void doOk(); |
|
|
|
|
|
|
|
|
|
void doCancel(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void doPropertyChange(BasicDialog dg, BasicPane.NamePane nPanel, final String oldName) { |
|
|
|
|
type = dg.getTitle(); |
|
|
|
|
nPanel.setShowText(StringUtils.BLANK); |
|
|
|
|