Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-03-14 03:29:19 -0400
committerslewis2007-03-14 03:29:19 -0400
commitf555b1d265e657718d7c31d2f4b88cbf73f18136 (patch)
tree39ab6390db7e07b752fe35cef104c68460d15ca3 /framework/bundles/org.eclipse.ecf.identity/src
parent5ba27c2bf9aabb07437df0b8adb3a2613fd22612 (diff)
downloadorg.eclipse.ecf-f555b1d265e657718d7c31d2f4b88cbf73f18136.tar.gz
org.eclipse.ecf-f555b1d265e657718d7c31d2f4b88cbf73f18136.tar.xz
org.eclipse.ecf-f555b1d265e657718d7c31d2f4b88cbf73f18136.zip
Removed all remaining references to Plugin class and Platform class
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/Trace.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/Trace.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/Trace.java
index bc1093ece..d7b3d0ad0 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/Trace.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/Trace.java
@@ -130,16 +130,15 @@ public class Trace {
*
*/
protected static boolean shouldTrace(String pluginId) {
- return shouldTrace0(pluginId,"/debug"); //$NON-NLS-1$
+ return shouldTrace0(pluginId+"/debug"); //$NON-NLS-1$
}
- protected static boolean shouldTrace0(String pluginId, String option) {
- if (pluginId == null || option == null)
+ protected static boolean shouldTrace0(String option) {
+ if (option == null)
return false;
DebugOptions debugOptions = Activator.getDefault().getDebugOptions();
if (debugOptions == null) return false;
- String key = pluginId + (option.startsWith("/")?option:("/"+option)); //$NON-NLS-1$
- String result = debugOptions.getOption(key);
+ String result = debugOptions.getOption(option);
return (result == null)?false:result.equalsIgnoreCase("true"); //$NON-NLS-1$
}
@@ -164,7 +163,7 @@ public class Trace {
value = (Boolean) cachedOptions.get(option);
if (null == value) {
- value = new Boolean(shouldTrace0(pluginId, option));
+ value = new Boolean(shouldTrace0(option));
cachedOptions.put(option, value);
}

Back to the top