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

Creation of Common Navigator View

In order to use the CNF-based view in the application several steps are required which are discussed below. The created view can be configured by binding specific content and actions to it, which is discussed in the Content and Action Binding.

The example plugin org.eclipse.ui.examples.navigators.resources shows this.

  1. Add the following as dependent plug-ins:
    • org.eclipse.ui
    • org.eclipse.ui.navigator
  2. Add a View extension (org.eclipse.ui.views) and provide org.eclipse.ui.navigator.CommonNavigator as the value of class attribute. Please note, that the id of the view will be required in later steps for the content and action bindings.
       <extension
             point="org.eclipse.ui.views">
          <view
                name="View"
                class="org.eclipse.ui.navigator.CommonNavigator"
                id="example.view">
          </view>
       </extension>
    

Please note, that if you are defining your own perspective in which the Common Navigator is used, the showTitle parameter must be set to true in order the viewer renders correctly (see bug 235171).

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		
		layout.addStandaloneView("example.view",  true /* show title */, IPageLayout.LEFT, 1.0f, editorArea);
	}

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