Bug 171550 - Select enclosing element behavior in XML-like documents
Summary: Select enclosing element behavior in XML-like documents
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-01-24 09:48 EST by Christopher Goddard CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Goddard CLA 2007-01-24 09:48:22 EST
I think it would be nice if the Select Enclosing Element command (Alt+Shift+Up) behaved a bit differently in XML-like documents (XML, JSP, HTML, etc.). 
In this situation (where | is the cursor)
<div class="brand|ing">Company Name</div>
Select Enclosing Element expands the selection to the entire line.

What might be preferable is that in the situation
<div class="brand|ing">Company Name</div>

Select Enclosing Element x 1 selects like (where [] indicates what's selected):
<div class="[branding]">Company Name</div>
Select Enclosing Element x 2 selects like (where [] indicates what's selected):
<div [class="branding"]>Company Name</div>
Select Enclosing Element x 3 selects like (where [] indicates what's selected):
[<div class="branding">]Company Name</div>
Select Enclosing Element x 4 selects like (where [] indicates what's selected):
[<div class="branding">Company Name</div>]
Comment 1 Dani Megert CLA 2007-01-24 11:01:02 EST
What editor are you talking about? See also:
http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm
Comment 2 Dani Megert CLA 2007-06-22 09:59:49 EDT
Get rid of deprecated state.
Comment 3 Dani Megert CLA 2007-06-22 10:04:58 EDT
.