org.eclipse.stp.core.internal.introspection
Class SafeIntrospector

java.lang.Object
  extended by org.eclipse.stp.core.internal.introspection.SafeIntrospector
All Implemented Interfaces:
org.eclipse.core.runtime.ISafeRunnable, ISafeIntrospector

public abstract class SafeIntrospector
extends java.lang.Object
implements ISafeIntrospector

A basic implementation for clients to subclass. Clients must override ISafeRunnable.run() when subclassing.

Since:
1.0

Constructor Summary
SafeIntrospector()
           
 
Method Summary
 EObjectContainmentIntrospectingEList getTargetList()
           
 void handleException(java.lang.Throwable exception)
           
 void setTargetList(EObjectContainmentIntrospectingEList aList)
          Set the current list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.ISafeRunnable
run
 

Constructor Detail

SafeIntrospector

public SafeIntrospector()
Method Detail

getTargetList

public final EObjectContainmentIntrospectingEList getTargetList()
Returns:
The target list that was passed in when the object was created.

setTargetList

public void setTargetList(EObjectContainmentIntrospectingEList aList)
Description copied from interface: ISafeIntrospector
Set the current list. Depending on the implementaiton, the list could contain Properties, References, or Services. Specific implementations of this interface will know what to expect as implementations are only anonymous inner classes.

Specified by:
setTargetList in interface ISafeIntrospector
Parameters:
aList - A list of either Properties, References, or Services (or empty).

handleException

public void handleException(java.lang.Throwable exception)
Specified by:
handleException in interface org.eclipse.core.runtime.ISafeRunnable