Bug 37772 - [expand selection] should be done in smaller steps
Summary: [expand selection] should be done in smaller steps
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 299573 (view as bug list)
Depends on:
Blocks: 86835 471350
  Show dependency tree
 
Reported: 2003-05-16 11:29 EDT by Erich Gamma CLA
Modified: 2015-06-29 13:58 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2003-05-16 11:29:25 EDT
In this example:
	public void f(int i, int j, Vector v) {
		bla("foo");
		String a= "aa<CURSOR>aa";
		foo(a, 1);

	}

1) select string contents aaaa
2) select string token
3) expression
4) entire line
5) all lines
6) method body
...
Comment 1 Adam Kiezun CLA 2003-05-16 12:20:34 EDT
would require creating an abstraction layer on top of AST nodes 
and make the selection computation work on that
(it currently works on raw ASTs)

it's an enhancement request
Comment 2 Erich Gamma CLA 2003-05-19 08:33:09 EDT
between step 4 and 5:
4.5) select lines up to an empty line 
Comment 3 Dirk Baeumer CLA 2003-06-10 07:03:39 EDT
Depends on extended positions on ASTNodes.
Comment 4 Dirk Baeumer CLA 2004-04-27 08:11:02 EDT
Not for 3.0.
Comment 5 Dani Megert CLA 2010-01-15 05:09:24 EST
*** Bug 299573 has been marked as a duplicate of this bug. ***
Comment 6 Mihai Danila CLA 2010-03-12 10:08:38 EST
In this example:
	public void f(int i, int j, Vector v) {
		bla("foo");

                // Commenting this next section.
		String a= "aa<CURSOR>aa";
		foo(a, 1);

	}

1)  select string contents aaaa
2)  select string token
3)  expression
4)  entire line
4a) entire paragraph
4b) entire paragraph including comment
5)  all lines inside block
6)  method body
...