1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 82264: Enhance the Shared Libraries view. Cleanup of the ICModule interface.

This commit is contained in:
Mikhail Khodjaiants 2005-02-17 00:05:50 +00:00
parent d1621f3b56
commit 3dd649612e
3 changed files with 10 additions and 25 deletions

View file

@ -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
Bug 82264: Enhance the Shared Libraries view.
Support for the symbols loading operations.

View file

@ -32,11 +32,6 @@ public interface ICModule extends ICDebugElement {
*/
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.
* The returned value will be one of <code>EXECUTABLE</code>,
@ -140,11 +135,4 @@ public interface ICModule extends ICDebugElement {
* @return the CPU identifier
*/
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();
}

View file

@ -26,6 +26,9 @@ import org.eclipse.debug.core.DebugException;
/**
* 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 {
@ -48,11 +51,6 @@ public class CModule extends CDebugElement implements ICModule {
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.
*/
@ -186,13 +184,6 @@ public class CModule extends CDebugElement implements ICModule {
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)
* @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$
}
String message = CoreModelMessages.getString( "CModule.4" ); //$NON-NLS-1$
if ( fCDIObject instanceof ICDISharedLibrary ) {
if ( fCDIObject instanceof ICDISharedLibrary && path.equals( getSymbolsFileName() )) {
try {
((ICDISharedLibrary)fCDIObject).loadSymbols();
return;