Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsConnections
https://www.eclipse.org/forums/index.php/mv/msg/235855/717277/#msg_717277
diagram includes some others, but they seem not existant).
The Manhattan type seems half baked, it that it is not very clever guessing orientations and in that it doest allow any manual retouching (other issues: it doesnt know to avoid objects, but this was to be expected, and I would live with that if I could manually do some corrections; and the angles are curved); for example
On the other side, the FreeFormConnection seems a little too sophisticated and particular (perhaps this comes for having been implemented with a particular use case in mind). In a typical graphical editor one does not frequently need/want connections with Bezier points, and would normally prefer something simpler, something like (say) the connections in the ecore diagram editor. Is there some way (perhaps creating another connection type?) to disable the "bezier points", and use plain intermediate connection points (rectilinear)?]]>Hernan Gonzalez2011-08-19T19:46:02-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/718435/#msg_718435
connection type was requested at one time, but at least so far we do not
know of any further requests in that area.
Feel free to create enhancement Bugzillas in case you feel you need
something additionally.
Michael
"Hernan" <forums-noreply@eclipse.org> wrote in message
news:j2mdtj$il5$1@news.eclipse.org...
> Looking at the Connection alternatives at Graphiti, it appear that the
> only alternatives are the "FreeFormConnection" and the
> "ManhattanConnection" (this pictogram
> http://www.eclipse.org/graphiti/images/pictograms.pdf includes some
> others, but they seem not existant).
> The Manhattan type seems half baked, it that it is not very clever
> guessing orientations and in that it doest allow any manual retouching
> (other issues: it doesnt know to avoid objects, but this was to be
> expected, and I would live with that if I could manually do some
> corrections; and the angles are curved); for
> http://img832.imageshack.us/img832/8403/manhattan.png
>
> On the other side, the FreeFormConnection seems a little too sophisticated
> and particular (perhaps this comes for having been implemented with a
> particular use case in mind). In a typical graphical editor one does not
> frequently need/want connections with Bezier points, and would normally
> prefer something simpler, something like (say) the connections in the
> ecore diagram editor. Is there some way (perhaps creating another
> connection type?) to disable the "bezier points", and use plain
> intermediate connection points (rectilinear)?]]>Michael Wenz2011-08-24T10:30:58-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/718475/#msg_718475
Michael Wenz wrote on Wed, 24 August 2011 07:30
Currently Graphiti only supports the mentioned connection types.
I was not exactly asking that Graphiti gives me more connection types, I was rather exploring the possibility of implementing myself them, or extending/modifying/customizing the existing ones.
]]>Hernan Gonzalez2011-08-24T13:06:20-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/719244/#msg_719244
Currently, there's no hook to add further connection types to Graphiti.
Nevertheless it could be possible to create a metamodel extension to define
the needed metamodel objects (subclasses of Connection), but the harder part
would be to provide the rendering and interaction handling. Ther you will
have to reference lots of internal classes and methods. I have never thried
that so I don't know how far you might get here...
Michael
"Hernan" <forums-noreply@eclipse.org> wrote in message
news:j32sbt$8b6$1@news.eclipse.org...
> Michael Wenz wrote on Wed, 24 August 2011 07:30
>> Currently Graphiti only supports the mentioned connection types.
>
>
> I was not exactly asking that Graphiti gives me more connection types, I
> was rather exploring the possibility of implementing myself them, or
> extending/modifying/customizing the existing ones.]]>Michael Wenz2011-08-26T13:56:37-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/719288/#msg_719288
Michael Wenz wrote on Fri, 26 August 2011 10:56
Currently, there's no hook to add further connection types to Graphiti.
Nevertheless it could be possible to create a metamodel extension to define
the needed metamodel objects (subclasses of Connection), but the harder part
would be to provide the rendering and interaction handling. Ther you will
have to reference lots of internal classes and methods.
Thanks. Yes, that's also my impression, after peeking inside sources. Currently Graphiti has the virtue of giving a quick path to building a Graphical Editor with EMF, hiding the complexities of GEF (which is great) - but it also seems to have very little extension-customization-hooks capabilities.
I found interesting your suggestion of extending the pictorial metamodel, I had not thought of that, and rather assumed that the classes were set on stone (I was missing other Anchor classes). However, I guess that the internal code is quite coupled with the standard metamodel, and some logic will break if classes are added to it.
Guess I'm going to use Graphiti more as boilerplate code than as a framework? Mmmm
]]>Hernan Gonzalez2011-08-26T15:44:18-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/719886/#msg_719886
way...
Regarding enhancement options: we are still on our way from a
company-standards-driven framework to a really entensible one. For the
connections there was simply not yet the need for any enhancements. So, the
best solution for this would be to open an enhancement bug to add further
connection types (or even open up for custom types), so that all this effort
flows back to Graphiti and all its users.
Michael Wenz wrote on Fri, 26 August 2011 10:56
> Currently, there's no hook to add further connection types to Graphiti.
> Nevertheless it could be possible to create a metamodel extension to
> define the needed metamodel objects (subclasses of Connection), but the
> harder part would be to provide the rendering and interaction handling.
> Ther you will have to reference lots of internal classes and methods.
Thanks. Yes, that's also my impression, after peeking inside sources.
Currently Graphiti has the virtue of giving a quick path to building a
Graphical Editor with EMF, hiding the complexities of GEF (which is great) -
but it also seems to have very little extension-customization-hooks
capabilities.
I found interesting your suggestion of extending the pictorial metamodel, I
had not thought of that, and rather assumed that the classes were set on
stone (I was missing other Anchor classes). However, I guess that the
internal code is quite coupled with the standard metamodel, and some logic
will break if classes are added to it.
Guess I'm going to use Graphiti more as boilerplate code than as a
framework? Mmmm]]>Michael Wenz2011-08-29T10:25:08-00:00Re: Connections
https://www.eclipse.org/forums/index.php/mv/msg/235855/719958/#msg_719958
Michael Wenz wrote on Mon, 29 August 2011 07:25
we are still on our way from a company-standards-driven framework to a really entensible one
That's what I wanted to read. I appreciate your points; if I end modifying Graphiti code, I'll certainly try to contribute. I wish to say in synch with Graphiti development, I wouldn't like to take the 'private fork' path, for sure.
]]>Hernan Gonzalez2011-08-29T15:01:34-00:00