Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » clean editor thinks it's dirty
clean editor thinks it's dirty [message #673816] Tue, 24 May 2011 16:16 Go to next message
Eclipse User
Originally posted by: Roy Benjamin

I load schema from a DB, displayed and edited in a diagram.

1) get schema from DB
2) create EMF model from schema
3) write model to temp file
4) use the URI of the temp file to open the diagram editor

voila... the editor has *<xxxxx> and believes it needs to be saved.

I'm not sure why this is happening.

Any clues MUCH appreciated

Thanks
Roy
Re: clean editor thinks it's dirty [message #674389 is a reply to message #673816] Thu, 26 May 2011 14:04 Go to previous message
Eclipse User
Originally posted by: Roy Benjamin

I found my problem. (sic)

I was calling:
URI.createURI("file://somePath/someFile.extension");

Calling:
URI.createFileURI("file://somePath/someFile.extension");

Fixed the issue!


On 5/24/2011 1:16 PM, Roy Benjamin wrote:
>
> I load schema from a DB, displayed and edited in a diagram.
>
> 1) get schema from DB
> 2) create EMF model from schema
> 3) write model to temp file
> 4) use the URI of the temp file to open the diagram editor
>
> voila... the editor has *<xxxxx> and believes it needs to be saved.
>
> I'm not sure why this is happening.
>
> Any clues MUCH appreciated
>
> Thanks
> Roy
Previous Topic:Let's solve once for all the Eclipse GMF copy-paste problem and then forget about it
Next Topic:Updating Diagram Editor Part Name
Goto Forum:
  


Current Time: Thu Jul 31 19:51:45 EDT 2014

Powered by FUDForum. Page generated in 0.01513 seconds