1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

patch from Mikhail Khodjaiants

- use 'MultiStatus' instead of 'Status' in the 'abort' method.
This commit is contained in:
David Inglis 2003-10-09 13:08:36 +00:00
parent 2b2cf4e3c3
commit a74781039e
2 changed files with 8 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2003-10-07 Mikhail Khodjaiants
src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java:
use 'MultiStatus' instead of 'Status' in the 'abort' method.
2003-09-22 David Inglis
Add help context IDs to plugin and associate ids to each launch tab control.

View file

@ -32,6 +32,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.DebugPlugin;
@ -244,11 +245,9 @@ abstract public class AbstractCLaunchDelegate implements ILaunchConfigurationDel
* @param code error code
*/
protected void abort(String message, Throwable exception, int code) throws CoreException {
String newMessage = message;
if (exception != null) {
newMessage = message + " : " + exception.getLocalizedMessage();
}
throw new CoreException(new Status(IStatus.ERROR, getPluginID(), code, newMessage, exception));
MultiStatus status = new MultiStatus(getPluginID(),code, message,exception);
status.add(new Status(IStatus.ERROR,getPluginID(),code,exception.getLocalizedMessage(),exception));
throw new CoreException(status);
}
protected void cancel(String message, int code) throws CoreException {