}
if (_configuration != null) {
// NOTE: The following requires that the configuration be
// non-null, or it will report an error.
_menuFactory.addMenuItemFactory(new MenuActionFactory(
_lookInsideAction));
_menuFactory.addMenuItemFactory(new MenuActionFactory(
_openInstanceAction));
if (access == FULL) {
// Create an Appearance submenu.
_createAppearanceSubmenu();
}
}
/* The following proves not so useful since atomic actors
* do not typically have suitable constructors (that take
* only a Workspace argument) to be usable at the top level.
_menuFactory.addMenuItemFactory(
new MenuActionFactory(new SaveInFileAction()));
*/
//if (((BasicGraphController) getController()).getFrame() != null) {
// If we are in an applet, then we have no frame, so no need
// for a "Listen to Actor" or "Save in Library" menu choices.
// FIXME: this is not perfect, it would be better if we
// could just test if we are in an applet or else fix this
// so we have a frame.
// NOTE: This requires that the configuration be non null, or it
// will report an error.
_menuFactory.addMenuItemFactory(new MenuActionFactory(
new SaveInLibraryAction()));
_listenToActorAction = new ListenToActorAction(
(BasicGraphController) getController());
_menuFactory.addMenuItemFactory(new MenuActionFactory(
_listenToActorAction));
_listenToActorAction.setConfiguration(_configuration);
//}
// "Set Breakpoints"