private void registerNormalView(PageComponent pageComponent, JideViewDescriptor viewDescriptor) {
if (logger.isInfoEnabled()) {
logger.info("Registering view " + pageComponent.getId());
}
DockingManager manager = window.getDockingManager();
String frameName = pageComponent.getId();
if (manager.getAllFrameNames().contains(frameName)) {
if (logger.isDebugEnabled()) {
logger.debug("Showing existing docked frame " + frameName);
}
DockContext currentContext = manager.getContextOf(frameName);
if (currentContext.isHidden()) {
if (viewDescriptor.isFloatOnShow()) {
manager.floatFrame(frameName, viewDescriptor.getFloatBounds(), true);
}
else {
manager.showFrame(frameName);
}
}
else {
manager.activateFrame(frameName);
}
}
else {
if (logger.isDebugEnabled()) {
logger.debug("Adding new dockable frame " + frameName);
}
DockableFrame frame = createDockableFrame(pageComponent, viewDescriptor);
manager.addFrame(frame);
if(viewDescriptor.getShowTitleBar() != null){
frame.setShowTitleBar(viewDescriptor.getShowTitleBar().booleanValue());
}
}
}