587588589590591592593594595596597
public void run() { Menu menu = (Menu)menuLookup.get(name); MenuItem menuItem = (MenuItem)menuItemLookup.get(name); if(menu != null) { menu.dispose(); menuItem.dispose(); menuLookup.remove(name); menuItemLookup.remove(name); } } });
100101102103104105106107108109110
while (iter.hasNext()) { MenuItem next = (MenuItem) iter.next(); if (!next.isDisposed()) { next.removeSelectionListener(selectionAdapter); next.dispose(); } } items.clear(); }
138139140141142143144145146147148
String text = mi.getText(); if (text == null) continue; if (text.equals(Messages.PROPERTIES)) { mi.dispose(); // Den Separator davor gleich noch entfernen if (i > 0) items[i-1].dispose(); return; }