eclipse

How to default the working directory for JUnit launch configurations in Eclipse?

Our Java code (not the test code) reads files from the current directory, which means the working directory needs to be set properly whenever we run the code. When launching a JUnit test from within Eclipse, a launch configuration automatically gets created. The problem is, that the working directory in that launch configuration is alwa...

Dark color scheme for Eclipse?

Is Eclipse at all themeable? I would like to install a dark color scheme for it, since I much prefer white text on dark background than the other way around. Edit: so apparently there is NO easy way to do it. Shame, I really prefer Eclipse to NetBeans, but I cannot stand the white background (and NetBeans does support themes). ...

Unrooted Tests

When running all my tests in Eclipse (Eclipse 3.4 'Ganymede'), one test is listed under "Unrooted Tests". I'm using Junit 3.8 and this particular test extends TestCase. I do not see any difference between this test and the other tests. I don't remember seeing this occur in Eclipse 3.3 (Europa). Clarification: We haven't moved to JUnit ...

Surround with quotation marks

Hi, how is it possible in Eclipse JDT to convert a multiline selection to String. Like the following From: xxxx yyyy zzz To: "xxxx " + "yyyy " + "zzz" I tried the following template "${line_selection}${cursor}"+ but that way I only get the whole block surrounded not each line separately. How can I achieve a multiline processi...

Using customBuildCallbacks.xml in an Eclipse RCP headless build

I am trying to add some custom build steps to my headless build process for an Eclipse RCP application. I understand that the recommended way is to provide a customBuildCallbacks.xml file on the plug-in directory, and adding a link to it in the build.properties file. # This property sets the location of the customb Build callback cus...

A Java API to generate Java source files

I'm looking for a framework to generate Java source files. Something like the following API: X clazz = Something.createClass("package name", "class name"); clazz.addSuperInterface("interface name"); clazz.addMethod("method name", returnType, argumentTypes, ...); File targetDir = ...; clazz.generate(targetDir); Then, a java source fi...

grails plugin for eclipse and netbeans 6.1

Has anyone been successful in getting the grails plugin for eclipse to work? How about grails plugin with netbeans? ...

Is there a way to get jadclipse working with Eclipse 3.4?

I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very useful when delving into ambiguous code in stack traces). ...

Is there an easy way to attach source in Eclipse?

I'm a big fan of the way Visual Studio will give you the comment documentation / parameter names when completing code that you have written and ALSO code that you are referencing (various libraries/assemblies). Is there an easy way to get inline javadoc/parameter names in Eclipse when doing code complete or hovering over methods? Via pl...

Is there an Eclipse add-on to build a python executable for distribution?

I want to build an executable to distribute to people without python installed on their machines. Is there an add-on to Eclipse that allows this? I couldn't find one. If not, do you have a builder that you recommend that would make it easy to go to my python project directory created in Eclipse, and bundle it all up? Thanks, Mark ...

debug JSP from eclipse

Hi, Does anyone know of a good tool for debugging JSPs from within Eclipse? I'd like to be able to set and watch breakpoints, step through the Java code/tags, etc within Eclipse while the app is running (under JBoss in my case). Presumably it's reasonably straightforward to debug the servlet class that's generated from a JSP, but it's ...

How to launch from Eclipse in Low priority under Windows?

I'm running programs from Eclipse (on Windows) that eat a lot of CPU time. To avoid bogging down my whole machine, I set the priority to Low with the Task Manager. However, this is a cumbersome manual process. Is there a way Eclipse can set this priority automatically? EDIT: I realized that each particular launcher (Java, Python etc) ha...

Avoid RePublishing the web application after Eclipse Shutdown

I am having my web application deployed on Tomcat5.5 and I use it in integration with eclipse 3.2.Each time I close the eclipse and restart it, I need to republish the application even when it hasn't been modified. Is there a way to avoid this or any step I am missing ? ...

Java: Eclipse - Diff Trace

I've got two versions of a project with a JUnit test. Looking at the diff of the files there's no obvious reason to this, but the test passes on one project but not on the other. For a while now I've wondered if there was a program that would record a trace through the whole program when it runs and save it to a file. This would be real...

What is the state of C++ refactor support in Eclipse?

Is it at the state where it is actually useful and can do more than rename classes? ...

Is it possible to make an eclipse p2 provisioning mechanism running *locally* ?

Eclipse 3.4[.x] - also known as Ganymede - comes with this new mechanism of provisioning called p2. "Provisioning" is the process allowing to discover and update on demand some parts of an application, as explained in general in this article on the Sun Web site. Eclipse has an extended wiki section in which p2 details are presented. ...

How to reformat multi-line comments in Eclipse PDT?

In Eclipse PDT, Ctrl-Shift-F reformats code. However, it doesn't modify comments at all. Is there some way to reformat ragged multi-line comments to 80 characters per line (or whatever)? i.e. convert // We took a breezy excursion and // gathered Jonquils from the river slopes. Sweet Marjoram grew // in luxuriant // profusion by t...

Eclipse Search Menus disabled randomly

I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with CTRL + H, I am able to access the search functionality. Does anyone know why this happens? Has it bee...

Building Eclipse plugins and features on the command line

I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc. Is there really no simpler solution? Isn't there a way to just point out my Upda...

Subclipse error message "Expected format '3' of repository; found format '5'"

I installed subclipse in eclipse, but I get an error message "Expected format '3' of repository; found format '5'" when I try to open a repository. Here is the sequence of steps that leads to the error message. Select "Window -> Open Perspective -> SNV Repository Exploring" from the Eclipse main menu. Right click on the "SVN Repositor...