Author: scabanovich
Date: 2007-09-13 10:31:29 -0400 (Thu, 13 Sep 2007)
New Revision: 3612
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime/VerifyWizardView.java
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime2/VTaskListenerImpl.java
Log:
JBIDE-893
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime/VerifyWizardView.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime/VerifyWizardView.java 2007-09-13
14:25:33 UTC (rev 3611)
+++
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime/VerifyWizardView.java 2007-09-13
14:31:29 UTC (rev 3612)
@@ -28,6 +28,7 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.TreeItem;
+import org.jboss.tools.common.verification.ui.XStudioVerificationPlugin;
import
org.jboss.tools.common.verification.ui.vrules.preferences.VerificationPreferencePage;
import org.jboss.tools.common.verification.ui.vrules.wizard.DescriptionManager;
import org.jboss.tools.common.meta.key.WizardKeys;
@@ -227,9 +228,11 @@
if(o == null) return -1;
String s = o.getAttributeValue(VerificationPreferencePage.ATTR_ERRORS_NUMBER_LIMIT);
int limit = -1;
- if(!"unlimited".equals(s)) try {
+ if(!"unlimited".equals(s) && s != null && s.length() > 0)
try {
limit = Integer.parseInt(s);
- } catch (Exception e) {}
+ } catch (NumberFormatException e) {
+ XStudioVerificationPlugin.getPluginLog().logError(e);
+ }
return limit;
}
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime2/VTaskListenerImpl.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime2/VTaskListenerImpl.java 2007-09-13
14:25:33 UTC (rev 3611)
+++
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/wizard/runtime2/VTaskListenerImpl.java 2007-09-13
14:31:29 UTC (rev 3612)
@@ -35,9 +35,17 @@
addMarkers();
long endTime = System.currentTimeMillis();
long delta = 500 + startTime - endTime;
- if(delta > 0) try { Thread.sleep(delta); } catch (Exception e) {}
+ if(delta > 0) try {
+ Thread.sleep(delta);
+ } catch (InterruptedException e) {
+ //ignore
+ }
view.onFinish();
- try { Thread.sleep(200); } catch (Exception e) {}
+ try {
+ Thread.sleep(200);
+ } catch (InterruptedException e) {
+ //ignore
+ }
view.action("Close");
task.removeTaskListener(this);
}
Show replies by date