AuthorDocumentController isEditable method
Posted: Fri Jun 08, 2012 11:33 am
Hello,
Your JavaDoc says the following about the isEditable method in the AuthorDocumentController:
Is it maybe possible to also return false, when the XML file itself is readonly in the filesystem?
Currently I get the readonly state from the IEditorInput, which I pass to the Oxygen Editor, but I´d like to get this information also by using the isEditable method.
If this is a low-hanging fruit to implement this little feature, I would appreciate to have it. Otherwise we also can live with the current solution.
Regards,
Simon
Your JavaDoc says the following about the isEditable method in the AuthorDocumentController:
Code: Select all
boolean isEditable(AuthorNode node)
Test if a node is editable or not. A node is not editable for one of the following cases:
the CSS property 'editable' is to 'false';
the node is entirely included into a DELETED change marker.
Parameters:
node - The node to test if is editable.
Returns:
True if the node is editable, false otherwise.
Currently I get the readonly state from the IEditorInput, which I pass to the Oxygen Editor, but I´d like to get this information also by using the isEditable method.
If this is a low-hanging fruit to implement this little feature, I would appreciate to have it. Otherwise we also can live with the current solution.
Regards,
Simon