Skip to main content
summaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorThomas Fletcher2003-07-17 13:46:24 -0400
committerThomas Fletcher2003-07-17 13:46:24 -0400
commit3f0453ac4302a7a56ae93ab70339c74d8aa50726 (patch)
treecee9eafb6b984c2db59b9a08fd09f05cafebc7c2 /launch
parent83a412df2cb5cb038725a055f62f82953e1094a3 (diff)
downloadorg.eclipse.cdt-3f0453ac4302a7a56ae93ab70339c74d8aa50726.tar.gz
org.eclipse.cdt-3f0453ac4302a7a56ae93ab70339c74d8aa50726.tar.xz
org.eclipse.cdt-3f0453ac4302a7a56ae93ab70339c74d8aa50726.zip
Applied patch for a new entry (IResourceChangeListener) to the 'getAdapter' method of the 'DefaultSourceLocator'
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/ChangeLog7
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java5
2 files changed, 11 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog
index 0abe504477..5a941d4c3b 100644
--- a/launch/org.eclipse.cdt.launch/ChangeLog
+++ b/launch/org.eclipse.cdt.launch/ChangeLog
@@ -1,4 +1,9 @@
-2003-07-09 David Inglis
+2003-07-17 Thomas Fletcher
+ * src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
+ Applied source locator patch to expand the scope of source lookups.
+ Patch from Mikhail Khodjaiants
+
+2003-07-09 Thomas Fletcher
* src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
Filled out this class which previously wasn't loading images ... now it is.
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
index 8a3e7f46c3..5e7b938d3f 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
@@ -21,6 +21,7 @@ import org.eclipse.cdt.debug.internal.core.CDebugUtils;
import org.eclipse.cdt.debug.ui.sourcelookup.CUISourceLocator;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
@@ -201,6 +202,10 @@ public class DefaultSourceLocator implements IPersistableSourceLocator, IAdaptab
{
return fSourceLocator.getAdapter( adapter );
}
+ if ( adapter.equals( IResourceChangeListener.class ) )
+ {
+ return fSourceLocator.getAdapter( adapter );
+ }
if ( adapter.equals( ISourceMode.class ) )
{
return fSourceLocator.getAdapter( adapter );

Back to the top