|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Ability for a project to have various actions (e.g. Build) invoked on it. Should be registered in a project's lookup and will be used by UI infrastructure.
Project.getLookup()
,
ActionUtils
Field Summary | |
static String |
COMMAND_BUILD
Standard command to incrementally build the project. |
static String |
COMMAND_CLEAN
Standard command to clean build products. |
static String |
COMMAND_COMPILE_SINGLE
Standard command for compiling set of files |
static String |
COMMAND_COPY
Standard command for deleting the project. |
static String |
COMMAND_DEBUG
Standard command for running the project in debugger |
static String |
COMMAND_DEBUG_SINGLE
Standard command for running single file in debugger |
static String |
COMMAND_DEBUG_STEP_INTO
Standard command for starting app in debugger and stopping at the beginning of app whatever that means. |
static String |
COMMAND_DEBUG_TEST_SINGLE
Standard command for running one test in debugger |
static String |
COMMAND_DELETE
Standard command for deleting the project. |
static String |
COMMAND_MOVE
Standard command for deleting the project. |
static String |
COMMAND_REBUILD
Standard command to do a "clean" (forced) rebuild. |
static String |
COMMAND_RENAME
Standard command for deleting the project. |
static String |
COMMAND_RUN
Standard command for running the project |
static String |
COMMAND_RUN_SINGLE
Standard command for running one file |
static String |
COMMAND_TEST
Standard command for running tests on given projects |
static String |
COMMAND_TEST_SINGLE
Standard command for running one test file |
Method Summary | |
String[] |
getSupportedActions()
Get a list of all commands which this project supports. |
void |
invokeAction(String command,
Lookup context)
Run a project command. |
boolean |
isActionEnabled(String command,
Lookup context)
Tells whether the command can be invoked in given context and thus if actions representing this command should be enabled or disabled. |
Field Detail |
public static final String COMMAND_BUILD
public static final String COMMAND_COMPILE_SINGLE
public static final String COMMAND_CLEAN
public static final String COMMAND_REBUILD
public static final String COMMAND_RUN
public static final String COMMAND_RUN_SINGLE
public static final String COMMAND_TEST
public static final String COMMAND_TEST_SINGLE
public static final String COMMAND_DEBUG
public static final String COMMAND_DEBUG_SINGLE
public static final String COMMAND_DEBUG_TEST_SINGLE
public static final String COMMAND_DEBUG_STEP_INTO
public static final String COMMAND_DELETE
public static final String COMMAND_COPY
public static final String COMMAND_MOVE
public static final String COMMAND_RENAME
Method Detail |
public String[] getSupportedActions()
invokeAction(java.lang.String, org.openide.util.Lookup)
COMMAND_BUILD
,
COMMAND_CLEAN
,
COMMAND_REBUILD
public void invokeAction(String command, Lookup context) throws IllegalArgumentException
command
- a predefined command name (must be among getSupportedActions()
)context
- any action context, e.g. for a node selection
(as in ContextAwareAction
)
IllegalArgumentException
- if the requested command is not supportedpublic boolean isActionEnabled(String command, Lookup context) throws IllegalArgumentException
command
- a predefined command name (must be among getSupportedActions()
)context
- any action context, e.g. for a node selection
(as in ContextAwareAction
)
IllegalArgumentException
- if the requested command is not supported
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |