mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-7 store canNavigateToSource in raw navigation request for further usage
GitOrigin-RevId: 231363fd9b7fc31e031a790e4403f7f8a4673221
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e71daf3a7
commit
b9f4b8a803
+2
-2
@@ -95,9 +95,9 @@ internal class NavigationRequestsImpl : NavigationRequests {
|
||||
override fun rawNavigationRequest(navigatable: Navigatable): NavigationRequest? {
|
||||
ApplicationManager.getApplication().assertReadAccessAllowed()
|
||||
ApplicationManager.getApplication().assertIsNonDispatchThread()
|
||||
if (!navigatable.canNavigateToSource() && !navigatable.canNavigate()) {
|
||||
if (!navigatable.canNavigate()) {
|
||||
return null
|
||||
}
|
||||
return RawNavigationRequest(navigatable)
|
||||
return RawNavigationRequest(navigatable, navigatable.canNavigateToSource())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,5 @@ class DirectoryNavigationRequest internal constructor(
|
||||
@Internal
|
||||
class RawNavigationRequest internal constructor(
|
||||
val navigatable: Navigatable,
|
||||
val canNavigateToSource: Boolean,
|
||||
) : NavigationRequest
|
||||
|
||||
Reference in New Issue
Block a user