Saturday, February 21, 2009

Native2Ascii plugin for netbeans 6.5

After some time of finding myself I am back... 2 days ago my friend and colleague ask me if I know about netbeans feature to convert native characters to ASCII. Same as native2ascii command line but integrated in netbeans editor. Quick answer in my mind: There has to be some plugin, so UTFG... After googling by myself I found only this one. It looks well, but there is no integration with netbeans editor.
So what I did? I wrote plug-in according to my vision. I know it's not good approach to use native characters in java source at all. Better idea is using properties bundles. But sometimes it's OK, when you want to write some small piece of code which is used only by yourself.
Some screenshots:

1. You can use java editor hint:
2. Or just press CTRL+SHIFT+A or right mouse click on selected text:

3. and result is:

You can download this plugin here. Sources can be found in project site.

10 comments:

Anonymous said...

:) you are a hero

hlavki said...

ough dear, for you everything...

Anonymous said...

is there also a reverse function?

(or better: a tooltip, what the encoded ascii means)

Anonymous said...

it should also work in .properties files

Anonymous said...

an an option to disable the hints

hlavki said...

There is no reverse function for now.

You can disable hint through Options menu. Tools -> Options -> Editor -> tab Hints.
Select language Java from combo box. Then disable hint in category "General".

Arturo said...

Hi:
i'm a happy user of your plugin,
is perfect for me.
But...
In netbeans 6.7 i can't use your plugin.

hlavki said...

Arturo, you can download plugin from http://kenai.com/projects/nb-native2ascii/downloads/directory/nbms/6.7

Anonymous said...

and i want something like this for netbeans 5.5 (the best netbeans ever existed ;-) and .property files

idaniagabriele said...

You could participate in the Promotion once as} during the Promotion Period. You is not going to be eligible to obtain any other registration bonuses. 헤븐카지노 Your browser might be in incognito mode or using plugins which might be} blocking a few of our features.