Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.TreeAdapter


          notifySelectedDirectory(file);
        }
      }
    });
    tree.addTreeListener(new TreeAdapter() {
      public void treeCollapsed(TreeEvent event) {
        final TreeItem item = (TreeItem) event.item;
        final Image image = (Image) item.getData(FileViewer.TREEITEMDATA_IMAGECOLLAPSED);
        if (image != null)
          item.setImage(image);
View Full Code Here


    directoryTreeData.grabExcessHorizontalSpace = true;
    directoryTreeData.grabExcessVerticalSpace = true;
    directoryTreeData.horizontalAlignment = SWT.FILL;
    directoryTreeData.verticalAlignment = SWT.FILL;
    directoryTree.setLayoutData(directoryTreeData);
    directoryTree.addTreeListener(new TreeAdapter() {
      @Override
      public void treeExpanded(final TreeEvent evt) {
        TreeItem item = (TreeItem) evt.item;
        TreeItem[] childrens = item.getItems();
        for (TreeItem children : childrens) {
View Full Code Here

    TreeItem rootItem = new TreeItem(treeViewLaunchesModal, SWT.None);
    rootItem.setText("Root");
    TreeItem childItem = new TreeItem(rootItem, SWT.None);
    childItem.setText("Child");
    treeViewLaunchesModal.addTreeListener(new TreeAdapter() {
      public void treeExpanded(TreeEvent e) {
        super.treeExpanded(e);
        ModalWindow.Show(display);
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.TreeAdapter

Copyright © 2018 www.massapicom. 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.