-
QuietudeR.J. LorimerFri, Apr 11 2008 @ 10:48 pm
-
Boyd Coddington Has DiedR.J. LorimerThu, Feb 28 2008 @ 4:01 am
-
Moved to Google AppsR.J. LorimerThu, Feb 28 2008 @ 3:38 am
-
Did You Know: JFace ArrayContentProviderR.J. LorimerWed, Feb 27 2008 @ 1:45 am
-
Comments and Contact Broken - Uhh... Whoops?R.J. LorimerTue, Feb 26 2008 @ 3:26 am
Archived Coffee-Bytes.com Content
Getting 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
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.
Scripting: Compiling Scripts in Java 6
Fri, 12/29/2006 - 08:00 — R.J. LorimerJava 6 introduces scripting engine support in to Java, and this new support provides a link between the Java we all know and hopefully love and the dynamic, delayed binding world of scripting languages.
3.3: Non-Modal Local Refactorings
Wed, 12/27/2006 - 08:00 — R.J. Lorimer3.3 M4 includes the introduction of several 'local' refactorings as quick assists (aka Ctrl+1) that work in linked mode. There are some definitions I should supply just to make sure we're all on the same page. By 'local', I mean isolated to the currently active editor. Linked mode refers to the special boxes you get around editable areas in the editor when applying a template or some other similar task:
Java 6: Copying Typed Arrays
Wed, 12/20/2006 - 08:00 — R.J. Lorimer
One of the neat tricks of the
Collection.toArray(Object[])
method is that
it will always return an array matching the passed in type, irrespective of whether or
not the one you passed in can be used to hold all of the objects in the array. That's
why so often you see this idiom:
Lucene: Escaping Special Characters
Wed, 12/13/2006 - 08:00 — R.J. LorimerWhen integrating Lucene into an application so it can directly take user input, it is often valuable to use the QueryParser class. This class is a very handy user-readable-text to functional query converter; perfect for taking user input without a lot of work on your part, but if you don't properly handle special characters, it will fail with a nasty-gram exception:
Camel-Case Searching and Code Assist
Tue, 12/12/2006 - 08:00 — R.J. LorimerEclipse 3.2 provides extensive support for what is commonly referred to as 'Camel Case' searching, or searching via the capital letter patterns commonly used in naming conventions for classes. This means that if you want to find the class 'ArrayIndexOutOfBoundsException' I can search with 'AIOOBE', or for that matter, any shortened variant of that ('A', 'AI', 'AIO', 'AIOO', etc). Here is an example using the open type dialog (Ctrl+T):
Testing: Running Tests Against a Relational Database
Thu, 12/07/2006 - 08:00 — R.J. LorimerUnit tests are an extremely valuable component to most application development. Generally speaking, being able to develop isolated unit tests that focus on one component of Java code is ideal.
SWT: Using the Font Dialog
Fri, 12/01/2006 - 08:00 — R.J. LorimerMany applications have the need to provide a font-selection ability. Whether it is for a rich-style text editor, or simply so the user can customize the appearance of the application, font selection is a useful facility. Thankfully, it does come built in to SWT.
The class in question is the
org.eclipse.swt.widgets.FontDialog
class, and using it is quite straightforward. It is simply a matter of creating a new font dialog object, and then asking it to open.
