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.

Bug 35623 - Smart Selection - language structure-based selection
Summary: Smart Selection - language structure-based selection
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 11:02 UTC by mvinar
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvinar 2003-08-21 11:02:57 UTC
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
Comment 1 Ondrej Rypacek 2003-08-25 10:42:34 UTC
Mila has already been working on this for some time.
Comment 2 Miloslav Metelka 2004-06-08 09:41:34 UTC
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.
Comment 3 Miloslav Metelka 2005-01-26 13:43:52 UTC
Already implemented.