/**
* Implements the Edit menu item.
*/
public class [[#variablee0d9720]]implements Command {
private static final Set commands = new HashSet();
static {
commands.add( [[#variablee0d96e0]]);
}
public [[#variablee0d9720]]() {
}
public void doAction(ActionEvent e) {
[[#variablee0d9680]] guiPackage = [[#variablee0d9680]].getInstance();
guiPackage.getMainFrame().setMainPanel((javax.swing.JComponent) guiPackage.getCurrentGui());
guiPackage.getMainFrame().setEditMenu(guiPackage.getTreeListener().getCurrentNode().createPopupMenu());
// TODO: I believe the following code (to the end of the method) is
// obsolete,
// since NamePanel no longer seems to be the GUI for any component:
if ( !(guiPackage.getCurrentGui() instanceof NamePanel)) {
guiPackage.getMainFrame().setFileLoadEnabled(true);
guiPackage.getMainFrame().setFileSaveEnabled(true);
}
else {
guiPackage.getMainFrame().setFileLoadEnabled(false);
guiPackage.getMainFrame().setFileSaveEnabled(false);
}
}
public Set getActionNames() {
return commands;
}
}
|