Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Closing the Workbench causing Error
Closing the Workbench causing Error [message #1734231] Mon, 06 June 2016 12:52 Go to next message
Eduard Reimer is currently offline Eduard ReimerFriend
Messages: 2
Registered: June 2016
Junior Member
Hello,

my e4 app runs with efxclipse 2.1 and JDK 8.92. I'm trying to close the application by a handler:

public class ExitHandler {
	@Execute
	public void execute(IWorkbench workbench) {
		System.out.println("ExitHandler->workbench.close()");
		workbench.close();
	}

	@CanExecute
	public boolean canExecute() {

		return true;
	}

}


The Application is closed and I get the following message:

Jun 06, 2016 2:22:47 PM org.eclipse.fx.ui.workbench.renderers.base.BaseMenuRenderer handleHiding
SCHWERWIEGEND: Model context is null

Closing the App by clicking the "Close-Cross-Button" at the right corner at the window works without problems.

with best regards,
Eduard

Re: Closing the Workbench causing Error [message #1734255 is a reply to message #1734231] Mon, 06 June 2016 14:54 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2421
Registered: July 2012
Senior Member
Is the IWorkbench of type org.eclipse.e4.ui.workbench.IWorkbench?
Re: Closing the Workbench causing Error [message #1734275 is a reply to message #1734231] Mon, 06 June 2016 16:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6320
Registered: July 2009
Senior Member
File a bug if it is reproduceable with 2.4.0. I can somehow remember
this error message and I'm not sure if we fixed it already.

Tom

On 06.06.16 16:04, Eduard Reimer wrote:
> Hello,
>
> my e4 app runs with efxclipse 2.1 and JDK 8.92. I'm trying to close the
> application by a handler:
>
> public class ExitHandler {
> @Execute
> public void execute(IWorkbench workbench) {
> System.out.println("ExitHandler->workbench.close()");
> workbench.close();
> }
>
> @CanExecute
> public boolean canExecute() {
>
> return true;
> }
>
> }
>
> The Application is closed and I get the following message:
>
> Jun 06, 2016 2:22:47 PM
> org.eclipse.fx.ui.workbench.renderers.base.BaseMenuRenderer handleHiding
> SCHWERWIEGEND: Model context is null
>
> Closing the App by clicking the "Close-Cross-Button" at the right corner
> at the window works without problems.
>
> with best regards,
> Eduard
>
>
Re: Closing the Workbench causing Error [message #1734282 is a reply to message #1734275] Mon, 06 June 2016 17:36 Go to previous message
Eduard Reimer is currently offline Eduard ReimerFriend
Messages: 2
Registered: June 2016
Junior Member
@Dirk FauthFriend
Yes, the type of the Workbench is org.eclipse.e4.ui.workbench.IWorkbench

@Tom
Yes, problem remains in 2.4.
I will submit a Bugticket
Previous Topic:Adding custom JavaFX controls from a plugin
Next Topic:e(fx)clipse 2.4.0
Goto Forum:
  


Current Time: Sun Jun 25 20:58:59 GMT 2017

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

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