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

Rashmi Ramachandra wrote:
Hi all,
I want to open my java class programmatically in eclipse visual editor. I was able to open the java editor by using the following code.


    IEditorPart javaEditor = JavaUI.openInEditor(type);
    ( type is an instance of ICompilationUnit)

Is something similar possible for visual editor? If any information is available on this front please forward it to me.

Thanks in advance.
-Rashmi


This method will eventually call
    IEditorPart editorPart= IDE.openEditor(p, file, activate);

.. have not tried it, but I assume that if the file was set to use the VE, it will open the VE.