Is it possible using the eclipse plugin API to programatically check if the project explorer link button (double arrows) is enabled? This is the button that causes the current editor selection to change the project explorer selection.
0
votes
1 Answers
0
votes
Assuming the Projects Explorer is open this should work:
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IViewPart view = page.findView("org.eclipse.jdt.ui.ProjectsView");
if (view instanceof CommonNavigator)
{
boolean linkingEnabled = ((CommonNavigator)view).isLinkingEnabled();
...
}