Problem opening file outside of my target project workspace [message #1751125] |
Wed, 04 January 2017 16:11 |
Dick Balaska Messages: 2 Registered: June 2011 Location: Guilford, CT, USA |
Junior Member |
|
|
I have an editor that extends TextEditor in Mars.2. This works great on files in my project workspace. But if I try to open a system include file, it all falls apart. This happens whether I open it in code from from the File -> Open File menu.
For both opens, I creates/initializes my TextEditor. But on the failing open, it decides to also open a StatusTextEditor which then tips over with
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4491)
at org.eclipse.swt.SWT.error(SWT.java:4406)
at org.eclipse.swt.SWT.error(SWT.java:4377)
at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:354)
at org.eclipse.swt.widgets.Control.setFocus(Control.java:3354)
at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1056)
at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1056)
at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:120)
It does not attempt to create a StatusTextEditor (and why would it?) on files in my workspace. Help?
|
|
|
Powered by
FUDForum. Page generated in 0.02659 seconds