// This is where the view specific toolbar and menu bar get added. Note,
// that this is different from the editors. With the views they are part
// of the dockable frame, but with editors we add them to the editor
// pane itself in EditorComponentPane
if(pageComponent instanceof JideAbstractView){
JideAbstractView view = (JideAbstractView)pageComponent;
dockableFrame.setTitleBarComponent(view.getViewToolBar());
dockableFrame.setJMenuBar(view.getViewMenuBar());
}
return dockableFrame;
}