Trying to incorporate WST XML editor into RCP application and open for a disk file [message #227546] |
Thu, 05 February 2009 18:42  |
Eclipse User |
|
|
|
Hello--looking around for a simple code sample of invoking the WST XML
editor from an RCP application that has added in the WTP plug-ins. Can
anyone point me at a code sample that opens up the WST XML Editor given
a particular file on the disk? I've trolled around the web for several
days now, and have most of the information around incorporating the
editor, but it's seeing an actual example which could get me across the
finish line.
Many thanks...Lawrence
|
|
|
Re: Trying to incorporate WST XML editor into RCP application and open for a disk file [message #227573 is a reply to message #227546] |
Mon, 09 February 2009 13:17  |
Eclipse User |
|
|
|
Lawrence Gerstley wrote:
> Hello--looking around for a simple code sample of invoking the WST XML
> editor from an RCP application that has added in the WTP plug-ins. Can
> anyone point me at a code sample that opens up the WST XML Editor given
> a particular file on the disk? I've trolled around the web for several
> days now, and have most of the information around incorporating the
> editor, but it's seeing an actual example which could get me across the
> finish line.
>
> Many thanks...Lawrence
It shouldn't be significantly different from opening any other
editor on a file on disk. You'll probably want to dig through how
org.eclipse.ui.ide.IDE.openEditor(IWorkbenchPage, URI, String,
boolean) [from the org.eclipse.ui.ide plug-in] is implemented,
assuming you can't call it directly.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
|
|
|
Powered by
FUDForum. Page generated in 0.03760 seconds