当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
VcsRevisionAction (NetBeans VCS API) - NetBeans API Javadoc 4.1.0
org.netbeans.modules.vcscore
Class VcsRevisionAction
java.lang.Object
org.openide.util.SharedClassObject
org.openide.util.actions.SystemAction
org.openide.util.actions.CallableSystemAction
org.openide.util.actions.NodeAction
org.netbeans.modules.vcscore.VcsRevisionAction
- All Implemented Interfaces:
- Action, ActionListener, ContextAwareAction, EventListener, Externalizable, HelpCtx.Provider, Presenter, Presenter.Menu, Presenter.Popup, Presenter.Toolbar, Runnable, Serializable
- public class VcsRevisionAction
- extends NodeAction
- implements ActionListener, Runnable
- See Also:
- Serialized Form
Constructor Summary |
VcsRevisionAction()
Creates new RevisionAction
Gets revision actions from filesystem and acts on a file object. |
Methods inherited from class org.openide.util.actions.SystemAction |
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, linkActions, putValue, setIcon |
Methods inherited from class org.openide.util.SharedClassObject |
addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removePropertyChangeListener, reset, writeExternal, writeReplace |
fileSystem
protected WeakReference fileSystem
fileObject
protected WeakReference fileObject
selectedRevisionItems
protected Collection selectedRevisionItems
VcsRevisionAction
public VcsRevisionAction()
- Creates new RevisionAction
Gets revision actions from filesystem and acts on a file object.
Both the filesystem and file object are obtained from the revision node.
setFileSystem
public void setFileSystem(VcsFileSystem fileSystem)
setFileObject
public void setFileObject(FileObject fileObject)
setSelectedRevisionItems
public void setSelectedRevisionItems(Collection items)
getName
public String getName()
asynchronous
protected boolean asynchronous()
- Returns:
- false to run in AWT thread.
performAction
public void performAction(Node[] nodes)
enable
public boolean enable(Node[] nodes)
getHelpCtx
public HelpCtx getHelpCtx()
- Specified by:
getHelpCtx
in interface HelpCtx.Provider
createItem
protected JMenuItem createItem(VcsCommand cmd)
getPopupPresenter
public JMenuItem getPopupPresenter()
- Get a menu item that can present this action in a
JPopupMenu
.
- Specified by:
getPopupPresenter
in interface Presenter.Popup
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
run
public void run()
- Actually perform the action.
- Specified by:
run
in interface Runnable