|
|
Re: trouble restarting e4+javafx application [message #1718000 is a reply to message #1717998] |
Fri, 18 December 2015 13:40 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
So when you export via tycho, how do you launch it? Via java -jar? Using
the javafx-packager generated .exe?
Tom
On 18.12.15 14:26, Paul Mira wrote:
> Hello everyone,
> So I'm working on this project and I'm trying to add p2 update
> functionnality to an e4+javafx application. Everything works fine until
> the part where I need to restart my application to reflect the changes
> made to the application model. The application closes, and then simply
> doesn't restart.
> I was able to link this issue to something (no idea what exactly)
> related to the tycho/maven I used to build my application. See, when I
> use the eclipse PDE build for the export, everything works fine, I'm
> able to restart a dummy sample app. I simply add a Main Menu the
> application model, then a Menu (named File) > then a handled MenuItem
> (named Restart), handled by some RestartHandler.java class looking like
> this
> import org.eclipse.e4.core.di.annotations.Execute;
> import org.eclipse.e4.ui.workbench.IWorkbench;
> public class RestartHandler {
> @Execute
> public void execute(IWorkbench workbench) {
> workbench.restart();
> }
> }
> but the the same dummy app when generated by the tycho build will simply
> close and won't restart. I'm I missing something here? Any suggestions?
|
|
|
|
Re: trouble restarting e4+javafx application [message #1718003 is a reply to message #1718000] |
Fri, 18 December 2015 13:56 |
Paul Mira Messages: 8 Registered: December 2015 |
Junior Member |
|
|
after generated via tycho I launch it using the generated .exe
The whole thing is really simple to reproduce, just build a sample e4-javafx app structure using the "JavaFX > Osgi > e4 application project" new project wizard. Add a simple main menu > menu > handled menu item to the application model, create a command+handler for it, and use the simple RestartHandler.java class I gave for the handler.
Then build the whole thing with tycho and see if the app restarts when you click on that menu item
I'm working on Eclipse 4.5.1 (Mars) M20150904-0015, with efxclipse -IDE 2.1.0
[Updated on: Fri, 18 December 2015 13:58] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03248 seconds