EclipseZone logo image
Thursday, May 31, 2007 

Automate Java GUI Testing with WindowTester Pro

Instantiations WindowTester Pro 2.0 streamlines testing Swing and SWT graphical user interfaces. Focus on creating application logic rather than hand-crafting and maintaining test code through automated recording, test generation, code coverage and playback of GUI application interactions. 100% JUnit compatible.

Free Trial: Download it today!

 EZ News Corner
dzoneMost-clicked links this week
 
 EZ News Corner
 Next section
Since feeling smug about getting a bugfix mentioned in the 3.3M7 new and noteworthy, Alex hasn't been doing much Eclipse stuff. It's mostly low-level bugfixing now anyway.

Alex BlewittPodcasting towards Europa

Europa is drawing near, and in June will release 22 projects (or 21, depending on who you ask) and in the run-up, Daniel has been talking to a few of the project leads in the spotlight series; if you've not seen them already, we've done STP, ECF and Corona. We'll be covering some of the other projects up to the release date.

As well as the imminent release of the next Eclipse, OSGi has recently been officially 'blessed' by virtue of JSR291 being passed by a landslide, and despite the "not invented here but the technology's not too bad" attitude of a particular solar company, the feedback as part of the process has resulted in OSGi 4.1 being officially released (with Equinox being the reference implementation). This doesn't seem to have diminished the haphazardous JSR277, which hasn't released any public versions or ranks much above vapourware at the moment. Yet still the goal of binding it tightly to Java 7 seems to have been the word from the JavaOne conference.

Perhaps it's no surprise, then, that the SD Times recently quoted OSGi as being "a quiet contender for the title of most important technology of the decade", and it's becoming the choice for mobile Java too. The attitude of the JSR277 seems to be one of "We're sure it's going to work, but we're only doing the simple stuff without considering the hard stuff." Indeed, most of the conversation of the JSR277 expert group seems to be a design-by-reverse-engineering, whereby a somewhat simplistic module is posed and then the rebuttal (mainly from the OSGi folk) saying "Yes, but what about ..." Whatever comes out with Java 7, you can guarantee there'll be lots of these such problems that will promise to be fixed in Java 8 (or the Java SE(including JavaFX) Wombat Edititon, or whatever it ends up getting called).

It's also interesting to see that scripting languages are starting to play well with OSGi. For example, Scala can not only be used to build OSGi bundles, but the up-stream scala 2.5.0 has had the necessary changes made to allow the library to work out of the box in an OSGi environment. You can also interact with JavaScript via Eclipse Monkey (which always seems to have trouble determining whether 'dash' or 'monkey' is the name and despite appearing to still be in the incubator on the home pages, is expecting to export a 1.0 release for Europa). Someone's even gone to the effort of coding in groovy and producing an Groovy OSGi bundle, although the current Groovy libraries aren't OSGi-aware out of the box. I wonder how long it will be before Eclipse plugins are provided in other languages than Java? If you really like Java, then other libraries, like Spring OSGi, allow you to take advantage of this with Java code.

Lastly, it's interesting to note that the Web 2.0 bubble (a name that's only slightly worse than Java release names) has consistently hyped the idea of 'mashups', which largely are about combining the output of two or more websites (or their data) together. Only recently, Google has combined the Map and Widgets into a single Mapplets API, and a number of developers are jumping on the waggon to produce more such examples.

This is exactly what Eclipse, as a platform, provides. The ability to 'mashup' services, data components and graphical components all into one system seamlessly, and have them all work together. Want to include communications in your app? Just drop in ECF. Want to include graphing? Drop in BIRT. Need a graphical layout engine? Hand-craft one on GEF or use GMF to build one for you. Eclipse has been doing mashups well before the term was coined in 2005.

Until Next Time,
Alex Blewitt
alex@eclipsezone.com

 Tips and Tricks
 
 Tips and Tricks
 Next section
 Back to top
Nearly every day, RJ and others, bring you the hottest tips and tricks from around the Eclipse universe. Have a hot tip? E-mail the editors at editors@eclipsezone.com.
Install JavaFX into Eclipse

Sun have just announced JavaFX, a 'mee too' competitor to Flex and Silverlight. Despite some documentation hinting that it requires NetBeans, there's an Eclipse plugin too.

Full DiscussionPosted By: Alex Blewitt - (13 Replies)

Synchronizing Views with a GEF Editor

View synchronizing is one of the fundamental features for most Eclipse workbench apps. When using a GEF editor, you can use additional views to provide more targeted information about the selection, or even allow editing. There is a lot of good information about this topic - both in the eclipse docs and in the newsgroups. However, I think I can augment that with a concise set of steps for getting this task done quickly.

Full DiscussionPosted By: Adam Cabler - (0 Replies)

Starting Equinox from a Java application

It's possible to bring up Equinox from an existing Java application. This tip shows you how.

Full DiscussionPosted By: Alex Blewitt - (2 Replies)

Run multiple bundle activators in a single bundle

The OSGi spec only allows for a single bundle activator to be executed, but you can chain several together. This tip shows you how it's done, and how you can reuse code by configuration data in the manifest.

Full DiscussionPosted By: Alex Blewitt - (7 Replies)

Configure your projects to use UTF-8 by default

For a cross-platform language, Java does some silly things in using the local character set of the operating system. Unfortunately, Eclipse uses this default for writing source files of most kinds; fortunately, there's an easy way of configuring it to use UTF-8 by default.

Full DiscussionPosted By: Alex Blewitt - (12 Replies)

Add logging with indirection

Ever wanted to add logging or validation to an existing method that you don't have source to? You can easily introduce indirection in Eclipse, re-writing your calls to that method with your own method, and the add the logging to your method call.

Full DiscussionPosted By: Alex Blewitt - (4 Replies)

Join two lines together

Buried in the new-and-noteworthy is a line that simply says "Joining lines in text editors'. A new keystroke, Control+Alt+J, allows you to join lines together in much the same way that J would work in vi, or equivalent text editors.

Full DiscussionPosted By: Alex Blewitt - (8 Replies)

Generate incorrect equals methods with instanceof

Eclipse 3.3M6 allows you to generate equals methods either using the correct getClass() form, or now also an incorrect instanceof form. The choice is yours.

Full DiscussionPosted By: Alex Blewitt - (11 Replies)

Wrapping selected code in a block

An oldie but a goodie -- you can create a selection with Ctrl+Shift+Arrows, and then use Control+Space to insert a multi-line template such as surrounding with try/catch or becoming the body of a while loop.

Full DiscussionPosted By: Alex Blewitt - (4 Replies)

Running 'tail' inside Eclipse

A recent question on Ask EZ about how to tail a file's output in Eclipse prompted me to answer; but in the spirit of sharing the idea with others, I'm posting the reply to the Tips and Tricks page.

Full DiscussionPosted By: Alex Blewitt - (9 Replies)

 Ask EZ
 
 Ask EZ
 Next section
 Back to top
Everyone has questions, especially about a platform such as Eclipse that has so much potential to be customized. EclipseZone comes to the rescue as our editors answer nearly any question you can think of in our Ask EZ forum.
ClassnotfoundException with Junit

Classnotfound Exception at runtime of junit tests. I have 2 projects, the main project with all the files and a project with my junits.

Full DiscussionPosted By: eric - (0 Replies)

ClassnotfoundException with Junit

Classnotfound Exception at runtime of junit tests. I have 2 projects, the main project with all the files and a project with my junits.

Full DiscussionPosted By: eric - (0 Replies)

content assist is not working

hi from some reason comtent assist stop working in my machine i have 2 diffrent eclipses in my machine - it is not working in none of them, reistall

Full DiscussionPosted By: jak - (1 Replies)

eclipse won't recognize xml as ant

eclipse won't let me open an xml file as an ant file, cannot even run it as an ant build, only open it manually through launcher..

Full DiscussionPosted By: Elhanan Maayan - (1 Replies)

Eclipse stalls on plugin installation

I'm using eclispe on Kubuntu which I installed from the repo. I've been successful in setting up VE and dependencies through the find and install but.

Full DiscussionPosted By: rdgoite - (2 Replies)

regards interface

Hi, Friends, I am new to JAVA Technology, I have one doubt regards Interface and Abstract Class. I have some questions regards this

Full DiscussionPosted By: allen - (0 Replies)

Get Eclipse to recognize generated Java sources?

How do you get Eclipse to see automatically generated source? For example, java classes generated from an XML Schema using xjc.

Full DiscussionPosted By: brian - (1 Replies)

pyAntTasks

Problem with pyAntTasks inEclipse 3.2. Error: Could not load from resourse pyAntTasks. It could not be found.

Full DiscussionPosted By: Wesley Phillips - (1 Replies)

Will equniox allow two bundle sexporting same package

I have two bundles A and B exporting same package say x.y.z. Will it be possible for some bundle C which can import x.y.z , use classes from both A&B

Full DiscussionPosted By: aswin.t4 - (8 Replies)

"existing project" won't run on server

My inherited project imported into eclipse won't run on my server. Error - " the selection did not contain anything that can be ru

Full DiscussionPosted By: Brian - (0 Replies)

Equinox runtime How to package bundle along with its child fragments

Host Plugin - A Frament plugins to A - B, C, D Question: How to package A, B, C, D in to one single bundle/plugin A_1.xx.jar.

Full DiscussionPosted By: aswin.t4 - (0 Replies)

radio button

is it possible to set two SWT radio butons are in selected mode in a same group, if it is possibel plz help me how to do this. with regards, Jeno

Full DiscussionPosted By: jeno - (1 Replies)

how to link SWT Screen to RCP Screen

how can I make a link from SWT screen to RCP screen, please help me, but my application is based on RCP

Full DiscussionPosted By: jeno - (0 Replies)

Javadoc font issues with ISO-8859-1 chars

Eclipse Javadoc view/tooltip don't seem to handle iso8859-1 chars nicely, they appear as weird (UTF8?) chars. Text-file encoding is set to ISO-8859-1.

Full DiscussionPosted By: Andre Costa - (0 Replies)

Preventing auto add of exceptions to javadoc

Hi, While in the Eclipse Java editor, if you use the quick fix to add an exception to your method it also adds a javadoc entry. I find this clut

Full DiscussionPosted By: Connor Sadler - (0 Replies)

regards swt radio button

I have add 4 radio buttons in one singel group in my SWT application, now I want to display two of them are selected in default, how can I do this , p

Full DiscussionPosted By: jeno - (0 Replies)

eclipse search engine

how to write our own eclipse search engine............................................................................................................

Full DiscussionPosted By: bobby_833 - (0 Replies)

Eclipse update error

Error updating Eclipse, getting Unable to remove "C:\[...]\plugins\org.apache.commons.codec_1.3.0.v20070227" from the file system.

Full DiscussionPosted By: Markus Källander - (0 Replies)

An error working with eclipse 3.3M7

Getting error message stating Must specify a URI scheme: We have creating a tool based on eclipse 3.2.2.Recently we have migrated to eclipse 3.3

Full DiscussionPosted By: Eshwar - (0 Replies)

Placing a multi-line Text widget in a Scrolled composite

I have to incorporate synchro scroll of the horizontal and vertical scrollbars of the two adjacently placed text widgets.

Full DiscussionPosted By: Prasanna - (0 Replies)

RAP release

I would like to know when RAP will be available for general release. I tried the M3 release and find it good.

Full DiscussionPosted By: Sudha - (1 Replies)

How to bind a key to an external tool?

I want to launch an "external tool" (a python script) by pressing something like alt+shift+x, z How do i do this?

Full DiscussionPosted By: Khalid Zubair - (0 Replies)

Multi Page Form Editor

I want make a multi-page form editor but not in the editor area. The application I am working on has the editor area disabled

Full DiscussionPosted By: Robert - (0 Replies)

myEclipse vendors?

myEclipse vendors? Beside Genuitec, are there any other vendors for myEclipse? I know that Genuitec is the company that develops myEclipse. Thanks

Full DiscussionPosted By: Lin Ahmad - (1 Replies)

Standalone help with distributed help plugins

Eclipse application with different components. Java non eclipse application is to call the standalone eclipse help but help plugins not found

Full DiscussionPosted By: Inge Buecker - (0 Replies)

 Popular at EZ
 
 Popular at EclipseZone
 Next section
 Back to top
A recap of some of the most popular and active EclipseZone discussions this week.
Tools are Evil

I have officially come to the conclusion that tools are the curse of every development team. No, I really mean it (and yes, you are reading this on an Eclipse-oriented site).

Full DiscussionPosted By: Daniel Spiewak - (10 Replies)

No nested projects for Eclipse 3.3

An oldie but a goodie -- bug 35973 asks for nested projects in Eclipse. It's not going to be fixed in the 3.3 timeframe, but it's been reported no less than 15 times and currently has 58 votes. It's not clear if it will ever get fixed.

Full DiscussionPosted By: Alex Blewitt - (19 Replies)

OSGi/JSR291 accepted -- but does Sun care?

The results are in, and JSR291 (OSGi 4.1) has passed with a landslide. Unsurprisingly, the only naysayers are Sun and Hani (same as with last time) largely because they feel it's necessary to re-invent the wheel with JSR277. However, OSGi is here and works today; JSR277 is a pipe-dream, with nothing more than vague promises. Despite this, Sun have guaranteed that JSR277 will be in Java 7. Have both Sun and Hani lost the plot?

Full DiscussionPosted By: Alex Blewitt - (9 Replies)

Is VE Dead?

Visual Editor is a pretty significant project at Eclipse.org. Unfortunately, I have yet to see anything significant coming from the VE team since the release of 1.2. Is the VE project dead?

Full DiscussionPosted By: Daniel Spiewak - (32 Replies)

Representing the public in the Eclipse foundation

Should Eclipse be more open to end users by giving them a voice in the foundation along with the current members who are large and small companies, associate (academic and media) members and committers?

Full DiscussionPosted By: Genady Beryozkin - (6 Replies)

 Your Account
 
 Your Account
 Next section
 Back to top
Manage your account info for this and other DeveloperZone publications.
Manage your DeveloperZone membership details

Click on the following links to:


 Contact Info
 Next section
 Back to top
Here's how to reach us, we love to hear from you.
Email us
Send news items to editors@eclipsezone.com
Send questions, complaints, or suggestions to feedback@javalobby.org
Send advertising inquiries to advertise@javalobby.org
 
Call us
Our number is (919) 678-0300. We'd love to hear from you!

 Legal
 Back to top
The fine print we'd rather avoid completely.
Feel free to redistribute this newsletter in part or in full to your friends.

EclipseZone News is a service mark of DeveloperZone, Inc.
Copyright ©2001-2007 DeveloperZone, Inc.

Thank you for your continued support of DeveloperZone. If you prefer not to receive the EclipseZone weekly newsletter, send an e-mail to unsubscribe-eznews@javalobby.org and please ensure the actual email address to be removed is present.
DeveloperZone Inc., 113 Legault Drive, Cary NC 27513 USA