Package org.eclipse.ui.navigator

Examples of org.eclipse.ui.navigator.CommonViewer.refresh()


              Object[] expanded = tv.getExpandedElements();
              tv.setInput(ResourcesPlugin.getWorkspace()
                  .getRoot());
              tv.setExpandedElements(expanded);
            } else
              tv.refresh(true);

            IViewPart part = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getActivePage()
                .findView(IPageLayout.ID_PROP_SHEET);
            if (part instanceof PropertySheet) {
View Full Code Here


  public Object execute(ExecutionEvent event) throws ExecutionException {
    HandlerUtil.toggleCommandState(event.getCommand());
    IWorkbenchPart part = HandlerUtil.getActivePartChecked(event);
    if (part instanceof RepositoriesView) {
      CommonViewer viewer = ((RepositoriesView) part).getCommonViewer();
      viewer.refresh();
    }
    return null;
  }
}
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.