public interface IEditableContentExtensionExtends the
IEditableContentinterface to support validate edit. Clients should only use this interface if they obtained the content from an
IStreamContentAccessor. If content was obtained through an
ISharedDocumentAdapterthen validation should be performed through the
- See Also:
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
isReadOnly()Return whether the typed element being displayed is read-only. a read-only element will require a call to validateEdit before the element can be modified on disk.
validateEdit(Shell shell)If the element is read-only, this method should be called to attempt to make it writable.
- whether the typed element is read-only
validateEditIf the element is read-only, this method should be called to attempt to make it writable.
shell- a shell used to prompt the user if required.
- a status object that is
OKif things are fine, otherwise a status describing reasons why modifying the given files is not reasonable. A status with a severity of
CANCELis returned if the validation was canceled, indicating the edit should not proceed.