Search in sources :

Example 1 with GotoRelatedSymbolAction

use of com.intellij.ide.actions.GotoRelatedSymbolAction in project android by JetBrains.

the class AndroidGotoRelatedTest method doGotoRelatedFile.

private List<GotoRelatedItem> doGotoRelatedFile(VirtualFile file) {
    myFixture.configureFromExistingVirtualFile(file);
    final GotoRelatedSymbolAction action = new GotoRelatedSymbolAction();
    final TestActionEvent e = new TestActionEvent(action);
    action.beforeActionPerformedUpdate(e);
    final Presentation presentation = e.getPresentation();
    assertTrue(presentation.isEnabled() && presentation.isVisible());
    return GotoRelatedSymbolAction.getItems(myFixture.getFile(), myFixture.getEditor(), null);
}
Also used : GotoRelatedSymbolAction(com.intellij.ide.actions.GotoRelatedSymbolAction) Presentation(com.intellij.openapi.actionSystem.Presentation) TestActionEvent(com.intellij.testFramework.TestActionEvent)

Aggregations

GotoRelatedSymbolAction (com.intellij.ide.actions.GotoRelatedSymbolAction)1 Presentation (com.intellij.openapi.actionSystem.Presentation)1 TestActionEvent (com.intellij.testFramework.TestActionEvent)1