Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » "Jump into text editor"
"Jump into text editor" [message #154286] Tue, 09 October 2007 05:37 Go to next message
Eclipse UserFriend
Originally posted by: martinschmidt.83.web.de

Its me again ;)
Another problem:
I
Re: "Jump into text editor" [message #154575 is a reply to message #154286] Wed, 10 October 2007 04:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martinschmidt.83.web.de

Nobody who has a clever idea? :(

For the moment it would be enough to have the possibility to "jump" outside
the editor by doing a double click on a node; perhaps calling anything
outside the editor...

Hope somebody will answer me.


"Martin Schmidt" <martinschmidt.83@web.de> schrieb im Newsbeitrag
news:fefi5m$334$1@build.eclipse.org...
> Its me again ;)
> Another problem:
> I
Re: "Jump into text editor" [message #154591 is a reply to message #154575] Wed, 10 October 2007 04:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Martin!

I don't know if this will help, but if you do diagram
partitioning you can double-click on a node in order to open
another diagram editor. Its called an "OpenDiagramBehaviour".

Look here:
< http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg06184.
html>

Maybe you can analyze what happens there and alter that for
your needs.

Cheers,
Nicolai


--

I'm using an evaluation license of nemo since 37 days.
You should really try it!
http://www.malcom-mac.com/nemo
Re: "Jump into text editor" [message #154736 is a reply to message #154286] Wed, 10 October 2007 15:16 Go to previous message
Eclipse UserFriend
-----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-----
Previous Topic:Bug? please confirm
Next Topic:Stale root transaction causes GMF application to stop processing operations
Goto Forum:
  


Current Time: Fri Jul 18 00:07:35 EDT 2025

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

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

Back to the top