Examples of HelpListener


Examples of org.eclipse.swt.events.HelpListener

        });

        /*
         * Trap F1 Help to pop up a custom help box
         */
        control.addHelpListener(new HelpListener() {
            public void helpRequested(HelpEvent event) {
                if (tipWidget == null)
                    return;
                ToolTipHelpTextHandler handler = (ToolTipHelpTextHandler) tipWidget.getData("TIP_HELPTEXTHANDLER");
                if (handler == null)
View Full Code Here

Examples of org.eclipse.swt.events.HelpListener

    protected static final void attachHelp( final Control control, final Property property )
    {
        final SapphireHelpContext context = new SapphireHelpContext( property.element(), property.definition() );
        if( context.getText() != null || ( context.getRelatedTopics() != null && context.getRelatedTopics().length > 0 ) )
        {
            control.addHelpListener( new HelpListener()
            {
                public void helpRequested( HelpEvent event )
                {
                    // determine a location in the upper right corner of the
                    // widget
View Full Code Here

Examples of org.eclipse.swt.events.HelpListener

        helpListeners.add(listener);
        if (!helpHooked) {
            Control control = getControl();
            if (control != null && !control.isDisposed()) {
                if (this.helpListener == null) {
                    this.helpListener = new HelpListener() {
                        public void helpRequested(HelpEvent event) {
                            handleHelpRequest(event);
                        }
                    };
                }
View Full Code Here

Examples of org.eclipse.swt.events.HelpListener

   * (non-Javadoc) Method declared on Window.
   */
  protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    // Register help listener on the shell
    newShell.addHelpListener(new HelpListener() {
      public void helpRequested(HelpEvent event) {
        // call perform help on the current page
        if (currentPage != null) {
          currentPage.performHelp();
        }
View Full Code Here

Examples of org.eclipse.swt.events.HelpListener

        boolean expanded = viewer.getExpandedState(singleSelection);
        viewer.setExpandedState(singleSelection, !expanded);
      }
    });
    //Register help listener on the tree to use context sensitive help
    viewer.getControl().addHelpListener(new HelpListener() {
      public void helpRequested(HelpEvent event) {
        // call perform help on the current page
        if (currentPage != null) {
          currentPage.performHelp();
        }
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.