Why not install those plug-ins in your application? Then your plug-in can
be in charge of monitoring and manging those plug-ins. The
EclipseStarter.startup you called in your plug-in that is the main function
of your app. You can easily find that Equinox prevents the framework
running again if it's running in the source code of EclipseStarter. If you
want to start another Equinox framework, try Runtime.exec.




|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"林恺" <[EMAIL PROTECTED]>                                                     
                                                                  |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"Equinox development mailing list" <equinox-dev@eclipse.org>                 
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |2008-09-04 11:54                                                             
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: [equinox-dev] Starting equinox framework in program                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[EMAIL PROTECTED]                                                            
                                                       |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





Meng,
  Thanks for your reply.
   Yes, my plug-in is an UI Eclipse plugin. And it's true that Equinox
framework will be start firstly when Eclipse launched. But the problem is
the Equinox framework I want to start is not the framework of Eclipse
platform where my plug-in is install in. The Equinox framework I want to
start is another framework (application), and all the bundle is in a
folder.
  I want to start another Equinox framework through my plug-in, and install
all the bundles of the application through my plug-in, then I can control
and monitor the bundles on the Equinox framework. For that my plug-in is a
Bundle Monitor tool to control another Equinox-based application.


2008/9/4 Meng Xin Zhu <[EMAIL PROTECTED]>
  As you said your application is an Eclipse plug-in, I assume it's RCP
  application whether it has UI or not. Equiiox(OSGi) framework would be
  started firstly when your application launch, then your plug-in can
  obtain BundleContext in its bundle activator. Don't need explicitly call
  EclipseStarter.startup to launch OSGi framework.



_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev






<<inline: graycol.gif>>

<<inline: ecblank.gif>>

_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to