Author: mareshkau
Date: 2009-01-10 11:44:02 -0500 (Sat, 10 Jan 2009)
New Revision: 12972
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3441, close when vpe refresh job is running
sityation was processed
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-01-10
16:09:57 UTC (rev 12971)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-01-10
16:44:02 UTC (rev 12972)
@@ -2650,7 +2650,7 @@
private void reinitImpl() {
try {
- if(!switcher
+ if(switcher==null||!switcher
.startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE)) {
return;
}
@@ -2677,10 +2677,15 @@
pageContext);
//restore selection in visula part
sourceSelectionChanged();
- }finally {
-
- switcher.stopActiveEditor();
+ }catch(VpeDisposeException ex) {
+ //vpe vas closed when refresh job is running, so just
+ //ignore this exception
}
+ finally {
+ if(switcher!=null) {
+ switcher.stopActiveEditor();
+ }
+ }
}