站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VcsActionSupporter (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore
Class VcsActionSupporter

java.lang.Object
  extended byorg.netbeans.modules.vcscore.actions.CommandActionSupporter
      extended byorg.netbeans.modules.vcscore.VcsActionSupporter
All Implemented Interfaces:
Serializable

public class VcsActionSupporter
extends CommandActionSupporter
implements Serializable

TODO remove it's transitively unused.

See Also:
Serialized Form

Constructor Summary
VcsActionSupporter()
          Creates new VcsActionSupporter
 
Method Summary
 void addSupportForAction(Class actionClass, CommandSupport commandSupp)
           
 String getMenuDisplayName(GeneralCommandAction action)
          If the supporter enables the action, it can then add supporter-specific description to the menu name.
 String getPopupDisplayName(GeneralCommandAction action)
          If the supporter enables the action, it can then add supporter-specific description to the popup menu name.
 String getToolBarDisplayName(GeneralCommandAction action)
          If the supporter enables the action, it can then add supporter-specific description to the toolbar tooltip.
 boolean isEnabled(GeneralCommandAction action, FileObject[] fileObjects)
          GeneralCommandAction asks the supporter during the enabled(Node[] nodes) method.
 void performAction(GeneralCommandAction action, FileObject[] fileObjects)
          GeneralCommandAction tells the supporter during the performsAction(Node[] nodes) method to perform the action on the specified FileObjects.
 void removeSupportForAction(Class actionClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsActionSupporter

public VcsActionSupporter()
Creates new VcsActionSupporter

Method Detail

addSupportForAction

public void addSupportForAction(Class actionClass,
                                CommandSupport commandSupp)

removeSupportForAction

public void removeSupportForAction(Class actionClass)

isEnabled

public boolean isEnabled(GeneralCommandAction action,
                         FileObject[] fileObjects)
Description copied from class: CommandActionSupporter
GeneralCommandAction asks the supporter during the enabled(Node[] nodes) method. The supporter should return if the specified fileobjects are supported for the specified action.

Specified by:
isEnabled in class CommandActionSupporter
Parameters:
action - The action that initiated this request.
fileObjects - Array of fileObjects extracted from the Activated nodes.

performAction

public void performAction(GeneralCommandAction action,
                          FileObject[] fileObjects)
Description copied from class: CommandActionSupporter
GeneralCommandAction tells the supporter during the performsAction(Node[] nodes) method to perform the action on the specified FileObjects. This is called from GeneralCommandAction in AWT thread. RequestProcessor needs to be used to leave the AWT thread if necessary.

Specified by:
performAction in class CommandActionSupporter
Parameters:
action - The action that initiated this request.
fileObjects - Array of fileObjects extracted from the Activated nodes.

getToolBarDisplayName

public String getToolBarDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the toolbar tooltip. (use with caution.) Experimental

Overrides:
getToolBarDisplayName in class CommandActionSupporter

getMenuDisplayName

public String getMenuDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the menu name. (use with caution.) Experimental

Overrides:
getMenuDisplayName in class CommandActionSupporter

getPopupDisplayName

public String getPopupDisplayName(GeneralCommandAction action)
If the supporter enables the action, it can then add supporter-specific description to the popup menu name. (use with caution.) Experimental

Overrides:
getPopupDisplayName in class CommandActionSupporter

 

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