1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

The 'auto load symbols' action support in ICSharedLibraryManager.

This commit is contained in:
Mikhail Khodjaiants 2003-02-11 23:52:11 +00:00
parent 8a43cba9c6
commit 92419e6d4e
3 changed files with 38 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-02-11 Mikhail Khodjaiants
The 'auto load symbols' action support in ICSharedLibraryManager.
* ICSharedLibraryManager.java
* CSharedLibraryManager.java
2003-02-11 Mikhail Khodjaiants
The 'load symbols' actions support in ICSharedLibraryManager.
* ICSharedLibraryManager.java

View file

@ -22,5 +22,9 @@ public interface ICSharedLibraryManager extends ICUpdateManager, IAdaptable
void loadSymbols( ICSharedLibrary[] libraries ) throws DebugException;
void setAutoLoadSymbols( boolean set ) throws DebugException;
boolean getAutoLoadSymbols();
void dispose();
}

View file

@ -30,6 +30,7 @@ public class CSharedLibraryManager implements ICSharedLibraryManager
{
private CDebugTarget fDebugTarget = null;
private ArrayList fSharedLibraries;
private boolean fAutoLoadSymbols = false;
/**
* Constructor for CSharedLibraryManager.
@ -252,4 +253,32 @@ public class CSharedLibraryManager implements ICSharedLibraryManager
}
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.ICSharedLibraryManager#setAutoLoadSymbols(boolean)
*/
public void setAutoLoadSymbols( boolean set ) throws DebugException
{
ICDISharedLibraryManager slm = getCDIManager();
if ( slm != null )
{
try
{
slm.setAutoLoadSymbols( set );
fAutoLoadSymbols = set;
}
catch( CDIException e )
{
((CDebugTarget)getDebugTarget()).targetRequestFailed( e.toString(), null );
}
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.ICSharedLibraryManager#getAutoLoadSymbols()
*/
public boolean getAutoLoadSymbols()
{
return fAutoLoadSymbols;
}
}