Search in sources :

Example 1 with GotoFileAction

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

the class ChooseByNameBase method handlePaste.

protected void handlePaste(String str) {
    if (!myInitIsDone)
        return;
    if (myModel instanceof GotoClassModel2 && isFileName(str)) {
        //noinspection SSBasedInspection
        SwingUtilities.invokeLater(() -> {
            GotoFileAction gotoFile = new GotoFileAction();
            DataContext context = DataManager.getInstance().getDataContext(myTextField);
            gotoFile.actionPerformed(AnActionEvent.createFromAnAction(gotoFile, null, ActionPlaces.UNKNOWN, context));
        });
    }
}
Also used : GotoFileAction(com.intellij.ide.actions.GotoFileAction)

Aggregations

GotoFileAction (com.intellij.ide.actions.GotoFileAction)1