|
|
||
Tim Boudreau's BlogApril 2006 ArchivesMost Poetic Commit Log of the Year AwardPosted by timboudreau on April 29, 2006 at 01:12 AM | Permalink | Comments (4)I was going through old email, and my friend Jesse had pointed up my friend Jarda's commit log message as a candidate "Most Poetic Commit Log of the Year Award". What's the most amusing commit message you've read but neither incited nor written yourself? Here's Jarda's:
Hopeless in my own destiny, strugling to really improve the speedup of startup at least a bit, but always loosing my improvements as Sisyphus his stone, I am adding this little change to prevent tons and tons of ClassLoaderCache objects from creation. Now only a resonable number shall get created during 2nd and subsequent startup. Of course, you can only do this award once - after that, everyone will be trying to be poetic in their commit messages and it all becomes meaningless :-)
Directory: /core/startup/src/org/netbeans/core/startup/
=======================================================
File [changed]: ClassLoaderCache.java
Url: http://core.netbeans.org/source/browse/core/startup/src/org/netbeans/core/startup/ClassLoaderCache.java?r1=1.2&r2=1.3
Delta lines: +2 -2
-------------------
--- ClassLoaderCache.java 4 Aug 2005 13:13:48 -0000 1.2
+++ ClassLoaderCache.java 5 Aug 2005 13:18:28 -0000 1.3
@@ -171,8 +171,8 @@
return null;
}
-
- node = find (next);
+ // effectively node = find(next);
+ node.pos = next * NODE_SIZE;
}
return resIndex;
Deliver your beans in a NetBeans module (the hard way)Posted by timboudreau on April 05, 2006 at 05:13 PM | Permalink | Comments (6)In Monday's blog, I announced a webstart-enabled standalone tool that will generate a NetBeans plug-in module that takes a JAR of Swing components, putting them on the component palette for users to drag and drop. Here I describe how to do the same thing using the plug-in development tools inside NetBeans. I had actually written this up a couple of weeks ago, and it was my friend and colleague Trung Duc Tran who said "there should be a tool to do that." He was right. So I held this blog and wrote BeanNetter. Nonetheless, the step-by-step here is worth posting, since you can see what's being generated by the tool under the hood, and it's useful if you're making a module already. So here's how you'd do the same things by hand:
And poof, you've got a NetBeans plugin that delivers your components right onto the component palette of any NetBeans 5.0 user.
If you have some problems, this usually means one of the strings in one of the XML files is not correct. Try starting the instance of NetBeans you install the module in, from the command line, and add the line switch Got JavaBeans? Here's a way to distribute them...Posted by timboudreau on April 03, 2006 at 11:53 AM | Permalink | Comments (10)BeanNetter - the NetBeans Module GeneratorSo NetBeans has this cool component palette from which you can drag and drop components onto Swing
forms. But where are all the cool components? NetBeans just shows the default JDK Swing components - but there are lots of components out there. Wouldn't it be nicer if you could make them just appear in your IDE? And there are sites such as nbextras.org with NetBeans plug-ins, and there is an update facility built into NetBeans - so why shouldn't you be able to download JavaBeans straight into the IDE from them? Well, first, it needs to be easy to create a NetBeans module that embeds JavaBeans and puts them on the Component Palette. So I wrote a small tool that generates a NetBeans plugin. It's a wizard, and you point it at a JAR file with some Swing components in it. It finds all the declared JavaBeans that are there, and lets you choose to add or remove other classes. Then it asks for some info like the name of the library - this will be your Beans' category on the Component Palette.
When you complete it, it generates a complete, redistributable NetBeans Module (
What to do with the resultsNow you've got a module, but the point is to get that module to other people. How to do that? Well, first, if the components are open source, I bet the folks at nbextras.org would happily host them, and that site's been getting a lot of attention lately. If they're commercial, there is the Third Party update center that every release copy of NetBeans checks for plug-ins, and that could be a good place - the partner page would be a good place to start.
Sources and Screen Shots
Sources are in
BeanNetter - the NetBeans Module Generator
Choosing a License - Extra points if you can identify the text above | ||
|
|