org.eclipse.stp.core.internal.introspection.module
Class ModuleComponentTypeIntrospector
java.lang.Object
org.eclipse.stp.core.introspection.AbstractComponentTypeIntrospector
org.eclipse.stp.core.internal.introspection.module.ModuleComponentTypeIntrospector
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, IComponentTypeIntrospector
public class ModuleComponentTypeIntrospector
- extends AbstractComponentTypeIntrospector
- implements IComponentTypeIntrospector
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Method Summary |
org.eclipse.core.runtime.IStatus |
dispose()
Release any resources that were required to introspect the implementation
model. |
org.eclipse.core.runtime.IStatus |
hasValidComponentType()
This method will only be called after init() and after the introspector
has been added to the ComponentType as an adapter, so clients will also
have access to a the ComponentType model object via
AbstractComponentTypeIntrospector.getComponentType() if clients
choose to subclass that the AbstractComponentTypeIntrospector
type. |
org.eclipse.core.runtime.IStatus |
onModelChange(int theFieldType,
int theChangeType,
java.lang.Object theChangedObject)
Respond to a change in the list of values for a given field type. |
java.lang.Object |
resolveImplementation()
|
org.eclipse.core.runtime.IStatus |
save()
Persist the changes made to the underlying model through this adaptation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Adapter |
getTarget, isAdapterForType, notifyChanged, setTarget |
ModuleComponentTypeIntrospector
public ModuleComponentTypeIntrospector()
hasValidComponentType
public org.eclipse.core.runtime.IStatus hasValidComponentType()
- Description copied from interface:
IComponentTypeIntrospector
- This method will only be called after init() and after the introspector
has been added to the ComponentType as an adapter, so clients will also
have access to a the ComponentType model object via
AbstractComponentTypeIntrospector.getComponentType()
if clients
choose to subclass that the AbstractComponentTypeIntrospector
type.
- Specified by:
hasValidComponentType
in interface IComponentTypeIntrospector
- Returns:
- An OK Status if the component type is valid, or an error status
otherwise. The status will automatically be added to the model
object if it is !isOK()
onModelChange
public org.eclipse.core.runtime.IStatus onModelChange(int theFieldType,
int theChangeType,
java.lang.Object theChangedObject)
- Description copied from interface:
IComponentTypeIntrospector
- Respond to a change in the list of values for a given field type. The
types of fields are available as
SCAPackage.SERVICE
,
SCAPackage.COMPONENT_TYPE__REFERENCES
,
or SCAPackage.COMPONENT_TYPE__PROPERTIES
.
- Specified by:
onModelChange
in interface IComponentTypeIntrospector
- Parameters:
theFieldType
- One of SCAPackage.SERVICE
,
SCAPackage.COMPONENT_TYPE__REFERENCES
,
or
SCAPackage.COMPONENT_TYPE__PROPERTIES
.
Indicates the type of changed object (SCAPackage.SERVICE
for Service
,
SCAPackage.COMPONENT_TYPE__REFERENCES
for Reference
, and
SCAPackage.COMPONENT_TYPE__PROPERTIES
for Property
).theChangeType
- One of Notification.ADD
or
Notification.REMOVE
.theChangedObject
- The object that was added or removed. Check the value of
theFieldType
to determine the type.
- Returns:
- A status to indicate whether the update to the implementation
model succeeded.
save
public org.eclipse.core.runtime.IStatus save()
- Description copied from interface:
IComponentTypeIntrospector
- Persist the changes made to the underlying model through this adaptation.
- Specified by:
save
in interface IComponentTypeIntrospector
- Returns:
- A status to indicate whether the save succeeded or failed.
dispose
public org.eclipse.core.runtime.IStatus dispose()
- Description copied from interface:
IComponentTypeIntrospector
- Release any resources that were required to introspect the implementation
model.
- Specified by:
dispose
in interface IComponentTypeIntrospector
- Returns:
- A status to indicate whether the save succeeded or failed.
resolveImplementation
public java.lang.Object resolveImplementation()
- Specified by:
resolveImplementation
in interface IComponentTypeIntrospector
- Returns:
- The Implementation for the underlying ComponentType.