This is my navigator view.
public class myNavigatorView extends ResourceNavigator {
private NavigatorActionGroup navigatorActionGroup;
private CollapseAllHandler collapseAllHandler;
public myNavigatorView() {
// TODO Auto-generated constructor stub
}
protected void makeActions() {
navigatorActionGroup = new NavigatorActionGroup( this );
setActionGroup(navigatorActionGroup);
IHandlerService service = (IHandlerService) getSite().getService(IHandlerService.class);
service.activateHandler(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR,
new ActionHandler(navigatorActionGroup.toggleLinkingAction));
collapseAllHandler = new CollapseAllHandler(this.getViewer());
service.activateHandler(CollapseAllHandler.COMMAND_ID,
collapseAllHandler);
}
}
And when I double clicked the item I selected,the content didn't show in the editor.
layout.setEditorAreaVisible(true);
leftFolder.addView("BIT_DEC.myNavigator");