Permalink
Browse files

[367806] Back-port script resolution API and crossfire updates

  • Loading branch information...
nitind
nitind committed Jan 10, 2012
1 parent 6bbd0ab commit 3a276289994d5433c6c1b7eed80054f8619a8ee7
Showing with 2,328 additions and 1,511 deletions.
  1. +10 −8 bundles/org.eclipse.wst.jsdt.debug.core/META-INF/MANIFEST.MF
  2. +1 −1 bundles/org.eclipse.wst.jsdt.debug.core/OSGI-INF/l10n/bundle.properties
  3. +1 −0 bundles/org.eclipse.wst.jsdt.debug.core/plugin.xml
  4. +128 −0 bundles/org.eclipse.wst.jsdt.debug.core/schema/scriptResolvers.exsd
  5. +51 −0 ...es/org.eclipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/core/model/IScriptResolver.java
  6. +39 −0 ...les/org.eclipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/core/model/ScriptResolver.java
  7. +6 −1 bundles/org.eclipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/Constants.java
  8. +17 −0 ...lipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/JavaScriptDebugPlugin.java
  9. +5 −26 ...sdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/breakpoints/JavaScriptBreakpoint.java
  10. +27 −1 ...debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/breakpoints/JavaScriptLoadBreakpoint.java
  11. +49 −2 ...ore/src/org/eclipse/wst/jsdt/debug/internal/core/launching/JavaScriptSourceLookupParticipant.java
  12. +15 −5 ...ipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/launching/SourceLookup.java
  13. +2 −2 ....wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/model/JavaScriptStackFrame.java
  14. +3 −0 ...ipse.wst.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/model/JavaScriptThread.java
  15. +195 −0 ...t.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/model/ScriptResolutionManager.java
  16. +75 −0 ...t.jsdt.debug.core/src/org/eclipse/wst/jsdt/debug/internal/core/model/ScriptResolverExtension.java
  17. +4 −4 bundles/org.eclipse.wst.jsdt.debug.crossfire/META-INF/MANIFEST.MF
  18. +60 −1 bundles/org.eclipse.wst.jsdt.debug.crossfire/about.html
  19. +1 −1 bundles/org.eclipse.wst.jsdt.debug.crossfire/build.properties
  20. +50 −0 ....eclipse.wst.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/CFObject.java
  21. +256 −0 ...lipse.wst.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/CFThrowable.java
  22. +45 −15 ...st.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/event/CFEventQueue.java
  23. +1 −1 ...pse.wst.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFMirror.java
  24. +2 −2 ...sdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFScriptReference.java
  25. +12 −7 ...wst.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFStackFrame.java
  26. +1 −1 ...sdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFThreadReference.java
  27. +31 −26 ...e.wst.jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFVariable.java
  28. +8 −0 ...jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/jsdi/CFVirtualMachine.java
  29. +69 −1 ....jsdt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/transport/Attributes.java
  30. +5 −1 ...dt.debug.crossfire/src/org/eclipse/wst/jsdt/debug/internal/crossfire/transport/CFEventPacket.java
  31. +4 −2 bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/META-INF/MANIFEST.MF
  32. +1 −1 bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/OSGI-INF/l10n/bundle.properties
  33. +13 −1 bundles/org.eclipse.wst.jsdt.debug.rhino.debugger/build.properties
  34. +3 −3 ...jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/ContextData.java
  35. +29 −59 ...ug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/DebugSessionManager.java
  36. +23 −23 ...t.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RequestHandler.java
  37. +16 −9 ...ebug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/RhinoDebuggerImpl.java
  38. +24 −16 ...sdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/ScriptSource.java
  39. +3 −3 ....jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/debugger/StackFrame.java
  40. +0 −53 ...jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/Connection.java
  41. +0 −145 ...dt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/DebugSession.java
  42. +0 −34 ...rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/DisconnectedException.java
  43. +2 −2 ...sdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/EventPacket.java
  44. +0 −2 ...t.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/JSONConstants.java
  45. +6 −3 ...t.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/JSONUtil.java
  46. +0 −112 ...t.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/PacketManager.java
  47. +0 −277 ....rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/PacketReceiveManager.java
  48. +0 −108 ...bug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/PacketSendManager.java
  49. +10 −7 ...debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/PipedConnection.java
  50. +8 −4 ...rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/PipedTransportService.java
  51. +10 −36 ...debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/{Packet.java → RhinoPacket.java}
  52. +31 −18 ...bugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/{Request.java → RhinoRequest.java}
  53. +21 −34 ...gger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/{Response.java → RhinoResponse.java}
  54. +18 −38 ...ipse/wst/jsdt/debug/internal/rhino/transport/{SocketConnection.java → RhinoSocketConnection.java}
  55. +66 −0 ...rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/RhinoTransportService.java
  56. +0 −149 ...hino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/SocketTransportService.java
  57. +0 −29 ...ebug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/TimeoutException.java
  58. +0 −71 ...ebug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/internal/rhino/transport/TransportService.java
  59. +365 −0 ....wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/rhino/debugger/shell/DebugMain.java
  60. +90 −18 ...wst.jsdt.debug.rhino.debugger/src/org/eclipse/wst/jsdt/debug/rhino/debugger/shell/DebugShell.java
  61. +13 −7 bundles/org.eclipse.wst.jsdt.debug.rhino/META-INF/MANIFEST.MF
  62. +1 −1 bundles/org.eclipse.wst.jsdt.debug.rhino/OSGI-INF/l10n/bundle.properties
  63. +12 −1 bundles/org.eclipse.wst.jsdt.debug.rhino/build.properties
  64. +3 −3 ...g.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/breakpoints/RhinoBreakpointParticipant.java
  65. +3 −3 ....wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/ObjectReferenceImpl.java
  66. +6 −1 ....wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/ScriptReferenceImpl.java
  67. +31 −24 ...lipse.wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/StackFrameImpl.java
  68. +12 −12 ....wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/ThreadReferenceImpl.java
  69. +67 −52 ...e.wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/VirtualMachineImpl.java
  70. +5 −2 ...bug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/connect/RhinoAttachingConnector.java
  71. +1 −1 ...t.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/connect/messages.properties
  72. +4 −4 ...wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/event/EventQueueImpl.java
  73. +1 −2 ...t.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/event/SuspendEventImpl.java
  74. +10 −0 ...lipse.wst.jsdt.debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/messages.properties
  75. +13 −11 ...debug.rhino/src/org/eclipse/wst/jsdt/debug/internal/rhino/jsdi/request/BreakpointRequestImpl.java
  76. +10 −7 bundles/org.eclipse.wst.jsdt.debug.ui/META-INF/MANIFEST.MF
  77. +1 −1 bundles/org.eclipse.wst.jsdt.debug.ui/OSGI-INF/l10n/bundle.properties
  78. +41 −0 bundles/org.eclipse.wst.jsdt.debug.ui/plugin.xml
  79. +10 −9 ...pse.wst.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/JavaScriptModelPresentation.java
  80. +1 −0 bundles/org.eclipse.wst.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/Messages.java
  81. +2 −2 ...t.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/adapters/JavaScriptAdapterFactory.java
  82. +89 −0 ...g.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/breakpoints/JavaScriptHtmlBreakpointProvider.java
  83. +53 −0 ...jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/breakpoints/ToggleBreakpointAdapter.java
  84. +21 −0 ....wst.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/launching/JavaScriptConnectTab.java
  85. +2 −1 bundles/org.eclipse.wst.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/messages.properties
  86. +2 −2 ...ebug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/preferences/JavaScriptDebugPreferencePage.java
  87. +2 −2 ...ipse.wst.jsdt.debug.ui/src/org/eclipse/wst/jsdt/debug/internal/ui/preferences/messages.properties
@@ -2,13 +2,11 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName.name
Bundle-SymbolicName: org.eclipse.wst.jsdt.debug.core;singleton:=true
-Bundle-Version: 1.1.0.qualifier
+Bundle-Version: 1.1.1.qualifier
Bundle-Activator: org.eclipse.wst.jsdt.debug.internal.core.JavaScriptDebugPlugin
-Bundle-Vendor: %bundleVendor.name
+Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.debug.core,
- org.eclipse.wst.jsdt.core,
- org.eclipse.text
+ org.eclipse.debug.core
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.wst.jsdt.debug.core.breakpoints,
@@ -18,6 +16,10 @@ Export-Package: org.eclipse.wst.jsdt.debug.core.breakpoints,
org.eclipse.wst.jsdt.debug.core.jsdi.request,
org.eclipse.wst.jsdt.debug.core.model,
org.eclipse.wst.jsdt.debug.internal.core;x-friends:="org.eclipse.wst.jsdt.debug.ui",
- org.eclipse.wst.jsdt.debug.internal.core.breakpoints;x-internal:=true,
- org.eclipse.wst.jsdt.debug.internal.core.launching;x-friends:="org.eclipse.wst.jsdt.debug.ui",
- org.eclipse.wst.jsdt.debug.internal.core.model;x-friends:="org.eclipse.wst.jsdt.debug.ui"
+ org.eclipse.wst.jsdt.debug.internal.core.breakpoints;x-friends:="org.eclipse.wst.jsdt.debug.ui",
+ org.eclipse.wst.jsdt.debug.internal.core.launching;x-friends:="org.eclipse.wst.jsdt.debug.ui,org.eclipse.wst.jsdt.debug.rhino.ui",
+ org.eclipse.wst.jsdt.debug.internal.core.model;x-friends:="org.eclipse.wst.jsdt.debug.ui,org.eclipse.wst.jsdt.debug.rhino.ui"
+Import-Package: org.eclipse.jface.text,
+ org.eclipse.text.edits,
+ org.eclipse.wst.jsdt.core,
+ org.eclipse.wst.jsdt.core.formatter
@@ -17,7 +17,7 @@ exceptionbreakpoint.name = JavaScript Exception Breakpoint
launchDelegate.name = JavaScript Launcher
launchDelegate.description = Launches a Javascript session
sourceLocator.name = JavaScript Source Locator
-bundleVendor.name = Eclipse Web Tools Platform
+providerName = Eclipse Web Tools Platform
bundleName.name = JavaScript Debug Core
connectorsExtPoint.name = connectors
remoteJsLaunchDelegate.name = Remote JavaScript
@@ -13,6 +13,7 @@
<plugin>
<extension-point id="launchingConnectors" name="%connectorsExtPoint.name" schema="schema/launchingConnectors.exsd"/>
<extension-point id="breakpointParticipants" name="%breakpointParticipantsExt.name" schema="schema/breakpointParticipants.exsd"/>
+ <extension-point id="scriptResolvers" name="scriptResolvers" schema="schema/scriptResolvers.exsd"/>
<extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
@@ -0,0 +1,128 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.wst.jsdt.debug.core" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.eclipse.wst.jsdt.debug.core" id="scriptResolvers" name="scriptResolvers"/>
+ </appinfo>
+ <documentation>
+ This extension point is used to contribute a script solver that is consulted any place in JSDT where a &lt;code&gt;ScriptReference&lt;/code&gt; must be resolved to a workspace-local &lt;code&gt;IFile&lt;/code&gt;.
+&lt;br&gt;&lt;br&gt;
+An example of typical usage is resolving if a breakpoint&apos;s workspace path matches that of a given &lt;code&gt;ScriptReference&lt;/code&gt;
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence minOccurs="1" maxOccurs="unbounded">
+ <element ref="scriptResolver"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="scriptResolver">
+ <annotation>
+ <documentation>
+ A resolver that can help determine equality between workspace-local IFiles and JavaScript ScriptReferences
+ </documentation>
+ </annotation>
+ <complexType>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+ The fully qualified name of the Java class that implements org.eclipse.wst.jsdt.debug.core.model.ScriptResolver
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java" basedOn="org.eclipse.wst.jsdt.debug.core.model.ScriptResolver:"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ 3.4
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ The following is an example of the default script resolver:
+&lt;pre&gt;
+ &lt;extension point=&quot;org.eclipse.wst.jsdt.debug.core.scriptResolvers&quot;&gt;
+ &lt;scriptResolver
+ class=&quot;org.eclipse.wst.jsdt.debug.internal.core.model.DefaultScriptResolver&quot;&gt;
+ &lt;/scriptResolver&gt;
+ &lt;/extension&gt;
+&lt;/pre&gt;
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiinfo"/>
+ </appinfo>
+ <documentation>
+ The class field must specify the fully qualified name of the the class the extends &lt;code&gt;org.eclipse.wst.jsdt.debug.core.model.AbstractScriptResolver&lt;/code&gt;.
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="copyright"/>
+ </appinfo>
+ <documentation>
+ Copyright (c) 2011 IBM Corporation and others.&lt;br&gt;
+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
+&lt;a href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
+ </documentation>
+ </annotation>
+
+</schema>
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2011 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.jsdt.debug.core.model;
+
+import java.net.URI;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.wst.jsdt.debug.core.jsdi.ScriptReference;
+
+/**
+ * This resolver allows contributors to plug-in to the process of resolving a {@link ScriptReference}'s
+ * {@link URI} to a workspace-local {@link IFile}.
+ * <br><br>
+ * This interface is not intended to be directly implemented. Instead clients must extend the base class {@link ScriptResolver}
+ *
+ * @see ScriptResolver
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ * @since 3.4
+ */
+public interface IScriptResolver {
+
+ /**
+ * This method determines if the given {@link IPath} matches the {@link URI} from {@link ScriptReference#sourceURI()}.
+
+ * @param script the {@link ScriptReference} to compare the source {@link URI} from - never <code>null</code>
+ * @param path the path to match against the source {@link URI} - never <code>null</code>
+ *
+ * @return <code>true</code> if the source {@link URI} of the given {@link ScriptReference} is considered to match the given {@link IPath}, <code>false</code> otherwise.
+ */
+ public boolean matches(ScriptReference script, IPath path);
+
+ /**
+ * This method is used to find the workspace {@link IFile} that corresponds to the source {@link URI} from the given {@link ScriptReference}.
+ * <br><br>
+ * If no file can be determined the method must return <code>null</code>. The result will be checked for existence.
+ *
+ * @param script the {@link ScriptReference} to find the {@link IFile} for
+ * @return the {@link IFile} for the {@link ScriptReference} or <code>null</code>
+ */
+ public IFile getFile(ScriptReference script);
+}
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2011 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.jsdt.debug.core.model;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.wst.jsdt.debug.core.jsdi.ScriptReference;
+
+/**
+ * This is the default base class for all {@link IScriptResolver}s
+ * <br><br>
+ * Clients must extend this class and not directly implement the interface {@link IScriptResolver}
+ *
+ * @since 3.4
+ */
+public abstract class ScriptResolver implements IScriptResolver {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.jsdt.debug.core.model.IScriptResolver#matches(org.eclipse.wst.jsdt.debug.core.jsdi.ScriptReference, org.eclipse.core.runtime.IPath)
+ */
+ public boolean matches(ScriptReference script, IPath path) {
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.jsdt.debug.core.model.IScriptResolver#getFile(org.eclipse.wst.jsdt.debug.core.jsdi.ScriptReference)
+ */
+ public IFile getFile(ScriptReference script) {
+ return null;
+ }
+}
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2011 IBM Corporation and others.
+ * Copyright (c) 2010 IBM Corporation 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
@@ -73,6 +73,11 @@
* The name of the launching connectors extension point
*/
static final String LAUNCHING_CONNECTORS = "launchingConnectors"; //$NON-NLS-1$
+ /**
+ * The name of the script resolvers extension point
+ * @since 3.4
+ */
+ static final String SCRIPT_RESOLVERS = "scriptResolvers"; //$NON-NLS-1$
//######### PREFERENCES ############
/**
@@ -27,6 +27,7 @@
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.wst.jsdt.debug.internal.core.launching.ConnectorsManager;
import org.eclipse.wst.jsdt.debug.internal.core.model.BreakpointParticipantManager;
+import org.eclipse.wst.jsdt.debug.internal.core.model.ScriptResolutionManager;
import org.osgi.framework.BundleContext;
/**
@@ -63,6 +64,10 @@
* Singleton {@link JavaScriptPreferencesManager}
*/
private static JavaScriptPreferencesManager prefmanager = null;
+ /**
+ * Singleton {@link ScriptResolutionManager}
+ */
+ private static ScriptResolutionManager resolutionmanager = null;
/**
* Handle to the 'External JavaScript Source' project
*/
@@ -93,6 +98,18 @@ public static synchronized BreakpointParticipantManager getParticipantManager()
return participantmanager;
}
+ /**
+ * Returns the singleton {@link ScriptResolutionManager}
+ * @return the {@link ScriptResolutionManager}
+ * @since 3.4
+ */
+ public static synchronized ScriptResolutionManager getResolutionManager() {
+ if(resolutionmanager == null) {
+ resolutionmanager = new ScriptResolutionManager();
+ }
+ return resolutionmanager;
+ }
+
/**
* Returns the current handle to the 'External JavaScript Source' project or <code>null</code>. If the project
* is not accessible it can be created by passing <code>true</code> in for the create parameter.
Oops, something went wrong.

0 comments on commit 3a27628

Please sign in to comment.