[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Embedding Equinox Example
- From: Phil Borlin <rancidfishbreath@xxxxxxxxx>
- Date: Tue, 26 Jan 2010 15:35:53 -0700
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SQ9E1yANMYSCm8DbHrrEVXwUJlx9xsz2sAGX6bVQCU420RVofSk8uWK7DSokxHVewM LxEsQqRvrHemgzdu+GKZH1yiZSmyq/eMxmT+vzc32TpIJkkpmzLoCCn1SnC0+WOfMyBo CwLxjQ0wwx8KQsZOaUpO5jRB+zNnlNnkTTz9I=
Probably the easiest way is to download the Eclipse SDK if you don't
have it already.
In the menu go to File -> New -> Project.
Select Plug-in Project and click next.
Name it something like com.yourdomain.test (or whatever) and click next
Make sure "This plug-in will make contributions to the UI" is unchecked.
Make sure you click the "Yes" radio button next to "Would you like to
create a rich client application"
Select the "Headless Hello RCP" template and click Finish.
This will create two classes:
Application and Activator. There is plenty of documentation on what
you can do with the Activator so I won't go into it. Open up the
Application class and treat the start method as you would a main
method in a traditional Java program. For example you can set up your
JFrame here or whatever you want.
Next take a look at your MANIFEST.MF file. Eclipse provides a nice UI
to edit this or you can go straight to the MANIFEST.MF tab and hand
Lastly go to the Overview tab of the MANIFEST.MF file and look for the
section entitled "Testing". There are hyperlinks to run or debug your
That's it. The platform takes care of initializing osgi and loading
bundles for you and you are now free to add your own bundles.
On Tue, Jan 26, 2010 at 2:32 PM, <craig@xxxxxxxxxxxxxxxxx> wrote:
> Sorry if this is not the right place for this question, I could not find
> an equinox-users mailing list.
> I have a Swing based application that is able to be extended via a plugin
> model and we would like to improve this ability by basing it upon OSGI.
> I have implemented a POC of this using Apache Felix, based on the
> instructions on this page:
> Now I would like to try the POC using Equinox so we can compare and
> contrast so we can pick one to move forward with.
> However, I am having trouble finding any documentation similar to the
> Felix page I mentioned above. Basically I am looking for an in-code
> example (not a command-line example) of how to instantiate an OSGI
> Framework based on Equinox.
> Does anyone know of any documentation or a code example that shows this
> for a simple use case?
> Thanks in advance.
> Craig S. Dickson
> equinox-dev mailing list