Package org.eclipse.sapphire.ui.diagram

Examples of org.eclipse.sapphire.ui.diagram.DiagramConnectionPart.attach()


    }
   
    // Listen on existing connection parts
    for (DiagramConnectionPart connPart : connService.list())
    {
      connPart.attach(this.connectionPartListener);
    }
   
  }
 
  private void handleNodeLayoutChange(Component component)
View Full Code Here


    protected void handleConnectionAddEvent(ConnectionAddEvent event)
    {
    DiagramConnectionPart connPart = event.part();

    connPart.attach(this.connectionPartListener);
    DiagramConnectionInfo connectionInfo = read(connPart);
    if (connectionInfo != null)
    {
      connPart.resetBendpoints(connectionInfo.getBendPoints());
    }     
View Full Code Here

  @Override
  public void init(SapphireAction action, ActionHandlerDef def) {
    super.init(action, def);

      DiagramConnectionPart part = (DiagramConnectionPart) getPart();
    part.attach(new Listener() {
      @Override
      public void handle(final Event e) {
                if( e instanceof SelectionChangedEvent ) {
                    broadcast( new EnablementChangedEvent() );
                } else if (e instanceof ConnectionBendpointsEvent) {
View Full Code Here

    }
   
    // Listen on existing connection parts
    for (DiagramConnectionPart connPart : connService.list())
    {
      connPart.attach(this.connectionPartListener);
    }
   
  }
 
  protected String computeLayoutFileName(IEditorInput editorInput) throws CoreException, IOException
View Full Code Here

    protected void handleConnectionAddEvent(ConnectionAddEvent event)
    {
    DiagramConnectionPart connPart = event.part();

    connPart.attach(this.connectionPartListener);
    DiagramConnectionInfo connInfo = read(connPart);
    if (connInfo != null)
    {
      connPart.resetBendpoints(connInfo.getBendPoints());
      if (connInfo.getLabelPosition() != null)
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.