březen 2005 »
PoÚtStČtSoNe
 
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
   
       
Today

Navigation

Speaker Profile
Roumen's Weblog
Login
Sun Bloggers
Technorati Profile

Am I popular?

Today's Page Hits: 990

Contacts

Name: Roman Strobl
E-mail: roman dot strobl
at sun dot com

NetBeans

Java Sites

Javalobby
The Server Side
Java Tips
Java Blogs
java.net
java.sun.com
java.cz

Blogs

NetBeans:
Geertjan
Brian Leonard
Gregg Sporar
Lukas Hasik
Ludovic Champenois
Vincent Brabant
Alexis Moussine-Pouchkine
Jullion-Ceccarelli
Tom Ball
Tim Boudreau
Jesse Glick
Petr Blaha
Ruth Kusterer
Jara Uhrik
xzajo
Jan Lahoda
James Branam
nbextras.org

Sun:
Kazem - bug cartoons ;-)
Tor Norbye
Romain Guy
James Gosling
Chief Gaming Officer
Bill Vass
Jim Grisanzio
Jonathan Schwartz

Planets:
Planet Netbeans
Planet Sun
Planet Eclipse

Other:
netbeans-blog.org
Joel Spolsky
Bruce Eckel

License info

Creative Commons License
This work is licensed under a Creative Commons License.

Recent Entries

Map of visits

Locations of visitors to this page
« Previous day (Mar 30, 2005) | Main | Next day (Mar 31, 2005) »
20050331 Čtvrtek březen 31, 2005
Make your IDE beep!

While going through the list of Netbeans' keybindings I was trying to figure out what's the use case for each of them. Then I stopped at this one: beep. Users can define a shortcut and the IDE beeps for them. Hmmmm. What's the usage of this one...? After a while of thinking I started to laugh. Truly amazing! You define a shortcut and the IDE beeps for you! And you can define as many shortcuts as you want and it beeps on all of them! :-) Beep, beep, beep.

What a pity we don't support several different sounds, we could use the IDE as a piano :-) I bet this is also possible in Creator and Java Sun Studio, unless they redefined it, Sun's development tools can beep on request. Wow, how powerfull!

P.S. Enjoy your beeps now, unfortunately they will be removed in next release with several other obscure actions (to make settings simplier). Unless people will consider this as regressions and file bugs for their favourite beep action :-)
Regexp Search in NetBeans

We've recently added regular expression support into the Find dialog in NetBeans (the Ctrl-F one). Works like charm for both find and replace. But not for all users. Several days after commit we've got user feedback: "But you don't support back-references". "Sure we do". "They don't work for me".

So the problem is that there are two types of back-references. One type which is denoted as $1 and one as \1. NetBeans uses the $1 one which is used normally in Java. However some other parts of the world are using \1.

So how do we tell users which one they have to use? Nobody really reads documentation so perhaps we need to tell users in the dialog. If they try to use \1, we should politely ask them if they didn't want to use $1. Sigh, why can't there be just one standard for everything? :-)

For those who do not know what back-references are, here is my explanation:

Back-references are a very useful when replacing some text. You have the following text: "Hello, world". Now, you can do following:


If you replace the text like this in NetBeans, the result is: "Farewell, world". One replace is not much useful, but imagine if you have a long file where you need to do many replaces and a the file's more complicated. You can use $2, $3, etc. for next elements in parentesis if you want to replace more of them at once. $0 is used for the whole searched string.

This feature can certainly save you a lot of time you would spend by manual editing. And you can impress other people with it as well :-)


    Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.