|
Hiding a editor programmatically in eclipse rcp -
07-10-2008, 10:46 AM
Hi,
I am new to this forum,
facing a problem in hiding a editor,
i have tried in this way
IEditorReference[] editors = page.getEditorReferences();
if(editors!=null){
for (IEditorReference reference : editors) {
if (!(reference.getId().equals("MyEditorID")) {
IEditorPart editorPart = reference.getEditor(false);
if(editorPart.isDirty()){
page.closeEditor(editorPart, true);
}else{
page.closeEditor(editorPart, false);
}
}
}
I don't want to close the editor, is there any way to hide the editor ?
please help ...
Thanks in Advance
Manoj Gautam
|