Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Opera/Mozilla style mouse/pen gesture recognition in Eclipse

The context menu always appears on mouse up on GTK, that was never a
problem.  It is  Motif that has the problem - on Motif the right mouse
button must be held down for the context menu to appear (this is correct
Motif behaviour - not a bug).



|---------+----------------------------->
|         |           "Claude Knaus"    |
|         |           <Claude_Knaus@oti.|
|         |           com>              |
|         |           Sent by:          |
|         |           eclipse-dev-admin@|
|         |           eclipse.org       |
|         |                             |
|         |                             |
|         |           11/27/2002 08:25  |
|         |           AM                |
|         |           Please respond to |
|         |           eclipse-dev       |
|         |                             |
|---------+----------------------------->
  >-----------------------------------------------------------------------------------------------------------------|
  |                                                                                                                 |
  |        To:      eclipse-dev@xxxxxxxxxxx                                                                         |
  |        cc:                                                                                                      |
  |        Subject: Re: [eclipse-dev] Opera/Mozilla style mouse/pen gesture recognition in Eclipse                  |
  >-----------------------------------------------------------------------------------------------------------------|




Seems like this has changed. The context menu comes on pop up now
(linux-gtk).
The gestures work fine for me.

-- Claude


                                                                           
   "James Moody"                                                           
   <James_Moody@xxxxxxx>          To:        eclipse-dev@xxxxxxxxxxx       
   Sent by:                       cc:                                      
   eclipse-dev-admin@ecli         Subject:        Re: [eclipse-dev]        
   pse.org                Opera/Mozilla style mouse/pen gesture            
                          recognition in Eclipse                           
                                                                           
   26.11.2002 21:16                                                        
   Please respond to                                                       
   eclipse-dev                                                             
                                                                           




What happens on Linux/Motif, where you have to hold the right mouse button
down to pop a menu up?





"Chris McLaren" <Chris_McLaren@xxxxxxx>
Sent by: eclipse-dev-admin@xxxxxxxxxxx
11/26/02 03:06 PM
Please respond to eclipse-dev


       To:     eclipse-dev@xxxxxxxxxxx, platform-ui-dev@xxxxxxxxxxx
       cc:
       Subject:        [eclipse-dev] Opera/Mozilla style mouse/pen gesture
recognition in Eclipse

As an experiment, I've added to Eclipse support for recognizing mouse
gestures, a feature of Opera and Mozilla fame. This feature will appear in
the next build.

To make a gesture, click and hold the right mouse button in an editor,
then
move the mouse according to the following table. Release the button to
complete the gesture and execute the action. An unrecognized gesture (like
a simple right-click) will default to opening the editor's right-click
popup menu. The gesture recognizer should be reasonably forgiving of 'poor
penmanship'.

     RIGHT                   Go forward in the history
     LEFT                    Go backward in the history

     UP                      Save the current file
     UP then LEFT            Save all files

     DOWN                    Close the current file
     DOWN then LEFT          Close all files

     RIGHT then LEFT         Cut the selected text
     RIGHT then UP           Copy the selected text
     RIGHT then DOWN         Paste the selected text

These nine gestures were picked out of my hat for this experiment, but
should response for this feature be positive, I will add support for
plugins to contribute mouse gestures as well as a preference page for
users
to 'train' Eclipse to recognize new gestures and assign them to specific
actions (the same set of actions available to key binding customization).

Technical note: Gestures are recognized when clicking within any
AbstractTextEditor. This class is used for editing text and java files,
among others, but you will probably encounter editors for which this
functionality is not currently enabled.

Please comment on this feature, as it was not on the original 2.1 plan.

Thanks,
Chris.


_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev



_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev






Back to the top