Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TreeItem.addDisposeListener()


        // Cache the entry <-> tree item relationship
        entryToItemMap.put(node, item);
       
        // Always ensure that if the tree item goes away that it's
        // removed from the cache
        item.addDisposeListener(new DisposeListener() {
      public void widgetDisposed(DisposeEvent e) {
        Object possibleEntry = e.widget.getData();
        if (possibleEntry != null)
          entryToItemMap.remove(possibleEntry);
      }
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.