eclipse

Is it possible to Create Patch in Eclipse from changes that have already been committed?

I've used the Create Patch facility in Eclipse to create patches for uncommitted changes. I'm looking for a way to create patches in Eclipse for changes that have already been committed to the VCS. Unless I've missed something I don't think this is possible, but is there a plugin that adds this capability? e.g. enabling you to select tw...

How to determine at runtime the path to a Mavenized Eclipse project directory

Total Maven newbie, trying (along with the rest of a sizeable team) to convert a monstrous pile of legacy code from ant over to Maven. It's working reasonably well, but I'm having the following problem. I have a project, let's call it Core, that at runtime needs to load some files checked in under some different projects, let's call the...

Is there a problem-free way to run Scala 2.7.7 unit tests in Eclipse integrated nicely?

I'm developing Scala code using Eclipse, often when I run tests I get this error: No tests found with test runner 'JUnit 3'. Environment: Eclipse for Java Developers, 3.5.1 Scala 2.7.7 JUnit 4.7 I'm currently writing my tests as JUnit3 tests, and invoking them by right clicking on a package in the project explorer, choosing Run As ...

Cannot "Install New Software" in Eclipse 3.5

I have just installed Eclipse 3.5 for Java EE developers ("Galileo"). I need to add an extra plugin, but when I select the "Install New Software ..." menu item, nothing happens. Literally nothing - no dialog opens, no error message is displayed. If I have the Debug window open, no message are displayed. If I go to Preferences -> Instal...

Eclipse no longer displays compile error badges

The compile error badges have stopped showing up on my source files but still display at the project level (see screen shot below). They used to show up for me, but since this morning, they've stopped displaying as they usually do. The exact compile error still shows in the Problems view, but there is no quick way to determine at a glan...

Eclipse Spring Builder set properties with Groovy beans

I typically use groovy to construct simple bean but the Spring IDE plugin to eclipse fails to build when I try to set a property that is generated by groovy without an explicit setter. For example, class MyGrooyClass { def propertyA } and in the spring configuration file I have something that looks like: <bean id="MyGroovyClassBe...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything that could assist in migrating from eclipse as well would be appreciated. ...

Eclipse git checkout (aka, revert)

Is it possible to do the equivalent of git checkout from within Eclipse using the EGit plugin? I have a file that's been modified. I want to discards the changes and revert the file back to what's in the source repository. In Subversion this is called revert. In git the equivalent is checkout. I can't find any menu item under Team that...

Eclipse for Mac OS 10.4

Does anyone know where I can get Eclipse for Mac OS 10.4? I have tried downloading versions that say "10.4 or later" but whenever I run it it tells me I need 10.5. Has anyone else this problem? ...

Why do errors no longer appear in Eclipse's package explorer?

My project used to be fine - errors showed up in the file margin, the editor breadcrumb, the problems view and in the package explorer tree as little red X marks. Somewhat spontaneously though, it's stopped working properly. If I introduce an error into my code, it shows up in the file margin, and nowhere else. It takes a 'project clea...

Eclipse behaves strangely on Ubuntu 9.10. My buttons won't work after the upgrade!

Everything was fine until I did an upgrade from Ubuntu 9.04 to 9.10. Since then, Eclipse just doesn't respond properly. The following are the symptoms I can see: When I click on update, it grabs the available updates but doesn't show them. Any internal window that is displayed has corrupted buttons I cannot click on any of the buttons...

How to setup tomcat with Eclipse?

I've been spoiled by .NET development and this is driving me NUTS. I am on Galileo. Installed the WTP. Installed tomcat 6 through the windows installer. If I go (in eclipse) to Window --> Preferences --> Server --> Runtime Environment I get no tomcat option at all, as in a number of tutorials - only a basic folder with the useless J2...

Debugging Java code line by line

Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice. ...

Eclipse Project Printing

Hi all, I have to print out one of my projects and the built-in print function of Eclipse isn't doing a good job at all. Font, font size, page border etc.. Does anyone know a plug-in or tool to print out my whole project easily? Maybe with some formatting options on it? After a little bit google, I've encountered enscript but its an ...

Group and counting a String in Ant

I have the following problem. I have something like 300 Eclipse Plugins. Now, as part of an ant script I want to read all MANIFEST.MF files and then look for the execution environment string. Bundle-RequiredExecutionEnvironment: J2SE-1.4 Now, this string has several possible values. I want to create a report that lists the execution...

Error in Preview of Custom Eclipse refactoring

I am implementing an new eclipse refactoring. This will enable developers to Pull-up the preconditions statements from a child method to the parent method. This all works perfectly when I select "Finish" in the refactoring wizard, but when I select "Preview" I get an error "No target edit provided." This seems to be caused by a prob...

Syntax error on token ";", { expected after this token

why is there syntax error on this line ( shown below ) package org.temp2.cod1; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import java.io.*; public class Code1 { byte[] plaintext = new byte[32]; // <<<<<<<<<<<<<<<<<<<<<<<<<< syntax error for (int i = 0; i < 32; i++) { plaintext[i] = (byt...

How to preload custom colors in SWT ColorDialog

Hi all, my application users the SWT Color Cell Editor to set a color property. This class in turn users the native color dialog - which offers preset and custom colors. My users are frustrated because whilst the color dialog allows them to enter custom colors, the application doesn't remember these custom colors (in either Win32 or OS...

eclipse build path

Is there a way I can keep the jars on my build path from showing up in the eclipse project? I have a libs folder they are all under which is fine, but when I add them to Eclipse's build path they get reproduced just below the project making a huge list of jars and making it generally hard to find things. I've tried filtering them and fin...

Separate standard output from standard error when running a program in eclipse

I am debugging a Java program in eclipse. This program normally writes binary data to its standard output but can write error messages & stack traces to its standard error stream. I would like to redirect the binary data to a file, while continuing to show the standard error output in a console. This is trivial when running from the c...