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.
User problem: ----------------------------------- -- User need: ----------------------------------- 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. Product requirement: ----------------------------------- Smart Selection - language structure-based selection - e.g. For Java pressing "extend selection" shortcut selects word -> statement -> method -> innerclass -> class
Mila has already been working on this for some time.
Commited initial version into trunk based on the UI spec http://ui.netbeans.org/docs/hi/promoD/smartSelection.html Checking in src/org/netbeans/modules/editor/java/JavaKit.java; /cvs/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v <-- JavaKit.java new revision: 1.80; previous revision: 1.79 done Checking in src/org/netbeans/modules/editor/java/NbJavaSettingsInitializer.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaSettingsInitializer.java,v <-- NbJavaSettingsInitializer.java new revision: 1.27; previous revision: 1.26 done RCS file: /cvs/editor/src/org/netbeans/modules/editor/java/SelectCodeElementAction.java,v done Checking in src/org/netbeans/modules/editor/java/SelectCodeElementAction.java; /cvs/editor/src/org/netbeans/modules/editor/java/SelectCodeElementAction.java,v <-- SelectCodeElementAction.java initial revision: 1.1 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/editor/resources/XMLs/DefaultKeyBindings.xml; /cvs/editor/src/org/netbeans/modules/editor/resources/XMLs/DefaultKeyBindings.xml,v <-- DefaultKeyBindings.xml new revision: 1.7; previous revision: 1.6 Further things to resolve: 1) Steps of the selection extension. Right now we track the java JMI model's nodes which does not deliver the desired effect in all the cases. We need to find out the best selection steps based on the competitive products and our own experience. 2) We may want to revisit the shortcuts - Ctrl+Alt+Shift+A is IMHO hard to press.
Already implemented.