directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSTUDIO-126) Triple click to edit attribute
Date Sun, 27 Jan 2008 15:37:35 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563000#action_12563000
] 

Stefan Seelmann commented on DIRSTUDIO-126:
-------------------------------------------

This is the default behaviour of the Eclipse JFace framework. Below is a snippet of the TreeViewer
class that handles the activation of a cell editor. If there is one more click within the
"doubleClickExpirationTime" the edit is cancelled. I wasn't able to work around that yet.
I posted this problem to the eclipse.platform newsgroup.

-------------------- snip --------------------------
private void activateCellEditor() {
    ...
    mouseListener = new MouseAdapter() {
        public void mouseDown(MouseEvent e) {
            // time wrap?
            // check for expiration of doubleClickTime
            if (e.time <= doubleClickExpirationTime) {
                control.removeMouseListener(mouseListener);
                cancelEditing();
                handleDoubleClickEvent();
            } else if (mouseListener != null) {
                control.removeMouseListener(mouseListener);
            }
        }
    };
    control.addMouseListener(mouseListener);
    ...
}
-------------------- snap --------------------------


> Triple click to edit attribute
> ------------------------------
>
>                 Key: DIRSTUDIO-126
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-126
>             Project: Directory Studio
>          Issue Type: Improvement
>          Components: studio-ldapbrowser
>    Affects Versions: 0.8.0
>            Reporter: Martin Alderson
>            Assignee: Stefan Seelmann
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> When double clicking on a string attribute value to edit it in the entry editor the full
field is selected (on windows at least).  At this point if you immediately click again (to
position the cursor at a specific point within the field) the edit is cancelled.  If you wait
a bit before clicking again then the cursor is repositioned as expected.
> Double clicking seems the most intuitive way of editing attribute values for me and if
I just want to edit the text (rather than completely replace it) then I will tend to click
a third time to position the cursor.  It is a bit annoying to have to wait for double click
time to end so I can click without the edit being cancelled.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message