| java.lang.Object org.netbeans.spi.project.ui.support.FileSensitiveActions
FileSensitiveActions | public class FileSensitiveActions (Code) | | Factory for creating file-sensitive actions.
author: Petr Hrebejk |
fileCommandAction | public static Action fileCommandAction(String command, String namePattern, Icon icon)(Code) | | Creates an action sensitive to the set of currently selected files.
When performed the action will call the given command on the
org.netbeans.spi.project.ActionProvider of
the selected project(s) and pass the proper context to it. Enablement of the
action depends on the behavior of the project's action provider.
Shortcuts for actions are shared according to command, i.e. actions based on the same command
will have the same shortcut.
Parameters: command - the command which should be invoked when the action isperformed Parameters: namePattern - pattern which should be used for determining the action'sname (label). It takes two parameters a la java.text.MessageFormat: {0} - number of selected projects;{1} - name of the first project. Parameters: icon - icon of the action (or null) newly created file-sensitive action |
|
|