1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 05:15:43 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-04-02 10:50:08 -07:00
parent 4a793c0801
commit 850063c25d

View file

@ -40,8 +40,8 @@ import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.model.IProcess; import org.eclipse.debug.core.model.IProcess;
public class CDebugAdapter implements ICDIDebugger { public class CDebugAdapter implements ICDIDebugger {
final ICDebugger fDebugger; final ICDebugger fDebugger;
/** /**
* @param debugger * @param debugger
*/ */
@ -49,8 +49,7 @@ public class CDebugAdapter implements ICDIDebugger {
fDebugger = debugger; fDebugger = debugger;
} }
/* /* (non-Javadoc)
* (non-Javadoc)
* *
* @see org.eclipse.cdt.debug.core.ICDIDebugger#createDebuggerSession(org.eclipse.debug.core.ILaunch, * @see org.eclipse.cdt.debug.core.ICDIDebugger#createDebuggerSession(org.eclipse.debug.core.ILaunch,
* org.eclipse.cdt.core.IBinaryParser.IBinaryExecutable, * org.eclipse.cdt.core.IBinaryParser.IBinaryExecutable,
@ -94,12 +93,13 @@ public class CDebugAdapter implements ICDIDebugger {
String format = "{0} ({1})"; //$NON-NLS-1$ String format = "{0} ({1})"; //$NON-NLS-1$
String timestamp = DateFormat.getInstance().format(new Date(System.currentTimeMillis())); String timestamp = DateFormat.getInstance().format(new Date(System.currentTimeMillis()));
String message = InternalDebugCoreMessages.getString("CDebugAdapter.1"); //$NON-NLS-1$ String message = InternalDebugCoreMessages.getString("CDebugAdapter.1"); //$NON-NLS-1$
return MessageFormat.format(format, new String[]{message, timestamp}); return MessageFormat.format(format, message, timestamp);
} }
protected void abort(String message, Throwable exception, int code) throws CoreException { protected void abort(String message, Throwable exception, int code) throws CoreException {
MultiStatus status = new MultiStatus(CDebugCorePlugin.getUniqueIdentifier(), code, message, exception); MultiStatus status = new MultiStatus(CDebugCorePlugin.getUniqueIdentifier(), code, message, exception);
status.add(new Status(IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), code, exception == null ? "" : exception.getLocalizedMessage(), //$NON-NLS-1$ status.add(new Status(IStatus.ERROR, CDebugCorePlugin.getUniqueIdentifier(), code,
exception == null ? "" : exception.getLocalizedMessage(), //$NON-NLS-1$
exception)); exception));
throw new CoreException(status); throw new CoreException(status);
} }
@ -138,5 +138,4 @@ public class CDebugAdapter implements ICDIDebugger {
} }
return new Path(path); return new Path(path);
} }
} }