Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-10-09 12:24:01 -0400
committerslewis2007-10-09 12:24:01 -0400
commitc62aa40ab5e0431b194341a217f73f7c02a1471d (patch)
tree96579150b5535583094b7d8794b8ab6c6e46a915 /framework/bundles/org.eclipse.ecf.identity/src
parent9460390a85fe77494ad9513aee6b669819fc628c (diff)
downloadorg.eclipse.ecf-c62aa40ab5e0431b194341a217f73f7c02a1471d.tar.gz
org.eclipse.ecf-c62aa40ab5e0431b194341a217f73f7c02a1471d.tar.xz
org.eclipse.ecf-c62aa40ab5e0431b194341a217f73f7c02a1471d.zip
Added jdt and jdt ui prefs from Equinox project
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/LongID.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java24
2 files changed, 13 insertions, 13 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/LongID.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/LongID.java
index 4ed20c5bc..6934a7486 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/LongID.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/LongID.java
@@ -79,7 +79,7 @@ public class LongID extends BaseID {
}
public String toString() {
- StringBuffer sb = new StringBuffer("LongID[");
+ StringBuffer sb = new StringBuffer("LongID["); //$NON-NLS-1$
sb.append(value).append("]"); //$NON-NLS-1$
return sb.toString();
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
index 4f6cf158b..408450958 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
@@ -22,7 +22,7 @@ import org.osgi.service.log.LogService;
*/
public class SystemLogService implements LogService {
- private static final SimpleDateFormat dateFormat = new SimpleDateFormat("Z yyyy.MM.dd HH:mm:ss:S");
+ private static final SimpleDateFormat dateFormat = new SimpleDateFormat("Z yyyy.MM.dd HH:mm:ss:S"); //$NON-NLS-1$
private final String pluginName;
@@ -33,27 +33,27 @@ public class SystemLogService implements LogService {
private static final String getLogCode(int level) {
switch (level) {
case LogService.LOG_INFO :
- return "INFO";
+ return "INFO"; //$NON-NLS-1$
case LogService.LOG_ERROR :
- return "ERROR";
+ return "ERROR"; //$NON-NLS-1$
case LogService.LOG_DEBUG :
- return "DEBUG";
+ return "DEBUG"; //$NON-NLS-1$
case LogService.LOG_WARNING :
- return "WARNING";
+ return "WARNING"; //$NON-NLS-1$
default :
- return "UNKNOWN";
+ return "UNKNOWN"; //$NON-NLS-1$
}
}
private final void doLog(ServiceReference sr, int level, String message, Throwable t) {
- final StringBuffer buf = new StringBuffer("[log;");
- buf.append(dateFormat.format(new Date())).append(";");
- buf.append(getLogCode(level)).append(";");
+ final StringBuffer buf = new StringBuffer("[log;"); //$NON-NLS-1$
+ buf.append(dateFormat.format(new Date())).append(";"); //$NON-NLS-1$
+ buf.append(getLogCode(level)).append(";"); //$NON-NLS-1$
if (sr != null)
- buf.append(sr.getBundle().getSymbolicName()).append(";");
+ buf.append(sr.getBundle().getSymbolicName()).append(";"); //$NON-NLS-1$
else
- buf.append(pluginName).append(";");
- buf.append(message).append("]");
+ buf.append(pluginName).append(";"); //$NON-NLS-1$
+ buf.append(message).append("]"); //$NON-NLS-1$
if (t != null) {
System.err.println(message);
t.printStackTrace(System.err);

Back to the top