use of controller.command.AddPropertyToClassCommand in project uPMT by coco35700.
the class TypeTreeViewControllerClass method addProperty.
@FXML
public void addProperty() {
propertiesNumber++;
Property nt = new Property("Propriete " + propertiesNumber);
AddPropertyToClassCommand cmd = new AddPropertyToClassCommand(type, nt, tree.getTreeItem(), this.main);
cmd.execute();
UndoCollector.INSTANCE.add(cmd);
}
Aggregations