Skip to main content



      Home
Home » Eclipse Projects » GEF » Two types of direct edit?
Two types of direct edit? [message #68706] Fri, 07 March 2003 12:06 Go to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I'm adding code to GEF to check for the "Windows Explorer" version of direct
edit. In the file explorer, if you click on a file to select it, then click
again, it invokes an in place "rename". In GEF, we would do this on
double-click, because this avoid accidental renames that are common in
windows explorer.

Now we will support both double-click, and the "windows explorer" versions
of direct edit. In fact, many applications want both, and interpret
double-click to mean "open", as in a dialog, while single-click is to edit
the name in place. Therefore, I would like to send different
DirectEditRequests to the EditPart so they can distinguish (if they wish)
between the two gestures.

My current thoughts are to take the old request, which was a
REQ_DIRECT_EDIT, and continue sending this type of request on single-click
edits. Then add a new type called REQ_DIRECT_EDIT_OPEN, and send this on
double-click. Both types of request will be sent using a DirectEditRequest,
which will contain the mouse location, allowing the EditPart to hit-test
different locations. Any objections/suggestions?
Re: Two types of direct edit? [message #75087 is a reply to message #68706] Wed, 09 April 2003 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Raymond_Tsui.ca.ibm.co

Hi Randy

I have just started to implement the direct edit in our software. Is this
"two-types of direct edit" being implemented? If not, is there a way I can
control the direct edit behavior myself?

Ray

"Randy Hudson" <none@us.ibm.com> wrote in message
news:b4ajpu$q8c$1@rogue.oti.com...
> I'm adding code to GEF to check for the "Windows Explorer" version of
direct
> edit. In the file explorer, if you click on a file to select it, then
click
> again, it invokes an in place "rename". In GEF, we would do this on
> double-click, because this avoid accidental renames that are common in
> windows explorer.
>
> Now we will support both double-click, and the "windows explorer" versions
> of direct edit. In fact, many applications want both, and interpret
> double-click to mean "open", as in a dialog, while single-click is to edit
> the name in place. Therefore, I would like to send different
> DirectEditRequests to the EditPart so they can distinguish (if they wish)
> between the two gestures.
>
> My current thoughts are to take the old request, which was a
> REQ_DIRECT_EDIT, and continue sending this type of request on single-click
> edits. Then add a new type called REQ_DIRECT_EDIT_OPEN, and send this on
> double-click. Both types of request will be sent using a
DirectEditRequest,
> which will contain the mouse location, allowing the EditPart to hit-test
> different locations. Any objections/suggestions?
>
>
Re: Two types of direct edit? [message #75104 is a reply to message #75087] Wed, 09 April 2003 15:11 Go to previous messageGo to next message
Eclipse UserFriend
This is implemented in 2.1. On a double-click, the
SelectEditPartTracker will call performRequest() on the target edit part
with a REQ_OPEN request. A single click on an edit part that is already
selected will result in a REQ_DIRECT_EDIT request being sent out.

Eric

Ray Tsui wrote:
> Hi Randy
>
> I have just started to implement the direct edit in our software. Is this
> "two-types of direct edit" being implemented? If not, is there a way I can
> control the direct edit behavior myself?
>
> Ray
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:b4ajpu$q8c$1@rogue.oti.com...
>
>>I'm adding code to GEF to check for the "Windows Explorer" version of
>
> direct
>
>>edit. In the file explorer, if you click on a file to select it, then
>
> click
>
>>again, it invokes an in place "rename". In GEF, we would do this on
>>double-click, because this avoid accidental renames that are common in
>>windows explorer.
>>
>>Now we will support both double-click, and the "windows explorer" versions
>>of direct edit. In fact, many applications want both, and interpret
>>double-click to mean "open", as in a dialog, while single-click is to edit
>>the name in place. Therefore, I would like to send different
>>DirectEditRequests to the EditPart so they can distinguish (if they wish)
>>between the two gestures.
>>
>>My current thoughts are to take the old request, which was a
>>REQ_DIRECT_EDIT, and continue sending this type of request on single-click
>>edits. Then add a new type called REQ_DIRECT_EDIT_OPEN, and send this on
>>double-click. Both types of request will be sent using a
>
> DirectEditRequest,
>
>>which will contain the mouse location, allowing the EditPart to hit-test
>>different locations. Any objections/suggestions?
>>
>>
>
>
>
Re: Two types of direct edit? [message #75121 is a reply to message #75104] Wed, 09 April 2003 16:06 Go to previous message
Eclipse UserFriend
Originally posted by: Raymond_Tsui.ca.ibm.co

Hmmm, I always seem to get the direct edits being activated whether single
clicking or not.

Randy talked about a REQ_DIRECT_EDIT_OPEN, which seems to be a different
animal than what you are referring to.

Any insights?



"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b71qsb$adr$1@rogue.oti.com...
> This is implemented in 2.1. On a double-click, the
> SelectEditPartTracker will call performRequest() on the target edit part
> with a REQ_OPEN request. A single click on an edit part that is already
> selected will result in a REQ_DIRECT_EDIT request being sent out.
>
> Eric
>
> Ray Tsui wrote:
> > Hi Randy
> >
> > I have just started to implement the direct edit in our software. Is
this
> > "two-types of direct edit" being implemented? If not, is there a way I
can
> > control the direct edit behavior myself?
> >
> > Ray
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:b4ajpu$q8c$1@rogue.oti.com...
> >
> >>I'm adding code to GEF to check for the "Windows Explorer" version of
> >
> > direct
> >
> >>edit. In the file explorer, if you click on a file to select it, then
> >
> > click
> >
> >>again, it invokes an in place "rename". In GEF, we would do this on
> >>double-click, because this avoid accidental renames that are common in
> >>windows explorer.
> >>
> >>Now we will support both double-click, and the "windows explorer"
versions
> >>of direct edit. In fact, many applications want both, and interpret
> >>double-click to mean "open", as in a dialog, while single-click is to
edit
> >>the name in place. Therefore, I would like to send different
> >>DirectEditRequests to the EditPart so they can distinguish (if they
wish)
> >>between the two gestures.
> >>
> >>My current thoughts are to take the old request, which was a
> >>REQ_DIRECT_EDIT, and continue sending this type of request on
single-click
> >>edits. Then add a new type called REQ_DIRECT_EDIT_OPEN, and send this on
> >>double-click. Both types of request will be sent using a
> >
> > DirectEditRequest,
> >
> >>which will contain the mouse location, allowing the EditPart to hit-test
> >>different locations. Any objections/suggestions?
> >>
> >>
> >
> >
> >
>
Previous Topic:use gif image as figure
Next Topic:Cannot download examples at Eclipseswiki
Goto Forum:
  


Current Time: Wed Apr 23 23:07:20 EDT 2025

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

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

Back to the top