eclipse

Quickly create class from an interface in eclipse

Is there a plugin for eclipse which allows me to quickly generate a new class from an interface? Rather than having to do the typing in the new class dialog Ideally letting me choose a standard name like Impl for it to generate ...

TODO/FIXME plugin for Eclipse

Hi In my project there are large no. of FIXME/TODO which are to addressed at some point of time. Actually ther about 480 which can be seen from 'TASKS' list but not organised. I googled and found *com.the_eventhorizon.todo.cdt.decorators_2.0.1* plugin form Task Tag Decorator But unfortunately this is not working . Can anyone suggest ...

How to express inter project dependencies in Eclipse PDE

I am looking for the best practice of handling inter project dependencies between mixed project types where some of the projects are eclipse plug-in/OSGI bundle projects (an RCP application) and others are just plain old java projects (web services modules). Few of the eclipse plug-ins have dependencies on Java projects. My problem is t...

Should I use Eclipse plug-ins (or OSGi Bundles) as a plain dependency management tool?

Heya, once again it has happened... I joined a new project, composed of several plain Eclipse Java Projects, with interdependencies, all managed through the Project build path. I find this all a bit of a chaos. And when it comes to run configurations - you just enter hell. In the past I've sticked to create plug-in projects, instead of...

Create Multiple JARs from Eclipse Project

I have begun working on a project that, at the moment, produces a monolithic JAR file from an Eclipse project. Basically, there is an Ant script that runs anytime the Eclipse Java Builder runs and takes the output of the Eclipse Java Builder (the .class files) and packages that up into a JAR file. That JAR file is then placed in a comm...

How to resolve AssertionFailedException

Hopefully someone can point me in the right direction. I'm trying to create a CellEditor in Eclipse and when I click on the field I get an Unhandled event loop exception with the stack trace below. The cell editor code for this column looks like this /** Cell Editor Row 2 **/ textEditor = new TextCellEditor(table); ((Text)textEditor....

How do you manually install the eclipse-CDT plugin from an archive/zip on ubuntu?

I have successfully installed Eclipse 3.5 and Java 1.5. I would like to install CDT without using Eclipse's "install new features" (nor can i use the Eclipse-CDT installer) option because this computer is offline. What I did: I downloaded the archive of cdt from CDT's official download page. I used file-roller to unzip everything into...

How to search for carriage return in eclipse

Hi, If i have the following text in my eclipse editor: Text Line 1 Text Line 2 I would like to concatenate the text into: Text Line 1Text Line 2 My first idea was to search for carriage return character '\n' and replace it with '' to concatenate it. I tried using the search function of eclipse, but it does not recognize carriage ...

Eclipse: Copying over new files while diffing

I'm using Eclipse's graphical diff tool to merge two different branches of a Subversion-hosted project into the workspace. Line-level differences are simple; I can just click the "Copy Current Change" or "Copy All Non-Conflicting Changes" buttons. But how do I use the diff tool to copy over file-level differences, i.e. files that exist...

Server Tomcat v6.0 Server at localhost failed to start

I have actually figured this problem out, but it took me days, so I thought I would paste my solution here to aide others. I am using Fedora 11, and in Eclipse I tried adding a Tomcat 6 server and starting it. I would get the following error: 'Starting Tomcat v6.0 Server at localhost' has encountered a problem. Server Tomcat v6...

How do I configure autoformatting in Eclipse?

I dislike how auto format messes up empty cycle body, like: Before for (int i = 0; isTest(i); i++); After for (int i = 0; isTest(i); i++) ; How to configure eclipse not to do this? ...

In an Eclipse plugin, how can I make a DirectoryFieldEditor start with a particular path?

I am making an Eclipse plugin which on right clicking a project produces a UI. In this UI I have used DirectoryFieldEditor. This produces directory dialog starting at "MyComputer" as root. What i want is it to show paths starting at the project which i right clicked. how can this be achieved? I am trying to mimic when you right click a...

Can I set up arbitrary commands in an Eclipse Java project run configuration?

I have a Java Eclipse project, but I don't run it from the command line using java.exe. Instead I run it through a python script that runs the java. What I'd like to do is run this when I hit the 'Run' button in eclipse and see the output in Eclipse's console window. Unfortunately the available run configuration options available are a ...

Can I add a multipageeditor to a multipageeditor

I have an EMF project and i want to use the editor from the emf inside a multipageeditor i have created. Can I do it? or should I change the multipageeditor from the emf to regular editorpart (keep just one editor) ...

Powermock and problem loading jar file file during unit test with JUnit 4 in eclipse

I am using powermock 1.2.5 to perform a class that saves data into Oracle database. When I run my test my unit test fails with the following exception: NoSuchAlgorithmException : DES Algorithm can be found. After debugging the code I found out that this exception is thrown when my application is trying to set the password to establish...

How can I set up the "Working Directory:" from the "External Tools Configuration..." in Eclipse?

Hello everybody, When I open a source file from my project and I run a custom build script, I want the working directory to initialise to the actual current working directory from which the source file was opened. Any idea how to do this? UPDATE: Also, how can I set the "Working Directory" to one level above the actual working directo...

Document root problem in Eclipse/PHP/Zend

Environment: WindowsXP, Eclipse Galileo, Zend Community Edition (I have configured Eclipse to use the PHP binary in Zend.) I configured the Apache document root within Zend to point to my Eclipse project folder. So I can use URLs like this: <form action="http://localhost/myscript.php"&gt;... But this doesn't work work: <form action...

VEditor (Verilog Editor for Eclipse) in Eclipse Galileo

Hi all! I installed VEditor (http://sourceforge.net/projects/veditor/) in Eclipse, apparently successfully. But I can't seem to use it! I'm new to Eclipse plugins (and to Eclipse itself, as a matter of fact), but I'm guessing I would have the option to create a new project with the type "Verilog Project", or something, but there's no su...

Eclipse complains about name clash if an interface with a method having a generic argument is implemented.

There are already some discussions here on stackoverflow about Java generics, but I am too stupid to solve this specific question. I have defined an interface in a project, and its implementation in another one. They are in different packages. Instead of implementing the method, the compiler complains in some workspaces: Name clash: The...

@WebServlet annotation support in java 1.6.013

Hi, I'm stepping into the world of Servlets and 3.0 in particular and I saw certain methods and annotations used in examples and tutorials which talked about this being available when JAVA 6.0 is released (which it has) and now when I try to use the above annotation for example in Eclipse it does not recognize it although I have java 1.6...