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/popups/MenuBarPopup.java (-17 / +18 lines)
Lines 115-138 Link Here
115
    layout.marginBottom = 0;
115
    layout.marginBottom = 0;
116
    content.setLayout( layout );
116
    content.setLayout( layout );
117
117
118
    
119
    for( int i = 0; i < items.length; i++ ) {
118
    for( int i = 0; i < items.length; i++ ) {
120
      IContributionItem item = items[ i ];
119
      IContributionItem item = items[ i ];
121
      if( item instanceof ActionContributionItem ) {
120
      if( item.isVisible() ) {
122
        // Actions
121
        if( item instanceof ActionContributionItem ) {
123
        ActionContributionItem actionItem = ( ActionContributionItem ) item;
122
          // Actions
124
        makeActionEntry( actionItem.getAction(), content );
123
          ActionContributionItem actionItem = ( ActionContributionItem ) item;
125
      } else if( item instanceof MenuManager ) {
124
          makeActionEntry( actionItem.getAction(), content );
126
        // MenuManagers
125
        } else if( item instanceof MenuManager ) {
127
        MenuManager manager = ( MenuManager ) item;
126
          // MenuManagers
128
        makeMenuManagerEntry( manager, content );
127
          MenuManager manager = ( MenuManager ) item;
129
      } else if( item instanceof CommandContributionItem ) {
128
          makeMenuManagerEntry( manager, content );
130
        // Commands                
129
        } else if( item instanceof CommandContributionItem ) {
131
        CommandContributionItem command = ( CommandContributionItem ) item;
130
          // Commands                
132
        makeCommandEntry( command, content );
131
          CommandContributionItem command = ( CommandContributionItem ) item;
133
      } else if( item instanceof ShowViewMenu ) {
132
          makeCommandEntry( command, content );
134
        // ViewMenu
133
        } else if( item instanceof ShowViewMenu ) {
135
        makeViewEntries( content );
134
          // ViewMenu
135
          makeViewEntries( content );
136
        }
136
      }
137
      }
137
    }
138
    }
138
139
Lines 283-289 Link Here
283
        public void widgetDisposed( DisposeEvent event ) {
284
        public void widgetDisposed( DisposeEvent event ) {
284
          destroyItem( item );
285
          destroyItem( item );
285
        }
286
        }
286
      } );
287
      } );      
287
    }
288
    }
288
    
289
    
289
  }
290
  }

Return to bug 279132