Package com.intellij.codeInsight.generation.actions

Examples of com.intellij.codeInsight.generation.actions.CommentByLineCommentAction


   */
  void doLineCommentTest(@NotNull String before, @NotNull String expected) {
    doExecuteActionTest(before, expected, new Runnable() {
      @Override
      public void run() {
        new CommentByLineCommentAction().actionPerformedImpl(myFixture.getProject(), myFixture.getEditor());
      }
    });
  }
View Full Code Here


        assertEquals(1, usageInfos.size());
    }

    public void testCommenter() {
        myFixture.configureByText(SimpleFileType.INSTANCE, "<caret>website = http://en.wikipedia.org/");
        CommentByLineCommentAction commentAction = new CommentByLineCommentAction();
        commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
        myFixture.checkResult("#website = http://en.wikipedia.org/");
        commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
        myFixture.checkResult("website = http://en.wikipedia.org/");
    }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.generation.actions.CommentByLineCommentAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.