Zest: Hints about Integrating Context Menus / New Connections? [message #240649] |
Sat, 12 January 2008 20:31  |
Eclipse User |
|
|
|
Ian et. al..
Thanks for your pointers -- worked perfectly!
I'm liking the speed and ease of development enough that I'm thinking
of using as a suplementary editor. I'm pretty confident I can wire in a
context menu easily but not so confident about drawing new connections.
Is this way outside of the Zest usage target?
|
|
|
|
Re: Zest: Hints about Integrating Context Menus / New Connections? [message #240975 is a reply to message #240721] |
Sat, 26 January 2008 21:13  |
Eclipse User |
|
|
|
On 2008-01-14 22:04:10 -0700, Ian Bull <irbull@cs.uvic.ca> said:
> The context menu should be pretty easy. In the PDE Viz viewer [1] I
> added one simply on the view:
Yep, got it.. actually I have some minor issues with integration with
the EMF editor but that has nothing to do with Zest...
> As for adding new connections, drawing them (i.e. with a palette) opens
> up a whole can of worms. Actually, if you want to add connections,
> then what about nodes? This is really what GEF is ideal at. If you
> want to add them "programmatically", this shouldn't be to hard. (Just
> create a new GraphConnection).
Yeah, the whole palette thing is exactly what I was hoping to avoid. :)
(OTOH I really like the simple check-boxes and so on you have for the
PDE vis.) Elegant to develop == elegant for users, I think. My agenda
with these tools is precisely to avoid the kind of fiddly UML ish or
every-possible-situation-covered GMF stuff -- not that that isn't great
but its just too heavyweight. I'm aiming for an auto-layout kind of
situation where people can highlight and move nodes around to visualize
thigns but none of that is persisted. Context menus already support the
creation of nodes, so I really am thinking of some kind of
shift-drag-click thing. But I assume that I can do that very simply by
listening for a key-mod mouse-click on source, perhaps creating a
tracking arrow figure, and taking the target from the node at mouse
release, if any.
|
|
|
Powered by
FUDForum. Page generated in 0.03858 seconds