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:
parent
717cbc2041
commit
a9d89b0eee
2 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue