Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » FX Projects Types(FX project with e4 tooling and update site)
FX Projects Types [message #1226833] Thu, 02 January 2014 21:16 Go to next message
Chuck Davis is currently offline Chuck DavisFriend
Messages: 2
Registered: January 2014
Junior Member
I am looking seriously at using Eclipse for JavaFX work. I have little Eclipse experience. What is the best way to create a JavaFX product with an update site?

I assumed I wanted the OSGi e4 Application project (I DO want to use e4 with FX if I take up with Eclipse). Unfortunately, the template project throws exceptions so I don't even get to base zero with this approach.

A plain JavaFX project does not appear to offer e4 capabilities and an update site.

I haven't been able to find out enough information to decide what I need to do to get where I want to go. The sample projects really aren't that informative.

I develop on 64 bit Linux and deploy to both Linux and Windows.

Thanks for any direction which project types I need to use.

Re: FX Projects Types [message #1227081 is a reply to message #1226833] Fri, 03 January 2014 13:35 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
On 03.01.14 14:23, Chuck Davis wrote:
> I am looking seriously at using Eclipse for JavaFX work. I have little
> Eclipse experience. What is the best way to create a JavaFX product
> with an update site?
>

Yes you want an "e4 Application project"

> I assumed I wanted the OSGi e4 Application project (I DO want to use e4
> with FX if I take up with Eclipse). Unfortunately, the template project
> throws exceptions so I don't even get to base zero with this approach.
>

What exceptions does it throw? Did you follow the tutorial on how get up
an e4 FX application [1]? Did you add a least a Window in the generated
e4xmi-File?

[1]http://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4

> A plain JavaFX project does not appear to offer e4 capabilities and an
> update site.
>
> I haven't been able to find out enough information to decide what I need
> to do to get where I want to go. The sample projects really aren't that
> informative.

There's not much documentation specific to e4 on JavaFX because fairly
anything documented for e4 on SWT applies to FX as well.

>
> I develop on 64 bit Linux and deploy to both Linux and Windows.
>

Both should be fine.

> Thanks for any direction which project types I need to use.
>
>

Tom
Re: FX Projects Types [message #1227778 is a reply to message #1227081] Sun, 05 January 2014 14:54 Go to previous messageGo to next message
Chuck Davis is currently offline Chuck DavisFriend
Messages: 2
Registered: January 2014
Junior Member
Thanks Tom. I started all over again (from re-install eclipse) and got a project, including update site creation, to work. Can you direct me to documentation on how to use the update site in my nifty new application? I know I've got to include a menu item in my Help menu but I have no idea where to go beyond that. Is there a document you know of that explains how to use an update site? I've done some searching but haven't found any direction yet.

Still searching........testing.........
Re: FX Projects Types [message #1227831 is a reply to message #1227778] Sun, 05 January 2014 19:00 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
There's no ready UI for Update-Sites if you are going JavaFX! Generally
speaking what you learn about is p2.

There is very prelimenary code in org.eclipse.fx.core.p2 is able to
check for updates of your product but is has no UI and and haven't
really tested this code either so I can guarantee it works (it was
extracted from an SWT-RCP-Application we are running for a customer so
if I've done everything correct it will work!)

The process should look like:

class UpdateHandler {
@Execute
void update(UpdateService us) {
us.checkUpdate(this::callback);
}

void checkUpdateCallback(UpdateCheckData data) {
if( data.getValue() == Boolean.TRUE ) {
us.update(data, this::updateCompleted);
} else {
Platfrom.runLater(....);
}
}

void updateCompleted(UpdateData data) {
if( data.getValue() == Boolean.TRUE ) {
Platfrom.runLater(....);
} else {
Platfrom.runLater(....);
}
}
}

if you are on Java7 you have to replace the method references through
anonymous classes ;-)

Please note that this only checks for updates for already installed
FEATURES it doesn't all you to install additional software!

Tom

On 05.01.14 15:54, Chuck Davis wrote:
> Thanks Tom. I started all over again (from re-install eclipse) and got
> a project, including update site creation, to work. Can you direct me
> to documentation on how to use the update site in my nifty new
> application? I know I've got to include a menu item in my Help menu but
> I have no idea where to go beyond that. Is there a document you know of
> that explains how to use an update site? I've done some searching but
> haven't found any direction yet.
>
> Still searching........testing.........
Previous Topic:Ready for production?
Next Topic:Failed to build the e(fx)clipse Tutorial 5.
Goto Forum:
  


Current Time: Sun Dec 21 23:31:19 GMT 2014

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

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