Woozle Wuzzle
JFace's CellEditors

If for some reason you can't get your CellEditor to show up on a JFace table then make sure that you have set the column properites (TableViewer.setColumnProperties(String[])). This is not entirely explicit especially in ICellModifier.

Java class vs. variable access

Here's an interesting question for all of you Java-ites out there. Given the following code:

class Test {
    public Test() {
        final Foo Bar = new Foo();
        Bar.go();
    }
}

class Foo {
    public static void go() { /*does something Foo-y*/ }
}

class Bar {
    public static void go() { /*does something Bar-y*/ }
}

which go() is called from Test's constructor?

The answer is that Foo's go() is called. So now the next question is, how does one call Bar's go()? The obvious answer is "fully qualify Bar" (i.e. specify it's package name). But what if Bar is in the default pacakge?

This is obviously a contrived example and most people would say "use cAmEl case for you variable names so that this is never a problem" and you're right, that's a perfectly cromulent approach. I actually ran into this in practice when working with JavaScript which is a whole different problem.

Java Performance Tuning

I ran across this before and forgot the link. So rather than forgetting again, here is a link about Java 1.5 and GC performance.

Java Performance Tuning has oodles of tuning tips on a variety of topics. There are also references to interesting articles (such as the Commando Pattern).

Creative Commons License Unless otherwise expressly stated, all original material of whatever nature created by Rob Grzywinski and included in this weblog and any related pages, including the weblog's archives, is licensed under a Creative Commons License.