/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified plug-in. * * @return Whether tracing is enabled for the plug-in. * @param pluginId * The symbolic plugin id for which to determine trace * enablement. * */ protected static boolean shouldTrace(String pluginId) { return shouldTrace0(pluginId + "/debug"); //$NON-NLS-1$ }
/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified plug-in. * * @return Whether tracing is enabled for the plug-in. * @param pluginId * The symbolic plugin id for which to determine trace * enablement. * */ protected static boolean shouldTrace(String pluginId) { return shouldTrace0(pluginId + "/debug"); //$NON-NLS-1$ }
/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified debug option of the specified plug-in. * * @return Whether tracing is enabled for the debug option of the plug-in. * @param pluginId * The plug-in for which to determine trace enablement. * @param option * The debug option for which to determine trace enablement. * */ public static boolean shouldTrace(String pluginId, String option) { if (pluginId == null) return false; if (shouldTrace(pluginId)) { Boolean value = null; synchronized (cachedOptions) { value = (Boolean) cachedOptions.get(option); if (null == value) { value = shouldTrace0(option) ? Boolean.TRUE : Boolean.FALSE; cachedOptions.put(option, value); } } return value.booleanValue(); } return false; }
/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified debug option of the specified plug-in. * * @return Whether tracing is enabled for the debug option of the plug-in. * @param pluginId * The plug-in for which to determine trace enablement. * @param option * The debug option for which to determine trace enablement. * */ public static boolean shouldTrace(String pluginId, String option) { if (pluginId == null) return false; if (TRACEALL || TRACE_BUNDLES.contains(pluginId)) return true; if (shouldTrace(pluginId)) { Boolean value = null; synchronized (cachedOptions) { value = cachedOptions.get(option); if (null == value) { value = shouldTrace0(option); cachedOptions.put(option, value); } } return value.booleanValue(); } return false; }