sandip chitale's blog    Sandip Chitale's blog (scblog)
NOTE: I have moved many of my modules to NetBeans Plugin Portal . Please check there for latest versions of modules described on this blog.
20070113 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 Comments [3]


Trackback URL: http://blogs.sun.com/scblog/entry/updated_linetools_module_added_cycle
Comments:

Great stuff, that's what I've looking for - big thanks.

Posted by jake on January 18, 2007 at 05:14 AM PST #

Thanks Jake.

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 #

Yes, it's very useful. Normally I use it for copying between configuration files (for the project I'm working on) and java sources, copies from shell (as you do), copying into build-files and so. It's just so easy with it - not this annoying "Replace all '\' with '.'" and vice versa. Just some shortcut and go!

Posted by jake on January 19, 2007 at 06:56 AM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed








« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Get NetBeans 5.5

Locations of visitors to this page

Today's Page Hits: 523


XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

scblog
scblog