Package org.eclipse.sapphire.ui.forms.swt

Examples of org.eclipse.sapphire.ui.forms.swt.ActionSystemPartBridge


          final List<SapphireActionHandler> handlers = action.getActiveHandlers();
          final int count = handlers.size();
         
          if( count == 1 )
          {
              ActionSystemPartBridge bridge = this.cache.get( action );
             
              if( bridge == null )
              {
                  bridge = new ActionBridge( presentation, action );
              }
             
              updatedCache.put( action, bridge );
             
              menuManager.add( bridge );
          }
          else if( count > 1 )
          {
                final String childMenuText = LabelTransformer.transform( action.getLabel(), CapitalizationType.TITLE_STYLE, true );
                final ImageDescriptor childMenuImage = SwtUtil.toImageDescriptor( action.getImage( 16 ) );
                final MenuManager childMenuManager = new MenuManager( childMenuText, childMenuImage, action.getId() );
               
                childMenuManager.setParent( menuManager );
                menuManager.add( childMenuManager );
               
                for( SapphireActionHandler handler : action.getActiveHandlers() )
                {
                    ActionSystemPartBridge bridge = this.cache.get( handler );
                   
                    if( bridge == null )
                    {
                        bridge = new ActionHandlerBridge( presentation, handler );
                    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.forms.swt.ActionSystemPartBridge

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.