public interface IEditableContent
IStreamContentAccessor
interface.
Clients may implement this interface.
Note that implementing IEditableContent
does not
automatically mean that it is editable. An object is only editable if
it implements IEditableContent
and the isEditable
method returns true
.
IStreamContentAccessor
Modifier and Type | Method and Description |
---|---|
boolean |
isEditable()
Returns
true if this object can be modified. |
ITypedElement |
replace(ITypedElement dest,
ITypedElement src)
This method is called on a parent to add or remove a child,
or to copy the contents of a child.
|
void |
setContent(byte[] newContent)
Replaces the current content with the given new bytes.
|
boolean isEditable()
true
if this object can be modified.
If it returns false
the other methods of this API must not be called.true
if this object can be modifiedvoid setContent(byte[] newContent)
newContent
- this new contents replaces the old contentsITypedElement replace(ITypedElement dest, ITypedElement src)
add: | dest == null | src != null |
remove: | dest != null | src == null |
copy: | dest != null | src != null |
dest
- the existing child of this object to be replaced; if null
a new child can be added.src
- the new child to be added or replaced; if null
an existing child can be removed.dest
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.