Package org.woped.editor.controller.WoPeDJGraphGraphModel

Examples of org.woped.editor.controller.WoPeDJGraphGraphModel.WoPeDUndoableEdit


        UndoableEdit edit = super.editToBeUndone();
        if (edit == null)
          throw new CannotUndoException();       
      doIt = true;
        if (edit instanceof WoPeDUndoableEdit) {
          WoPeDUndoableEdit wopedEdit = (WoPeDUndoableEdit) edit;
          if (wopedEdit.getInserted() != null){
            for (int i = 0; i < wopedEdit.getInserted().length; i++){

              if (wopedEdit.getInserted()[i] instanceof SubProcessModel){
                Object[] options = {
                    Messages.getString("Popup.Confirm.SubProcess.Ok"),
                    Messages.getString("Popup.Confirm.SubProcess.No") };
                int j = JOptionPane.showOptionDialog(null,
                    Messages.getString("Popup.Confirm.SubProcess.Info"),
View Full Code Here


    UndoableEdit edit = super.editToBeRedone();
    if (edit == null)
      throw new CannotUndoException();       
    doIt = true;
    if (edit instanceof WoPeDUndoableEdit) {
      WoPeDUndoableEdit wopedEdit = (WoPeDUndoableEdit) edit;
      if (wopedEdit.getRemoved() != null){
        for (int i = 0; i < wopedEdit.getRemoved().length; i++){

          if (wopedEdit.getRemoved()[i] instanceof SubProcessModel){
            Object[] options = {
                Messages.getString("Popup.Confirm.SubProcess.Ok"),
                Messages.getString("Popup.Confirm.SubProcess.No") };
            int j = JOptionPane.showOptionDialog(null,
                Messages.getString("Popup.Confirm.SubProcess.Info"),
View Full Code Here

   
   
    // Added by Gregor Becker. Makes sure that Subprocess Start and End Token are not deleted!
    public boolean canUndo(ModelElementContainer container){
      if (super.canUndo())
      {WoPeDUndoableEdit edit = (WoPeDUndoableEdit) super.editToBeUndone();
     
      if (edit.getInserted() != null)   
        return (container.getIdMap().size() > 2);
      else return true;
    }return false;
    }
View Full Code Here

TOP

Related Classes of org.woped.editor.controller.WoPeDJGraphGraphModel.WoPeDUndoableEdit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.