public interface ISourceSynchronizationProvider
extends org.eclipse.gmf.runtime.common.core.service.IProvider
CodeProvider
extension point. All artifacts registered against
this extension point should implement this interface.SourceSynchronizationService
,
ModelChangeDelta
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXT_POINT_TAG
The Extension Point Schema Tag for the SourceSynchronizationProviders
Extension.
|
static java.lang.String |
HANDLER_ID_TAG
The Extension Point Schema Tag for the StructuredReferenceProviderId
element.
|
static java.lang.String |
ID_ATTRIBUTE_TAG
The Extension Point Schema Tag for the id attribute of the
StructuredReferenceProviderId element.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.gmf.runtime.common.core.command.ICommand |
emit(ModelChangeDelta delta)
Generates an
ICommand based on the provided
ModelChangeDelta that, when executed, will complete all
operations necessary to alter the corresponding domain element managed by
this provider implementation. |
static final java.lang.String EXT_POINT_TAG
static final java.lang.String HANDLER_ID_TAG
static final java.lang.String ID_ATTRIBUTE_TAG
org.eclipse.gmf.runtime.common.core.command.ICommand emit(ModelChangeDelta delta)
Generates an ICommand
based on the provided
ModelChangeDelta
that, when executed, will complete all
operations necessary to alter the corresponding domain element managed by
this provider implementation. The returned ICommand
must
not attempt to make changes to the Semantic or Notational models
directly. The command must also expect to be appended to an encapsulating
Compound command that may contain other ICommands
contributed by other providers registered against the
CodeProviders
extension point.
IMPORTANT: If the affected domain element is under source control, the generated ICommand's execute() method must ensure the file is writable (e.g. by performing a checkout if necessary) before modifying the domain element.
delta
- the ModelChangeDelta to be handled.