Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Migrating from the ResourceNavigator

First follow the steps to add the Common Navigator and check that the steps required for usage of resource content are applied.

The following steps discuss the migration component for each part of the ResourceNavigator

  1. org.eclipse.ui.ide.resourceFilters

    Add the corresponding org.eclipse.ui.navigator.navigatorContent/commonFilter extensions.

  2. FrameList support get/setFrameList()

    The FrameList support is used for the Go Into functionality. Support for this is included in the ProjectExplorer subclass of CommonNavigator. You should subclass ProjectExplorer instead of CommonNavigator.

  3. ResourcePatternFilter support get/setPatternFilter()

    Configure the ResourcePatternFilter using the org.eclipse.ui.navigator.navigatorContent/commonFilter extension. Then you can access the instance of the filter using the following code (where yourViewer is the instance of the CommonViewer and yourFilterId is the string of the Id of your common filter configured above):

    INavigatorContentService contentService = yourViewer.getNavigatorContentService();
    INavigatorFilterService filterService = contentService.getFilterService();
    ICommonFilterDescriptor[] fds = filterService.getVisibleFilterDescriptors();
    for (int i = i; i < fds.length; i++) {
    	if (fds[i].getId().equals(yourFilterId))
    		return filterService.getViewerFilter(filterDescriptor);
    }
    

  4. IWorkingSet support get/setWorkingSet()

    Working sets are not directly supported by the Common Navigator. The Project Explorer however does support working sets. There is however no current API in the Project Explorer to manipulate working sets. The Project Explorer provides a UI to work with working sets. If this sort of API is required, please file an enhancement request explaining the requirement.

  5. ResourceSorter support get/setResourceSorter()

    Use the sorting facility in the Common Navigator.

  6. ResourceComparator support get/setResourceComparator()

    Use ResourceSorter instead for now as the Common Navigator does not directly support ResourceComparators.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire