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.
org.eclipse.ui
org.eclipse.ui.navigator
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); }