Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Does XText support opening files outside of workspace?
Does XText support opening files outside of workspace? [message #628877] Fri, 24 September 2010 14:58 Go to next message
Samantha Chan is currently offline Samantha ChanFriend
Messages: 60
Registered: July 2009
Member
Hi all,

I tried to open a local file that is outside of a workspace. But the editor fails to open. It looks like the XTextDocumentProvider extends from FileDocumentProvider, which assumes that we are always dealing with an IFile. Therefore, the default implementation will not support external files. Is this a correct assumption?

And if I want to support opening external file, I must provide a custom implementation of document provider?


Thanks...
Samantha
Re: Does XText support opening files outside of workspace? [message #628896 is a reply to message #628877] Fri, 24 September 2010 16:17 Go to previous messageGo to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
no not yet see ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=289212 )
But you can mimic it by creating a linked file into the workspace that links to the external file.

Re: Does XText support opening files outside of workspace? [message #628915 is a reply to message #628896] Fri, 24 September 2010 17:02 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 9/24/10 6:17 PM, seb.fr wrote:
> no not yet see ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=289212 )
> But you can mimic it by creating a linked file into the workspace that
> links to the external file.
>
>
And if you are interested in looking at an implementation that uses
automatic linking, I posted earlier in this forum about the solution
used in eclipse b3.

Regards
- henrik
Previous Topic:Project wizard in exported plug-ins
Next Topic:Extend EMF classes generated by xText
Goto Forum:
  


Current Time: Wed Apr 24 17:51:07 GMT 2024

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

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

Back to the top