Beispiel #1
0
 /**
  * Reverts to existing name in model when exiting from a direct edit (possibly before a commit
  * which will result in a change in the label value)
  */
 public void revertNameChange() {
   TableFigure tableFigure = (TableFigure) getFigure();
   EditableLabel label = tableFigure.getNameLabel();
   Table table = getTable();
   label.setText(table.getName());
   label.setVisible(true);
   refreshVisuals();
 }
Beispiel #2
0
 /** Creates a figure which represents the table */
 protected IFigure createFigure() {
   Table table = getTable();
   EditableLabel label = new EditableLabel(table.getName());
   TableFigure tableFigure = new TableFigure(label);
   return tableFigure;
 }