I extended from org.eclipse.ui.editors and defined the editor-id in plugin.xml as "MyEditorId". I wrote corresponding editor class. Then I tried to open the editor from a view with this code.
page.openEditor(input, "MyEditorId");
But I am getting "PartInitException". i.e apllication is not recognising the editor by it's id. I have checked that there is no spelling mistake in the referenced editor-id. Why is editor not getting recognised?