Search in sources :

Example 1 with GenerateGetterAndSetterHandler

use of com.intellij.codeInsight.generation.GenerateGetterAndSetterHandler in project intellij-community by JetBrains.

the class GenerateGetterSetterTest method doTest.

protected void doTest() throws Exception {
    configureByFile("/generateGetterSetter/before" + getTestName(false) + ".java");
    new GenerateGetterAndSetterHandler() {

        @Nullable
        @Override
        protected ClassMember[] chooseMembers(ClassMember[] members, boolean allowEmptySelection, boolean copyJavadocCheckbox, Project project, @Nullable Editor editor) {
            return members;
        }
    }.invoke(getProject(), getEditor(), getFile());
    UIUtil.dispatchAllInvocationEvents();
    checkResultByFile("/generateGetterSetter/after" + getTestName(false) + ".java");
}
Also used : Project(com.intellij.openapi.project.Project) GenerateGetterAndSetterHandler(com.intellij.codeInsight.generation.GenerateGetterAndSetterHandler) Editor(com.intellij.openapi.editor.Editor) ClassMember(com.intellij.codeInsight.generation.ClassMember) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

ClassMember (com.intellij.codeInsight.generation.ClassMember)1 GenerateGetterAndSetterHandler (com.intellij.codeInsight.generation.GenerateGetterAndSetterHandler)1 Editor (com.intellij.openapi.editor.Editor)1 Project (com.intellij.openapi.project.Project)1 Nullable (org.jetbrains.annotations.Nullable)1