wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse RCP how to exchange data stored in objects?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse RCP how to exchange data stored in objects??" Watch "Eclipse RCP how to exchange data stored in objects??" New topic
Author

Eclipse RCP how to exchange data stored in objects??

Lars Olson
Greenhorn

Joined: Apr 23, 2009
Posts: 2
Hi!

I'm quite new when it comes to RCP development after developing mostly plain old Java previously and I have run into a problem :-)

I have tried to solve this the POJO way, creating an object to store some values, in this case a particular type of Bundles.

The problem is that I can not access this object from my view classes, because they do not seem to carry a reference to the Activator class(?) I believe I have to do this in the Activator class, because the bundlelistener has to be registered with the context.

In my Activator class I have created an object servicesList containing a vector of Bundles


and registered a BundleListener

In the listener I store an array of all bundles and sort out the ones I am interested in



I reallize this is probably not the Eclipse way of doing storage, so does someone have another solution?

Any help would be greatly appreciated!
 
Consider Paul's rocket mass heater.
 
subject: Eclipse RCP how to exchange data stored in objects??
 
Similar Threads
OSGI working example
SWT/Eclipse: Getting Installed Plugins from Eclipse Manage Configuration
OSGI : Exporting services defined by @Service annotation
external jar plugin malarkey in RCP
Spring DM versus JSR-291