Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.MenuItem.dispose()


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


        while (iter.hasNext()) {
            MenuItem next = (MenuItem) iter.next();

            if (!next.isDisposed()) {
                next.removeSelectionListener(selectionAdapter);
                next.dispose();
            }
        }

        items.clear();
    }
View Full Code Here

        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;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.