Search in sources :

Example 6 with InlineAction

use of com.intellij.refactoring.actions.InlineAction in project android by JetBrains.

the class AndroidInlineStyleTest method doCommonInlineAction.

private AndroidInlineTestConfig doCommonInlineAction(boolean inlineThisOnly) {
    final AndroidInlineTestConfig config = new AndroidInlineTestConfig(inlineThisOnly);
    AndroidInlineStyleHandler.setTestConfig(config);
    try {
        final Presentation p = myFixture.testAction(new InlineAction());
        assertTrue(p.isEnabled());
        assertTrue(p.isVisible());
    } finally {
        AndroidInlineStyleHandler.setTestConfig(null);
    }
    return config;
}
Also used : InlineAction(com.intellij.refactoring.actions.InlineAction) Presentation(com.intellij.openapi.actionSystem.Presentation)

Aggregations

InlineAction (com.intellij.refactoring.actions.InlineAction)6 VirtualFile (com.intellij.openapi.vfs.VirtualFile)5 Presentation (com.intellij.openapi.actionSystem.Presentation)3 PsiElement (com.intellij.psi.PsiElement)1 CommonRefactoringUtil (com.intellij.refactoring.util.CommonRefactoringUtil)1 IncorrectOperationException (com.intellij.util.IncorrectOperationException)1