public class GenerateCodeOperator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DELEGATE_METHOD |
static String |
GENERATE_CONSTRUCTOR |
static String |
GENERATE_EQUALS |
static String |
GENERATE_EQUALS_HASHCODE |
static String |
GENERATE_GETTER |
static String |
GENERATE_GETTER_SETTER |
static String |
GENERATE_HASHCODE |
static String |
GENERATE_SETTER |
static String |
IMPLEMENT_METHOD |
static String |
OVERRIDE_METHOD |
Constructor and Description |
---|
GenerateCodeOperator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkItems(EditorOperator editor,
String... items)
Check if Insertcode popup contains requested item
|
static boolean |
containsItems(EditorOperator editor,
String... items)
Compares list of items provided in the Insert Code dialog with the list of expected items
|
static boolean |
openDialog(String type,
EditorOperator editor)
Opens requested code generation dialog
|
public static final String GENERATE_CONSTRUCTOR
public static final String GENERATE_GETTER
public static final String GENERATE_SETTER
public static final String GENERATE_GETTER_SETTER
public static final String GENERATE_EQUALS_HASHCODE
public static final String GENERATE_EQUALS
public static final String GENERATE_HASHCODE
public static final String OVERRIDE_METHOD
public static final String IMPLEMENT_METHOD
public static final String DELEGATE_METHOD
public static boolean openDialog(String type, EditorOperator editor)
type
- Displayname of menu itemeditor
- Operator of editor window where should be menu openedpublic static boolean containsItems(EditorOperator editor, String... items)
editor
- Operator of editor window where should Insert Code should be caleditems
- Expected itemspublic static boolean checkItems(EditorOperator editor, String... items)
editor
- Operator of editor window where should Insert Code should be caleditems
- Expected itemscontainsItems