Beispiel #1
0
    public override bool doTool()
    {
        description = new Description();
        descriptionsController.addDescription(description);
        descriptionController = new DescriptionController(description);
        descriptionsController.addDescriptionController(descriptionController);

        return(true);
    }
Beispiel #2
0
 public override bool doTool()
 {
     description = (Description)descriptionsController.getSelectedDescription();
     descriptionsController.addDescription(description);
     descriptionController = new DescriptionController(description);
     descriptionsController.addDescriptionController(descriptionController);
     descriptionsController.setSelectedDescription(descriptionsController.getDescriptionCount() - 1);
     return(true);
 }
Beispiel #3
0
 public override bool undoTool()
 {
     descriptionsController.addDescriptionController(deletedDescriptionController, lastSelectedDescription);
     descriptionsController.addDescription(deletedDescriptionController.getDescriptionData(), lastSelectedDescription);
     descriptionsController.setSelectedDescription(lastSelectedDescription);
     Controller.getInstance().updatePanel();
     return(true);
 }