| java.lang.Object org.netbeans.spi.project.ui.support.MainProjectSensitiveActions
MainProjectSensitiveActions | public class MainProjectSensitiveActions (Code) | | Factory for creating actions sensitive to the project selected
as the main project in the UI.
author: Petr Hrebejk |
mainProjectCommandAction | public static Action mainProjectCommandAction(String command, String name, Icon icon)(Code) | | Creates an action sensitive to the project currently selected as main in the UI.
The action will invoke the given command on the main project. The action
may be disabled when no project is marked as main, or it may prompt the user
to select a main project, etc.
Parameters: command - the command which should be invoked when the action isperformed Parameters: name - display name of the action Parameters: icon - icon of the action; may be null, in which case the action willnot have an icon an action sensitive to the main project |
mainProjectSensitiveAction | public static Action mainProjectSensitiveAction(ProjectActionPerformer performer, String name, Icon icon)(Code) | | Creates an action sensitive to the project currently selected as main in the UI.
When the action is invoked the supplied
ProjectActionPerformer.perform
will be called. The
ProjectActionPerformer.enable method will
be consulted when the main project changes to determine whether the
action should or should not be enabled. If no main project is selected the
project parameter in the callback will be null.
Parameters: performer - callback class for enabling and performing the action Parameters: name - display name of the action Parameters: icon - icon of the action; may be null, in which case the action willnot have an icon an action sensitive to the main project |
|
|