Bug 319280 - [block selection] Shift action does not honor block selection mode
Summary: [block selection] Shift action does not honor block selection mode
Status: CLOSED DUPLICATE of bug 288430
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 11:03 EDT by Christian Georgi CLA
Modified: 2010-07-08 11:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Georgi CLA 2010-07-08 11:03:11 EDT
Build Identifier: 3.6

When indenting a partial line in block selection mode like this (here only "comment" is selected)
// comment

This indents all characters of the line:
   // comment

Expectation is that only the intentionally selected block is indented:
//   comment

Reproducible: Always
Comment 1 Tom Hofmann CLA 2010-07-08 11:30:04 EDT
dup of #288430?

What do you mean by 'indent'?
- selecting the Source > Shift Right action¨
  - does what you describe
- using Ctrl+I or the Source > Fix Indentation action in a Java editor
  - does what you request
- pressing the Tab key
  - replaces 'comment' by the tab character
Comment 2 Christian Georgi CLA 2010-07-08 11:39:04 EDT
Sorry, I was a bit imprecise: I meant indenting by pressing TAB.  It turns out that the effect only applies to multiple line.  Start with 
//comment
//comment

Now press TAB in block mode with both "comment" words selected.  This produces:
   //comment
   //comment

instead of expected
//   comment
//   comment
Comment 3 Tom Hofmann CLA 2010-07-08 11:41:28 EDT
ok, dup of bug 288430 then.

*** This bug has been marked as a duplicate of bug 288430 ***
Comment 4 Christian Georgi CLA 2010-07-08 11:42:07 EDT
Right, this is a dup of 288430.  I absolutely see this is a valid use case,
have other colleagues complaining that Eclipse here does a "worse" job than
other text editors.