User Interface Specification:
Smart Selection

Author: Gabriel Tichy
$Revision: 1.1 $
Table of Contents:


The user often needs to perform tasks at certain granularity level - single statement, method, class. Being able to select such granularity items more easily will increase the user's productivity.


  • Feature #35623: Smart Selection - language structure-based selection

System-Wide UI Impact


Action is not included in any existing main menu, neither in source editor right-click menu. In the future, it should be probably placed in a menu related to the editing of the source code itself (e.g. "Code" menu).

Editor Settings -> Key Bindings

Action Name:                                         Keybinding:
Select Next Element     [select-element-next]        Ctrl+Alt-A
Select Previous Element [select-element-previous]    Ctrl+Alt+Shift-A

Detailed Specification

When the action is invoked, it will make structure-based selection depending on a previous selection.

In Java source, Select Next Element gradually selects a word -> an expression -> a statement -> a method -> a class -> class -> an entire file.
Select Previous Element makes selection in opposite direction.



Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 45 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm