Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsboshev2009-04-17 09:30:05 +0000
committersboshev2009-04-17 09:30:05 +0000
commitce4d147c6e397da3b8486f5abf22fa4b217011c4 (patch)
tree02cfe737139114e90189d67489fe5a66b28923d4 /bundles
parent55ca2f5348c2b569e00e7ba1df7615be8a4dd2e6 (diff)
downloadrt.equinox.bundles-ce4d147c6e397da3b8486f5abf22fa4b217011c4.tar.gz
rt.equinox.bundles-ce4d147c6e397da3b8486f5abf22fa4b217011c4.tar.xz
rt.equinox.bundles-ce4d147c6e397da3b8486f5abf22fa4b217011c4.zip
1. removed e.printStackTrace() calls
2. strings localized
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/storage/file/FileStorage.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/storage/file/FileStorage.java b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/storage/file/FileStorage.java
index e13274165..2cfa613d3 100644
--- a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/storage/file/FileStorage.java
+++ b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/storage/file/FileStorage.java
@@ -11,6 +11,8 @@
*******************************************************************************/
package org.eclipse.equinox.internal.ds.storage.file;
+import org.eclipse.equinox.internal.ds.Messages;
+
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
@@ -165,7 +167,7 @@ public class FileStorage extends ComponentStorage {
data.put(getPath(dbCompPath), buf.toByteArray());
isDirty = true;
} catch (Exception e) {
- e.printStackTrace();
+ Activator.log.error(Messages.ERROR_SAVING_COMPONENT_DEFINITIONS, e);
}
}
@@ -183,16 +185,16 @@ public class FileStorage extends ComponentStorage {
data.writeObject(fos);
isDirty = false;
} catch (Exception e) {
- e.printStackTrace();
+ Activator.log.error(Messages.ERROR_WRITING_OBJECT, e);
}
} catch (FileNotFoundException e) {
- e.printStackTrace();
+ Activator.log.error(Messages.FILE_DOESNT_EXIST_OR_DIRECTORY, e);
} finally {
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
- e.printStackTrace();
+ //ignore
}
}
}
@@ -241,7 +243,7 @@ public class FileStorage extends ComponentStorage {
try {
return ManifestElement.parseHeader(ComponentConstants.SERVICE_COMPONENT, files);
} catch (BundleException e) {
- Activator.log(bundle.getBundleContext(), LogService.LOG_ERROR, "Error attempting parse manifest element header", e);
+ Activator.log(bundle.getBundleContext(), LogService.LOG_ERROR, Messages.ERROR_PARSING_MANIFEST_HEADER, e);
return new ManifestElement[0];
}
}

Back to the top