1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 01:45:33 +02:00

Applied patch for a new entry (IResourceChangeListener) to the 'getAdapter' method of the 'DefaultSourceLocator'

This commit is contained in:
Thomas Fletcher 2003-07-17 17:46:24 +00:00
parent 83a412df2c
commit 3f0453ac43
2 changed files with 11 additions and 1 deletions

View file

@ -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.

View file

@ -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 );