452453454455456457458
public boolean calculateEnabled() { return createCommand().canExecute(); } private Command createCommand() { return new CopyGraphCommand(editor.getDefinition(), (IFolder) editor.getDefinitionFile().getParent()); }