|
|
||
Rich Unger's BlogMay 2006 ArchivesA simple class browserPosted by richunger on May 25, 2006 at 11:26 PM | Permalink | Comments (2)At JavaOne, Geertjan gave a talk on building an IDE for a specific framework (Wicket). I work on a similar project for an in-house framework. One feature that I thought would be useful is a convenient Java Class selector. I really like the "Fast Open" selector that you get from the "Navigate...Go To Class" menu item. I looked at the code, and was dismayed to see that it was hard-coded for opening classes, and was not reusable for just selecting a class for another purpose (such as inserting a class reference in an xml file). So, I sat down to write such a widget, and was pleased to be able to put something pretty featureful together in a couple of hours. I use the MDR API for querying classes.
The list box contains all classes whose classname (without package) starts with the substring in the text field. The list selection is the value returned by the dialog. Here's a little tour of the code:
public class ClassSelector extends javax.swing.JDialog
{
// the data for the ListModel
private List
Neat, eh? The full code is here.
photographic proof!Posted by richunger on May 23, 2006 at 12:12 PM | Permalink | Comments (2)I have been sent (anonymously) photographic evidence of the netbeans/eclipse summit ... err ... beer run.
The netbeans and eclipse developers get along just finePosted by richunger on May 22, 2006 at 12:39 PM | Permalink | Comments (4)I saw this javalobby discussion on roumen's antics today, and I thought I'd put my 2 cents in. Yes, the products compete. Yes, there's a lot of heated debate and personal attacks on blogs and message boards. You generally don't see that from the folks who actually *work* on these products. Last year, I wrote an entry on a meeting of the minds between architects from the eclipse and netbeans platforms. The other day, I was out at the Thirsty Bear with about a dozen folks from eclipse, netbeans, and OSGi. We discussed modular architecture, opinions on "superpackages" in dolphin, software update methodologies, and how utterly rediculous the flame wars are getting. We were comparing notes. There was no ideas being held back. The OSGi folks wanted to know what it would take to get NB to talk their protocol (a thorny topic I'll leave to the real experts). I asked about how eclipse handles some project and workspace layout stuff under the hood. It was an interesting discussion, and we all had fun. Competitors, to be sure, but in a very open, healthy way. So, what about Roumen's prank? Well, I can't say I would have done the same thing. Eclipse paid for their booth, and I think it was a bit inappropriate. But, no real damage done, and I think Steve Northover's comments in Javalobby reflect that there's no real ill will among the folks in the trenches. Roumen was just trying to have a little fun, and he misread the atmosphere at the pavilion. Big deal. It's over. I don't think anyone lost any customers over it. I think it's very likely that the brouhaha was more about Eclipse being disappointed with the location of their booth than about anything Roumen did. As an aside, I was in the "Eclipse Callisto" talk, and someone asked, "Are you happy with the amount of coverage Eclipse is getting at this conference?" The questioner was implying that the stepped-up NB coverage was Sun shilling, and Eclipse was getting short shrift. The answer from the Eclipse speakers, however, was "we are very pleased." In fact, they said they were late submitting that very talk, and Sun made a special exception to admit them. People look for controversy, but the real story here is just how friendly this competition is. | ||
|
|