Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
ab6ebb20
Commit
ab6ebb20
authored
7 years ago
by
Evgeniy.Stepanov
Browse files
Options
Download
Email Patches
Plain Diff
Use instance method PlatformProjectOpenProcessor.doOpenProject instead of static
parent
18d7c004
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/ide/CommandLineProcessor.java
+5
-1
...tform-impl/src/com/intellij/ide/CommandLineProcessor.java
with
5 additions
and
1 deletion
+5
-1
platform/platform-impl/src/com/intellij/ide/CommandLineProcessor.java
+
5
-
1
View file @
ab6ebb20
...
...
@@ -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"
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help