There are several options.
A quick and dirty approach is to put the getter for your global variable in the activator of one of your plugins. Then you just get your global view:
SomePluginActivator.getDefault().getGlobalData()
, , .
workbench. , org.eclipse.ui . , , org.eclipse.ui.services. factory. factory . , . factory :
IMyGlobalService service = (IMyGlobalService) PlatformUI.getWorkbench().getService(IMyGlobalService.class);
. , , . factory , .
. , , , , , .
- OSGi. . OSGi, OSGi . workbench, Eclipse RCP . (: PDF).