Tutorial
Did You Know: JFace ArrayContentProvider
Wed, 02/27/2008 - 01:45 — R.J. LorimerWhen coding in Eclipse RCP or, for that matter, any JFace based UI, you often times are implementing viewers, which require a content provider and a label provider. In most cases, you’re dealing with the IStructuredContentProvider API, which would be appropriate for both the ListViewer and TableViewer classes.
If you have a need to populate these views with data that is effectively static, you can use the org.eclipse.jface.viewers.ArrayContentProvider class to get you up and running quickly; and it is really quite functional in many cases.
Simple Trick When Switching Hosting
Tue, 10/16/2007 - 04:08 — R.J. LorimerI’ve switched web hosts more times than I care to admit at this point, and I can tell you that by far the most painful part of the move is getting everything set up before you move the DNS over to the new server.
One very simple trick that I have used the past few times I have switched is to hijack your local machine’s ‘host’ file, allowing you to temporarily ignore what the DNS servers of the world-wide-tubes are telling you.
Dreamhost and Drupal Query Performance
Wed, 09/19/2007 - 03:33 — R.J. LorimerI’ve previously talked about tuning Drupal for weblogs here previously. I’d like to elaborate more today, on specifically running Drupal on Dreamhost.
JFace Data Binding: Buffering Binding Updates
Thu, 09/13/2007 - 02:41 — R.J. LorimerBind Me Later
One of the key elements of any non-trivial data binding implementation is how you control the timing of the binding of data. Most of the simple examples of JFace or JGoodies data binding simply have ‘live’ bindings, where any change made on one side is immediately propagated to the other side. While this is valuable, and is certainly a neat party trick when you have two UI controls bound to the same field, it is in my estimation, the less common scenario.
JFace Data Binding: Understanding Master/Detail Observables
Wed, 09/12/2007 - 22:59 — R.J. LorimerI’ve been working with JFace a lot recently in an RCP application. One of the technologies I have started working with in detail is JFace Data Binding; now that it has left ‘provisional’ status, I figure I ought to start taking advantage of it wherever I can.
JGoodies Comparisons
Tuning Drupal for a Weblog
Sat, 04/28/2007 - 18:20 — R.J. LorimerGetting Started With Eclipse and Groovy
Sun, 01/07/2007 - 08:00 — R.J. LorimerThe Groovy Programming Language reached 1.0 status ( as was announced at Javalobby
Switching Branches with Unfinished Changes
Thu, 01/04/2007 - 08:00 — R.J. LorimerJust today I was coding up a bug fix that I was told was an 'emergency bug fix'. Because of that, I was plowing through the changes necessary in our production bug fix stream. Around 75% through my fix, I was notified that we didn't have approval to deploy an emergency fix, and it was going out in the regular incremental deploy scheduled in a few weeks.
Thankfully, this situation is no big deal in Eclipse. All I had to do is right-click the project that I was working on, and navigate to
Team->Switch to Another Branch or Version
:
Scripting: Javascript to Java Integration (Part 1)
Sat, 12/30/2006 - 08:00 — R.J. LorimerRecently, I discussed how you can compile Javascript written for the Java 6 scripting engine to make it a faster, pre-parsed script . In this tip I'd like to extend that base knowledge by discussing how you can interact with Java code with the Rhino Javascript engine.
One of the nicest features of Rhino is it's ability to call back into Java anytime you want. As an example, I'll reproduce one of the many SWT snippets (Snippet 223).
Scripting: Javascript to Java Integration (Part 2)
Sat, 12/30/2006 - 08:00 — R.J. LorimerLast time I discussed some of the main features of Javascript to Java integration in the Java 6 scripting engine. As you get into more advanced interaction with Java, however, there are some things you have to know to 'cross over'.
Implementing Interfaces
An important component of interacting with Java is the ability to implement Java interfaces. You can pass Javascript objects masquerading as Java objects into Java code, or even return the interface as a completed variable from the script.
