eclipse

m2eclipse and Eclipse WTP

I have a very large workspace with about 30 projects all together. I am using Eclipse 3.5 with m2eclipse. I check out of my subversion repository using the defaults in order to import the projects into my workspace. I create a Tomcat server instance, and publish my web project to the tomcat server. Sounds easy enough. The problem is...

Two Android apps in the same Eclipse project?

I want to build two Android apps from the same code base. The difference between the apps is very small - app name, one or two resource files, and whether to show ads or not (basically, a free and a paid version of the same app). This is pretty simple to do in XCode for an iPhone app, but I'm not sure how to approach it in Eclipse. Is...

Impact Analysis using Eclipse for Java application with framework code

Can impact analysis be done in Eclipse? If there are a few classes and methods that need to be changed, finding the impact of that change on rest of the application code (other classes and methods) The core issue is when there is code apart from core java that is XML, JSP, framework code etc ...

How to Write Ant Scripts?

Hi Experts, Can anyone tell me how to write Ant script (if i want to create my own) mean is there any kind of tutorial available? Eclipse/Netbeans provide Ant script automatically but can it be possible to edit and customize them as per requirement? If yes then how to do this and how to customize the workspace which is provided by IDE...

Eclipse CDT setup for remote build

Is there a better way to setup Eclipse CDT for local editing and remote building? I am working on a C++ project that uses GNU make in Linux. The code is under CVS on a Linux server. When I'm in the lab, I use Eclipse CDT on a Linux-x64 PC. The project is built on a Linux-x86 PC. All the computers in the lab (including the CVS server) h...

Opening an existing Java project

Can someone help me to open an existing Java project using Eclipse or Netbeans? It's a specific project on SourceForge, SMPPClientServer. All I want to do is to just get this project to run. But, this seems like a challenge at the moment as I'm totally new to Java (I'm a C#.Net developer). ...

PDT autocomplete broken in Eclpise

Suddenly I can't use autocomplete in my Eclipse PHP projects. When I press alt+/ I jsut hear a dummy sound. Which settings should I check? ...

Input values to a normal JAVA SE program

Hello everyone, I'm new to JAVA and I'm currently trying out both Netbeans and Eclipse. I'm confused about inputting values to my JAVA application.I see the output getting displayed on the output window in Eclipse ...but,I don't know how to input values ...?? In a normal console application in .Net,we can input values through the conso...

Compiler difference between IntelliJ and Eclipse

I have a class that looks like the following. This class compiles fine on Eclipse build 20090920-1017: public class MyScheduledExecutor implements ScheduledExecutorService { ... public <T> List<Future<T>> invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException { ... } ...

The bundle could not be resolved in RCP-RAP application

Hi, I have a RCP application which constitutes of a number of plugins. And now, I try to develop RAP application which uses my old plugins. My RAP has a dependency of one old plugin. I created my own target platform and I added RAP sdk and other many eclipse platform libraries. When I run my RAP application, I get this exception. Do yo...

Eclipse Create Multiple Class at Once

Eclipse as a option to create a class automatically once a undefined Object is detected e.g. Tester test = new Tester(); It will ask if you want to create the Tester class. Does it have an option to create multiple class/batch create the necessary classes? I have have 50 classes to create and this is kinda tedious ...

How to set a fixed width of editor window in Eclipse?

Hi Recently I have got a new 22" monitor. Finally it's possible to keep all needed windows in Eclipse open while having the main editor window wide enough to display all 120 columns. Problem now is when I wide up or narrow down windows on the left or right side of the editor. Editor's width narrows down or wides up. I'd like to set its ...

How to get method count in a type (interface/class/enum) in Eclipse?

I want to know how many methods an interface declares or a class/enum implements. How to get that in Eclipse? ...

Eclipse: How to go to a error using only the keyboard (keyboard-shortcut)?

Let's say I have a file with 10 lines and I have problem with the name of the package (or something) and the cursor is on the last line of the text. How can I go directly to that line to see what is the problem and what are suggestions to remove the problem, using a shortcut? The question is: Do I have a keyboard-shortcut for this? ...

Java Illegal class modifiers Exception code 0x209

I have an issue with a legacy code base. I want to start compiling it with 1.6 class format, but there is one problem which reveals itself only when I try to run the compiled code. I get the following exception: java.lang.ClassFormatError: Illegal class modifiers in class FooBar 0x209 Googling this doesn't reveal a lot of details. Acco...

How to properly roll back to an older version in CVS HEAD using Eclipse?

I have a CVS repository in which I have a set of Eclipse Java projects where I need to roll HEAD back to the state it was at a specific time yesterday essentially abandoning all commits happened since said time. I've tried different things, including using "Replace with another branch or version" which gives the proper sources, but wher...

Why do I have to routinely Clean one particular project in Eclipse?

I am using Eclipse 3.5 for several different Java/JSP projects. All of our project code is stored in Subversion. I use the Subclipse plugin to update / commit code. This works great for all projects except one. There is one project where almost every time I do a SVN update, the entire project becomes riddled with Java compile errors....

Is there a way to make Eclipse run a JUnit test mulitple times until failure?

We occasionally have bugs that appear once in every X runs. Before people check in stuff (where it is automatically JUnit'd), our devs need to pass JUnit locally via Eclipse. Is there some convenient way (built in or high-quality Plugin) to make Eclipse run the same test X times and stop if there's a failure? An alternative to just cli...

Eclipse GEF on Mac Snow Leopard

I've been in upgrade mode this month and upgraded my Mac to Snow Leopard. I've developed a good sized Eclipse RCP which uses GEF. I upgraded Eclipse on my Mac to 3.5.1-x86_64, latest XCode, etc. Eclipse 3.5.1 works well; however, when install GEF-3.5.1, the SWT plugin doesn't seem to load properly. I do see the GEF n Draw2D plugins i...

Easiest way to know LOC on Eclipse

I am working on a project using Eclipse 3.4.2, and would like to know how many Non Comment Lines of Code (NCLOC) it has. It is OK to be a simple plugin, but I don't wan too much bloat. My machine is already slow the way it is. ...