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

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


  @Override
  protected Command createDeleteCommand(GroupRequest deleteRequest) {
    Object child = getHost().getModel();
    if (child instanceof DiagramNodeModel) {
      DiagramNodeModel nodeModel = (DiagramNodeModel)child;
      return new DeleteNodeCommand(nodeModel.getNodePresentation());
    }
    return super.createDeleteCommand(deleteRequest);
  }
View Full Code Here

TOP

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

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.