mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] temp. extensibility point for Rider
This commit is contained in:
@@ -75,7 +75,7 @@ public class CommandLineProcessor {
|
||||
options.add(PlatformProjectOpenProcessor.Option.TEMP_PROJECT);
|
||||
options.add(PlatformProjectOpenProcessor.Option.FORCE_NEW_FRAME);
|
||||
}
|
||||
Project project = PlatformProjectOpenProcessor.doOpenProject(file, null, line, null, options);
|
||||
Project project = PlatformProjectOpenProcessor.getInstance().doOpenProject(file, null, line, options);
|
||||
if (project == null) {
|
||||
Messages.showErrorDialog("No project found to open file in", "Cannot Open File");
|
||||
}
|
||||
|
||||
@@ -104,6 +104,11 @@ public class PlatformProjectOpenProcessor extends ProjectOpenProcessor {
|
||||
return doOpenProject(virtualFile, projectToClose, -1, null, options);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Project doOpenProject(@NotNull VirtualFile file, @Nullable Project projectToClose, int line, @NotNull EnumSet<Option> options) {
|
||||
return doOpenProject(file, projectToClose, line, null, options);
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #doOpenProject(VirtualFile, Project, int, ProjectOpenedCallback, EnumSet)} (to be removed in IDEA 2019) */
|
||||
public static Project doOpenProject(@NotNull VirtualFile virtualFile,
|
||||
Project projectToClose,
|
||||
|
||||
Reference in New Issue
Block a user