|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScribblerDomain
The IEditingDomain defines a set of ResourceDescriptors that it is interested
in. A ResourceDescriptor defines enough information to recognize a given EMF
Resource. When used together, IEditingDomains can create overlapping scopes
within a single
IEditModelScribbler
.
If multiple IEditModelScribblers are created with equivalent sets of
IEditingDomains, then the operations will share the same IUndoContext against
the command stack on the IEditModel. The IUndoContext determines the ability
for a an operation to be undone or redone. Calls to the undo/redo methods on
the IOperationHistory (see
IEditModel.getOperationHistory()
)
require an IUndoContext. If the IEditModelScribbler used for the call
(remember IEditModelScribbler is also an IUndoContext) matches another
instance of IEditModelScribbler with equivalent IEditingDomains, then the
operation from the other IEditModelScribbler will be undone.
The way in which IEditingDomains may be created is left open to the client of the IEditModel Framework. A default implementation of IEditingDomain will be provided that can be instantiated by clients. Clients can then create these objects as needed (say from a user click action) or based on other extensions (for instance in cases where an editor might provide extension points for extension sections or pages to specify other interesting resources like in the case of an EJB Editor that then picks up vendor-specific EJB-binding files).
IEditModelScribbler.close(IProgressMonitor)
)
which is triggered by the change in interest of the IEditingDomain.
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 |
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. |
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. |
Method Detail |
---|
java.lang.String getEditModelLabel()
IEditModelFactory.createScribblerForRead(IProject, IScribblerDomain)
.
Clients must still explicitly supply an IEditModel label when using any
API that takes an array of IScribblerDomains.
IResourceDescriptor[] getResourceDescriptors()
boolean isContained(IResourceDescriptor aResourceDescriptor)
Replaces EditModel.isInterrestedInResource().
aResourceDescriptor
-
void addTechnologyFlavorLifecycle(ITechnologyFlavorLifecycle flavorManager)
flavorManager
- ITechnologyFlavorLifecycle
ITechnologyFlavorLifecycle getTechnologyFlavorLifecycle(java.lang.String technologyFlavorId)
technologyFlavorId
-
ITechnologyFlavorLifecycle[] getTechnologyFlavorLifecycles()
technologyFlavorId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |