Examples of selectAndDirectEdit()


Examples of org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart.selectAndDirectEdit()

      final Element element = this.factory.getModelElementList().insert( this.type );
    final ShapePart shapePart = this.factory.getShapePart( element );
    SapphireDiagramEditorPagePart diagramPart = this.nodePart.nearest(SapphireDiagramEditorPagePart.class);
    if (shapePart.isEditable())
    {
      diagramPart.selectAndDirectEdit(shapePart);
    }
    return null;
  }

}
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.editor.SapphireDiagramEditorPagePart.selectAndDirectEdit()

    DiagramNodePart nodePart = this.nodeTemplate.createNewDiagramNode();
    Point pt = diagramPart.getMouseLocation();
    nodePart.setNodeBounds(pt.getX(), pt.getY());
   
    // Select the new node and put it in direct-edit mode
    diagramPart.selectAndDirectEdit(nodePart);
    return nodePart;
 

  public DiagramNodeTemplate getNodeTemplate()
  {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.