Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.debug.core.sourcelookup.containers
Class AbstractSourceContainerTypeDelegate

java.lang.Object
  extended by 
org.eclipse.debug.core.sourcelookup.containers.AbstractSourceContainerTypeDelegate
All Implemented Interfaces:
ISourceContainerTypeDelegate

public abstract class AbstractSourceContainerTypeDelegate
extends Object
implements ISourceContainerTypeDelegate

Common function for source container type delegates.

Clients implementing source container delegates should subclass this class.

Since:
3.0

Constructor Summary
AbstractSourceContainerTypeDelegate ()
           
 
Method Summary
protected  void abort ( String message, Throwable exception)
          Throws an exception with the given message and underlying exception.
protected   Document newDocument ()
          Creates and returns a new XML document.
protected   Element parseDocument ( String document)
          Parses the given XML document, returning its root element.
protected   String serializeDocument ( Document document)
          Returns the given XML document as a string.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.debug.core.sourcelookup. ISourceContainerTypeDelegate
createSourceContainer, getMemento
 

Constructor Detail

AbstractSourceContainerTypeDelegate

public AbstractSourceContainerTypeDelegate()
Method Detail

abort

protected void abort(
String message,
                     
Throwable exception)
              throws 
CoreException
Throws an exception with the given message and underlying exception.

Parameters:
message - error message
exception - underlying exception, or null
Throws:
CoreException

newDocument

protected 
Document newDocument()
                        throws 
CoreException
Creates and returns a new XML document.

Returns:
a new XML document
Throws:
CoreException - if unable to create a new document

serializeDocument

protected 
String serializeDocument(
Document document)
                            throws 
CoreException
Returns the given XML document as a string.

Parameters:
document - document to serialize
Returns:
the given XML document as a string
Throws:
CoreException - if unable to serialize the document

parseDocument

protected 
Element parseDocument(
String document)
                         throws 
CoreException
Parses the given XML document, returning its root element.

Parameters:
document - XML document as a string
Returns:
the document's root element
Throws:
CoreException - if unable to parse the document

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire