Package org.eclipse.sapphire.ui

Examples of org.eclipse.sapphire.ui.SapphireHelpContext


            public void helpRequested(HelpEvent event)
            {             
              if (getSelectedParts() != null && getSelectedParts().size() == 1)
              {
                ISapphirePart part = getSelectedParts().get(0);
                final SapphireHelpContext context = new SapphireHelpContext(part.getLocalModelElement(), null);
                if (context.getText() != null || (context.getRelatedTopics() != null && context.getRelatedTopics().length > 0))
                {
                    // determine a location in the upper right corner of the widget
                    org.eclipse.swt.graphics.Point point = HelpSystem.computePopUpLocation(event.widget.getDisplay());
                    // display the help
                    PlatformUI.getWorkbench().getHelpSystem().displayContext(context, point.x, point.y);
View Full Code Here


        return false;
    }
   
    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 )
                {
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.SapphireHelpContext

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.