1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Changed the 'getAdapter' method of 'CSourceManager' to return the adapter of the 'ICSourceLocator' class.

This commit is contained in:
Mikhail Khodjaiants 2003-10-27 19:51:47 +00:00
parent e8cea36679
commit 60d1a002c7
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-10-27 Mikhail Khodjaiants
Changed the 'getAdapter' method of 'CSourceManager' to return the adapter of
the 'ICSourceLocator' class.
* CSourceManager.java
2003-10-26 Mikhail Khodjaiants 2003-10-26 Mikhail Khodjaiants
Fix for PR 45534: gdb/MI error in retrieving a register can lead to an empty register pane. Fix for PR 45534: gdb/MI error in retrieving a register can lead to an empty register pane.
* CRegister.java * CRegister.java

View file

@ -136,6 +136,8 @@ public class CSourceManager implements ICSourceLocator,
{ {
if ( adapter.equals( CSourceManager.class ) ) if ( adapter.equals( CSourceManager.class ) )
return this; return this;
if ( adapter.equals( ICSourceLocator.class ) )
return this;
if ( adapter.equals( IResourceChangeListener.class ) && if ( adapter.equals( IResourceChangeListener.class ) &&
fSourceLocator instanceof IResourceChangeListener ) fSourceLocator instanceof IResourceChangeListener )
return fSourceLocator; return fSourceLocator;