-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When plugins add actions to rmg, these are now separately grouped to make them distinguishable from the native actions.
- Loading branch information
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package eu.tneitzel.rmg.operations; | ||
|
||
import eu.tneitzel.argparse4j.global.IActionGroup; | ||
|
||
/** | ||
* When plugins implement IActionProvider, they can add additional arguments | ||
* to rmg. In this case, we use the IActionGroup to distinguish from plugin and | ||
* native actions. | ||
* | ||
* @author Tobias Neitzel (@qtc_de) | ||
*/ | ||
public enum OperationGroup implements IActionGroup | ||
{ | ||
NATIVE("actions:"), | ||
PLUGIN("plugin actions:"); | ||
|
||
private final String name; | ||
|
||
OperationGroup(String name) | ||
{ | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters