public interface IMDATextEditor
Each editor can be set to read-only mode.
Modifier and Type | Method and Description |
---|---|
IModelElement |
getElement()
Get the element corresponding to this editor.
|
File |
getFile()
Get the file opened in the editor.
|
String |
getId()
Get the editor's type.
|
boolean |
isDirty()
Indicates whether of not the editor's content has been modified.
|
void |
reload()
Reload the content of the editor from the corresponding file.
|
void |
save()
Save the content of the editor.
|
void |
setListener(IMDAEditorListener listener)
Set the listener who will be notified when a 'save' or 'close' event occurs.
|
void |
setReadonlyMode(boolean readOnly)
Change the editor's editon mode.
|
IModelElement getElement()
File getFile()
void save()
void reload()
boolean isDirty()
true
if the content of the editor has been modified.void setReadonlyMode(boolean readOnly)
readOnly
- true
if the editor is read only.void setListener(IMDAEditorListener listener)
listener
- The listener to attach to the editor.IMDAEditorListener
String getId()