setCheckMMenuItem( browserChecked, schedulesChecked );
}
private void hijackContentArea( IPluginPerspective perspective ) {
// hijack content area (or simply find and select existing content)
Frame frame = null;
for ( int i = 0; i < MantleApplication.getInstance().getContentDeck().getWidgetCount(); i++ ) {
Widget w = MantleApplication.getInstance().getContentDeck().getWidget( i );
if ( w instanceof Frame && perspective.getId().equals( w.getElement().getId() ) ) {
frame = (Frame) w;
}
}
if ( frame == null ) {
frame = new Frame( perspective.getContentUrl() );
Element frameElement = frame.getElement();
frameElement.setAttribute( ALLOW_TRANSPARENCY_ATTRIBUTE, "true" );
// BISERVER-7661 Mantle sections have a border on IE9 (not on chrome, firefox)
frameElement.setAttribute( REMOVE_IFRAME_BORDERS, "0" );
frame.getElement().setId( perspective.getId() );
MantleApplication.getInstance().getContentDeck().add( frame );
}
MantleApplication.getInstance().getContentDeck().showWidget(
MantleApplication.getInstance().getContentDeck().getWidgetIndex( frame ) );
final Element frameElement = frame.getElement();
perspectiveActivated( frameElement );
}