Examples of reveal()


Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

        final NewFolderDialog dialog = new NewFolderDialog(getShell(), fSelectedContainer);
        if (dialog.open() == Window.OK) {
            final TreeViewer treeViewer = getTreeViewer();
            treeViewer.refresh(fSelectedContainer);
            final Object createdFolder = dialog.getResult()[0];
            treeViewer.reveal(createdFolder);
            treeViewer.setSelection(new StructuredSelection(createdFolder));
        }
    }

    @Override
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

        if (event.getSelection() instanceof IStructuredSelection) {
          Object[] o = ((IStructuredSelection) event.getSelection()).toArray();
          contentTypeTreeViewer.setInput(o);
          contentTypeTreeViewer.expandAll();
          if (o.length > 0) {
            contentTypeTreeViewer.reveal(o[0]);
          }
        }
      }
    });
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

        if (event.getSelection() instanceof IStructuredSelection) {
          Object[] o = ((IStructuredSelection) event.getSelection()).toArray();
          contentTypeTreeViewer.setInput(o);
          contentTypeTreeViewer.expandAll();
          if (o.length > 0) {
            contentTypeTreeViewer.reveal(o[0]);
          }
        }
      }
    });
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

   */
  public void showElement(OutlineElement element){
    if(element == null)
      return;
    TreeViewer viewer = getTreeViewer();   
    viewer.reveal(element);       
    TreeItem[] treeItems=viewer.getTree().getItems();
   
    viewer.getControl().setRedraw(false);
    Object[] expandedElements=viewer.getExpandedElements();
    //force all the elements to be scanned in
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

   
    for(TreeItem item: treeItems){
      TreeItem target=findTreeItem(item, element);
      if(target!=null){
        viewer.getTree().setSelection(target);
        viewer.reveal(element);
        break;
      }
    }       
   
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

                   
                    if( ! treeViewer.getSelection().equals( sel ) )
                    {
                        for( MasterDetailsContentNodePart node : selection )
                        {
                            treeViewer.reveal( node );
                        }
                       
                        treeViewer.setSelection( sel );
                    }
                }
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.reveal()

      fSelectionFromEditor = true;
      tree.setSelection(new StructuredSelection(item), false);
      fSelectionFromEditor = false;
      //tree.refresh(item, false);
      tree.setExpandedState(item, true);
      tree.reveal(item);
      // reveal takes care of this. Doh!
      //expandParentItems(item);
    }
  }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.GraphViewer.reveal()

    if (!selection.isEmpty() && selection instanceof IStructuredSelection) {
      selectedConnections = new HashSet<AbstractNode>();
      for (Object o : ((IStructuredSelection) selection).toList()) {
        if (o instanceof AbstractNode) {
          AbstractNode node = (AbstractNode) o;
          viewer.reveal(node);
          selectedConnections.add(node);
          /*
          AbstractNode output = (AbstractNode) o;
          for (AbstractNode node : output.getOutputs()) {
            viewer.reveal(node);
View Full Code Here

Examples of org.rssowl.ui.internal.views.explorer.BookMarkExplorer.reveal()

    /* Reveal and Select Target Folder */
    if (target != null && target.getParent() != null) {
      BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
      if (explorer != null)
        explorer.reveal(target, true);
    }

    /* Reload Imported Elements */
    new ReloadTypesAction(new StructuredSelection(folderChilds), OwlUI.getPrimaryShell()).run();

View Full Code Here

Examples of org.rssowl.ui.internal.views.explorer.BookMarkExplorer.reveal()

    }

    /* Reveal Newsmark of last opened News */
    BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
    if (explorer != null && lastOpenedNewsMark != null && !explorer.isLinkingEnabled()) {
      explorer.reveal(lastOpenedNewsMark, false);
    }
  }

  private void openAndSelect(IWorkbenchPage page, INews news, INewsMark newsmark) {
    PerformAfterInputSet perform = PerformAfterInputSet.selectNews(new NewsReference(news.getId()));
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.