|
|
|
Re: "Jump into text editor" [message #154736 is a reply to message #154286] |
Wed, 10 October 2007 15:16  |
Eclipse User |
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
well, starting from the beginning this implies that the element was
already saved- which you can't know. On the other hand, I believe there
is a better approach which prints out how it WOULD be saved in XMI.
1) create a resource, if necessary make sure that you use the same
Serializer.
2) add your element
3) Resource.save offers you _an output stream_ (e.g.Syso) as first
argument, second should be Collections.EMPTY_MAP.
Try the simple EMF example for help, just don't forget to add System.out
to resourceInstance.save()
gl
stefan
Martin Schmidt schrieb:
> Its me again ;)
> Another problem:
> IŽve got my ready built GMF Editor. Nearly everything works fine.
> Now i want to have the possibility to double click any element on the canvas
> (whether it is in an compartment or directly on the canvas) to bring me up
> the XMI-File textual. In the opened window, the "Code" for the element I
> double-clicked should be highlighted.
> Sounds very exceeding, i know.
>
> I dont think that somebody can tell me the whole approach. But it would be
> nice if somebody can tell me, if it is possible to implement and which
> tutorials or newsgroup threads i have to read for this issue. (i am still
> "beginner" and, so far, i did nearly everything without "hard-coding")
>
> I would be glad if somebody could help me...
> Martin
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHDSUcIYVWjMSpDwwRAnSGAJ41TdxOFSrScCNzdt2csIJvwkL5tQCg 99xK
GzMVqcNf/i3W2ylClW5kB7Y=
=DQxH
-----END PGP SIGNATURE-----
|
|
|
Powered by
FUDForum. Page generated in 0.09003 seconds