mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
Add static configure method.
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
b1285fd555
commit
b49fe0ca87
2 changed files with 9 additions and 8 deletions
|
@ -93,7 +93,7 @@ public class RemoteCorePlugin extends Plugin {
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) throws Exception {
|
||||||
super.start(context);
|
super.start(context);
|
||||||
plugin = this;
|
plugin = this;
|
||||||
new RemoteDebugOptions(context);
|
RemoteDebugOptions.configure(context);
|
||||||
ResourcesPlugin.getWorkspace().addSaveParticipant(getUniqueIdentifier(), new ISaveParticipant() {
|
ResourcesPlugin.getWorkspace().addSaveParticipant(getUniqueIdentifier(), new ISaveParticipant() {
|
||||||
@Override
|
@Override
|
||||||
public void saving(ISaveContext saveContext) throws CoreException {
|
public void saving(ISaveContext saveContext) throws CoreException {
|
||||||
|
|
|
@ -37,15 +37,16 @@ public class RemoteDebugOptions implements DebugOptionsListener {
|
||||||
public static boolean DEBUG = false;
|
public static boolean DEBUG = false;
|
||||||
public static boolean DEBUG_REMOTE_COMMANDS = false;
|
public static boolean DEBUG_REMOTE_COMMANDS = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* The {@link DebugTrace} object to print to OSGi tracing
|
|
||||||
*/
|
|
||||||
private static DebugTrace fDebugTrace;
|
private static DebugTrace fDebugTrace;
|
||||||
|
private static RemoteDebugOptions fDebugOptions;
|
||||||
|
|
||||||
/**
|
public static void configure(BundleContext context) {
|
||||||
* Constructor
|
if (fDebugOptions == null) {
|
||||||
*/
|
fDebugOptions = new RemoteDebugOptions(context);
|
||||||
public RemoteDebugOptions(BundleContext context) {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private RemoteDebugOptions(BundleContext context) {
|
||||||
Hashtable<String, String> props = new Hashtable<String, String>(2);
|
Hashtable<String, String> props = new Hashtable<String, String>(2);
|
||||||
props.put(DebugOptions.LISTENER_SYMBOLICNAME, RemoteCorePlugin.getUniqueIdentifier());
|
props.put(DebugOptions.LISTENER_SYMBOLICNAME, RemoteCorePlugin.getUniqueIdentifier());
|
||||||
context.registerService(DebugOptionsListener.class.getName(), this, props);
|
context.registerService(DebugOptionsListener.class.getName(), this, props);
|
||||||
|
|
Loading…
Add table
Reference in a new issue