Protege 3.0

edu.stanford.smi.protege.action
Class ProjectAction

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

public abstract class ProjectAction
extends StandardAction

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 edu.stanford.smi.protege.util.StandardAction
DISABLED_ICON
 
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(ResourceKey key)
           
ProjectAction(ResourceKey key, boolean useLargeIcon)
           
ProjectAction(String text)
           
ProjectAction(String label, Icon icon)
           
 
Method Summary
protected  CommandManager getCommandManager()
           
protected  KnowledgeBase getKnowledgeBase()
           
protected  JComponent getMainPanel()
           
protected  Project getProject()
           
protected  ProjectManager getProjectManager()
           
protected  ProjectView getProjectView()
           
 
Methods inherited from class edu.stanford.smi.protege.util.StandardAction
equals, getIcon, getName, getName, initialize, setDescription, setDescription, setDisabledIcon, setDisabledIcon, setIcon, setIcon, setMnemonic, setMnemonic, setName, setName, setShortcut, setShortcut, substituteIntoName
 
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 text)

ProjectAction

public ProjectAction(String label,
                     Icon icon)

ProjectAction

public ProjectAction(ResourceKey key)

ProjectAction

public ProjectAction(ResourceKey key,
                     boolean useLargeIcon)
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()

Protege 3.0

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