|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents the VCS command, that is executed to acually perform a VCS action.
This interface have sub-interfaces for individual VCS commands. The intended usage is like:
AddCommand addCmd =
(AddCommand) VcsManager.getDefault().createCommand(AddCommand.class,
new FileObject[] { fileToAdd });
addCmd.setMessage("Some new cool stuff");
addCmd.execute();
| Method Summary | |
CommandTask |
execute()
Execute the command. |
FileObject[] |
getApplicableFiles(FileObject[] files)
Find, whether this command can act on a set of files. |
String |
getDisplayName()
Get the display name of the command. |
FileObject[] |
getFiles()
Get files this command acts on. |
String |
getName()
Get the name of the command. |
boolean |
isExpertMode()
Test whether the command is in expert mode or not. |
boolean |
isGUIMode()
Test whether the command is in GUI mode or not. |
void |
setExpertMode(boolean expert)
Use this method to set or unset the expert mode for the command execution. |
void |
setFiles(FileObject[] files)
Set files to act on. |
void |
setGUIMode(boolean gui)
Use this method to set or unset the GUI mode for the command execution. |
| Method Detail |
public String getName()
public String getDisplayName()
null, the command will not be visible on the popup menu.
public void setFiles(FileObject[] files)
getApplicableFiles(org.openide.filesystems.FileObject[]) method to find out which files
are applicable.
files - the array of applicable files.
an - IllegalArgumentException when one or more files
are not applicable.public FileObject[] getFiles()
public FileObject[] getApplicableFiles(FileObject[] files)
files - The array of files to inspect
null when
it can not act on any file listed.public void setGUIMode(boolean gui)
true).
gui - true for GUI mode, false for non-GUI
modepublic boolean isGUIMode()
true for GUI mode, false for non-GUI
modepublic void setExpertMode(boolean expert)
false).
expert - true for expert mode, false for
non-expert modepublic boolean isExpertMode()
true for expert mode, false for non-expert
modepublic CommandTask execute()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||