{
super( REGULAR );
this.doc = doc;
final BasicApplication app = (BasicApplication) AbstractApplication.getApplication();
// final MenuRoot mr = app.getMenuBarRoot();
actionSave = new ActionSave();
actionSaveAs = new ActionSaveAs();
Listener winListener = new AbstractWindow.Adapter() {
// EEE
// public void windowClosing( AbstractWindow.Event e ) {
// actionClose.perform();
// }
public void windowActivated( AbstractWindow.Event e )
{
// need to check 'disposed' to avoid runtime exception in doc handler if document was just closed
// EEE
// if( !disposed ) {
app.getDocumentHandler().setActiveDocument( DocumentFrame.this, doc );
((BasicWindowHandler) app.getWindowHandler()).setMenuBarBorrower( DocumentFrame.this );
// }
}
};
this.addListener( winListener );
}