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:
  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.

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.addStandaloneView("example.view",  true /* show title */, IPageLayout.LEFT, 1.0f, editorArea);