Exemplo n.º 1
0
 private void changeColumnByControl(ControlModel model) {
   // TODO Auto-generated method stub
   Diagram diagram = (Diagram) (this.getViewer().getContents().getModel());
   VOFunctionTableModel func = diagram.getFunc();
   FunctionColumnModel column = func.getColumnByUuid(model.getUuid());
   if (column != null) {
     column.setId(model.getId());
     column.setTitle(model.getName());
   }
 }
 public void undo() {
   newSource.removeOutput(connection);
   oldSource.addOutput(connection);
   connection.setSource(oldSource);
 }
 public void execute() {
   oldSource.removeOutput(connection);
   newSource.addOutput(connection);
   connection.setSource(newSource);
 }