I have a class which extends the TextEditor for creating an editor view. I have done all the required entries, like in plugin.xml. Now I am getting the following error in opening the editor…
org.eclipse.core.runtime.AssertionFailedException: null argument:The editor input must have a non-null name
I am using the following code for opening the editor.
IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.openEditor(input, xyz.ID);
The following code is the correct solution for the problem.