mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15:38 +02:00
The 'auto load symbols' action support in ICSharedLibraryManager.
This commit is contained in:
parent
8a43cba9c6
commit
92419e6d4e
3 changed files with 38 additions and 0 deletions
|
@ -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
|
2003-02-11 Mikhail Khodjaiants
|
||||||
The 'load symbols' actions support in ICSharedLibraryManager.
|
The 'load symbols' actions support in ICSharedLibraryManager.
|
||||||
* ICSharedLibraryManager.java
|
* ICSharedLibraryManager.java
|
||||||
|
|
|
@ -22,5 +22,9 @@ public interface ICSharedLibraryManager extends ICUpdateManager, IAdaptable
|
||||||
|
|
||||||
void loadSymbols( ICSharedLibrary[] libraries ) throws DebugException;
|
void loadSymbols( ICSharedLibrary[] libraries ) throws DebugException;
|
||||||
|
|
||||||
|
void setAutoLoadSymbols( boolean set ) throws DebugException;
|
||||||
|
|
||||||
|
boolean getAutoLoadSymbols();
|
||||||
|
|
||||||
void dispose();
|
void dispose();
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ public class CSharedLibraryManager implements ICSharedLibraryManager
|
||||||
{
|
{
|
||||||
private CDebugTarget fDebugTarget = null;
|
private CDebugTarget fDebugTarget = null;
|
||||||
private ArrayList fSharedLibraries;
|
private ArrayList fSharedLibraries;
|
||||||
|
private boolean fAutoLoadSymbols = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for CSharedLibraryManager.
|
* 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue