Author: dgolovin
Date: 2012-08-14 12:37:57 -0400 (Tue, 14 Aug 2012)
New Revision: 43032
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
Log:
Replaced generic Exception with specific one
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2012-08-14
16:07:21 UTC (rev 43031)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2012-08-14
16:37:57 UTC (rev 43032)
@@ -18,6 +18,7 @@
import java.util.Properties;
import java.util.Set;
+import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.operations.AbstractOperation;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
@@ -486,12 +487,13 @@
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=119066
private void createWTPNature2(AbstractOperation wcco, IProgressMonitor monitor) {
try {
- if(wcco != null) wcco.execute(monitor, null);
+ if(wcco != null) {
+ wcco.execute(monitor, null);
+ }
new RuntimeJob().schedule();
- } catch (Exception e) {
+ } catch (ExecutionException e) {
WebUiPlugin.getPluginLog().logError(e);
}
-
}
class RuntimeJob extends WorkspaceJob {
Show replies by date