Package org.eclipse.sapphire.ui

Examples of org.eclipse.sapphire.ui.SapphireActionHandler$PreExecuteEvent


   * context-button is clicked.
   */
  private class PopupMenuLabelProvider extends LabelProvider {
    @Override
    public String getText(Object element) {
      SapphireActionHandler handler  = (SapphireActionHandler) element;
      return getLabel(handler);
    }
View Full Code Here


      return getLabel(handler);
    }

    @Override
    public Image getImage(Object element) {
      SapphireActionHandler handler  = (SapphireActionHandler) element;
      return getActionHandlerImage(handler);
    }
View Full Code Here

  }
 
  @Override
  public boolean canExecute()
  {
        SapphireActionHandler handler = (SapphireActionHandler)this.nodePresentation.part().getDefaultActionHandler();
        return (handler != null && handler.isEnabled());   
  }
View Full Code Here

  }
 
  @Override
  public void execute()
  {
        SapphireActionHandler handler = (SapphireActionHandler)this.nodePresentation.part().getDefaultActionHandler();
        if (handler != null && handler.isEnabled())
        {
            handler.execute(this.nodePresentation);
        }           
  }
View Full Code Here

  }
 
  @Override
  public boolean canExecute()
  {
    SapphireActionHandler deleteActionHandler = this.presentation.part().getAction(DELETE_ACTION_ID).getFirstActiveHandler();
    return deleteActionHandler.isEnabled();
  }
View Full Code Here

 

  @Override
  public void execute()
  {
        SapphireActionHandler deleteActionHandler = this.presentation.part().getAction(DELETE_ACTION_ID).getFirstActiveHandler();
        deleteActionHandler.execute(this.presentation);   
  }
View Full Code Here

       
        this.part.attach( this.partValidationListener );
       
        this.assistAction = part.getActions().getAction( SapphireActionSystem.ACTION_ASSIST );
       
        this.assistActionHandler = new SapphireActionHandler()
        {
            @Override
            protected Object run( final Presentation context )
            {
                openAssistDialog();
View Full Code Here

        deleteAction.addHandler( deleteActionHandler );
       
        final SapphireActionGroup actions = editor.getActions();
        actions.addAction(deleteAction);
       
        final SapphireActionHandler jumpActionHandler = actions.getAction( ACTION_JUMP ).getFirstActiveHandler();
        addJumpOverlay(jumpActionHandler, binding);

        final SapphireActionHandlerFilter assistFilter = SapphireActionSystem.createFilterByActionId( ACTION_ASSIST );
        final SapphireActionHandlerFilter jumpFilter = SapphireActionSystem.createFilterByActionId( ACTION_JUMP );
        actions.addFilter(assistFilter);
View Full Code Here

            new SelectionAdapter()
            {
                @Override
                public void widgetSelected( SelectionEvent e )
                {
                    final SapphireActionHandler handler = part.handler();
                   
                    if( handler != null )
                    {
                        handler.execute( ActuatorButtonPresentation.this );
                    }
                }
            }
        );
       
View Full Code Here

            new HyperlinkAdapter()
            {
                @Override
                public void linkActivated( final HyperlinkEvent event )
                {
                    final SapphireActionHandler handler = part.handler();
                   
                    if( handler != null )
                    {
                        handler.execute( ActuatorLinkPresentation.this );
                    }
                }
            }
        );
       
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.SapphireActionHandler$PreExecuteEvent

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.