Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-11-22 10:11:12 +0000
committerTobias Schwarz2012-11-22 10:11:32 +0000
commit499eca4c116a1814c627575da66542670bbe7308 (patch)
tree85494e1e4eb0ea6aed570a7828ebf89d42ade56e /target_explorer/plugins/org.eclipse.tcf.te.core.cdt
parentf2de62a27c6056b824cf5f73671e44a311c38617 (diff)
downloadorg.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.tar.gz
org.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.tar.xz
org.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.zip
[Target Explorer] use cdt default source lookup for initialisation of
remote debug launch
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.core.cdt')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.core.cdt/META-INF/MANIFEST.MF7
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.core.cdt/src/org/eclipse/tcf/te/core/cdt/CdtUtils.java24
2 files changed, 29 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/META-INF/MANIFEST.MF b/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/META-INF/MANIFEST.MF
index 881037d57..d093a602f 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/META-INF/MANIFEST.MF
+++ b/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/META-INF/MANIFEST.MF
@@ -7,10 +7,13 @@ Bundle-Activator: org.eclipse.tcf.te.core.cdt.activator.CoreBundleActivator
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.8.0",
org.eclipse.cdt.core;bundle-version="5.4.0";visibility:=reexport,
- org.eclipse.tcf.te.runtime;bundle-version="1.1.0"
+ org.eclipse.tcf.te.runtime;bundle-version="1.1.0",
+ org.eclipse.cdt.debug.core;bundle-version="7.2.0",
+ org.eclipse.debug.core;bundle-version="3.7.100"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
-Export-Package: org.eclipse.tcf.te.core.cdt.activator;x-internal:=true,
+Export-Package: org.eclipse.tcf.te.core.cdt,
+ org.eclipse.tcf.te.core.cdt.activator;x-internal:=true,
org.eclipse.tcf.te.core.cdt.elf,
org.eclipse.tcf.te.core.cdt.nls;x-internal:=true
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/src/org/eclipse/tcf/te/core/cdt/CdtUtils.java b/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/src/org/eclipse/tcf/te/core/cdt/CdtUtils.java
new file mode 100644
index 000000000..bf4e8adba
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.core.cdt/src/org/eclipse/tcf/te/core/cdt/CdtUtils.java
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Wind River Systems, Inc. and others. All rights reserved.
+ * This program and the accompanying materials are made available under the terms
+ * of the Eclipse Public License v1.0 which accompanies this distribution, and is
+ * available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.core.cdt;
+
+import org.eclipse.cdt.debug.core.CDebugCorePlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.sourcelookup.ISourceLookupDirector;
+
+/**
+ * Provides CDT utilities.
+ */
+public final class CdtUtils {
+
+ public static ISourceLookupDirector getDefaultSourceLookupDirector() throws CoreException {
+ return CDebugCorePlugin.getDefault().getCommonSourceLookupDirector();
+ }
+}

Back to the top