站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byorg.openide.util.SharedClassObject
      extended byorg.openide.util.actions.SystemAction
          extended byorg.openide.util.actions.CallableSystemAction
              extended byorg.openide.util.actions.NodeAction
                  extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.openide.util.actions.Presenter
Presenter.Menu, Presenter.Popup, Presenter.Toolbar
 
Field Summary
protected  WeakReference fileObject
           
protected  WeakReference fileSystem
           
protected  Collection selectedRevisionItems
           
 
Fields inherited from class org.openide.util.actions.SystemAction
PROP_ENABLED, PROP_ICON
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
VcsRevisionAction()
          Creates new RevisionAction Gets revision actions from filesystem and acts on a file object.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  boolean asynchronous()
           
protected  JMenuItem createItem(VcsCommand cmd)
           
 boolean enable(Node[] nodes)
           
 HelpCtx getHelpCtx()
           
 String getName()
           
 JMenuItem getPopupPresenter()
          Get a menu item that can present this action in a JPopupMenu.
 void performAction(Node[] nodes)
           
 void run()
          Actually perform the action.
 void setFileObject(FileObject fileObject)
           
 void setFileSystem(VcsFileSystem fileSystem)
           
 void setSelectedRevisionItems(Collection items)
           
 
Methods inherited from class org.openide.util.actions.NodeAction
addNotify, createContextAwareInstance, getActivatedNodes, initialize, isEnabled, performAction, removeNotify, setEnabled, surviveFocusChange
 
Methods inherited from class org.openide.util.actions.CallableSystemAction
getMenuPresenter, getToolbarPresenter
 
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
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, putValue, removePropertyChangeListener
 

Field Detail

fileSystem

protected WeakReference fileSystem

fileObject

protected WeakReference fileObject

selectedRevisionItems

protected Collection selectedRevisionItems
Constructor Detail

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.

Method Detail

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

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.