Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » preventing use of "open file"
preventing use of "open file" [message #757881] Thu, 17 November 2011 15:14 Go to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,
Users of Geppetto stumbled over the problems of opening external files
(i.e. use "open file" and pick a file somewhere in the file system).

This surfaced as a NPE in
DefaultFoldingStructureProvider.handleProjectionEnabled (as reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=363986).

Rather than getting a NPE, I would like to intervene at an earlier
point, and pop a dialog that tells the user that "Opening an external
file is not supported - use a linked file or folder in a project instead.".

Where would a good place to insert this be?

Regards
- henrik
Re: preventing use of "open file" [message #757882 is a reply to message #757881] Thu, 17 November 2011 15:29 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Or perhaps divert the open of the DSL file to a plain text editor.
Anyone has any tips how to do that?

- henrik

On 11/17/11 4:14 PM, Henrik Lindberg wrote:
> Hi,
> Users of Geppetto stumbled over the problems of opening external files
> (i.e. use "open file" and pick a file somewhere in the file system).
>
> This surfaced as a NPE in
> DefaultFoldingStructureProvider.handleProjectionEnabled (as reported in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=363986).
>
> Rather than getting a NPE, I would like to intervene at an earlier
> point, and pop a dialog that tells the user that "Opening an external
> file is not supported - use a linked file or folder in a project instead.".
>
> Where would a good place to insert this be?
>
> Regards
> - henrik
Previous Topic:add external jar in xtext ui folder
Next Topic:update site for Xdoc
Goto Forum:
  


Current Time: Tue Mar 02 06:01:34 GMT 2021

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

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

Back to the top