| 
| how to refer to the same instance of the model from different notation diagrams [message #44757] | Mon, 11 September 2006 08:20  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: marguu.libero.it 
 Hi all! I'd like to know how I can refer to the same instance of the mod=
 el  =
 
 from different instances of the diagram. I've modified the code of my g=
 mf  =
 
 editor to point always t the same model file, but i'd like to be able to=
 =
 
 operate on a unique instance in memory of the root element of the resour=
 ce  =
 
 associated with this file. How can I reach this aim?
 Thanks in advance
 
 -- =
 
 Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
| 
| SOLVED Re: how to refer to the same instance of the model from different notation diagrams [message #46644 is a reply to message #46598] | Tue, 12 September 2006 11:12  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: marguu.libero.it 
 Thanks a lot! Now I'll post the CommandStack problem in a new thread in =
 =
 
 order to give it a gretaer visibility!
 Thanks Angelo
 
 
 On Tue, 12 Sep 2006 14:44:24 +0000 (UTC), Alex Shatalin <vano@borland.co=
 m>  =
 
 wrote:
 
 > Hello Angelo,
 >
 >> "document.setContent(document.getContent());" works. In fact if I
 >> comment this line in the DemultiplexingListener.handleNotification()
 >> operation, I obtain the wanted result!
 >   This is a listener for change notifications from the underlying  =
 
 > resources. Once you change any of the resources loaded into the resour=
 ce  =
 
 > set associated with openned diagram, then  =
 
 > "document.setContent(document.getContent());" will be called to mark  =
 
 > editor is dirty.    I do not think you should mark only one editor as =
 =
 
 > "dirty" because if you'll try to open another diagram referencing the =
 =
 
 > same model instance (this is what are you going to do AFAIU) and make =
 =
 
 > any modifications in the underlying model - another diagram will be  =
 
 > changed as well, so editor should be marked as dirty. But you can try =
 it.
 >    Concerning CommandStack =E2=80=93 I suggest you to wait a bit and I=
 hope  =
 
 > somebody from the runtime team will post an answer to this question.  =
 
 > Runtime is just a part of GMF, but I=E2=80=99m not responsible for it =
 and simply  =
 
 > can not answer some concrete questions especially concerning command  =
 
 > processing. ;-)
 >
 > -----------------
 > Alex Shatalin
 >
 >
 
 
 
 -- =
 
 Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.06156 seconds