Set GRID page not editable
Posted: Thu Sep 10, 2015 6:07 pm
Hello,
I want to know how I must cast the editorAccess.getCurrentPage() to set grid page not editable ?
Thanks in advance for your help.
Sébastien.L
I want to know how I must cast the editorAccess.getCurrentPage() to set grid page not editable ?
Code: Select all
if (url != null) {
final boolean isEditable = EditorTabsMap.getInstance().get(url).isEditable();
WSEditor editorAccess = pluginWorkspaceAccess.getEditorAccess(url, PluginWorkspace.MAIN_EDITING_AREA);
if (editorAccess != null) {
if (EditorPageConstants.PAGE_AUTHOR.equals(editorAccess.getCurrentPageID())) {
((WSAuthorEditorPage) editorAccess.getCurrentPage()).setEditable(isEditable);
} else if (EditorPageConstants.PAGE_TEXT.equals(editorAccess.getCurrentPageID())) {
((WSTextEditorPage) editorAccess.getCurrentPage()).setEditable(isEditable);
} else if (EditorPageConstants.PAGE_GRID.equals(editorAccess.getCurrentPageID())) {
?????
}
}
}
Sébastien.L