
Saturday January 13, 2007
UPDATED: LineTools module - Added cycle slash (/), backslash(\), dot(.), dash(-) action
I have updated the Line Tools Module on my NetBeans update center described here.
What is new
Added the Cycle Slash (/), Backslash(\), Dot(.), Dash(-) action (CTRL+ALT+O). The action replaces all occurences of / , \ , . & - ,in the selection or current line if the selection is not present, in succesion. If more than one char from the set is present in the text the other chars are replaced with the first one in the first cycle. An example may clarify the functionality.
If one starts with text:
package org.netbeans.modules.linetools.actions; // the package statement
and invokes the Cycle Slash Backslash Dot Dash repeatedly one gets:
package org.netbeans.modules.linetools.actions; // the package statement
package org-netbeans-modules-linetools-actions; // the package statement
package org/netbeans/modules/linetools/actions; // the package statement
package org\netbeans\modules\linetools\actions; // the package statement
Pretty useless huh?
Sources
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Jan 13 2007, 12:41:57 PM PST ) Permalink
Trackback URL: http://blogs.sun.com/scblog/entry/updated_linetools_module_added_cycle
Posted by jake on January 18, 2007 at 05:14 AM PST #
Do you find the Slash (/), Backslash(\), Dot(.), Dash(-) action useful? What are you using it for?
For me it works very well for converting back and forth between Unix (/), Windows (\), Java Resource syntax(/), Class Name (.), Action File names in layer files (-). I use it on text copy/pasted from shell window, Windows Explorer (\) or Browser Address bar (/), CopyFQN Action from CopyFQN module and Copy Path action from Desktop Integration module. Both CopyFQN and Desktop Integration modules can be found on my update center.
Posted by Sandip on January 18, 2007 at 07:34 AM PST #
Posted by jake on January 19, 2007 at 06:56 AM PST #