public final class TLspEditOperation extends Object
An event that represents a high-level description of an editing interaction with an object.
The editing operation contains the following things:
edit operation type
the
editing property key
as a key, and the operation descriptor as a value. The property
key can be retrieved from the editing operation typeConstructor and Description |
---|
TLspEditOperation(TLspEditOperationType aType,
Map<Object,Object> aProperties)
Creates a new edit operation.
|
Modifier and Type | Method and Description |
---|---|
Map<Object,Object> |
getProperties()
Returns an immutable map containing the edit operation properties.
|
TLspEditOperationType |
getType()
Returns the edit operation type
|
public TLspEditOperation(TLspEditOperationType aType, Map<Object,Object> aProperties)
aType
- the edit operation typeaProperties
- the properties. These will be wrapped in an immutable map, so that
external access is limited to read-only. Note that this map
should contain at least the editing operation descriptor, with
the
editing property key
as a key, and the operation descriptor as a value.public TLspEditOperationType getType()
public Map<Object,Object> getProperties()
the
editing property key
as a key, and the operation descriptor as a value.
To retrieve the editing descriptor, use TLspEditOperationType.getPropertyKey() as
a key.