Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem opening file outside of my target project workspace
Problem opening file outside of my target project workspace [message #1751125] Wed, 04 January 2017 16:11
Dick Balaska is currently offline Dick BalaskaFriend
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?
Previous Topic:decorator in outline view
Next Topic:What is the best practice to access a relational database from within my plug-in?
Goto Forum:
  


Current Time: Tue Nov 13 19:52:05 GMT 2018

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

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

Back to the top