eclipse

How to generate an Eclipse formatter configuration from a checkstyle configuration?

I have a checkstyle configuration XML file and want to automatically generate an Eclipse formatter configuration from this. Is there any tool that can do this? ...

Generate method returning EMF Unmodifiable list

Hi, I am using EMF through annotated Java code as following /** * Adds the given type to this filter. Has no effect if the given type * already belongs to this filter. * * @param type * the type to add * @model */ public void addEntityType(String type); /** * Returns the list of types belonging to this filter. ...

How can I know how much memory Eclipse plugins use (separately)

Is there a way to know how much memory is consumed by each Eclipse plugin separately? ...

make a refresh on a eclipse project with ant

Hello, we have some ant script for building the different jar we use, in several eclipse projects. ( there is some interdependancie ) At the and of the build, we have to refesh some of the eclipse project in order to make the build path ok. ( without this, he dont see one of the just-builded jar and eclipse throws a build path error ) ...

Removing the Apache TomCat runtime from a project in Eclipse?

I've got a project I've been building on Eclipse Ganymede targetted at tomcat 6.0, I've imported it into Europa and I need it to run on apache Tomcat 5.5 I can't find the reference to where the runtime is set to 6.0 to remove it. I've tried going to Windows > preferences > Server and I've installed the 5.5 runtime. I can't however seem...

how to apply a patch to a Java project?

The patch is for nutch0.9: http://cvs.tty.org/~butch/blog/nutch_0.9_OR.patch how should I apply the patch correctly? OS is windows XP More specifically,I'm using eclipse to debug nutch project. Here is my trial: D:\nutch-0.9.bak>patch -p0 < nutch_0.9_OR.patch Hmm... Looks like an ed script to me... (Patch is indented 5 spaces.) The...

C programming with Eclipse (library mystery)

When I connect a library to my program, Eclipse doesn't generate any executable file, I get only an object file. When I disconnect the library from my program (delete all paths and library functions), I get an executable. However, I don't get any error in the first case. What is going wrong? I work with: Linux, C, Eclipse. Log: ** ...

Eclipse plugin

I want to develop an eclipse plugin to show some special functionalities with Eclipse Java Editor. Except for these minor changes all other things should be same as a normal Eclipse Java Editor. How to do this? Thanks in advance. ...

Eclipse complaining about @Override?

Hi, I have an existing project that uses @Override on methods that override INTERFACE methods, and not superclass methods. I cannot alter this in code, but I would like eclipse to stop complaining about the annotation, as I can still build with maven. How would I go about disabling this error? Note: Due to project requirements, I need ...

JDT eclipse plugin

I want to develop a Java editor eclipse plugin which is slightly different than the normal Java Editor. Is it possible to extend the Normal Java Editor itself? Thanks in advance ...

Finding Struts version?

What is the easiest way to find the Struts library version? I'm adding Struts libraries to an generic eclipse project, and need to be able to differentiate between versions. (Other libraries like Spring have a getVersion() call) I can always read the jar manifest, but I'm looking for an easier way. ...

Using SVN from Eclipse and the terminal prompt

I run ubuntu, and thus of cause I like the terminal prompt. I run most svn commands from the prompt. But I have a problem... I checkout my code using the svn in a terminal: svn co <svn-url> <local dir> nice... Now I go to eclipse and do the development... I have subeclipse and lets say that I do a commit from the svn/eclipse gui. Now...

Include a database file with Android application via Eclipse

How can I instruct Eclipse to copy a file from my Android solution to an emulator, as part of Run/Debug? I have a small database, stored in Assets, that needs to accompany the application. Thus far I have simply copied the file myself using DDMS but would prefer to have it automatically included. The project properties allow me to specif...

Ant build file skeleton to turn an eclipse project into a war?

Does anyone have a skeleton build file that I can modify to war up an eclipse dynamic web project. I need to war it up and make sure that all the libraries/servlets are in the right place. ...

How do I stop Eclipse from refreshing some dir?

Every time I start Eclipse it tries to refresh an entire project, which translates to more than 10 minutes of wait time, not to mention the ridiculous amount of memory it would consume. I know there's a global setting to turn off automatic refreshing (General -> Workspace -> Refresh automatically). Is there a way to turn that off on ind...

stop maven from checking for updates

How can I stop maven from checking for updates each time I start debugging a project from Eclipse? I hope this makes sense as I'm not too familiar with the java development environment. It's just that everytime I start debugging, it will go checking for snapshot updates for dependent libraries. And this gets annoying on a slow internet ...

How to automatically generate comments for getter/setter based on field comments in Eclipse?

I want Eclipse to automatically generate Javadoc comments for my getter and setter methods based on the previously defined comments for the fields. How can I achieve this? Background: A policy in our company is to comment every method and field (even if they have self-explanatory names). So I have to do redundant work by describing the ...

How do you install JDK?

I have eclipse and I can test run java apps but I am not sure how to compile them. I read that I should type javac -version into my cmd.exe and see if it is recognized. It is not. So I went to sun's website and downloaded/installed JDK v6. Yet it still says 'javac' is an unrecognized command. What am I doing wrong? Thanks! UPDATE OK af...

Integrating tomcat and eclipse as a hot-deploy environment.

I would like to setup eclipse and tomcat in an integrated fashion such that changes to my JSPs and servlets(if possible) are reflected immedietely without requiring a deployment. Ok, this is one of those questions that has plenty of answers all across the internet but they all seem different. (use Sysdeo plugin, use JBOss plugin, do stu...

How to delete a java working set in Eclipse

Sorry for the very basic question, but I can't find on google how to delete a working set. So how can I delete a java working set in eclipse 3.4? Thanks ...