Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 279132 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rap/internal/design/example/business/managers/BusinessCoolBarManager.java (-10 / +12 lines)
Lines 302-317 Link Here
302
        if( manager != null ) {
302
        if( manager != null ) {
303
          IContributionItem[] toolItems = manager.getItems();
303
          IContributionItem[] toolItems = manager.getItems();
304
          for( int j = 0; j < toolItems.length; j++ ) {
304
          for( int j = 0; j < toolItems.length; j++ ) {
305
            if( toolItems[ j ] instanceof ActionContributionItem ) {
305
            if( toolItems[ j ].isVisible() ) {
306
              // actions
306
              if( toolItems[ j ] instanceof ActionContributionItem ) {
307
              ActionContributionItem actionItem 
307
                // actions
308
                = ( ActionContributionItem ) toolItems[ j ];
308
                ActionContributionItem actionItem 
309
              addActionToCoolBar( actionItem );
309
                  = ( ActionContributionItem ) toolItems[ j ];
310
            } else if( toolItems[ j ] instanceof CommandContributionItem ) {
310
                addActionToCoolBar( actionItem );
311
              // commands
311
              } else if( toolItems[ j ] instanceof CommandContributionItem ) {
312
              CommandContributionItem commandItem 
312
                // commands
313
                = ( CommandContributionItem ) toolItems[ j ];
313
                CommandContributionItem commandItem 
314
              addCommandToCoolBar( commandItem );
314
                  = ( CommandContributionItem ) toolItems[ j ];
315
                addCommandToCoolBar( commandItem );
316
              }
315
            }
317
            }
316
          }
318
          }
317
        }      
319
        }      

Return to bug 279132