debuggercdi/com.nokia.cdt.debug.common/src/com/nokia/cdt/debug/common/CarbideCommonDebuggerPlugin.java
author wpaul
Mon, 24 May 2010 21:20:25 -0500
changeset 1395 0ca4f91f68bb
parent 1096 96e5879cd42d
permissions -rw-r--r--
add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1096
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     1
package com.nokia.cdt.debug.common;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     2
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     3
import org.eclipse.core.runtime.Plugin;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     4
import org.osgi.framework.BundleContext;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     5
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     6
/**
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     7
 * The activator class controls the plug-in life cycle
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     8
 */
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
     9
public class CarbideCommonDebuggerPlugin extends Plugin {
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    10
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    11
	// The plug-in ID
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    12
	public static final String PLUGIN_ID = "com.nokia.cdt.debug.common";
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    13
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    14
	// The shared instance
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    15
	private static CarbideCommonDebuggerPlugin plugin;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    16
	
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    17
	/**
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    18
	 * The constructor
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    19
	 */
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    20
	public CarbideCommonDebuggerPlugin() {
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    21
	}
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    22
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    23
	/*
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    24
	 * (non-Javadoc)
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    25
	 * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    26
	 */
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    27
	public void start(BundleContext context) throws Exception {
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    28
		super.start(context);
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    29
		plugin = this;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    30
	}
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    31
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    32
	/*
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    33
	 * (non-Javadoc)
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    34
	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    35
	 */
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    36
	public void stop(BundleContext context) throws Exception {
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    37
		plugin = null;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    38
		super.stop(context);
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    39
	}
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    40
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    41
	/**
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    42
	 * Returns the shared instance
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    43
	 *
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    44
	 * @return the shared instance
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    45
	 */
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    46
	public static CarbideCommonDebuggerPlugin getDefault() {
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    47
		return plugin;
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    48
	}
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    49
96e5879cd42d Initial commit. Refactor out source mapping support into common plugin to be used with DE and EDC.
timkelly
parents:
diff changeset
    50
}