org.eclipse.stp.core.resources
Class GeneralScribblerDomain

java.lang.Object
  extended by org.eclipse.stp.core.infrastructure.emf.DefaultScribblerDomain
      extended by org.eclipse.stp.core.resources.GeneralScribblerDomain
All Implemented Interfaces:
IScribblerDomain

public class GeneralScribblerDomain
extends DefaultScribblerDomain


Constructor Summary
GeneralScribblerDomain(IProject aProject)
           
 
Method Summary
 java.lang.String getEditModelLabel()
          The edit model label will be used to identify the relevant edit model that should be used when creating an IEditModelScribbler from this IScribblerDomain.
 IResourceDescriptor[] getResourceDescriptors()
          Defines the interesting set of ResourceDescriptors for this IEditingDomain.
 
Methods inherited from class org.eclipse.stp.core.infrastructure.emf.DefaultScribblerDomain
addTechnologyFlavorLifecycle, getLabel, getTechnologyFlavorLifecycle, getTechnologyFlavorLifecycles, isContained, matches
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralScribblerDomain

public GeneralScribblerDomain(IProject aProject)
Method Detail

getEditModelLabel

public java.lang.String getEditModelLabel()
Description copied from interface: IScribblerDomain
The edit model label will be used to identify the relevant edit model that should be used when creating an IEditModelScribbler from this IScribblerDomain. The edit model label should be specific to a logical collection of resources corresponding to a logical type of edit model. For example, assume we have a project named "FooBar" with three logical modules named "EjbM1", "EjbM2", and "WebM3" of types "ejb", "ejb", and "web". Then we might choose "FooBar.EjbM1.ejb" as the edit model label for the EJB edit model for FooBar/EjbM1. The WebM3 module might define two relevant edit model labels, one for the "web" stuff and one for the "webservice" stuff. We might label these two edit models as "FooBar.WebM3.web" and "FooBar.WebM3.webservice" respectively. Clients may rely on this method for establishing the specific IEditModel of interest when using IEditModelFactory.createScribblerForRead(IProject, IScribblerDomain). Clients must still explicitly supply an IEditModel label when using any API that takes an array of IScribblerDomains.

Returns:
A label for the edit model that should be used when creating IEditModelScribblers from this IScribblerDomain.

getResourceDescriptors

public IResourceDescriptor[] getResourceDescriptors()
Description copied from interface: IScribblerDomain
Defines the interesting set of ResourceDescriptors for this IEditingDomain.

Returns: