Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exception while opening a non existing resource or resource from a closed project(org.eclipse.swt.SWTException: Widget is disposed while opening non existing resource)
Exception while opening a non existing resource or resource from a closed project [message #1228984] Wed, 08 January 2014 13:33
sajja Phani is currently offline sajja PhaniFriend
Messages: 26
Registered: August 2011
Junior Member
Hi,

I am getting the following exception while trying to open a non existing resource with API
IDE.openEditor(...)


org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4397)
	at org.eclipse.swt.SWT.error(SWT.java:4312)
	at org.eclipse.swt.SWT.error(SWT.java:4283)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:472)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:344)
	at org.eclipse.swt.widgets.Control.setFocus(Control.java:3321)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1040)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1040)
	at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:120)
	at com.example.rcp.editor.CustomTextEditor.setFocus(OETextEditor.java:1251)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:192)


In earlier versions of eclipse it is working fine by opening a non editable editor with message 'Resource '.../ does not exists.'. This is especially occurring in 4.x, it is working as expected but logging the above specified exception.

What might cause this exception to be logged.

Thanks.
Sajja
Previous Topic:Using Java mail API in RCP application
Next Topic:Load View in View or load Views in TabbedPane
Goto Forum:
  


Current Time: Fri Apr 19 21:32:38 GMT 2024

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

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

Back to the top