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 115583 - selecting block doesn't enable the do/end <=> {} conversions
Summary: selecting block doesn't enable the do/end <=> {} conversions
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 16:28 UTC by jamespb
Modified: 2007-10-17 16:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-09-14 16:28:43 UTC
Seems like the only time the hints for converting do/end <=> {} are enabled is when the cursor is on the first line of
the block.  It'd be nice if they were turned on when the entire block was selected.  Makes this sequence easier:

alt-shit-.
alt-enter
<choose conversion>
Comment 1 Torbjorn Norbye 2007-10-17 16:17:33 UTC
Fixed. It's now enabled when the caret is on the beginning or end lines of the block (but not outside the block on those
lines).

IDE:-------------------------------------------------
IDE: [10/17/07 8:15 AM] Committing started
cvs server: scheduling file `convertblocks6.rb.testHintFix21.fixed' for addition
cvs server: scheduling file `convertblocks5.rb.testHintFix20.fixed' for addition
cvs server: scheduling file `convertblocks.rb.testHintFix22.fixed' for addition
cvs server: use 'cvs commit' to add these files permanently
RCS file: /cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks.rb.testHintFix22.fixed,v
done
Checking in test/unit/data/testfiles/convertblocks.rb.testHintFix22.fixed;
/cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks.rb.testHintFix22.fixed,v  <-- 
convertblocks.rb.testHintFix22.fixed
initial revision: 1.1
done
RCS file: /cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks5.rb.testHintFix20.fixed,v
done
Checking in test/unit/data/testfiles/convertblocks5.rb.testHintFix20.fixed;
/cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks5.rb.testHintFix20.fixed,v  <-- 
convertblocks5.rb.testHintFix20.fixed
initial revision: 1.1
done
RCS file: /cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks6.rb.testHintFix21.fixed,v
done
Checking in test/unit/data/testfiles/convertblocks6.rb.testHintFix21.fixed;
/cvs/ruby/hints/extrahints/test/unit/data/testfiles/convertblocks6.rb.testHintFix21.fixed,v  <-- 
convertblocks6.rb.testHintFix21.fixed
initial revision: 1.1
done
Checking in test/unit/src/org/netbeans/modules/ruby/extrahints/ConvertBlockTypeTest.java;
/cvs/ruby/hints/extrahints/test/unit/src/org/netbeans/modules/ruby/extrahints/ConvertBlockTypeTest.java,v  <-- 
ConvertBlockTypeTest.java
new revision: 1.14; previous revision: 1.13
done
Checking in src/org/netbeans/modules/ruby/extrahints/ConvertBlockType.java;
/cvs/ruby/hints/extrahints/src/org/netbeans/modules/ruby/extrahints/ConvertBlockType.java,v  <--  ConvertBlockType.java
new revision: 1.18; previous revision: 1.17
done
IDE: [10/17/07 8:16 AM] Committing finished