This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When a user doubleclicks on a Node in an Outlineview it will execute the action returned from getPreferredAction(). Unfortunately the Outlineview creates a new ActionEvent without passing in the modifiers from the original event so it's not possible to check for if any keys was hold down at the same time as the double click which makes it impossible to create actions that can behave differently depending on if the user did hold down, for example, shift or not. in the 6.9.1 source code this is done at line 1307 in OutlineView.java: a.actionPerformed (new ActionEvent (node, ActionEvent.ACTION_PERFORMED, "")); one way to patch it would be: a.actionPerformed (new ActionEvent (node, ActionEvent.ACTION_PERFORMED, "",((MouseEvent)e).getModifiers()));
Changed Version to 7.0 since it exists there too but on line 1399 in OutlineView.java
Thanks, I'll add the modifiers.
Fixed by changeset: 194348:53ea41a1170c http://hg.netbeans.org/main/rev/53ea41a1170c And merged into 7.0.1: http://hg.netbeans.org/releases/rev/77049f577884
Integrated into 'main-golden', will be available in build *201105210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/53ea41a1170c User: mentlicher@netbeans.org Log: #198684 Add the modifiers to the default action.