Rectangular Edit Tools module uploaded
I have uploaded the Rectangular Edit Tools module to my Netbeans update center described here.
This module installs the following actions in Edit:Rectangle Menu and Rectangle toolbar.
Note: The leading column of the rectangle defined by the selection has to be less than the trailing column.
Example
Text and Selection
|
Action |
Text in editor |
Clipboard
|
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Cut |
0123456789 01789 01789 01789 0123456789
|
2345 2345 2345
|
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Copy
|
0123456789 0123456789 0123456789 0123456789 0123456789
|
2345 2345 2345
|
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Paste with text in clipboard
-- ++++ *****
|
0123456789 01--789 01++++789 01*****789 0123456789
|
-- ++++ *****
|
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Delete
|
0123456789 01789 01789 01789 0123456789
|
No change |
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Clear
|
0123456789 01 789 01 789 01 789 0123456789
|
No change |
0123456789 0123456789 0123456789 0123456789 0123456789
|
Rectangular Replace with user sepcified text
---
|
0123456789 01---789 01---789 01---789 0123456789
|
No change
|
Sources
TODO
- Rectangular selection highlight
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Nov 10 2006, 05:47:36 PM PST ) Permalink
Trackback URL: http://blogs.sun.com/scblog/entry/rectangular_edit_tools_module_uploaded
Dmitri
Posted by Dmitri Trembovetski on November 12, 2006 at 07:21 PM PST #
Trying to convert Emacs users to Netbeans. Not only Eclipse users :)
I have also added keyboard shortcuts and online help.
Posted by Sandip on November 12, 2006 at 07:45 PM PST #
Posted by Claudiu on November 13, 2006 at 12:20 AM PST #
Posted by Sandip on November 13, 2006 at 04:05 PM PST #
Thank you.
Posted by Gustavo on November 17, 2006 at 01:17 PM PST #
Posted by John Muczynski on November 22, 2006 at 07:46 AM PST #
I have one question though. Say you have the following:
public enum Example { A; // bad-----bad // bad-----bad // bad-----bad // bad-----bad // bad-----bad { // start block // good-----good // good-----good // good-----good // good-----good // good-----good } // end block } // end class // good-----good // good-----good // good-----good // good-----good // good-----good }Can you use the rectangular edit tools on the dashes between "bad"'s? The rectangular buttons disable for me.
Thanks again. I plan to use your wonderful examples in learning how to create plugins for NetBeans.
Posted by Jay Logan on November 29, 2006 at 10:11 AM PST #
Yes, you should be able to do that. Yes I have seen that the actions get disabled sometimes. However clicking on some other nodes in the project and back in the editor seems to enable the actions. I do not know why.
Posted by Sandip on November 29, 2006 at 05:30 PM PST #
Posted by Peter von der Ahé on March 15, 2007 at 04:29 PM PDT #
I use windows so I am not aware of these issues on linux. Even though I have heard about in the blog comments here. So I will keep that in mind.
In case you did not know, if you want you can customize the key bindings using Tools:Keymap and look for actions under Other category.
Posted by Sandip on March 15, 2007 at 05:01 PM PDT #
Hi! I want to select a rectangle. You have not documented how can i select a rectangle, so i can't delete it nor copy it or anything :(
Posted by EmmanuelOga on August 30, 2007 at 05:59 AM PDT #
oooooooook... i have just understood.... :)
Posted by EmmanuelOga on August 30, 2007 at 06:00 AM PDT #
Yes. It is a little confusing because it does not highlight the resulting rectangle. It simply shows regular selection even though the above actions work on the rectangle correctly.
<p>
Rectangle highlight is something I have not implemented yet.
Posted by Sandip on August 30, 2007 at 06:51 AM PDT #
Is there plans for rectangular highlight?
Posted by Alexander Faucher on October 23, 2007 at 11:49 AM PDT #
Hi
I just found this and its really useful. But in NB 6.0 the rectangle tool bar buttons aren't available until I open a text document (like a properties file), then it is available in the source editor.
Is this a bug?
Posted by Rory on April 28, 2008 at 10:06 AM PDT #
Rory,
Please clarify what you mean. The Rectangle Edit tools are meant to work with the text in text editor.
Posted by Sandip on April 28, 2008 at 10:13 AM PDT #
Hi
The problem was that the source editor the rectangle icons at the top were disabled, and wouldn't enable until I opened a text document, like a properties file.
However, it works in 6.1 which I just installed, so thank you, but never mind :)
Posted by Rory on April 29, 2008 at 03:18 AM PDT #
I tested this plugin with NetBeans IDE 6.5.1 and it works. The issue reported by Rory is still there but I have a different observation.
When we click on the Java source file from Projects Panel the tool buttons get disabled but when we choose the Java source from the Editor tabs then the tool buttons are enabled.
Something is going wrong when the files are opened or selected through the Projects panel.
with regards
Tushar Joshi, Nagpur
Posted by Tushar Joshi on May 14, 2009 at 10:19 PM PDT #