Beispiel #1
0
 public void setName(String name) {
   String prevName = datbaseObject.getName();
   datbaseObject.setName(name);
   if (prevName.equals(getDisplayName())) {
     setDisplayName(name);
   }
   propertyChangeSupport.firePropertyChange(NODE_NAME_MODIFIED, null, this);
 }
Beispiel #2
0
 public AbstractNode(IAbstractDatabaseObject obj, boolean leafNode) {
   datbaseObject = obj;
   if (getDisplayName() == null) {
     setDisplayName(obj.getName());
   }
   this.leafNode = leafNode;
 }
Beispiel #3
0
 public void refresh() {
   try {
     datbaseObject.refresh();
   } catch (SQLException exc) {
     ErrorManager.showException(exc);
     return;
   }
   initializeChildren();
   propertyChangeSupport.firePropertyChange(NODE_CHILDREN_MODIFIED, null, this);
 }
Beispiel #4
0
 public void handleDoubleClick(TreeViewer viewer) {
   if (!datbaseObject.getDatabaseInfo().isConnected()) {
     refresh();
   }
   viewer.expandToLevel(this, 1);
 }
Beispiel #5
0
 public String getName() {
   return datbaseObject.getName();
 }