1 11 package org.eclipse.debug.core.sourcelookup.containers; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.core.runtime.Status; 16 import org.eclipse.debug.core.DebugPlugin; 17 import org.eclipse.debug.core.sourcelookup.ISourceContainerTypeDelegate; 18 import org.w3c.dom.Document ; 19 import org.w3c.dom.Element ; 20 21 28 public abstract class AbstractSourceContainerTypeDelegate implements ISourceContainerTypeDelegate { 29 30 37 protected void abort(String message, Throwable exception) throws CoreException { 38 IStatus status = new Status(IStatus.ERROR, DebugPlugin.getUniqueIdentifier(), DebugPlugin.INTERNAL_ERROR, message, exception); 39 throw new CoreException(status); 40 } 41 42 48 protected Document newDocument()throws CoreException { 49 return DebugPlugin.newDocument(); 50 } 51 52 59 protected String serializeDocument(Document document) throws CoreException { 60 return DebugPlugin.serializeDocument(document); 61 } 62 63 70 protected Element parseDocument(String document) throws CoreException { 71 return DebugPlugin.parseDocument(document); 72 } 73 } 74 | Popular Tags |