| org.netbeans.spi.project.ActionProvider
Method Summary | |
String[] | getSupportedActions() Get a list of all commands which this project supports. | void | invokeAction(String command, Lookup context) Run a project command.
Will be invoked in the event thread.
The context may be ignored by some commands, but some may need it in order
to get e.g. | 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.
The context may be ignored by some commands, but some may need it in order
to get e.g. |
COMMAND_BUILD | String COMMAND_BUILD(Code) | | Standard command to incrementally build the project.
|
COMMAND_CLEAN | String COMMAND_CLEAN(Code) | | Standard command to clean build products.
|
COMMAND_COMPILE_SINGLE | String COMMAND_COMPILE_SINGLE(Code) | | Standard command for compiling set of files
|
COMMAND_COPY | String COMMAND_COPY(Code) | | Standard command for deleting the project.
since: 1.7 |
COMMAND_DEBUG | String COMMAND_DEBUG(Code) | | Standard command for running the project in debugger
|
COMMAND_DEBUG_SINGLE | String COMMAND_DEBUG_SINGLE(Code) | | Standard command for running single file in debugger
|
COMMAND_DEBUG_STEP_INTO | String COMMAND_DEBUG_STEP_INTO(Code) | | Standard command for starting app in debugger and stopping at the
beginning of app whatever that means.
|
COMMAND_DEBUG_TEST_SINGLE | String COMMAND_DEBUG_TEST_SINGLE(Code) | | Standard command for running one test in debugger
|
COMMAND_DELETE | String COMMAND_DELETE(Code) | | Standard command for deleting the project.
since: 1.6 |
COMMAND_MOVE | String COMMAND_MOVE(Code) | | Standard command for moving the project.
since: 1.7 |
COMMAND_REBUILD | String COMMAND_REBUILD(Code) | | Standard command to do a "clean" (forced) rebuild.
|
COMMAND_RENAME | String COMMAND_RENAME(Code) | | Standard command for renaming the project.
since: 1.7 |
COMMAND_RUN | String COMMAND_RUN(Code) | | Standard command for running the project
|
COMMAND_RUN_SINGLE | String COMMAND_RUN_SINGLE(Code) | | Standard command for running one file
|
COMMAND_TEST | String COMMAND_TEST(Code) | | Standard command for running tests on given projects
|
COMMAND_TEST_SINGLE | String COMMAND_TEST_SINGLE(Code) | | Standard command for running one test file
|
invokeAction | void invokeAction(String command, Lookup context) throws IllegalArgumentException(Code) | | Run a project command.
Will be invoked in the event thread.
The context may be ignored by some commands, but some may need it in order
to get e.g. the selected source file to build by itself, etc.
Parameters: command - a predefined command name (must be among ActionProvider.getSupportedActions) Parameters: context - any action context, e.g. for a node selection(as in ContextAwareAction) throws: IllegalArgumentException - if the requested command is not supported |
isActionEnabled | boolean isActionEnabled(String command, Lookup context) throws IllegalArgumentException(Code) | | Tells whether the command can be invoked in given context and thus if
actions representing this command should be enabled or disabled.
The context may be ignored by some commands, but some may need it in order
to get e.g. the selected source file to build by itself, etc.
Parameters: command - a predefined command name (must be among ActionProvider.getSupportedActions) Parameters: context - any action context, e.g. for a node selection(as in ContextAwareAction) throws: IllegalArgumentException - if the requested command is not supported |
|
|