|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.project.ui.support.MainProjectSensitiveActions
Factory for creating actions sensitive to the project selected as the main project in the UI.
Method Summary | |
static Action |
mainProjectCommandAction(String command,
String name,
Icon icon)
Creates an action sensitive to the project currently selected as main in the UI. |
static Action |
mainProjectSensitiveAction(ProjectActionPerformer performer,
String name,
Icon icon)
Creates an action sensitive to the project currently selected as main in the UI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Action mainProjectCommandAction(String command, String name, Icon icon)
command
- the command which should be invoked when the action is
performedname
- display name of the actionicon
- icon of the action; may be null, in which case the action will
not have an icon
public static Action mainProjectSensitiveAction(ProjectActionPerformer performer, String name, Icon icon)
ProjectActionPerformer.perform(org.netbeans.api.project.Project)
will be called. The ProjectActionPerformer.enable(org.netbeans.api.project.Project)
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.
performer
- callback class for enabling and performing the actionname
- display name of the actionicon
- icon of the action; may be null, in which case the action will
not have an icon
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |