/** * Sets whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set a debug option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @param value whether or not this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public void setDebugging(boolean value) { Bundle debugBundle = getBundle(); if (debugBundle == null) { this.debug = value; return; } String key = debugBundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ final DebugOptions options = getDebugOptions(); if (options == null) this.debug = value; else { if (!options.isDebugEnabled()) options.setDebugEnabled(true); options.setOption(key, value ? Boolean.TRUE.toString() : Boolean.FALSE.toString()); } }
/** * Returns whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set an execution option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @return whether this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public boolean isDebugging() { Bundle debugBundle = getBundle(); if (debugBundle == null) return debug; String key = debugBundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ // first check if platform debugging is enabled final DebugOptions debugOptions = getDebugOptions(); if (debugOptions == null) return debug; // if platform debugging is enabled, check to see if this plugin is enabled for debugging return debugOptions.isDebugEnabled() ? InternalPlatform.getDefault().getBooleanOption(key, false) : false; }
/** * Sets whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set a debug option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @param value whether or not this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public void setDebugging(boolean value) { if (bundle == null) this.debug = value; String key = bundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ final DebugOptions options = getDebugOptions(); if (options == null) this.debug = value; else options.setOption(key, value ? Boolean.TRUE.toString() : Boolean.FALSE.toString()); }
/** * Sets whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set a debug option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @param value whether or not this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public void setDebugging(boolean value) { if (bundle == null) { this.debug = value; return; } String key = bundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ final DebugOptions options = getDebugOptions(); if (options == null) this.debug = value; else { if (!options.isDebugEnabled()) options.setDebugEnabled(true); options.setOption(key, value ? Boolean.TRUE.toString() : Boolean.FALSE.toString()); } }
/** * Returns whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set an execution option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @return whether this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public boolean isDebugging() { if (bundle == null) return debug; String key = bundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ // first check if platform debugging is enabled final DebugOptions debugOptions = getDebugOptions(); if (debugOptions == null) return debug; // if platform debugging is enabled, check to see if this plugin is enabled for debugging return debugOptions.isDebugEnabled() ? InternalPlatform.getDefault().getBooleanOption(key, false) : false; }
/** * Returns whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set an execution option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @return whether this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public boolean isDebugging() { if (bundle == null) return debug; String key = bundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ // first check if platform debugging is enabled final DebugOptions debugOptions = getDebugOptions(); if (debugOptions == null) return debug; // if platform debugging is enabled, check to see if this plugin is enabled for debugging return debugOptions.isDebugEnabled() ? InternalPlatform.getDefault().getBooleanOption(key, false) : false; }
/** * Sets whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set a debug option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @param value whether or not this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public void setDebugging(boolean value) { Bundle debugBundle = getBundle(); if (debugBundle == null) { this.debug = value; return; } String key = debugBundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ final DebugOptions options = getDebugOptions(); if (options == null) this.debug = value; else { if (!options.isDebugEnabled()) options.setDebugEnabled(true); options.setOption(key, value ? Boolean.TRUE.toString() : Boolean.FALSE.toString()); } }
/** * Returns whether this plug-in is in debug mode. * By default plug-ins are not in debug mode. A plug-in can put itself * into debug mode or the user can set an execution option to do so. * <p> * Note that the plug-in's debug flag is initialized when the * plug-in is started. The result of calling this method before the plug-in * has started is unspecified. * </p> * * @return whether this plug-in is in debug mode * XXX deprecate use the service and cache as needed */ public boolean isDebugging() { Bundle debugBundle = getBundle(); if (debugBundle == null) return debug; String key = debugBundle.getSymbolicName() + "/debug"; //$NON-NLS-1$ // first check if platform debugging is enabled final DebugOptions debugOptions = getDebugOptions(); if (debugOptions == null) return debug; // if platform debugging is enabled, check to see if this plugin is enabled for debugging return debugOptions.isDebugEnabled() ? InternalPlatform.getDefault().getBooleanOption(key, false) : false; }