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
3c989f6f
Commit
3c989f6f
authored
6 years ago
by
Dmitry.Krasilschikov
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-207961 open project later
parent
de022184
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/lang-impl/src/com/intellij/navigation/JBProtocolNavigateCommand.kt
+8
-6
.../src/com/intellij/navigation/JBProtocolNavigateCommand.kt
with
8 additions
and
6 deletions
+8
-6
platform/lang-impl/src/com/intellij/navigation/JBProtocolNavigateCommand.kt
+
8
-
6
View file @
3c989f6f
...
...
@@ -8,7 +8,9 @@ import com.intellij.ide.util.gotoByName.ChooseByNameModel
import
com.intellij.ide.util.gotoByName.ChooseByNameViewModel
import
com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider
import
com.intellij.ide.util.gotoByName.GotoSymbolModel2
import
com.intellij.openapi.application.ApplicationManager
import
com.intellij.openapi.application.JBProtocolCommand
import
com.intellij.openapi.application.ModalityState
import
com.intellij.openapi.diagnostic.Logger
import
com.intellij.openapi.editor.LogicalPosition
import
com.intellij.openapi.fileEditor.FileEditorManager
...
...
@@ -49,12 +51,12 @@ class JBProtocolNavigateCommand : JBProtocolCommand(NAVIGATE_COMMAND) {
ProjectManager
.
getInstance
().
openProjects
.
find
{
project
->
project
.
name
==
projectName
}
?.
let
{
findAndNavigateToReference
(
it
,
parameters
)
}
?:
run
{
RecentProjectsManagerBase
.
getInstanceEx
().
doOpenProject
(
recentProjectAction
.
projectPath
,
null
,
false
)
?.
let
{
StartupManager
.
getInstance
(
it
).
registerPostStartupActivity
(
Runnable
{
findAndNavigateToReference
(
it
,
parameters
)
})
}
?:
run
{
LOG
.
warn
(
"Cannot open project by path: "
+
recentProjectAction
.
projectPath
)
}
ApplicationManager
.
getApplication
().
invokeLater
(
{
RecentProjectsManagerBase
.
getInstanceEx
().
doOpenProject
(
recentProjectAction
.
projectPath
,
null
,
false
)
?.
let
{
StartupManager
.
getInstance
(
it
).
registerPostStartupActivity
(
Runnable
{
findAndNavigateToReference
(
it
,
parameters
)
})
}
},
ModalityState
.
NON_MODAL
)
}
}
}
...
...
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