|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDirectEditPart
Interface for providing necessary information to
MuvitorTreeDirectEditManager
and MuvitorTreeDirectEditPolicy
.
For AdapterTreeEditPart
s only!
If you want AdapterGraphicalEditPart
s or
AdapterConnectionEditPart
s to support direct editing you have to let
them implement IDirectEditPart.IGraphicalDirectEditPart
instead.
Nested Class Summary | |
---|---|
static interface |
IDirectEditPart.IGraphicalDirectEditPart
Interface for providing necessary information to MuvitorDirectEditManager and MuvitorDirectEditPolicy . |
Method Summary | |
---|---|
int |
getDirectEditFeatureID()
|
ICellEditorValidator |
getDirectEditValidator()
Optionally, you may pass a validator whose returned error message will be shown while direct editing. |
Method Detail |
---|
int getDirectEditFeatureID()
EPackage
that
describes the feature of this edit part's model to be edited by
the direct edit manager.ICellEditorValidator getDirectEditValidator()
null
or "" the current value of the cell editor is considered as valid.
Example:
return new ICellEditorValidator() { @Override public String isValid(Object value) { if (((String) value).length() % 2 == 1) { return "No names with odd length!"; } return null; };
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |