mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
Applied patch for a new entry (IResourceChangeListener) to the 'getAdapter' method of the 'DefaultSourceLocator'
This commit is contained in:
parent
83a412df2c
commit
3f0453ac43
2 changed files with 11 additions and 1 deletions
|
@ -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
|
* src/org/eclipse/cdt/launch/internal/ui/LaunchImages.java
|
||||||
Filled out this class which previously wasn't loading images ... now it is.
|
Filled out this class which previously wasn't loading images ... now it is.
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ import org.eclipse.cdt.debug.internal.core.CDebugUtils;
|
||||||
import org.eclipse.cdt.debug.ui.sourcelookup.CUISourceLocator;
|
import org.eclipse.cdt.debug.ui.sourcelookup.CUISourceLocator;
|
||||||
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
|
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
|
import org.eclipse.core.resources.IResourceChangeListener;
|
||||||
import org.eclipse.core.resources.ResourcesPlugin;
|
import org.eclipse.core.resources.ResourcesPlugin;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
|
@ -201,6 +202,10 @@ public class DefaultSourceLocator implements IPersistableSourceLocator, IAdaptab
|
||||||
{
|
{
|
||||||
return fSourceLocator.getAdapter( adapter );
|
return fSourceLocator.getAdapter( adapter );
|
||||||
}
|
}
|
||||||
|
if ( adapter.equals( IResourceChangeListener.class ) )
|
||||||
|
{
|
||||||
|
return fSourceLocator.getAdapter( adapter );
|
||||||
|
}
|
||||||
if ( adapter.equals( ISourceMode.class ) )
|
if ( adapter.equals( ISourceMode.class ) )
|
||||||
{
|
{
|
||||||
return fSourceLocator.getAdapter( adapter );
|
return fSourceLocator.getAdapter( adapter );
|
||||||
|
|
Loading…
Add table
Reference in a new issue