eclipse

How to disable smart indent in Eclipse for Java code?

When I type class Bar { + Enter, Eclipse 3.5.2 indents the next line, like this (_ is the cursor/caret): // Eclipse 3.5.2 does this for Java code by default. // I don't want this (smart indentation). class Foo { class Bar { _ How do I disable this so-called smart indentation (for Java code), and revert it back to normal auto-ind...

[Eclipse] Creating code template that evaluates newly created var

I am writing a lot of unit tests these days. And I want to minimize the amount of typing I have to do. So I have created several Eclipse coding templates. Most of them work fine. But, recently I want to do a bit more advanced stuff. I use EasyMock and when writing expectations , I find myself writing stuff over and over again. I want...

Advice on a good Java build tool, well integrated with eclipse

Hi SO guys ! I am working in a small team (3 persons) on several modules (about 10 currently). The compilation, integration and management of build versions is becoming more and more tedious. I am looking for a good build / integration tool to replace / complete Ant. Here is the description of our current development environment : - S...

Pair programming, mixed IDE environments?

Anyone got any experience of teams doing pair programming where there is a mixed IDE environment? I'm a long time IntelliJ user, others use Eclipse, which you may have heard of. In my mind pair programming involves a lot of passing the keyboard between the programmers. But every time I get the keyboard I grind to a halt as I don't know ...

Stack trace in eclipse

How to trace stack through eclipse? In my code I am trying to upload a file, when I execute file uploading action in the application, it just hangs with no error messages. I have tried debugging, but it hasn't helped much. ...

Eclipse Helios ignores breakpoints

Eclipse is driving me nuts right now. It's probably something trivial but I just don't get it. Whenever I like to add a breakpoint, the regular icons are crossed out in the editor and breakpoints view. Here's a screenshot: As you might have guessed, this isn't strictly a graphical problem ;) The breakpoints are simply ignored while de...

How to build cross-IDE java GUI's using "interface builders"?

In a Java project with developers that use different IDEs, say Eclipse and IntelliJ, what's the best way of developing visual components using the tools offered by the IDEs ("Visual Editor Project" for Eclipse and "Swing GUI Designer" for IntelliJ)? If a developer using Eclipse needs to make changes to a GUI written by another developer...

Removing NTLM from Eclipse's

Hi all, I'm having an issue trying to connect through a proxy from Eclipse 3.6. The proxy supports both NTLM and Basic Auth schemes. Eclipse seems to prefer NTLM auth scheme, instead of the basic one. However, after the selection is done, the proxy seems to hang and Eclipse retries the downloads forever. Using wireshark to monitor the...

How to use the eclipse Hibernate Tools with grails and MySQL

I've managed to connect from eclipse Hibernate Tools to my MySql Database used with grails, classes mapped by GORM. Now I'd like to perform HQL queries on the DB using the Hibernate Tools. However Hibernate Tools tells me for every table that it is not mapped. My question: Do I really need to write all the class mappings manually into ...

Where eclipse stores information about jars associated with a Library

I've written an ant task that extracts the classpath of a project form eclipse's .classpath file - so I don't need to maintain the project's dependencies both in eclipse and in my ant file. This ant task works great and it makes my compilation ant scripts to be very elegant, short, and the most important thing maintainable. In Ecli...

eclipse (3.5 & 3.6) crashes in ubuntu...

hi there! i have a problem with eclipse within ubuntu 10.04 (x86). i installed eclipse by downloading the zip-file, not from the sources. everything worked just fine until i decided to try eclipse 3.6 which i downloaded just as i did with 3.5... well i saved 3.6 in another directory than 3.5, started it and opened a workspace that i cr...

Problem using ksoap2 with Android

I thought I'd have a crack at building an Android app having not done any Java for five years (I've been living in MS land). So my first project was supposed to be something easy. A simple login form that calls a WCF service that I already have from another project. So I got the whole thing set up OK in Eclipse and the app is running ...

Mark a position in eclipse text editor?

Hi folks, I have two questions: While editing a source file, it's very convenient to be able to label the current position of cursor and then jump to it later by somehow calling that label. I VIM, there is the marking notion, but I'm not aware of such possibility in Eclipse text editor. Is there any way in Eclipse to add a portion of ...

How do I change a Java project's bin folder in Eclipse?

Hi, When you have a Java project in Eclipse, how do you change the location where the class files are placed? The bin directory is the default location. ...

Using exec tag in Ant from Eclipse. How do I extend the PATH?

Hi, I am trying to exec git describe in ant from inside eclipse. I have the following inside one of my targets: <exec executable="git" outputproperty="git-desc"> <arg value="describe"/> </exec> When I try this from command line, ant runs properly as it uses the PATH set by my shell. When I try to run ant from eclipse, I get the ...

Can I hide the getter and setter methods in the UML2's view ?

UML2 is a plugin of eclipse, it's here http://www.eclipse.org/modeling/mdt/?project=uml2 Now, I want to hide the getters and setters, but I don't know how to get it. Any suggestions? ...

How to hide the CVS related information on the Source files in Eclipse ?

I want to hide the CVS related information which shows for the files on Eclipse. I am using Ganymede. ...

EMF: changing generated code or use inheritance?

I work on an EMF project. One of the design decisions was not to touch the generated code and not to check it in. Instead, whenever something needs to be changed, a sub-class is created that contains the changes. The framework is flexible enough to deal with this. However, I experience some work overhead. The design decision was made o...

Interface (API) name ind CDT Eclipse plugin for building source file

Existing eclipse expects a C/C++ source file to be present and then it compiles/builds the project on hitting the build button. Case in hand: I generate a C code from an AST using my own created plugin. Then this code has to be executed using CDT (i.e. I would directly like to call the interface (API) that CDT uses to call the build the ...

How to add the ojdbc jar to my project and use it

I need some help with the eclipse. I have a project which need to connect to oracle databases so i have the ojdbc jar file and a simple project. try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@"+this.host+":"+this.port+":"+this.db,this.user,this.pa...