Author: mareshkau
Date: 2009-05-28 09:21:57 -0400 (Thu, 28 May 2009)
New Revision: 15583
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
Log:
fixing errors in junit tests
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2009-05-28
12:53:45 UTC (rev 15582)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2009-05-28
13:21:57 UTC (rev 15583)
@@ -113,14 +113,17 @@
public void handleEvent(Event event) {
Display.getCurrent().asyncExec(new Thread(){
+ @Override
public void run(){
/*
*
https://jira.jboss.org/jira/browse/JBIDE-3917
* Resizer should be updated together with selection rectangle.
* Otherwise after window maximizing/restoring resizer shows old position.
*/
- showResizer();
- showSelectionRectangle();
+ if(getBrowser()!=null && !getBrowser().isDisposed()) {
+ showResizer();
+ showSelectionRectangle();
+ }
}
});
}};