@Override public String getMemento() throws CoreException { Document doc= DebugPlugin.newDocument(); Element root = doc.createElement("runtimeClasspathEntry"); //$NON-NLS-1$ doc.appendChild(root); root.setAttribute("id", getTypeId()); //$NON-NLS-1$ Element memento = doc.createElement("memento"); //$NON-NLS-1$ root.appendChild(memento); buildMemento(doc, memento); return DebugPlugin.serializeDocument(doc); }
@Override public String getMemento() throws CoreException { Document doc= DebugPlugin.newDocument(); Element root = doc.createElement("runtimeClasspathEntry"); //$NON-NLS-1$ doc.appendChild(root); root.setAttribute("id", getTypeId()); //$NON-NLS-1$ Element memento = doc.createElement("memento"); //$NON-NLS-1$ root.appendChild(memento); buildMemento(doc, memento); return DebugPlugin.serializeDocument(doc); }