Method Detail

mainProjectCommandAction

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 is
performed

namePattern - a pattern which should be used for determining the action's
name (label). It takes two parameters a la MessageFormat:
{0} - number of selected projects (or -1 if a main project is set);
{1} - name of the first project (if >0).

icon - icon of the action; may be null, in which case the action will
not have an icon

namePattern - a pattern which should be used for determining the action's
name (label). It takes two parameters a la MessageFormat:
{0} - number of selected projects (or -1 if a main project is set);
{1} - name of the first project (if >0).

icon - icon of the action; may be null, in which case the action will
not have an icon