Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Convenient direct editing
Convenient direct editing [message #691506] Fri, 01 July 2011 15:38 Go to next message
thomas.kipar is currently offline thomas.kiparFriend
Messages: 13
Registered: July 2011
Junior Member
Hi,

I'm new to Graphiti and playing around a bit with the framework. Actually, it seems to be quite nice, however there are a few things things which seem to be quiet inconvenient to me esp. regarding the direct editing.

First, I really do not like the delay when clicking a text I want to edit directly. Somehow stops the flow when editing a diagram. So I would like to change this. Is there a possiblity to do so? Unfortunately, this seems to be sticlty encapsulated so it is not possible to change this (in an elegant way, at least).

Additionally, I am using proposals for my text editing feature to provide autocompletion. This is working fine, but seems not possible to proide a description for the proposals (although the ContentProposalAdapter used is supporting this). Is there any possiblity to add descriptions here?

Finally, I would like to provide my own CellEditors used for direct editing. Anyway to do this?

All in all, it seems that Graphiti is quiete hard to extend or to change the behaviour of it. This is nice somehow but restricting a lot, too. Would like to know if it is planned to keep this or if it is planned to allow some kind of extensions for graphiti editors (in ways as mentioned above) - of if I am totally wrong and just do not see the right starting point how to accomplish all this.

Hope someone can help. Thanks in advance,

Thomas
Re: Convenient direct editing [message #692395 is a reply to message #691506] Mon, 04 July 2011 10:38 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
See my answers below.

Michael

schrieb im Newsbeitrag news:iukp4g$kiq$1@news.eclipse.org...

> Hi,

....

>First, I really do not like the delay when clicking a text I want to edit
>directly. Somehow stops the flow when editing a diagram. So I would like to
>change >this. Is there a possiblity to do so? Unfortunately, this seems to
>be sticlty encapsulated so it is not possible to change this (in an elegant
>way, at least).
Michael: I'm not sure I understood what your meant. Is there a general time
delay when direct editing is invoked (myself I didn't notice that at least
so far) or is it another way you would like to invoke direct editing?

>Additionally, I am using proposals for my text editing feature to provide
>autocompletion. This is working fine, but seems not possible to proide a
> >description for the proposals (although the ContentProposalAdapter used is
>supporting this). Is there any possiblity to add descriptions here?
Michael: This in not supported so far, but sounds like a good idea. Please
post an enhancement bugzilla for this.

>Finally, I would like to provide my own CellEditors used for direct
>editing. Anyway to do this?
Michael: There is an option in the API, but unfortunately that is not yet
supported (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=347262).

>All in all, it seems that Graphiti is quiete hard to extend or to change
>the behaviour of it. This is nice somehow but restricting a lot, too. Would
>like to >know if it is planned to keep this or if it is planned to allow
>some kind of extensions for graphiti editors (in ways as mentioned above) -
>of if I am totally >wrong and just do not see the right starting point how
>to accomplish all this.
Michael: Graphiti provides hopefully usable and helpful default
implementations for the complete look&feel of an editor. These default
implementations have been aligned with usability specialists here at SAP. If
any of these defaults turn out to be not helpful or strange, just let us
know. Many things can as of today already be influenced and changed to other
behavior than the default. In case any further hooks or APIs are needed to
change further default behaviours also let us know; the fact that some
things cannot be changed might also be due to the history of Graphiti: it
started as a graphics framework for building _homogenous_ graphical tools
within SAP, so some things cannot be changed on purpose. For an open source
framework some of these things might no longer make sense, so let us know in
case you need something and we will try to open that up.
....
Re: Convenient direct editing [message #692479 is a reply to message #692395] Mon, 04 July 2011 14:09 Go to previous message
Tim Kaiser is currently offline Tim KaiserFriend
Messages: 118
Registered: July 2009
Senior Member
Hi,

the time delay when bringing up the direct edit field stems from GEF.
See GEF class DelayedDirectEditHelper.
They have a hard-coded delay of 400 ms (probably not without reason).

Best, Tim
Previous Topic:Pictogram Element Not updating after DirectEdit
Next Topic:How do we do this?
Goto Forum:
  


Current Time: Fri Apr 19 15:33:08 GMT 2024

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

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

Back to the top