I just work with rcp, could you tell / give me more Informations about,
how to do that, look the follow code, it works fine in my own rcp program.
but if i change the editor ID to
org.eclipse.weaver.GlobalWeaverEditor,then i get error message" unable to
open editor, unknow Editor ID" or " not a weaving file...."
I want to ask, is there Possible, direct use AMW Editor in my own program.
or not?
thank you!
IWorkspaceRoot wr = ResourcesPlugin.getWorkspace().getRoot();
IProject project = wr.getProject("state");
IPath location = new Path(name);
IWorkbenchPage page = getSite().getPage();
if (!project.isOpen())
project.open(null);
IFolder folder = project.getFolder("gofState1");
IFile file = folder.getFile(location.lastSegment());
if (page != null)
{
IDE.openEditor(page, new FileEditorInput(file),
//under is Editor ID, if i change to globalweavereditor, then there is
Problem.
"org.eclipse.jdt.ui.CompilationUnitEditor" ,
true);
}