Protege 2.1

edu.stanford.smi.protege.action
Class ProjectAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byedu.stanford.smi.protege.action.ProjectAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
AutosynchronizeTrees, BuildProject, CascadeWindows, CloseAllWindows, CloseProject, CollectGarbageAction, ConfigureProject, CreateProject, DetachCurrentTab, ExitApplication, ExportPluginAction, GenerateHtml, ImportPluginAction, LocalProjectAction, LookAndFeelAction, OpenProject, OpenRemoteProject, RedoAction, ShowAboutBox, ShowAboutPluginsBox, ShowCommandHistoryAction, ShowEncodingAndLocales, ShowIconDialog, ShowIncludedProjects, ShowMetrics, SynchronizeTrees, UndoAction

public abstract class ProjectAction
extends AbstractAction

Base class for actions that access the current project. By default instances of this class are disabled if no project is loaded. To override this call #setEnabled(boolean) in the constructor.

Author:
Ray Fergerson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ProjectAction(String label, Icon icon)
           
 
Method Summary
static boolean equals(Object o1, Object o2)
           
protected  CommandManager getCommandManager()
           
protected  KnowledgeBase getKnowledgeBase()
           
protected  JComponent getMainPanel()
           
protected  Project getProject()
           
protected  ProjectManager getProjectManager()
           
protected  ProjectView getProjectView()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

ProjectAction

public ProjectAction(String label,
                     Icon icon)
Method Detail

getProjectManager

protected ProjectManager getProjectManager()

getProject

protected Project getProject()

getKnowledgeBase

protected KnowledgeBase getKnowledgeBase()

getProjectView

protected ProjectView getProjectView()

getCommandManager

protected CommandManager getCommandManager()

getMainPanel

protected JComponent getMainPanel()

equals

public static boolean equals(Object o1,
                             Object o2)

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.