Search in sources :

Example 1 with AddPropertyToClassCommand

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);
}
Also used : AddPropertyToClassCommand(controller.command.AddPropertyToClassCommand) Property(model.Property) FXML(javafx.fxml.FXML)

Aggregations

AddPropertyToClassCommand (controller.command.AddPropertyToClassCommand)1 FXML (javafx.fxml.FXML)1 Property (model.Property)1