[
https://jira.jboss.org/jira/browse/JBIDE-5197?page=com.atlassian.jira.plu...
]
Denis Maliarevich commented on JBIDE-5197:
------------------------------------------
Eclipse useses the folowing policy for opened editors:
"Editors are closed when their project is deleted when they are not dirty. When
the editor dirty it can't just be closed otherwise you loose changes. The
current policy is to leave the editor open and give the user the choice to save
it."
To close opened editor for deleted file manually we can use the following suggestion:
"Your MultiPageEditorPart could implement IResourceChangeListener and
IResourceDeltaVisitor. When you see a delta kind == IResourceDelta.REMOVED and
a delta type != IResourceDelta.MOVED_TO then close your multi part editor.
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
public void run() {
getSite().getPage().closeEditor(YourMultiPartEditor.this, false);
}
});"
Unhandled event loop exception during blocked modal context:
exception is occured after project deletion with opened JSF/XHTML page in VPE.
-------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-5197
URL:
https://jira.jboss.org/jira/browse/JBIDE-5197
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF, Visual Page Editor core
Affects Versions: 3.1.0.CR1
Reporter: Anton Klimkovich
Assignee: Denis Maliarevich
Fix For: 3.1.0.GA
Attachments: exception1.txt, exception2.txt, Screenshot.png
EXECUTE: Create JSF with Facelets project (JSFKickstart)
EXECUTE: Open greeting.xhtml, index.xhtml (inputUserName.jsp, index.jsp)
EXECUTE: Restart workspace
EXECUTE: Delete project
FAILURE: Unhandled event loop exception during blocked modal context: is occured.
--
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