|Eclipse e4 application feasibility [message #1022069]
||Thu, 21 March 2013 04:30
| ALex W
Registered: July 2012
I'm thinking about designing an application using Eclipse E4. I was wondering if Eclipse e4 is a good choice (it seems to me) :
The application will be configurable to electronical devices. Only one at a time. To make it simple, there is one controller interface, and several possible controller implementation. I would like to offer the possibility to the user to switch the implementation (including or not the aplpication restart...). Is that possible and how ?
I've already done some tests and I plan to use Eclipse E4 with OSGI Declarative services. Right now I would like to be able to chose at runtime (from my application code), what component/bundle will be started at application launch.
One main point is the flexibility. Users will be allowed to develop plugin and install them in the application.
|Re: Re: Eclipse e4 application feasibility [message #1022268 is a reply to message #1022202]
||Thu, 21 March 2013 11:21
| Wim Jongman
Registered: July 2009
To run the code just create a new osgi run configuration, include the 5 |
projects and equinox ds then add required plugins and specify
to get the good old osgi console back
a gui will popup
look in the console and start and stop the store and user bundles. You will
see that the gui changes. To keep it on top go to the control class and
It is a bit shitty but enough to understand the service dynamics
> You can use DS and specify that a service can only start if a specific
> required service is available.
> So in your control code you can register a service which triggers the
> activation of the real service.
> e.g. what we do: If the user is logged in, we erect a LoginService which
> triggers the activation of other services. If we take the LoginService down
> then the dependent service shut down too.
> I have a DS example on my github.
>> Thanks for the replies.
>> I'm currently looking online, but I can't find any mechanism to specify at
> runtime, which plugins should be started. Any clues ?
>> I guess it could be done by reading a configuration file registering every
> plugins ID and the use their activator to start it ? Or call a method
> the plugin if the lazy-activation is enabled ? Then OSGI DS would be
> automatically registered.
Powered by FUDForum
. Page generated in 0.03211 seconds