Examples of INavigatorContentService


Examples of org.eclipse.ui.navigator.INavigatorContentService

  }

  @Override
  public void init(ICommonContentExtensionSite aConfig) {
    INavigatorContentService cs = aConfig.getService();
    viewerId = cs.getViewerId();
    this.display = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getDisplay();
    hookRefreshResources();
  }
View Full Code Here

Examples of org.eclipse.ui.navigator.INavigatorContentService

   * org.eclipse.ui.navigator.ICommonContentProvider#init(org.eclipse.ui.navigator
   * .ICommonContentExtensionSite)
   */
  @Override
  public void init(ICommonContentExtensionSite aConfig) {
    INavigatorContentService cs = aConfig.getService();
    viewerId = cs.getViewerId();
    this.display = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getDisplay();
    hookRefreshResources();
  }
View Full Code Here

Examples of org.eclipse.ui.navigator.INavigatorContentService

   * org.eclipse.ui.navigator.ICommonContentProvider#init(org.eclipse.ui.navigator
   * .ICommonContentExtensionSite)
   */
  @Override
  public void init(ICommonContentExtensionSite aConfig) {
    INavigatorContentService cs = aConfig.getService();
    viewerId = cs.getViewerId();
    this.display = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getDisplay();
    hookRefreshResources();
  }
View Full Code Here

Examples of org.eclipse.ui.navigator.INavigatorContentService

     * @see org.eclipse.ui.model.BaseWorkbenchContentProvider#hasChildren(java.lang.Object)
     */
    public boolean hasChildren(Object element) {
        if (element instanceof PythonFile) {
            //If we're not showing nodes, return false.
            INavigatorContentService contentService = viewer.getNavigatorContentService();
            INavigatorFilterService filterService = contentService.getFilterService();
            ViewerFilter[] visibleFilters = filterService.getVisibleFilters(true);
            for (ViewerFilter viewerFilter : visibleFilters) {
                if (viewerFilter instanceof PythonNodeFilter) {
                    return false;
                }
View Full Code Here

Examples of org.eclipse.ui.navigator.INavigatorContentService

    // the view according to what has been typed in the
    // text bar
    viewer.addFilter(new NamePatternFilter());

    // add filter from the common navigator
    INavigatorContentService contentService = NavigatorContentServiceFactory.INSTANCE
        .createContentService("org.springframework.ide.eclipse.ui.navigator.springExplorer");
    ViewerFilter[] viewFilters = contentService.getFilterService()
        .getVisibleFilters(false);
    for (ViewerFilter viewFilter : viewFilters) {
      viewer.addFilter(viewFilter);
    }
View Full Code Here

Examples of org.eclipse.ui.navigator.INavigatorContentService

    // the view according to what has been typed in the
    // text bar
    viewer.addFilter(new NamePatternFilter());

    // add filter from the common navigator
    INavigatorContentService contentService = NavigatorContentServiceFactory.INSTANCE
        .createContentService(AopReferenceModelNavigator.ID);
    ViewerFilter[] viewFilters = contentService.getFilterService()
        .getVisibleFilters(true);
    for (ViewerFilter viewFilter : viewFilters) {
      viewer.addFilter(viewFilter);
    }
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.