Problem when closing MPart in RAP e4 the whole application crash [message #1731690] |
Mon, 09 May 2016 10:07 |
Eclipse User |
|
|
|
Hello, I have a problem when closing MPart in Eclipse RAP e4.
From an MPart named InitView, I open MyView using either
partService.showPart(MyView.ID, PartState.ACTIVATE);
or
String id = MyMultiView.ID +Math.random();
ResourceManager.openView(partService,MyMultiView.ID,id);
But when closing MyView I have this error:
2016-05-09 11:55:47.502:WARN:oejs.ServletHandler:qtp220570133-48: ERROR: /Bacnet
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3658)
at org.eclipse.swt.SWT.error(SWT.java:3581)
at org.eclipse.swt.SWT.error(SWT.java:3552)
at org.eclipse.swt.widgets.Widget.error(Widget.java:1038)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:416)
at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:993)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:976)
at org.eclipse.swt.widgets.Control.getParent(Control.java:218)
at org.eclipse.rap.rwt.internal.lifecycle.ControlLCAUtil.renderParent(ControlLCAUtil.java:142)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.renderReparentControls(DisplayLCA.java:175)
at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.render(DisplayLCA.java:92)
at org.eclipse.rap.rwt.internal.lifecycle.Render.execute(Render.java:29)
at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:149)
at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:223)
at org.eclipse.swt.widgets.Display.sleep(Display.java:1257)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4$1.eventLoopIdle(PartRenderingEngine.java:1091)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1117)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:994)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.rap.e4.E4EntryPointFactory.createWorkbench(E4EntryPointFactory.java:85)
at org.eclipse.rap.e4.E4EntryPointFactory.access$0(E4EntryPointFactory.java:58)
at org.eclipse.rap.e4.E4EntryPointFactory$1.createUI(E4EntryPointFactory.java:49)
at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:171)
at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:283)
at java.lang.Thread.run(Thread.java:745)
at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)
It crashes the whole RAP application... With no information in the error log on which widget is disposed.
By using:
@Focus
void grantFocus() {
System.out.println("Set focus init");
scrolledComposite.setFocus();
System.out.println("post focus");
}
I can see that the focus is performed on the parent MPart = InitView, but then it crashes!
Any idea ?
[Updated on: Mon, 09 May 2016 10:09] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05451 seconds