[jbosstools-commits] JBoss Tools SVN: r6452 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Feb 20 04:06:55 EST 2008


Author: dgolovin
Date: 2008-02-20 04:06:54 -0500 (Wed, 20 Feb 2008)
New Revision: 6452

Modified:
   trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java
Log:
try {
...
} catch (Exception ex) {
...
}
has been changed to catch CoreException

Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java	2008-02-20 09:05:07 UTC (rev 6451)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java	2008-02-20 09:06:54 UTC (rev 6452)
@@ -241,9 +241,12 @@
 
 		public void resourceChanged(IResourceChangeEvent event) {
 			try {
-				if(event.getDelta()==null) refresh(null);
-				else event.getDelta().accept(visitor);
-			} catch (Exception e) {
+				if (event.getDelta() == null) {
+					refresh(null);
+				} else {
+					event.getDelta().accept(visitor);
+				}
+			} catch (CoreException e) {
 				SeamCorePlugin.getPluginLog().logError(e);
 			}			
 		}




More information about the jbosstools-commits mailing list