I have an Eclipse plugin with a checkbox on the plugin settings page. This flag is used to enable or disable the editor that is launched from this plug-in.
However, the problem is that I would also like to enable and disable this “launch editor” from another plug-in by following steps that change the checkbox value on the aforementioned preferences page.
Here is the problem, how do I access this local preference store from another plugin?
I tried things like ..
View myView = (View) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("ViewID");
But that ` myView` always seems to be zero. And also, what would I do with the view, since this is the plugin I want.
Platform.getBundle('bundleName')...
The same thing here, you need a plugin, not an appropriate package.
No matter what I try, nothing works.
Does anyone have any idea?
Karin source
share