1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Added the 'logErrorMessage' static method to the 'CDebugUIPlugin' class.

This commit is contained in:
Mikhail Khodjaiants 2003-03-25 20:55:30 +00:00
parent 717cbc2041
commit a9d89b0eee
2 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-03-25 Mikhail Khodjaiants
Added the 'logErrorMessage' static method to the 'CDebugUIPlugin' class.
* CDebugUIPlugin.java
2003-03-18 Mikhail Khodjaiants
Removed the gdb-specific variable parsing.
* VariableFormatActionDelegate.java

View file

@ -185,8 +185,9 @@ public class CDebugUIPlugin extends AbstractUIPlugin
*
* @param status status to log
*/
public static void log(IStatus status) {
getDefault().getLog().log(status);
public static void log( IStatus status )
{
getDefault().getLog().log( status );
}
/**
@ -199,6 +200,16 @@ public class CDebugUIPlugin extends AbstractUIPlugin
log( new Status( IStatus.ERROR, getUniqueIdentifier(), ICDebugUIConstants.INTERNAL_ERROR, "Internal Error", e ) );
}
/**
* Logs an internal error with the specified message.
*
* @param message the error message to log
*/
public static void logErrorMessage( String message )
{
log( new Status( IStatus.ERROR, getUniqueIdentifier(), ICDebugUIConstants.INTERNAL_ERROR, message, null ) );
}
public ILaunchConfigurationTab getDebuggerPage(String debuggerID) {
if (fDebuggerPageMap == null) {
initializeDebuggerPageMap();