public abstract class AbstractBasePattern extends java.lang.Object implements IFeatureProviderHolder
AbstractPattern
or
AbstractConnectionPattern
instead.Constructor and Description |
---|
AbstractBasePattern() |
Modifier and Type | Method and Description |
---|---|
PictogramElement |
add(IAddContext context)
Clients must override this method to provide the functionality to add an
existing domain object to a diagram.
|
boolean |
canAdd(IAddContext context)
Clients must override this method to indicate the framework that this
pattern can add a domain object to the diagram.
|
IFeatureProvider |
getFeatureProvider()
Returns the feature provider for this pattern.
|
void |
setFeatureProvider(IFeatureProvider featureProvider)
Sets the feature provider for this pattern.
|
public PictogramElement add(IAddContext context)
IAdd.add(IAddContext)
method. The default implementation
simply does nothing and returns null
.context
- The add context holding information about the added domain
object.public boolean canAdd(IAddContext context)
IAdd.canAdd(IAddContext)
method. The default
implementation simply returns false
.context
- The add context holding information about the added domain
object.true
, if the domain object can be added,
false
otherwise.public IFeatureProvider getFeatureProvider()
getFeatureProvider
in interface IFeatureProviderHolder
public void setFeatureProvider(IFeatureProvider featureProvider)
featureProvider
- The new featureProvider