]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
small corrections
authormka <mka@opencascade.com>
Tue, 19 Mar 2013 09:18:24 +0000 (09:18 +0000)
committermka <mka@opencascade.com>
Tue, 19 Mar 2013 09:18:24 +0000 (09:18 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java

index 5cd8631a3b3d80d1c697355d9158751c4ada02f0..14145e9ae96b3772110318dd20d277d534cefbc6 100644 (file)
@@ -54,12 +54,12 @@ import org.splat.dal.bo.som.Publication;
 import org.splat.dal.bo.som.Scenario;
 import org.splat.dal.bo.som.SimulationContext;
 import org.splat.dal.bo.som.Study;
+import org.splat.dal.bo.som.Study.Properties;
 import org.splat.dal.bo.som.ValidationCycle;
+import org.splat.dal.bo.som.ValidationCycle.Actor;
 import org.splat.dal.bo.som.ValidationCycleRelation;
 import org.splat.dal.bo.som.ValidationStep;
 import org.splat.dal.bo.som.Visibility;
-import org.splat.dal.bo.som.Study.Properties;
-import org.splat.dal.bo.som.ValidationCycle.Actor;
 import org.splat.dal.dao.som.DescriptionAttributeDAO;
 import org.splat.dal.dao.som.DocumentDAO;
 import org.splat.dal.dao.som.IDBuilderDAO;
@@ -80,9 +80,9 @@ import org.splat.service.dto.DocumentDTO;
 import org.splat.service.dto.StudyFacadeDTO;
 import org.splat.service.technical.IndexService;
 import org.splat.service.technical.ProjectSettingsService;
+import org.splat.service.technical.ProjectSettingsService.Step;
 import org.splat.service.technical.ProjectSettingsServiceImpl;
 import org.splat.service.technical.RepositoryService;
-import org.splat.service.technical.ProjectSettingsService.Step;
 import org.splat.som.Revision;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -1304,8 +1304,9 @@ public class StudyServiceImpl implements StudyService {
                                dataset.addSeries(series);
 
                        } catch (FileNotFoundException e) {
-                               // TODO Auto-generated catch block
-                               e.printStackTrace();
+                               if (LOG.isDebugEnabled()) {
+                                       LOG.debug("Sorry, the file is not found.");
+                               }
                                return "ERROR";
                        }
                } // for
@@ -1345,11 +1346,13 @@ public class StudyServiceImpl implements StudyService {
                        document.close();
 
                } catch (FileNotFoundException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
+                       if (LOG.isDebugEnabled()) {
+                               LOG.debug("Sorry, the file is not found.");
+                       }
                } catch (DocumentException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
+                       if (LOG.isDebugEnabled()) {
+                               LOG.debug("Sorry, the DocumentException is thrown.");
+                       }
                }
 
                return resultPath;