I have a eclipse plugin project, in this project i have to change perspective java to web and web to java. at the time web to java accordingly, i want to open this file in editor directly. For .java file i have no issue to open by this code,
openEditor(projectFile,"org.eclipse.jdt.ui.CompilationUnitEditor",page, filePath);
But when i want to open .xml, maximum time i was failed to open this file and got message "this file does not exist in path", but file has present already.
So, is there is any need or reference for change .xml file "org.eclipse.jdt.ui.CompilationUnitEditor" on this command. please help. Advance Thanks.