Package com.projity.undo

Examples of com.projity.undo.NodeUndoInfo


   
  public boolean connect(Assignment assignment, Object eventSource) {
    return connect(assignment, eventSource,true);
  }
  public boolean connect(Assignment assignment, Object eventSource,boolean undo) {
    if (!connect(assignment,eventSource,new NodeUndoInfo(undo)))
      return false;
//    UndoableEditSupport undoableEditSupport=getUndoableEditSupport(assignment);
//    if (undoableEditSupport!=null&&undo){
//      undoableEditSupport.postEdit(new AssignmentCreationEdit(assignment,eventSource));
//    }
View Full Code Here


//      undoableEditSupport.postEdit(new AssignmentCreationEdit(assignment,eventSource));
//    }
    return true;
  }
  public boolean connect(Node node, Object eventSource, boolean undo) {
    return connect((Assignment)node.getImpl(),eventSource,new NodeUndoInfo(node,undo));
  }
View Full Code Here

      ((ResourcePool)assignment.getResource().getDocument()).getObjectEventManager().fireCreateEvent(eventSource,assignment,undo);
    }
    return true;
  }
  public void remove(Node node, Object eventSource,boolean undo) {
    remove((Assignment)node.getImpl(),true,eventSource,new NodeUndoInfo(node,undo));
  }
View Full Code Here

  }
//  public void remove(Assignment assignment, Object eventSource) {
//    remove(assignment, eventSource,true);
//  }
  public void remove(Assignment assignment, Object eventSource, boolean undo) {
    remove(assignment,true,eventSource,new NodeUndoInfo(undo));
  }
View Full Code Here

  public void remove(Assignment assignment, Object eventSource, boolean undo) {
    remove(assignment,true,eventSource,new NodeUndoInfo(undo));
  }
 
  public void remove(Assignment assignment, boolean cleanTaskLink, Object eventSource, boolean undo) {
    remove(assignment,cleanTaskLink,eventSource,new NodeUndoInfo(undo));
//    remove(assignment,(undo)?UNDO:eventSource);
//    UndoableEditSupport undoableEditSupport=getUndoableEditSupport(assignment);
//    if (undoableEditSupport!=null&&undo){
//      undoableEditSupport.postEdit(new AssignmentDeletionEdit(assignment,eventSource));
//    }
View Full Code Here

                              resource=destResource;
                              assignment.getDetail().setResource(resource);
                            }
//                            assignmentsToLink.add(assignment);
                            resource.addAssignment(assignment);
                            NodeUndoInfo undo=new NodeUndoInfo(false);
                            ((ResourcePool)assignment.getResource().getDocument()).getObjectEventManager().fireCreateEvent(this,assignment,undo);
                          }
                      }else{
                        assignment.getDetail().setResource(ResourceImpl.getUnassignedInstance());
                      }
View Full Code Here

TOP

Related Classes of com.projity.undo.NodeUndoInfo

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.