EclipseZone logo image
Thursday, April 19, 2007 

Team City 2.0 for Eclipse Community

With TeamCity 2.0, our innovative solution for continuous integration and effective build management, you can perform remote runs and delayed (pre-tested) commits, manage builds and tests, view reports and status of changes, all directly in Eclipse.

Make your development team more productive!

 EZ News Corner
dzoneMost-clicked links this week
 
 EZ News Corner
 Next section
Daniel Spiewak is a Java developer and system administrator from Wisconsin, USA. He has over 7 years of experience in the field and specializes in UI design and peer-to-peer networking.

Daniel SpiewakFeisty Fawn Facetiously Frolics

Well, after several months of development, Ubuntu 7 (Feisty Fawn) has finally hit the download servers. I've always enjoyed getting the latest Ubuntu release since Canonical seems to understand what new "features" are important to end users: flash, glitz and useless 3D effects. Thanks to Vista, no desktop is considered to be complete anymore without partially translucent window borders, subtle shadows and not-so-subtle 3D transitions. But I was talking about Ubuntu, not Vista...

Each Ubuntu release seems to feature a new improvement which either makes Gnome more usable for the uninformed end-user, or increases the visual appeal. For example, Ubuntu 6.1 featured a slightly improved version of the Human GTK theme. Ubuntu 7 actually has two big ticket items which fall into this category: NetworkManager and Compiz.

NetworkManager is this cute little utility which is just made for desktop end-users. It basically encapsulates all the complicated configuration typically involved in setting up wireless functionality in Linux and replaces it with a simple and attractive menu. The UI itself is somewhat reminiscent of the wifi network selection menu in MacOS X, except it also shows network strength. NetworkManager also deals with switching between wired and wireless networks seamlessly. Now, NM has actually been around for a while now, but it's been kept out of Ubuntu due to a lack of support for static IP configurations (until now).

Compiz is a slightly different type of upgrade. Like NetworkManager, it's actually been available for a while now, but unlike NM its functions are purely aesthetic. Compiz lets you do fun things like make windows wobble as you drag them, or add shadows to visual elements such as windows, menus and tooltips. It's pretty cool, though I'm sure the die-hard utilitarian Linux users are crying foul. Compiz's one detraction (aside from its sheer uselessness) is that it requires quite a high-end graphics card to fully take advantage of its glitz. Thanks to the new restricted drivers utility in feisty, it's fairly easy to install drivers which enable things like Compiz, but unfortunately you still need the hardware to back it.

Unfortunately, even this latest release of Ubuntu seems to lack first-class Eclipse support. Oh don't misunderstand me, you can still install Eclipse from a tarball and it works wonderfully; but the package installer available from the Ubuntu repositories (i.e. what you get when you type "apt-get install eclipse") still isn't up to snuff.

It's not really Ubuntu's fault really. After all, it's Eclipse that has the somewhat non-conformant directory structure. I know that it's been discussed ad nauseam in the past, but unfortunately Eclipse doesn't seem to be on the road to recovery any time soon. For those of you who don't know, the problem stems from the fact that Eclipse keeps its plugin and feature files in a subdirectory of the main installation directory (e.g. "eclipse/plugins"). If one attempts to use Eclipse in a shared environment, the permissions on these directories must be lax enough to permit any eclipse users full read/write access. However, this is something of a bad idea since it's not good to allow users to make changes which effect other users's environments.

One possible solution that I've used from time to time, is to install Eclipse into /usr/bin/eclipse (as per Linux conventions) and then move the plugins and features directories to some separate location, usually /etc/skel/.eclipse Then, I create symbolic links in the /usr/bin/eclipse directory pointing to "~/.eclipse/plugins", "~/.eclipse/features" and "~/.eclipse/configuration" respectively. Any users which wish to use Eclipse get the plugins and features directories copied to the appropriate subdirectory of their home. This way, each user can use the update manager and install plugins as they see fit without affecting the global configuration.

The problem with this approach is that one entirely loses global configuration control. For example, if one wants to upgrade the Eclipse major version, all of the ~/.eclipse directories have to be wiped and replaced, losing user changes. Minor changes, such as standardizing on a plugin, are next to impossible with this setup as well. And on top of that, for every user which wishes to use Eclipse, over 100 MB of hard drive space must be allocated. While this is less of a problem than it used to be, it still strikes me as extremely annoying.

To Eclipse's credit, it has started a project to address some of the issues surrounding Eclipse installation on various Linux distributions. Unfortunately, the Linux Distributions Project seems far more interested in perfecting the build/release process to comply more with Linux distribution standards and to better facilitate the creation of packages such as RPMs and DEBs. While this is a laudable goal, it really doesn't address the core problems with Eclipse usage on Linux.

Hopefully we'll see a fix for these problems eventually, but until then I guess we're stuck with sym-links and permissions tricks to make things usable. Do you have a favorite trick to make Eclipse function better in a multi-user environment? If so, I'd like to hear about it.

Until Next Time,
Daniel Spiewak
daniel@dzone.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.
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 - (5 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 - (5 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 - (10 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)

Trying out a bugfix in Eclipse, without redeploying your application.

Apply simple code-changes to the application you're debugging in eclipse, without needing to restart it. This can be a lifesaver if your application takes forever to build and restart and you just want to see the effect of a minor code change.

Full DiscussionPosted By: Daniel Bray - (7 Replies)

Using detail formaters for pretty-printing objects without toString()

Did you know Eclipse can substitute any classes toString() method for displaying output in the Debug view? It's a little-known feature, but can make debugging -- particularly of internal code -- a lot easier.

Full DiscussionPosted By: Alex Blewitt - (11 Replies)

Sort Members

The sort members functionality is under used, but it can be of great benefit. Here's why.

Full DiscussionPosted By: Alex Blewitt - (7 Replies)

Getting Started With Eclipse and Groovy

Groovy, a dynamic language for the Java platform, has reached 1.0 status. Learn how to start working with Groovy in your Eclipse projects using their provided Eclipse plug-ins.

Full DiscussionPosted By: R.J. Lorimer - (11 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.
toggle JSP comments?

When i do a CTRL+SHIFT+C inside of a JSP file, it throws HTML comments in. i need to have JSP comments...

Full DiscussionPosted By: pyroblue - (0 Replies)

Java vs .NET

I am hoping to track down some specifics with respect to the Java platform versus the .NET platform, hopefully with some specific real-world data.

Full DiscussionPosted By: Steve Whatmore - (4 Replies)

how to execute an feature project in rcp

i have creted an rcp plugin project and it is executing fine, but while creating an feature and trying to deploy the plugin in feature i am getting error. so kindly help me out how to create feature p

Full DiscussionPosted By: Johanantonysusai - (3 Replies)

Problem in retrieving results in BIRT viewer

Results can be seen in "preview results" of edit dataset but NOT in preview tab of report afterwards..

Full DiscussionPosted By: vedika - (0 Replies)

How do you scroll programatically?

I am building an imageviewer with zoom feature. Have to scroll image after it zoomed to a point. How do i achieve this?

Full DiscussionPosted By: Alexk - (1 Replies)

Where are the java code style settings persisted?

I'd like to recover the settings from a backup image. I'm certain the settings are stored in an XML file someplace but I can't find it.

Full DiscussionPosted By: Bruce Englar - (0 Replies)

How to save all?

When you click the 'disk' icon on the icons bar at the top of Eclipse it saves the file you are working on. However how can you save all files?

Full DiscussionPosted By: SanH - (1 Replies)

How to create a new template variable?

How to create a new template variable for code template? There is no way to get rid of prefix and return a field with first letter capitalized.

Full DiscussionPosted By: Atif Khan - (0 Replies)

Drag and drop GUI Editor

Does Eclipse have a tool to create GUI's with drag and drop techniques? I want to create a new GUI by dropping controls into a panel.

Full DiscussionPosted By: Brian Kimerer - (4 Replies)

p4wsad, decoration problem

Files in package explorer not decorated with Perforce information. I use p4wsad 2006.2.4134 in Eclipse 3.2.2.

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

RCP Resource locking

Do you know about any locking technique or pattern in eclipse RCP for locking resources? Or may there is some kind of general technique in UI at all.

Full DiscussionPosted By: Oleg Toubenshlak - (0 Replies)

Test cases failing when run for a package

Test cases are passing for a test class but are failing when all they are executed for the whole package.

Full DiscussionPosted By: kapil - (1 Replies)

Anyone want to discuss about rcp development?

Anyone want to discuss rcp developemnt in msn messanger? I thought we can discuss about RCP development and issues faster.

Full DiscussionPosted By: Alexk - (2 Replies)

OS Independent file structure copy

I want to copy a file structure from one location to another, but use java and be independent of the OS.

Full DiscussionPosted By: John Wooten - (0 Replies)

Test Automation issues with test plugins build headlessly

Test auotmation has stopped working since the test plugins are getting built headlessly.The issue is realted to classpath java.lang.NoClassDefFoundErr

Full DiscussionPosted By: Aarati - (6 Replies)

How to divert built to multple folders...

I have an applet which needs to be placed in the WebModule folder to get around security issues on Tomcat. How do i get it from the build folder?

Full DiscussionPosted By: SanH - (1 Replies)

class not found error with installed plugins

Plugin A and B get installed via updater, but A can't find B's classes, even though it works in the runtime workbench.

Full DiscussionPosted By: Ric Wright - (3 Replies)

Dynamic View title changes for more than one locales

I want to avoid the caching mechanism of the plugin.xml view extensions so that view names are dynamically loaded rather than cached in beginning.

Full DiscussionPosted By: Anand - (1 Replies)

Highlight specific XML namespace?

I'm developing webapps with XML templating languages (PHPTAL, Kid) and need a plugin that would allow me to define colours for various XML namespaces.

Full DiscussionPosted By: Dan K. - (0 Replies)

Eclipse RCP- disable minimize button from ViewPart

I wanted to remove minimize button from Viewpart , Editpart. How do i do that. Searched everywhere can't find any thing unless i rewrite whole thing

Full DiscussionPosted By: Alexk - (3 Replies)

eclipse application hangs when I try to create report using BIRT

eclipse application hangs when I try to create report using BIRT gies the error Xlib: unexpected async reply (sequence 0x3a7c4)!

Full DiscussionPosted By: rupam - (1 Replies)

remove/modify CVS repository location?

I have create some CVS repository locations. Now, I want to remove or modify some of them. I don't find any way to get the settings.

Full DiscussionPosted By: Sha Jiang - (3 Replies)

using compare API to compare two files

I'm trying to compaire two files by subclassing CompareConfiguration as ResourceCompareInput does, but I'm receiving a null pointer exception.

Full DiscussionPosted By: amer - (3 Replies)

Problem about checkout module from CVS by "Project from CVS"

After listing the modules available and choosing one, pressing "Next" triggers a "I/O interreputed" error.

Full DiscussionPosted By: speedfirst - (1 Replies)

Help with updates

Problem installing plugins or updates in Mint Linux. Needs the following feature: org.eclipse.rcp (3.2.1.r321_v20060801-2ekW2BxmcpPUOoq) Please help

Full DiscussionPosted By: Eric Windham - (1 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.
Equinox, Mac OS X and Swing -- an unhappy combination

Mac OS X has always been problematic when it comes to SWT, owing to the way that the Mac handles GUI events. Now that the native launcher brings up the VM in-process, it seems that you can't launch Swing apps in OSGi via the Equinox native launcher on Mac OS X.

Full DiscussionPosted By: Alex Blewitt - (14 Replies)

RESOLVED LATER Controversy RESOLVED

Looks like the Eclipse Foundation is finally taking Alex's energetic lobbying against the RESOLVED LATER state to heart. They've now taken the first step towards Bugzilla structure that's more encouraging to the community.

Full DiscussionPosted By: Daniel Spiewak - (4 Replies)

ECF Skype provider in the works

Scott Lewis announced on the Eclipse Communication Framework newsgroup a plan to provide a Skype provider that allows communication to integrate with an existing Skype instance. It won't be long before you can drive your skype chats from inside Eclipse.

Full DiscussionPosted By: Alex Blewitt - (1 Replies)

Team: support for subversion moved to Subversive project

One of the most highly voted for features, that of Subversion support in Eclipse, has been reassigned to the Subversive project. How long will it be before Eclipse ships with SVN as standard?

Full DiscussionPosted By: Alex Blewitt - (1 Replies)

Subversion Proposal vs. Subversion Proposal

Both Subversion proposals are in to the Eclipse foundation, and the kid gloves are off. Who's corner are you in?

Full DiscussionPosted By: R.J. Lorimer - (14 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-2006 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