[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4433) Cannot close editors which file no longer exists

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Mon Jun 8 08:38:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12470984#action_12470984 ] 

Viacheslav Kabanovich commented on JBIDE-4433:
----------------------------------------------

One more exception:

org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3864)
	at org.eclipse.swt.SWT.error(SWT.java:3779)
	at org.eclipse.swt.SWT.error(SWT.java:3750)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:336)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:916)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:924)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:924)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:924)
	at org.jboss.tools.common.editor.AbstractSectionEditor.setFocus(AbstractSectionEditor.java:159)


> Cannot close editors which file no longer exists
> ------------------------------------------------
>
>                 Key: JBIDE-4433
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4433
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 3.1.0.M1
>            Reporter: Max Rydahl Andersen
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.1.0.M2
>
>
> 1. Open a set of .xhtml or .xml files that JBoss Tools XModel is handling
> 2. Delete the open files on the filesystem directly 
> 3. Try and use Close All editors 
> That fails with this:
> java.lang.IllegalArgumentException
> 	at org.eclipse.ui.part.FileEditorInput.getPath(FileEditorInput.java:208)
> 	at org.jboss.tools.common.model.ui.editor.ModelObjectLocationEditorInput.equals(ModelObjectLocationEditorInput.java:48)
> 	at org.eclipse.ui.internal.util.Util.equals(Util.java:370)
> 	
> Looks like the equals method is not failsafe causing errors.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list