Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » velocity, bundle, resource loading
velocity, bundle, resource loading [message #277942] Sun, 19 December 2004 15:41 Go to next message
Eclipse UserFriend
Hi!

For a RCP app I'd like to use Velocity to create
dynamic content. The idea is to create a dedicated
Velocity Service plug-in with a simple template
factory which loads resources (Velocity templates)
from the classpath of any plug-in using this service.

If this seems odd in the first place, please let me know!

I could use Bundle.getResource() to look for the
resource in all plug-ins.

Now my question: Is there a way to get a list of all
plug-ins/bundles in a RCP app?
For Platform.getBundles(symcolicName, version) the param
symbolicName is mandatory.

As a work-around I could setup an extension point where
each client plug-in may register with the Velocity
Service plug-in. This works but is not my favourite
solution.

Many thanks,
Horst

PS: I'm using 3.1M4, many thank-yous to the seemless
SDK 5.0 support!
Re: velocity, bundle, resource loading [message #277944 is a reply to message #277942] Sun, 19 December 2004 16:08 Go to previous message
Eclipse UserFriend
Ok, I found it!

1st: AbstractUIPlugin.start(BundleContext)
2nd: BundleContext.getBundles()

Thanks, anyway!
Previous Topic:RCP Update Manager not working due to configuration problems
Next Topic:problem with focus
Goto Forum:
  


Current Time: Wed Mar 12 00:43:49 EDT 2025

Powered by FUDForum. Page generated in 0.02969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top