mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Bug 82264: Enhance the Shared Libraries view. Cleanup of the ICModule interface.
This commit is contained in:
parent
d1621f3b56
commit
3dd649612e
3 changed files with 10 additions and 25 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-02-16 Mikhail Khodjaiants
|
||||||
|
Bug 82264: Enhance the Shared Libraries view.
|
||||||
|
Cleanup of the ICModule interface.
|
||||||
|
* ICModule.java
|
||||||
|
* CModule.java
|
||||||
|
|
||||||
2005-02-15 Mikhail Khodjaiants
|
2005-02-15 Mikhail Khodjaiants
|
||||||
Bug 82264: Enhance the Shared Libraries view.
|
Bug 82264: Enhance the Shared Libraries view.
|
||||||
Support for the symbols loading operations.
|
Support for the symbols loading operations.
|
||||||
|
|
|
@ -32,11 +32,6 @@ public interface ICModule extends ICDebugElement {
|
||||||
*/
|
*/
|
||||||
public static final int SHARED_LIBRARY = 2;
|
public static final int SHARED_LIBRARY = 2;
|
||||||
|
|
||||||
/**
|
|
||||||
* Type constant which identifies core files.
|
|
||||||
*/
|
|
||||||
public static final int CORE = 3;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the type of this module.
|
* Returns the type of this module.
|
||||||
* The returned value will be one of <code>EXECUTABLE</code>,
|
* The returned value will be one of <code>EXECUTABLE</code>,
|
||||||
|
@ -140,11 +135,4 @@ public interface ICModule extends ICDebugElement {
|
||||||
* @return the CPU identifier
|
* @return the CPU identifier
|
||||||
*/
|
*/
|
||||||
public String getCPU();
|
public String getCPU();
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether the symbols of this module can be loaded from another file.
|
|
||||||
*
|
|
||||||
* @return whether the symbols of this module can be loaded from another file
|
|
||||||
*/
|
|
||||||
public boolean canModifySymbolsSource();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,9 @@ import org.eclipse.debug.core.DebugException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The CDI based implementation of <code>ICModule</code>.
|
* The CDI based implementation of <code>ICModule</code>.
|
||||||
|
*
|
||||||
|
* This implementation is experimental and needs to be changed when
|
||||||
|
* the CDI level support is available.
|
||||||
*/
|
*/
|
||||||
public class CModule extends CDebugElement implements ICModule {
|
public class CModule extends CDebugElement implements ICModule {
|
||||||
|
|
||||||
|
@ -48,11 +51,6 @@ public class CModule extends CDebugElement implements ICModule {
|
||||||
return new CModule( SHARED_LIBRARY, target, lib );
|
return new CModule( SHARED_LIBRARY, target, lib );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CModule createCore( CDebugTarget target, IPath path ) {
|
|
||||||
// TODO Add support for core file to CDI.
|
|
||||||
return new CModule( CORE, target, path );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for CModule.
|
* Constructor for CModule.
|
||||||
*/
|
*/
|
||||||
|
@ -186,13 +184,6 @@ public class CModule extends CDebugElement implements ICModule {
|
||||||
return ( fCElement instanceof IBinary ) ? ((IBinary)fCElement).getCPU() : null;
|
return ( fCElement instanceof IBinary ) ? ((IBinary)fCElement).getCPU() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.debug.core.model.ICModule#canModifySymbolsSource()
|
|
||||||
*/
|
|
||||||
public boolean canModifySymbolsSource() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
||||||
*/
|
*/
|
||||||
|
@ -223,7 +214,7 @@ public class CModule extends CDebugElement implements ICModule {
|
||||||
requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$
|
requestFailed( CoreModelMessages.getString( "CModule.2" ), null ); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
String message = CoreModelMessages.getString( "CModule.4" ); //$NON-NLS-1$
|
String message = CoreModelMessages.getString( "CModule.4" ); //$NON-NLS-1$
|
||||||
if ( fCDIObject instanceof ICDISharedLibrary ) {
|
if ( fCDIObject instanceof ICDISharedLibrary && path.equals( getSymbolsFileName() )) {
|
||||||
try {
|
try {
|
||||||
((ICDISharedLibrary)fCDIObject).loadSymbols();
|
((ICDISharedLibrary)fCDIObject).loadSymbols();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue