directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r576471 - in /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor: PluginUtils.java model/io/ProjectsExporter.java
Date Mon, 17 Sep 2007 15:05:30 GMT
Author: pamarcelot
Date: Mon Sep 17 08:05:29 2007
New Revision: 576471

URL: http://svn.apache.org/viewvc?rev=576471&view=rev
Log:
Removed unnecessary catch blocks.
Code formating.

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java?rev=576471&r1=576470&r2=576471&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginUtils.java
Mon Sep 17 08:05:29 2007
@@ -21,10 +21,8 @@
 
 
 import java.io.File;
-import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
-import java.io.UnsupportedEncodingException;
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -131,7 +129,7 @@
 
 
     /**
-     * Gets the Projects (where is store information about the loaded Projects).
+     * Gets the Projects (where is stored information about the loaded Projects).
      *
      * @return
      *      the Projects File
@@ -185,16 +183,6 @@
             writer.write( ProjectsExporter.toDocument( Activator.getDefault().getProjectsHandler().getProjects()
                 .toArray( new Project[0] ) ) );
             writer.flush();
-        }
-        catch ( UnsupportedEncodingException e )
-        {
-            PluginUtils.logError( "An error occured when saving the projects.", e );
-            ViewUtils.displayErrorMessageBox( "Projects Saving Error", "An error occured
when saving the projects." );
-        }
-        catch ( FileNotFoundException e )
-        {
-            PluginUtils.logError( "An error occured when saving the projects.", e );
-            ViewUtils.displayErrorMessageBox( "Projects Saving Error", "An error occured
when saving the projects." );
         }
         catch ( IOException e )
         {

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java?rev=576471&r1=576470&r2=576471&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/io/ProjectsExporter.java
Mon Sep 17 08:05:29 2007
@@ -119,12 +119,11 @@
             {
                 try
                 {
-                    element.addAttribute( NAME_TAG, new String ( name.getBytes("UTF-8"),
"UTF-8") );
+                    element.addAttribute( NAME_TAG, new String( name.getBytes( "UTF-8" ),
"UTF-8" ) );
                 }
                 catch ( UnsupportedEncodingException e )
                 {
-                    // TODO Auto-generated catch block
-                    e.printStackTrace();
+                    // Will never occur
                 }
             }
 



Mime
View raw message