org.eclipse.stp.core.infrastructure.emf
Class DefaultScribblerDomain

java.lang.Object
  extended by org.eclipse.stp.core.infrastructure.emf.DefaultScribblerDomain
All Implemented Interfaces:
IScribblerDomain
Direct Known Subclasses:
GeneralScribblerDomain, SOACoreScribblerDomain

public abstract class DefaultScribblerDomain
extends java.lang.Object
implements IScribblerDomain

A default implementation of IScribblerDomain. Clients are required to implement IScribblerDomain.getEditModelLabel() and IScribblerDomain.getResourceDescriptors().

Clients are permitted to subclass this implementation directly.


Constructor Summary
DefaultScribblerDomain()
           
 
Method Summary
 void addTechnologyFlavorLifecycle(ITechnologyFlavorLifecycle flavorManager)
          The Technology Flavor Lifecycle will receive callbacks from the Scribbler to save(), discard(), or revert() its modfications in step with the scribbler's management of EMF resources.
 java.lang.String getLabel()
           
 ITechnologyFlavorLifecycle getTechnologyFlavorLifecycle(java.lang.String technologyFlavorId)
          The following method should not be invoked by any client other than the IEditModelScribbler.
 ITechnologyFlavorLifecycle[] getTechnologyFlavorLifecycles()
          The following method should not be invoked by any client other than the IEditModelScribbler.
 boolean isContained(IResourceDescriptor aResourceDescriptor)
          Returns true if the aResourceDescriptor is contained by this IEditingDomain.
 boolean matches(IUndoContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.stp.core.infrastructure.emf.IScribblerDomain
getEditModelLabel, getResourceDescriptors
 

Constructor Detail

DefaultScribblerDomain

public DefaultScribblerDomain()
Method Detail

isContained

public boolean isContained(IResourceDescriptor aResourceDescriptor)
Description copied from interface: IScribblerDomain
Returns true if the aResourceDescriptor is contained by this IEditingDomain.

Replaces EditModel.isInterrestedInResource().

Specified by:
isContained in interface IScribblerDomain
Returns:

addTechnologyFlavorLifecycle

public void addTechnologyFlavorLifecycle(ITechnologyFlavorLifecycle flavorManager)
Description copied from interface: IScribblerDomain
The Technology Flavor Lifecycle will receive callbacks from the Scribbler to save(), discard(), or revert() its modfications in step with the scribbler's management of EMF resources.

Specified by:
addTechnologyFlavorLifecycle in interface IScribblerDomain
See Also:
ITechnologyFlavorLifecycle

getTechnologyFlavorLifecycle

public ITechnologyFlavorLifecycle getTechnologyFlavorLifecycle(java.lang.String technologyFlavorId)
Description copied from interface: IScribblerDomain
The following method should not be invoked by any client other than the IEditModelScribbler.

Specified by:
getTechnologyFlavorLifecycle in interface IScribblerDomain
Returns:

getTechnologyFlavorLifecycles

public ITechnologyFlavorLifecycle[] getTechnologyFlavorLifecycles()
Description copied from interface: IScribblerDomain
The following method should not be invoked by any client other than the IEditModelScribbler.

Specified by:
getTechnologyFlavorLifecycles in interface IScribblerDomain
Returns:

matches

public boolean matches(IUndoContext context)

getLabel

public java.lang.String getLabel()