[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.ve] Re: Opening the jave class in ve programmatically

There is API to do this in Eclipse, but you need to know the EditorID for the java visual editor. The id is currently an internal id, so it may change in the future, but this should do it:

    public static IEditorPart openEditor(
      IWorkbenchPage page,
      IFile input,
      String editorId) throws PartInitException {

Use "org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEditor" for the editor id.

--
Thanks,
Rich Kulp