Bug 511114 - JSDT stops breakpoints from working in CDT

This change associates the Chromium debug breakpoint adaptor factory
with javascript editors only. This prevents it from being wrongly used
as the "default" breakpoint adaptor factory for other editor types.

Change-Id: I59bce36ec2b9a02f4db7d36124b318ad49e6b093
Signed-off-by: Mat Booth <mat.booth@redhat.com>
diff --git a/bundles/org.eclipse.wst.jsdt.chromium.debug.core/plugin.xml b/bundles/org.eclipse.wst.jsdt.chromium.debug.core/plugin.xml
index 0dfeb7f..87d8376 100755
--- a/bundles/org.eclipse.wst.jsdt.chromium.debug.core/plugin.xml
+++ b/bundles/org.eclipse.wst.jsdt.chromium.debug.core/plugin.xml
@@ -11,14 +11,6 @@
 <plugin>
 
   <!-- Breakpoint-related extensions -->
-  <extension point="org.eclipse.core.runtime.adapters">
-    <factory
-        class="org.eclipse.wst.jsdt.chromium.debug.core.model.BreakpointAdapterFactory"
-        adaptableType="org.eclipse.ui.texteditor.ITextEditor">
-      <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget" /> 
-    </factory>
-  </extension>
-  
   <extension point="org.eclipse.debug.core.breakpoints">
       <breakpoint
         class="org.eclipse.wst.jsdt.chromium.debug.core.model.ChromiumLineBreakpoint"
diff --git a/bundles/org.eclipse.wst.jsdt.chromium.debug.ui/plugin.xml b/bundles/org.eclipse.wst.jsdt.chromium.debug.ui/plugin.xml
index 257b087..fc11b91 100755
--- a/bundles/org.eclipse.wst.jsdt.chromium.debug.ui/plugin.xml
+++ b/bundles/org.eclipse.wst.jsdt.chromium.debug.ui/plugin.xml
@@ -542,4 +542,11 @@
 	    </viewerContentBinding>
   </extension>
   
+  <extension point="org.eclipse.core.runtime.adapters">
+    <factory
+        class="org.eclipse.wst.jsdt.chromium.debug.core.model.BreakpointAdapterFactory"
+        adaptableType="org.eclipse.wst.jsdt.chromium.debug.ui.editors.JsEditor">
+      <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget" /> 
+    </factory>
+  </extension>
 </plugin>