Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Load a Model Read Only
Load a Model Read Only [message #417174] Thu, 28 February 2008 18:44 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hey,

I have to load an UML model but only want to inspect it with custom code
- I don't want to accidentally modify the model when I get tired as this
could have catastrophic results... Is there an option that throws
Exceptions when calling modifying operations?

Felix
Re: Load a Model Read Only [message #417176 is a reply to message #417174] Thu, 28 February 2008 18:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Felix,

Just don't save it and you'll only ever be looking at a local copy of
it. You could attach an EContentAdapter that throws an exception if you
accidentally make a change and want to know about that.


Felix Dorner wrote:
> Hey,
>
> I have to load an UML model but only want to inspect it with custom
> code - I don't want to accidentally modify the model when I get tired
> as this could have catastrophic results... Is there an option that
> throws Exceptions when calling modifying operations?
>
> Felix


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Load a Model Read Only [message #417180 is a reply to message #417176] Thu, 28 February 2008 19:37 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hey Ed,

Thats perfectly sufficient.

> You could attach an EContentAdapter that throws an exception if you
> accidentally make a change and want to know about that.

Thanks,
Felix
Previous Topic:RMI Bridge to IEditingDomainProvider
Next Topic:Default child creation setting for [1] Containment reference
Goto Forum:
  


Current Time: Thu Apr 25 09:53:59 GMT 2024

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

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

Back to the top