eclipse

Eclipse PDT Ant

I downloaded the Eclipse PDT 2.0 GA release (Eclipse 3.4), however, it doesn't look like the Ant tools are included in this package. How can I install the eclipse Ant tools (editor, executable, etc...)? ...

Managing dependencies with Eclipse and CVS

I have a bit of code for a dll that is needed by two or more projects in eclipse. Currently each project has a copy of the code and builds the DLL separately. I want to separate the dll code into a separate eclipse project so there is a common location. But I want to avoid the situation where we have to build the dll in the one project, ...

How to fix eclipse spinning CPU while debugging on tomcat server

I know stackoverflow is meant for programming problems, but this is exactly the kind of thing you search for on google and other people ask the same question with no answer, which is exactly the kind of thing I read stackoverflow was for. I run ganymede I'm debugging a servlet in tomcat on windows. When I do a line by line trace, all of...

Where do Eclipse sub-processes (launched with the "run" menu) show up?

I'm using Eclipse 3.4.1, moving my first steps. When I run my project (a server process) a console opens. But for some reasons after a while I can't find it anymore (even if the process is still up). I'd like to find it to be able to see its output and/or kill it. Is there a place in Eclipse where I can find all running sub-processes? ...

Conveniently move a class to a different package in eclipse without borking svn

When moving a file from old.package to new.package I want two things to happen: Update all references to that class (in all files of the project) so that the new package is used svn move old/package/Foo.java new/package/Foo.java I use subversive within Eclipse Ganymede. When I just drag the file from one package to the other, all ref...

Best crossplatform C++/QT4 development environment

Hi! I would like to develop cross-platform applications using C++ and QT4. I code on both Linux and Windows (MinGW). Currently I'm using KDevelop and it's QMake integration. On Windows I'm trying out Eclipse with QT integration plugin. However moving sources and updating profiles/IDE project files on both systems is tedious. I'm looki...

Eclipse Plug-in Development with TDD

I want to add a view to a perspective without having access to the source code of the perspective. Is this possible? Is there a good tutorial for plug-in development using TDD? [edit] I think I have a good starting point with TDDing in plugin development Automating unit tests (junit) for Eclipse Plugin development [edit 02/17/09] I wa...

What's a good way to view dojo's javascript source files in Eclipse with Aptana?

I have Aptana installed within Eclipse. I'm working on a project with the dojo 1.2 JavaScript library installed. When I open one of dojo's dijit .js files, the code is formatted in a rather difficult to read way. The Eclipse "Outline" view shows a list of functions with names like "_2" and "ew". Not very human friendly. I'm talking a...

How to speed up the eclipse project 'refresh'

I have a fairly large PHP codebase (10k files) that I work with using Eclipse 3.4/PDT 2 on a windows machine, while the files are hosted on a Debian fileserver. I connect via a mapped drive on windows. Despite having a 1gbit ethernet connection, doing an eclipse project refresh is quite slow. Up to 5 mins. And I am blocked from working ...

Syncing web project dependencies maven -> eclipse

I've got m2eclipse plugin installed and there's no problem syncing compile time dependencies that appear in pom.xml. Now, I add JPA + Hibernate(or whatever) dependency that maven catches up just fine when doing mvn jetty:run. The problem is, Eclipse doesn't. So I don't get those extra .jars deployed on the referenced tomcat when I laun...

Java: export to an .jar file in eclipse

Im trying to export a program in eclipse to a .jar file. To my project in I have added some pictures and pdf. When im exporting to jar file, it seems that only the main has ben compiled and exported. My will is to export everything to a jar file if its possible becaus then I want to convert it to an extrakteble file, like .exe-file. But...

Unable to run junit tests in Eclipse

I and my colleagues have an intermittent problem running junit tests or tomcat from within Eclipse. Sometimes the tests will run. Sometimes they will not. There appears to be no pattern and we are not in sync. IE mine might run and others will fail. Stopping/starting Eclipse can resolve the issue (sometimes). Pulling out the network ca...

Is there a way to remove private members from Content Assist in Eclipse

I'm in Eclipse writing Java. I come from Visual Studio with Resharper writing C#. When Content Assist comes up, I see all the private members of a class, even though I'm not editing that class. Is there a way I can turn that off? It's really distracting. ...

How do I view JRE's source code in Eclipse?

Using Eclipse I want to view the source code for a core Java class (E.g. java.util.concurrent.ConcurrentHashMap) but when I navigate to the source using 'Open Declaration' it says 'Source not found' and gives me the option to attach the source. My question is; how do i attach the source? Where do i get the source .jar from for the java....

Eclipse, ant and custom tasks

Sorry, I'm not terribly experienced with Ant. I like the eclipse "Export ant buildfile" function, but I need to insert a few custom tasks (Copying files, calculating checksums that are used at runtime, etc). How do I integrate custom ant tasks with the antfile that Eclipse exports? Also, once I've done so, will the internal build (Run...

Eclipse configuration docs to link and edit an existing web app

I have been trying to learn how to use eclipse for J2ee web development and have heard alot of great things about it. I have had a lot of success my self When starting a project from scratch and building everything within the eclipse work space. This was all fun and games however. For part of my job, I am part of a team that builds web...

Updating a class after changing its Interface

Hi, Say I add a function to an outstanding Interface. In Visual Studio, within a class which implements it I can right click the Interface declaration and re-implement it. This will update the code to reflect the changes made. Is there anyway to do the same thing in eclipse? It'd be nice if there was. I've searched the net, alas no joy....

Can you define your own template variables in Eclipse

In Eclipse there are templates that help you by automatically inserting some code or comments. You can edit these templates yourself via Preferences > Java > Editor > Templates. There are so-called "template variables" that you can use to make these templates a little smarter. For instance, there is the ${see_to_overridden} variable tha...

How to get a more compact automatic indentation in Eclipse (for Java)?

What is the code formating option to indent as: Log.w(TAG, String.format( "Upgrading database from version %s to %s which will destroy all old data", oldVersion, newVersion)); instead of as: Log .w( TAG, String .format( "Upgrading database from version %s to %s which will destroy all old data", oldVersio...

Simple SWT question, how to have text fields fill 100% horizontally

If I have a text field with SWT, how can I get the field to fill to 100% or some specified width. For example, this text field will only reach for so much horizontally. public class Tmp { public static void main (String [] args) { Display display = new Display (); Shell shell = new Shell (display); GridLayout gridLay...