1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Fixed for bugzilla 240538. Load Symbols for All in Modules view always generates a bogus error

This commit is contained in:
John Cortell 2008-07-11 20:04:50 +00:00
parent a10ab1f0bf
commit d56a79adc4

View file

@ -213,16 +213,13 @@ public class CModule extends CDebugElement implements ICModule {
if ( path == null || path.isEmpty() ) { if ( path == null || path.isEmpty() ) {
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$ else if ( fCDIObject instanceof ICDISharedLibrary && path.equals( getSymbolsFileName() )) {
if ( fCDIObject instanceof ICDISharedLibrary && path.equals( getSymbolsFileName() )) {
try { try {
((ICDISharedLibrary)fCDIObject).loadSymbols(); ((ICDISharedLibrary)fCDIObject).loadSymbols();
return;
} }
catch( CDIException e ) { catch( CDIException e ) {
message = e.getMessage(); targetRequestFailed( e.getMessage(), null );
} }
} }
targetRequestFailed( message, null );
} }
} }