Commit ab6ebb20 authored by Evgeniy.Stepanov's avatar Evgeniy.Stepanov
Browse files

Use instance method PlatformProjectOpenProcessor.doOpenProject instead of static

parent 18d7c004
Branches unavailable Tags unavailable
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -75,7 +75,11 @@ 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 = null;
PlatformProjectOpenProcessor processor = PlatformProjectOpenProcessor.getInstanceIfItExists();
if (processor != null) {
project = processor.doOpenProject(file, null, line, options);
}
if (project == null) {
Messages.showErrorDialog("No project found to open file in", "Cannot Open File");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment