public class OpenSourceUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canNavigate(java.lang.Object object) |
static boolean |
canNavigateToSource(java.lang.Object object) |
static boolean |
navigate(boolean requestFocus,
boolean tryNotToScroll,
java.lang.Iterable<? extends Navigatable> navigatables)
Navigates to all available sources or to the first navigatable that represents non-source navigation.
|
static void |
navigate(boolean requestFocus,
boolean tryNotToScroll,
Navigatable... navigatables)
Invokes
navigate(boolean, boolean, Iterable) if at least one navigatable exists |
static void |
navigate(boolean requestFocus,
Navigatable... navigatables)
Invokes
navigate(boolean, boolean, Navigatable...) that does not try to preserve a state of a corresponding editor. |
static void |
navigate(Navigatable... navigatables)
Invokes
navigate(boolean, Navigatable...) that always requests focus. |
static boolean |
navigateToSource(boolean requestFocus,
boolean tryNotToScroll,
java.lang.Iterable<? extends Navigatable> navigatables)
Navigates to all available sources of the specified navigatables.
|
static boolean |
navigateToSource(boolean requestFocus,
boolean tryNotToScroll,
Navigatable navigatable)
Navigates to source of the specified navigatable.
|
static void |
openSourcesFrom(DataContext context,
boolean requestFocus) |
static void |
openSourcesFrom(DataProvider context,
boolean requestFocus) |
public static void openSourcesFrom(DataContext context, boolean requestFocus)
public static void openSourcesFrom(DataProvider context, boolean requestFocus)
public static boolean canNavigate(java.lang.Object object)
true
if the specified object
is Navigatable
and supports navigationpublic static boolean canNavigateToSource(java.lang.Object object)
true
if the specified object
is Navigatable
and supports navigation to sourcepublic static void navigate(Navigatable... navigatables)
navigate(boolean, Navigatable...)
that always requests focus.public static void navigate(boolean requestFocus, Navigatable... navigatables)
navigate(boolean, boolean, Navigatable...)
that does not try to preserve a state of a corresponding editor.public static void navigate(boolean requestFocus, boolean tryNotToScroll, Navigatable... navigatables)
navigate(boolean, boolean, Iterable)
if at least one navigatable existspublic static boolean navigate(boolean requestFocus, boolean tryNotToScroll, java.lang.Iterable<? extends Navigatable> navigatables)
requestFocus
- specifies whether a focus should be requested or nottryNotToScroll
- specifies whether a corresponding editor should preserve its state if it is possiblenavigatables
- an iterable collection of navigatablestrue
if at least one navigatable was processed, false
otherwisepublic static boolean navigateToSource(boolean requestFocus, boolean tryNotToScroll, java.lang.Iterable<? extends Navigatable> navigatables)
requestFocus
- specifies whether a focus should be requested or nottryNotToScroll
- specifies whether a corresponding editor should preserve its state if it is possiblenavigatables
- an iterable collection of navigatablestrue
if at least one navigatable was processed, false
otherwisepublic static boolean navigateToSource(boolean requestFocus, boolean tryNotToScroll, Navigatable navigatable)
requestFocus
- specifies whether a focus should be requested or nottryNotToScroll
- specifies whether a corresponding editor should preserve its state if it is possibletrue
if navigation is done, false
otherwise