Package org.eclipse.sapphire.ui.swt.gef.commands

Examples of org.eclipse.sapphire.ui.swt.gef.commands.MoveNodeCommand


    if (child instanceof DiagramNodeEditPart && constraint instanceof Rectangle) {     
      // Bug 382542 - Diagram: sometimes moving a node does not move context buttons
      // Hide the context buttons when moving a node
      this.presentation.getConfigurationManager().getDiagramEditor().getContextButtonManager().hideContextButtonsInstantly();
      DiagramNodeModel node = ((DiagramNodeEditPart)child).getCastedModel();
      return new MoveNodeCommand(node, (Rectangle)constraint);
    }
    return super.createChangeConstraintCommand(request, child, constraint);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.commands.MoveNodeCommand

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.