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));
});
}
}
Aggregations