|
|
Re: How i do for start a Visual Editor by code or extension? [message #142804 is a reply to message #142795] |
Thu, 08 November 2007 01:21 |
Eclipse User |
|
|
|
Originally posted by: caye5200.yahoo.com.cn
Yves YANG,
thank you, i can open ve using this method,
EditorUtility.openInEditor(IEditorInput input, String editorID, boolean
activate)
editorID is
" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor "
but ,i have anthor problem, i try get a EditorPart,
BundleHost
bundle=(BundleHost)org.eclipse.ve.internal.java.core.JavaVEP lugin.getPlugin().getBundle()
className=" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart "
classInstance=bundle.loadClass(className);
visualPart=(JavaVisualEditorPart)classInstance.newInstance() ;
visualPart.init(IEditorSite site, IEditorInput input)
the method argument "site" how can i do to get?
"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:fgtkrv$ibu$1@build.eclipse.org...
> To Open VE, you need to open a Java file. with VE editor ID using
> IDE.openEditor(IWorkbenchPage page, IFile input,
> String editorId);
>
> Regards
>
> Yves YANG
>
> -----
>
> http://www.soyatec.com/eface
>
> "zxc" <caye5200@yahoo.com.cn> wrote in message
> news:fgrrcm$qqk$1@build.eclipse.org...
>> Hello:
>> when we create a visual class ,visual editor can start,
>> now i want start a visual editor by code or extension .
>> how i do?
>>
>
>
>
|
|
|
|
|
|
Re: How i do for start a Visual Editor by code or extension? [message #143132 is a reply to message #142765] |
Fri, 23 November 2007 15:44 |
Eclipse User |
|
|
|
Originally posted by: oliver.mietrach.macio.de
I do it by opening a .jave-File by Code. Here is my Snippet
IProject project = ResourcesPlugin.getWorkspace().getRoot()
.getProject("project");
IFile iFile = project.getFile("myFile.java");
IWorkbenchPage page = this.getWindowConfigurer().getWindow()
.getActivePage();
page.openEditor(new FileEditorInput(iFile),
" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor ");
This will do it, I hope.
Greets Oliver
zxc schrieb:
> Hello:
> when we create a visual class ,visual editor can start,
> now i want start a visual editor by code or extension .
> how i do?
>
|
|
|
Re: How i do for start a Visual Editor by code or extension? [message #143140 is a reply to message #143132] |
Fri, 23 November 2007 15:47 |
Eclipse User |
|
|
|
Originally posted by: oliver.mietrach.macio.de
Excuse me I saw the answers too late
Oliver Mietrach schrieb:
> I do it by opening a .jave-File by Code. Here is my Snippet
>
> IProject project = ResourcesPlugin.getWorkspace().getRoot()
> .getProject("project");
> IFile iFile = project.getFile("myFile.java");
> IWorkbenchPage page = this.getWindowConfigurer().getWindow()
> .getActivePage();
> page.openEditor(new FileEditorInput(iFile),
> " org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor ");
>
>
> This will do it, I hope.
>
> Greets Oliver
>
> zxc schrieb:
>> Hello:
>> when we create a visual class ,visual editor can start,
>> now i want start a visual editor by code or extension .
>> how i do?
>>
|
|
|
|
Re: How i do for start a Visual Editor by code or extension? [message #616854 is a reply to message #142795] |
Thu, 08 November 2007 01:21 |
Eclipse User |
|
|
|
Originally posted by: caye5200.yahoo.com.cn
Yves YANG,
thank you, i can open ve using this method,
EditorUtility.openInEditor(IEditorInput input, String editorID, boolean
activate)
editorID is
" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor "
but ,i have anthor problem, i try get a EditorPart,
BundleHost
bundle=(BundleHost)org.eclipse.ve.internal.java.core.JavaVEP lugin.getPlugin().getBundle()
className=" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart "
classInstance=bundle.loadClass(className);
visualPart=(JavaVisualEditorPart)classInstance.newInstance() ;
visualPart.init(IEditorSite site, IEditorInput input)
the method argument "site" how can i do to get?
"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:fgtkrv$ibu$1@build.eclipse.org...
> To Open VE, you need to open a Java file. with VE editor ID using
> IDE.openEditor(IWorkbenchPage page, IFile input,
> String editorId);
>
> Regards
>
> Yves YANG
>
> -----
>
> http://www.soyatec.com/eface
>
> "zxc" <caye5200@yahoo.com.cn> wrote in message
> news:fgrrcm$qqk$1@build.eclipse.org...
>> Hello:
>> when we create a visual class ,visual editor can start,
>> now i want start a visual editor by code or extension .
>> how i do?
>>
>
>
>
|
|
|
|
|
|
Re: How i do for start a Visual Editor by code or extension? [message #616887 is a reply to message #142765] |
Fri, 23 November 2007 15:44 |
Eclipse User |
|
|
|
Originally posted by: oliver.mietrach.macio.de
I do it by opening a .jave-File by Code. Here is my Snippet
IProject project = ResourcesPlugin.getWorkspace().getRoot()
.getProject("project");
IFile iFile = project.getFile("myFile.java");
IWorkbenchPage page = this.getWindowConfigurer().getWindow()
.getActivePage();
page.openEditor(new FileEditorInput(iFile),
" org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor ");
This will do it, I hope.
Greets Oliver
zxc schrieb:
> Hello:
> when we create a visual class ,visual editor can start,
> now i want start a visual editor by code or extension .
> how i do?
>
|
|
|
Re: How i do for start a Visual Editor by code or extension? [message #616888 is a reply to message #143132] |
Fri, 23 November 2007 15:47 |
Eclipse User |
|
|
|
Originally posted by: oliver.mietrach.macio.de
Excuse me I saw the answers too late
Oliver Mietrach schrieb:
> I do it by opening a .jave-File by Code. Here is my Snippet
>
> IProject project = ResourcesPlugin.getWorkspace().getRoot()
> .getProject("project");
> IFile iFile = project.getFile("myFile.java");
> IWorkbenchPage page = this.getWindowConfigurer().getWindow()
> .getActivePage();
> page.openEditor(new FileEditorInput(iFile),
> " org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itor ");
>
>
> This will do it, I hope.
>
> Greets Oliver
>
> zxc schrieb:
>> Hello:
>> when we create a visual class ,visual editor can start,
>> now i want start a visual editor by code or extension .
>> how i do?
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02171 seconds