Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Newbie question about including efxclipse into existing targe
Newbie question about including efxclipse into existing targe [message #1235068] Thu, 23 January 2014 13:53 Go to next message
Gerrick Bivins is currently offline Gerrick BivinsFriend
Messages: 6
Registered: January 2014
Junior Member
Hi,
I'm familiar with eclipse PDE development and JavaFX. I'd like to evaluate efxclipse to use in our RCP application but I'm having trouble getting started.
I think I have the tooling setup correctly in the IDE but where I'm struggling is how to add to the efxclipse "sdk-ish" features to my existing target so that I can compile against them and they get included in my runtime without conflicting with my the existing target features.
I'm following
tutorial 2

and what I'm seeing is that everything compiles but none of the existing plugins in my app load because they can't resolve dependencies at runtime. Only the javafx plugin loads.
If I remove the efxlipse runtime-nightly update site from my target (and the dependent plugins), everything is fine but obviously, no javafx plugins are included in my app.

I know that is a little vague but I 'm not sure of the right wording for the question because it's not clear to me what the problem is. One thing I think might be the problem is that my existing target platform is "juno".
Any tips on how to figure out the issue would be greatly appreciated.
Gerrick


Re: Newbie question about including efxclipse into existing targe [message #1235096 is a reply to message #1235068] Thu, 23 January 2014 15:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,

First off all what parts of JavaFX do you plan to use? The update site
holds a complete target platform including OSGi, e4, ... if you use
Target Platform Feature"

If I get you right you only want to be able to embed JavaFX in your
existing RCP-SWT-Application.

So you only need 3 bundles from our complete target:
* org.eclipse.fx.osgi
* org.eclipse.fx.javafx
* org.eclipse.fx.ui.workbench3

The 3rd one is not strictly needed!

If you look at the update you should notice a feature named "RCP 3.x
Target Platform Feature" which holds those 3 bundles. If you are not
happy with our feature definitions you can get the p2 repo as zip and
http://download.eclipse.org/efxclipse/runtime-nightly/site.zip and slice
& dice it the way it matches your setup

Tom

On 23.01.14 15:31, Gerrick Bivins wrote:
> Hi,
> I'm familiar with eclipse PDE development and JavaFX. I'd like to
> evaluate efxclipse to use in our RCP application but I'm having trouble
> getting started.
> I think I have the tooling setup correctly in the IDE but where I'm
> struggling is how to add to the efxclipse "sdk-ish" features to my
> existing target so that I can compile against them and they get included
> in my runtime without conflicting with my the existing target features.
> I'm following http://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial2
>
> and what I'm seeing is that everything compiles but none of the existing
> plugins in my app load because they can't resolve dependencies at
> runtime. Only the javafx plugin loads.
> If I remove the efxlipse runtime-nightly update site from my target (and
> the dependent plugins), everything is fine but obviously, no javafx
> plugins are included in my app.
>
> I know that is a little vague but I 'm not sure of the right wording for
> the question because it's not clear to me what the problem is. One thing
> I think might be the problem is that my existing target platform is "juno".
> Any tips on how to figure out the issue would be greatly appreciated.
> Gerrick
>
>
>
Re: Newbie question about including efxclipse into existing targe [message #1235157 is a reply to message #1235096] Thu, 23 January 2014 17:31 Go to previous messageGo to next message
Gerrick Bivins is currently offline Gerrick BivinsFriend
Messages: 6
Registered: January 2014
Junior Member
I went to try the to download the zip because I think that is the way to go but
the zip to the site doesn't seem to contain any content.
I was going to attach an image but attachments aren't enabled for me.

Re: Newbie question about including efxclipse into existing targe [message #1235203 is a reply to message #1235157] Thu, 23 January 2014 20:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
Sorry wrong URL:
http://download.eclipse.org/efxclipse/runtime-nightly/site_assembly.zip

Tom

On 23.01.14 18:31, Gerrick Bivins wrote:
> I went to try the to download the zip because I think that is the way to
> go but
> the zip to the site doesn't seem to contain any content.
> I was going to attach an image but attachments aren't enabled for me.
>
>
Re: Newbie question about including efxclipse into existing targe [message #1235232 is a reply to message #1235203] Thu, 23 January 2014 21:49 Go to previous messageGo to next message
Gerrick Bivins is currently offline Gerrick BivinsFriend
Messages: 6
Registered: January 2014
Junior Member
Excellent!
I'm up and running! Thanks Tom!
Re: Newbie question about including efxclipse into existing targe [message #1235261 is a reply to message #1235232] Thu, 23 January 2014 23:39 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
Perfect - feel free to suggest a better feature structure which makes it
easier for you to make use of it in SWT-RCP!

Tom

On 23.01.14 22:49, Gerrick Bivins wrote:
> Excellent!
> I'm up and running! Thanks Tom!
Re: Newbie question about including efxclipse into existing targe [message #1235564 is a reply to message #1235261] Fri, 24 January 2014 17:17 Go to previous messageGo to next message
Gerrick Bivins is currently offline Gerrick BivinsFriend
Messages: 6
Registered: January 2014
Junior Member
Great!
Extracting the three bundles as a feature to add to an existing target platform would be a good start.
There are a couple of things I'm not clear on though:


  1. Are those modules valid regardless of the platform (juno/kepler etc)? We will be upgrading our builds to Kepler soon
  2. With only those 3 bundles,what functionality would be missing? For, instance, I really wanted to add org.eclipse.fx.osgi.util (because the name made me think I'm going to need it)to the feature but didn't. Is there something in that bundle that I'm going to later find that I really need?
  3. Lastly, when will 1.0 come out? Smile


Thanks again for the help

Re: Newbie question about including efxclipse into existing targe [message #1235597 is a reply to message #1235564] Fri, 24 January 2014 19:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
On 24.01.14 18:17, Gerrick Bivins wrote:
> Great!
> Extracting the three bundles as a feature to add to an existing target
> platform would be a good start.
> There are a couple of things I'm not clear on though:

What bundles does the feature I mentioned hold?

>
>
> Are those modules valid regardless of the platform (juno/kepler etc)? We
> will be upgrading our builds to Kepler soon

Yes those 3 are the foundation

> With only those 3 bundles,what functionality would be missing? For,
> instance, I really wanted to add org.eclipse.fx.osgi.util (because the
> name made me think I'm going to need it)to the feature but didn't. Is
> there something in that bundle that I'm going to later find that I
> really need?

Well that one makes a lot of sense because it helps with dealing with
fxml inside OSGi, it also provides factory to create a logger. It will
depend on 2 core bundle fx.core.databinding & fx.core.

If you are using Eclipse Databinding you naturally want
fx.core.databinding because it bridges between JavaFX-Observables and
Eclipse Databinding Observables.

> Lastly, when will 1.0 come out? :)
>

At the same time as Luna but not as part of the release train.

Tom
Re: Newbie question about including efxclipse into existing targe [message #1236998 is a reply to message #1235597] Tue, 28 January 2014 15:40 Go to previous message
Gerrick Bivins is currently offline Gerrick BivinsFriend
Messages: 6
Registered: January 2014
Junior Member
sorry for the delayed response.
The zip I downloaded had a bunch of modules. I don't have access to it right now but can check it later.
Sounds like I would want each of those bundles because we will be using both fxml and databinding via EMF.

So possibly 3 features (ignoring the names):
Core
Databinding
OSGiUtils/FXML

Do those make sense?
Previous Topic:Potential contribution for JavaFx Browser
Next Topic:ClassCastException in PopupMenuService
Goto Forum:
  


Current Time: Wed Nov 26 15:43:04 GMT 2014

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

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