eclipse

How do I add a library in Eclipse?

hi, I downloaded the Gson library from http://code.google.com/p/google-gson/. The archive contains the following jar files: google-gson-1.3/gson-1.3-javadoc.jar google-gson-1.3/gson-1.3.jar google-gson-1.3/gson-1.3-sources.jar How do I set my Eclipse to be able to use the package in my projects? Where do I put the documentation? Tha...

Can SqlAnywhere's UltraLiteJ DB tables be viewed in the Database Explorer of the Eclipse IDE

Hi, I am developing a Blackberry app which should be able to access a DB. Here is my development environment and the tools I am using: Eclipse (Galileo) IDE with the Blackberry plugin installed. Blackberry OS 5.0 SQLAnywhere's DB 11 with UltraLiteJ (I am targeting Blackberrys running OS 4.1 and above) I have successfully executed a s...

Eclipse CORBA plugin howto

Hello all, I'm new to CORBA and I need to learn how to use it with C++. I see that there is a CORBA plugin for Eclipse, is there some tutorial on how to use this plugin? Are there better ways to use CORBA with Eclipse? Or any other way without Eclipse ;-) Thanks in advance, Pedro ...

Issue using gson with Android in Eclipse

Hi, when adding gson 1.4 to the java build path of my Android project I get the error shown below. Anybody can help? thanks [2010-05-03 18:42:07 - Atable] UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/google/gson/annotations/Expose; [2010-05-03 18:42:07 - Atable] at com.android.dx.de...

How to keep IDE configuration files out of code repository?

How can I keep IDE configuration files out of a (svn) repository? The only way I can think of is with very specific "add" and "commit" commands. ...

including pre-built java classes into an android project

i'm trying to include a maven java project into my android project. the maven project is the greader-unofficial project which allows developers access to google reader accounts, and handles all of the http transactions and URI/URL building, making grabbing feeds and items from google reader transparent to the developer. the project is ...

Make Custom Project template in Eclipse IDE

I have been using Eclipse IDE for a long time. Its a really great IDE for Java/C/C++ (and other languages with its THOUSANDS of plugins). Every once in a while, I get the need for creating a Javax interface. To do this normally, I would setup the new java project then add what I need. But, wouldn't it be nice if I could just make a templ...

How do you update a JFace Viewer from inside a Job?

Caveat: I'm still struggling with proper MVC in Eclipse plugin development, so if you see anything here that is most likely causing me more pain that I should be enduring, please let me know. The question: I have a View with a JFace Tree Viewer and a Table (not a table viewer... that will be changed down the road). I have an action th...

Change color of spelling errors in eclipse

This there a way to change the color of spelling errors in Eclipse (Galileo)? The default red underlining is indistinguishable from the normal error underlining. ...

How to Use Eclipse to Debug JNI code (Java & C/C++)

While I can debug my application with the Eclipse JDT debugger for Java code and GDB for C code, I would prefer to use a single tool for all my debugging. I found several projects that enable "mixed-mode" debugging in Eclipse and include support for single stepping between Java and native code. Intel's Integrated Debugger for Java/JNI...

Issue with 'Hello Android' tutorial

I am brand new to Eclipse and Android, but somewhat familiar with Java. That having been said, I tried to follow the 'Hello Android' tutorial from the developer site using the latest Eclipse (Galieo) and the 2.1 Android SDK, I am on a Macintosh running Snow Leopard (OS X 10.6). I have a default virtual device (though my target is actu...

Determing size of visible area of a ScrollingGraphicalViewer in Eclipse GEF

I am attempting to create a simple application using Eclipse GEF that displays a diagram inside a ScrollingGraphicalViewer. On start-up I want the diagram to be centered inside the viewer (imagine a star layout where the center of the star is in the center of the view). Here are what I think are the relevant code sections: My view: pu...

Eclipse plugins vs features vs dropins

What is the difference between the plugins, features and dropins folder from an eclipse installation? What is the correct use of these folders? ...

How does the Eclipse debugger gets the information about private variables inside the class?

this was an interview question posed to me..I vaguely answered it uses Java reflections..but I was not sure. how does that work? ...

Maven webapp with Eclipse and WTP plugin deploy files in stranges ways in Tomcat

Hi, I use Eclipse J2EE 3.5 with Maven and tomcat. To deploy my maven webapp with WTP I added a Dynamic Web Module facet and changed the "org.eclipse.wst.common.component" file of the project because the webapp is not in a WebContent directory, here is the content of the file: <?xml version="1.0" encoding="UTF-8"?> <project-modules id="...

eclipse: calling organizeimports programmatcally

Hi, I'm trying to execute 'OrganizeImports' programmatically on files that I'm editing programmatically. My code looks like this: final ICommandService cmdService = (ICommandService)PlatformUI.getWorkbench().getService (ICommandService.class); if (cmdService != null) { final Command cmd = cmdService.getCommand(IJavaE...

Close an eclipse RCP application when workbench is not ready yet?

How do I close an eclipse RCP application on startup, i.e. when the workbench is not yet available? Usually I would use PlatformUI.getWorkbench().close(); but this does not work on startup. I am doing some checks on startup in one of my plugins Activator classes and I would like to close the application in case the checks fail. ...

Eclipse/Subversive: How to switch projects in bulk?

I have a good dozen projects that I need to switch from one branch to another (once in a while). It takes me usually 20 min. to do on every occasion and is error prone. I'd like to know if there is a way to switch those projects in bulk. Is there a way to create scripts with parameters in Eclipse? The parameter being a section of the sv...

after starting eclipse my phone (htc desire) disconnects form my pc

Hello, My phone(htc desire) loses connection with HTC Sync, version: 2.0.33 on my laptop when I start eclipse galileo. I have windows 7 32 bit. The followings are what I have done to solve this problem but with no luck: unplug and replug the usb cable. installed the old version of HTC sync uninstalled the old version and installed th...

Setting PATH in Makefile run by eclipse

I have a Makefile which runs fine from a bash shell, but fails to run from Eclipse. This is because the path I am setting in my .bash_profile is not getting used. What is the best way of making this happen? Is there somewhere else I could put the path, to make sure it is invoked in non-interactive shells (which is I assume how eclipse i...