Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-04-28 04:20:30 +0000
committerJohn Arthorne2008-04-28 04:20:30 +0000
commit94895c81a2d6ef464ebf710deeebb6cd174d3efa (patch)
treef75880c96f2b2f0bfda5b6d32ddee6edb3f02c2f
parent3b449cbb1236dec9b757b0726d780fd6d762cad0 (diff)
downloadrt.equinox.p2-94895c81a2d6ef464ebf710deeebb6cd174d3efa.tar.gz
rt.equinox.p2-94895c81a2d6ef464ebf710deeebb6cd174d3efa.tar.xz
rt.equinox.p2-94895c81a2d6ef464ebf710deeebb6cd174d3efa.zip
NLS
-rw-r--r--bundles/org.eclipse.equinox.p2.tools/src/org/eclipse/equinox/internal/p2/tools/FileServerApplication.java6
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/ConfigurationWriter.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/Zip.java10
3 files changed, 10 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tools/src/org/eclipse/equinox/internal/p2/tools/FileServerApplication.java b/bundles/org.eclipse.equinox.p2.tools/src/org/eclipse/equinox/internal/p2/tools/FileServerApplication.java
index 2683a918b..c698e8d9b 100644
--- a/bundles/org.eclipse.equinox.p2.tools/src/org/eclipse/equinox/internal/p2/tools/FileServerApplication.java
+++ b/bundles/org.eclipse.equinox.p2.tools/src/org/eclipse/equinox/internal/p2/tools/FileServerApplication.java
@@ -48,7 +48,7 @@ public class FileServerApplication implements IApplication {
public Object start(IApplicationContext context) throws Exception {
Map args = context.getArguments();
- initializeFromArguments((String[]) args.get("application.args"));
+ initializeFromArguments((String[]) args.get("application.args")); //$NON-NLS-1$
registerResources(resources);
return null;
}
@@ -59,7 +59,7 @@ public class FileServerApplication implements IApplication {
String key = (String) i.next();
String value = (String) resources.get(key);
try {
- http.registerResources(key, "/", new FileSystemContext(value));
+ http.registerResources(key, "/", new FileSystemContext(value)); //$NON-NLS-1$
} catch (NamespaceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -85,7 +85,7 @@ public class FileServerApplication implements IApplication {
continue;
String arg = args[++i];
- if (args[i - 1].equalsIgnoreCase("-resource"))
+ if (args[i - 1].equalsIgnoreCase("-resource")) //$NON-NLS-1$
resources.put(arg, args[++i]);
}
}
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/ConfigurationWriter.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/ConfigurationWriter.java
index c0f3b781c..1c4661ffe 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/ConfigurationWriter.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/ConfigurationWriter.java
@@ -107,7 +107,7 @@ public class ConfigurationWriter implements ConfigurationConstants {
* possible and could potentially return platform:/base/.
*/
private static String getLocation(String value, URL osgiInstallArea) {
- if (osgiInstallArea == null || !value.startsWith("file:"))
+ if (osgiInstallArea == null || !value.startsWith("file:")) //$NON-NLS-1$
return value;
try {
// if our site represents the osgi install area, then write out platform:/base/
@@ -116,7 +116,7 @@ public class ConfigurationWriter implements ConfigurationConstants {
if (installArea.getAbsoluteFile().equals(path.getAbsoluteFile()))
return ConfigurationParser.PLATFORM_BASE;
} catch (MalformedURLException e) {
- LogHelper.log(new Status(IStatus.ERROR, Activator.ID, "Error occurred while writing configuration.", e));
+ LogHelper.log(new Status(IStatus.ERROR, Activator.ID, "Error occurred while writing configuration.", e)); //$NON-NLS-1$
}
return Utils.makeRelative(value, osgiInstallArea);
}
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/Zip.java b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/Zip.java
index f44ecc8a7..c53c429cb 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/Zip.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/Zip.java
@@ -28,7 +28,7 @@ public class Zip {
File zipFile = new File(source);
if (zipFile == null || !zipFile.exists()) {
// internal error?
- Util.log(this.getClass().getName() + " the files to be unzipped is not here");
+ Util.log(this.getClass().getName() + " the files to be unzipped is not here"); //$NON-NLS-1$
// throw Util.coreException(null, NLS.bind(Messages.failed_to_download_artifact, source));
}
@@ -53,7 +53,7 @@ public class Zip {
BackupFiles backupFiles = new BackupFiles(new File(backupDir));
backupFiles.backupFilesInZip(backupDir, zipFile.toURL(), new File(destination), null);
} catch (IOException e) {
- Util.log(this.getClass().getName() + " something went wrong when backing up the files");
+ Util.log(this.getClass().getName() + " something went wrong when backing up the files"); //$NON-NLS-1$
// throw Util.coreException(e, NLS.bind(Messages.error_backing_up, zipFile));
} finally {
// backupPM.done();
@@ -63,9 +63,9 @@ public class Zip {
String taskName = NLS.bind(Messages.unzipping, source);
return FileUtils.unzipFile(zipFile, new File(destination), taskName, new NullProgressMonitor());
} catch (IOException e) {
- Util.log(this.getClass().getName() + " something went wrong when unzipping");
- Util.log("zipfile: " + zipFile.getAbsolutePath());
- Util.log("destination: " + destination);
+ Util.log(this.getClass().getName() + " something went wrong when unzipping"); //$NON-NLS-1$
+ Util.log("zipfile: " + zipFile.getAbsolutePath()); //$NON-NLS-1$
+ Util.log("destination: " + destination); //$NON-NLS-1$
// throw Util.coreException(e.getMessage());
} finally {
// unzipPM.done();

Back to the top