eclipse

How to suppress Java warnings for specific directories or files such as generated code

I'm using a parser generator that creates somewhat ugly code. As a result my Eclipse project has several dozen warnings emanating from generated source files. I know I can use the @SuppressWarning annotation to suppress particular warnings in particular elements, but any annotations I add by hand will be lost when the parser generator ru...

Write Java Method Signature with Annotated paramaters with JDT

Hi, I am writing an eclipse plug-in which generates code. I am leveraging eclipse jdt to gen out classes, fields, and methods. One of the requirements I have is to generate methods with annotated paramaters... public returnType foo(@someAnnotation int id) { ..... ..... } Does anybody know how to write out the @someAnnotat...

Eclipse classpath entries only used for tests

In Maven, you can have compile-time dependencies and test dependencies. This is a feature I love, and the M2Eclipse plugin makes this available in Eclipse, too, which is great. So if I add jmock.jar to my project as a test dependency, it will show up on the classpath for JUnit tests, but won't be present when I'm debugging the applicatio...

GhostDoc Equivalent for Eclipse(Java)

I'm a big fan of GhostDoc's automatic comment generation in Visual Studio so am looking for an plugin that does the same job with my Java code in Eclipse. Any recommendations? ...

Hudson continuous integration of graphical desktop application and slave nodes

Hi ! I am currently trying to use hudson for continuous integration of an eclipse-based desktop application. The tests of this application are implemented with Junit and open some windows when running. I am currently facing some difficulties with launching these tests on a linux slave node because display is not exported. Could someone...

Default VM arguments in Eclipse debug configuration?

When I implement new features using TDD, I often use the shortcut "Shift + Alt + D T" to run only the jUnit test case I am currently working on (and not the whole test suite, which takes a few minutes). This creates a new Debug Configuration for the current Java source and runs it immediately. Now I would like to run the test with asser...

How to set the Eclipse date variable format?

How can I set the format for the ${date} variable which can be used in Eclipse templates? ...

Related File Tree in Eclipse

Is there a way to get a related file tree for files in eclipse? In other words I want to know ALL possible files changing a particular file could effect. So if I change an image file I want to know all JSPs that reference that image and all servlets that reference that JSP and all other java classes that reference that servlet... etc. M...

Dependent Breakpoints

Hi, Is it possible to add Dependent Breakpoints(Not a Conditional Bp) ( Breakpoint1 is enabled if B2 is enabled etc..) in Eclipse... I know it is possible in Intellij IDea ..but havent found a way to get this working in Eclipse. Thanks, Pavan ...

How do I get WTP added into FlexBuilder 3

Has anyone managed to get Eclipse WTP working underneath FlexBuilder 3, or get FlexBuilder 3 and WTP working in a vanilla Eclipse install? I had this all working fine with FlexBuidler 2 and Eclipse 3.2, but the FlexBuilder 3 I have is a standalone app and I'm struggling to get any other Eclipse plug-ins to work with it. ...

problem compiling a junit test class with ant

Hello, I am having issues integrating junit with a working ant build.xml file. My test class is in the same directory as my source classes. As I am learning how to use ant, I simply want to compile all the source and the test classes. I am using eclipse and the junit test classes work fine when execute through eclipse. Which means the ...

java.lang.NoSuchMethodError: main when starting HelloWorld with Eclipse Scala plugin

I've just been playing with Scala, and installed the Eclipse plugin as described at http://www.scala-lang.org/node/94, but after entering the "Hello World" test example and setting up the run configuration as described, I get the following error Exception in thread "main" java.lang.NoSuchMethodError: main For reference the code is pa...

Can one automaticaly create javadoc tags for an entire Eclipse project?

I know one can use '<alt><shift>J' to create tags for a single code element (class method for example). But is there a way to automaticaly create these tags for every class in the entire project? Or even just at package or class level? ...

How can I suppress java compiler warnings about Sun proprietary API

I'm using the encode() method from the sun.misc.BASE64Encoder package. How do I suppress the compiler warnings that it generates? sun.misc.BASE64Encoder is Sun proprietary API and may be removed in And as a followup, why don't I see this warning in Eclipse? ...

Eclipse as an cross platform IDE for C++ code on Linux and Windows

Hi, I consider an option to use Eclipse as an cross platform IDE for C++ code on Linux and Windows. Is it possible to set Eclipse to compile code with Visual Studio C++ (don't think it's relevant but Eclipse project files will be created by cmake). Is it possible to debug from Eclipse application compiled by VS C++ compiler? Is it po...

Aptana 1.5 "svn: Error resolving case of"

Hey, I've installed Aptana 1.5 today but after the install all my SVN projects give me an error like this when I try to commit, update, repair, etc: Access is denied. svn: Error resolving case of 'C:\Users\Brayn\My Documents\Aptana Studio Workspace\PentruConstrucii' I've uninstalled my previous version of aptana, reinstalled aptana...

Run Junit-Tests from several projects conveniently fast in Eclipse

Is there a way to run JUnit-Tests from several projects conveniently fast in Eclipse? The JUnit-Runner lets you define a package or a folder where from all contained tests are executed. Is there a way to do this with tests from several projects inside Eclipse? Preferably it should be via the Junit-Runner. If there is some way to have ...

J2ME: Prefetch error -5. MediaException

I get a MediaException (Prefetch error: -5) when executing the following code on a Nokia N73. It runs fine in the emulator and I have tried the same thing before on the same phone successfully. The only difference now is that I am using NetBeans to build and deploy rather than Eclipse. inputPlayer = Manager.createPlayer("capture://audio...

Maintaining Eclipse project include/lib paths in CVS

Background: Here at the office my group uses a common linux environment where we do our code development. Our code is kept in CVS. The latest releases of our various libraries are kept in a specific directory (ie /data/group_projects/lib). Our Makefiles/Ant builds all specify what libraries are needed. We use autoconf to create the make...

How to visualize workflow from Eclipse?

Is there an Eclipse IDE plugin that can generate workflow of Java code? ...