eclipse

JARS necessary to distribute Eclipse EMF based library?

I'm working with a library (MDHT from OpenHealthTools) to parse CDA XML. It relies on parts of Eclipse and the EMF plugin for Eclipse to do its thing. I've addressed most of the dependencies, but I'm still running into this error: Could not initialize class org.eclipse.core.runtime.Platform java.lang.NoClassDefFoundError: Could not init...

GEF java draw2d Layout that adjusts to the width of the container so that it spans over more lines

I need to show a line/multiline of images in GEF GraphicalViewer, so that it adjusts to the width of the container by spanning over more lines ...

How to disable eclipse annotation error

HI, In eclipse, I get the following errors in my project: The annotation @SuppressWarnings is disallowed for this location Can you please tell me how can I turn those errors into warnings? Thank you. Look like it is a bug in eclipse3.6M5. This is the code which gives me error. But it works fine in eclipse3.6M4. package java.lang.an...

How to add file revision (not the last changed revision) to Subclipse "Label decorations"?

Firstly, please beware I'm new to SVN. Then, my question has much in common with Get current revision number in Subclipse?. The (seeming) problem is (I use Ecpilse v3.5.0 (build id I20090611-1540)): My freshly installed Subclipse plugin offers "revision - last revision loaded into workspace" label under "Windows > Preferences > Team...

What is the recommended way for SWT Views (ViewPart) which receive a external event to update a GUI element?

My View is derived from ViewPart, but I have a listener on it which receives Events from non-GUI threads. If something is supposed to happen on within the GUI thread, it has to go through asyncExec(). So far so good. The thing is, the GUI elements are created in createPartControl(), so they can't be final. At the moment I just put th...

Eclipse Galileo SQL Editor: is there a code formatter (tidy) function?

I do like the SQL editor now bundled with Eclipse but I can't seem to find a way for it to format my code like eclipse will with my java. Did I miss something, or does anybody have any alternatives? Thanks ====EDIT==== I'd also be happy if there was an alternate plug-in that someone could recommend. ...

Run all tests in Junit 4

I want to be able to run all tests in a project programmatically. I know Eclipse has a "Run as JUnit test" configuration which somehow grabs all the tests in a project and run them. Is there any way for me to also grab the list of tests programmatically and run them? Or is there some good way to construct a test suite containing all the ...

Android Device Chooser -- device not showing up

I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse proje...

Newbie setting up eclipse. How do I add java IDE to a c++/c packaged version of eclipse.

I'm new to eclipse, perfer netbeans actually, but android tutorials use eclipse. The eclipse website is a mess and just confuses me. What projects do I need to install to have the same functionality as the eclipse package for java devs. Any help is much appreciated. ...

Runnable jar with jvm args.

Hello, I was trying to create a runnable jar file using Eclipse. The problem is that the vm parameters I have added to the run configuration in the Eclipse were not saved in any way. I know I can create a batch file that will run the jar with the needed arguments, but I would prefer my users will just run the jar itself. My question is...

Eclipse shortcut to run a class

I have an Eclipse project where I often launch the same java class. I have added my run configuration to the favorites menu, but to launch it I still need to click on the run-drop-down menu and click the icon - is there any way to associate a shortcut to this? When I searched for it I got lost in all the plugins & other things which seem...

Problem in creating stateless session bean using eclipse

Hi all I am new to EJB and i just started to create helloworld stateless session bean in eclipse. I gave file->new->project then select ejb... But after the project is created when i tried to create session bean by right clicking the project and selecting new->session bean->stateless bean.... Its asking for "enter project name".... ...

Poor debugging support for Grails web app in Eclipse

Hi, I'm an everyday C#/ASP.NET MVC/Visual Studio user and i've just started a project in JAVA/GRails/Eclipse but i'm finding it quite difficult to use Eclipse's debugging features and find them somewhat limited compared to Visual Studio's. In particular, i'm finding the following rather disappointing but i don't know if they're limitati...

Tomcat won't recognize a second application when it's added

I am creating Web Applications using Eclipse and Tomcat v6.0 I have one dynamic web application running on the server and it's working fine. However if I add a second web application it will not be recognized by Tomcat. Everything appears to be fine and there are no errors, but i cannot load the application when i put in the correct...

Separate class paths for test code and main code

I have two source trees in my Java application in Eclipse. One is "src", and one is "test". Each one contains a directory tree of .java files. So far, so good. However, I would like the classes in "test" to be able to see the classes in "src", but for the classes in "src" to not be able to see the classes in "test". Similarly, I wan...

Failed to parse the output of 'adb version'?

I am running Windos 7 and Eclipse 3.5 and I don't know why I keep getting this error. When I try run the program it gives me: [2010-02-13 23:09:41 - HelloAndroid]The connection to adb is down, and a severe error has occured. [2010-02-13 23:09:41 - HelloAndroid]You must restart adb and Eclipse. [2010-02-13 23:09:41 - HelloAndroid]Please ...

Problem with javadoc in Java

I am using Eclipse IDE for my Java Project. I have one problem. I have the methods in my project which have the javadoc comments like as follows: /** * Retruns the string representation of a input stream * @param in * @return * @throws IOException */ public static String getStringFromInputStream (InputStream in) throws IOException...

Confused about IAdaptable with IActionFilters

I'm confuse about IAdaptable and related classes. Which class is the adapter, the adaptee, the adaptable type? [Context] I have a context menu for entries of a table/tree viewer. Certain actions in the context menu must not be visible depending on the state of the respective object in the viewer (i.e. attribute value of a row in the ta...

How to create a Hello World SWT application in eclipse?

I am trying to follow instructions in Eclipse to create my first Hello World SWT application. I have problems on the first step. In the instructions the following is written: Open your Web browser to http://eclipse.org/downloads/, navigate to the Eclipse Platform project section, select the latest release build, and find the ...

Problems opening php files in Eclipse

Hi, I've just set up PDT in eclipse (Galileo), but get the error below when opening any .php file. Does anyone know how I can fix this? Thanks in advance TAO. PHP FILE: <?php echo "test" ?> ERROR: Could not open the editor: Editor could not be initialized. Details: java.lang.AbstractMethodError: org.eclipse.php.internal.cor...