|
Re: Unmodifiable model [message #396837 is a reply to message #396835] |
Wed, 16 November 2005 18:53 |
Ed Merks Messages: 33133 Registered: July 2009 |
Senior Member |
|
|
Brad,
You could add an EContentAdapter that throws an exception for any change
that it sees. Something like an ChangeRecorder could be used to do the
same thing, and could be used to undo the change to restore the state.
Brad Townsend wrote:
>
> I'm writing a plug-in that uses an EMF model and that model will be
> accessible through an extension point. While my plugin needs to modify
> the model, I only intend to provide read-only access through the
> extension point.
>
> Is there a mechanism in EMF that can create an unmodifiable model
> reference from an EMF model? The functionality I'm looking for would
> be similar to the Java API method
> java.util.Collections.unmodifiableCollection(Collection c) but for EMF.
>
> Thanks,
> -Brad
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 1.85697 seconds