Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Trying to incorporate WST XML editor into RCP application and open for a disk file
Trying to incorporate WST XML editor into RCP application and open for a disk file [message #227546] Thu, 05 February 2009 23:42 Go to next message
Lawrence G is currently offline Lawrence GFriend
Messages: 12
Registered: July 2009
Junior Member
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 18:17 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Publish deletes read-only files
Next Topic:API for new servers
Goto Forum:
  


Current Time: Tue Mar 19 10:09:52 GMT 2024

Powered by FUDForum. Page generated in 0.02590 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top