Search in sources :

Example 1 with BrowseTypeHierarchyAction

use of com.intellij.ide.hierarchy.actions.BrowseTypeHierarchyAction in project intellij-community by JetBrains.

the class JavaCallHierarchyTest method testActionAvailableInXml.

public void testActionAvailableInXml() throws Exception {
    configureByText(XmlFileType.INSTANCE, "<foo>java.lang.Str<caret>ing</foo>");
    BrowseTypeHierarchyAction action = new BrowseTypeHierarchyAction();
    TestActionEvent e = new TestActionEvent(action);
    action.beforeActionPerformedUpdate(e);
    assertTrue(e.getPresentation().isEnabled() && e.getPresentation().isVisible());
}
Also used : TestActionEvent(com.intellij.testFramework.TestActionEvent) BrowseTypeHierarchyAction(com.intellij.ide.hierarchy.actions.BrowseTypeHierarchyAction)

Aggregations

BrowseTypeHierarchyAction (com.intellij.ide.hierarchy.actions.BrowseTypeHierarchyAction)1 TestActionEvent (com.intellij.testFramework.TestActionEvent)1