eclipse

Why can I run JUnit tests for my Spring project, but not a main method?

I am using JDBC to connect to MySQL for a small application. In order to test without altering the real database, I'm using HSQL in memory for JUnit tests. I'm using Spring for DI and DAOs. Here is how I'm configuring my HSQL DataSource <bean id="mockDataSource" class="org.springframework.jdbc.datasource.SingleConnectionDataSource"> ...

Eclipse debug - line: not available

I can't seem to find anything on google telling me why this might be and what the resolution is. I'm Stepping through third party code (that I have the source for) and would really like to see the current line being executed... Looking at javac compile flags, I see the -g:none flag. If this flag is set, would this be enough to explain...

Autoformat pom.xml without using m2eclipse plugin

I don't use the Eclipse maven plugin while developing in Eclipse. I generate my Eclipse classpath externally using the following command: mvn eclipse:eclipse This has worked fine for quite some time and I am not inclined to add a maven plugin. However, I would like to be able to "autoformat" my pom.xml file. My pom.xml is not showi...

How to exclude R*.class files from a proguard build

I am one step away from making the method described here: http://stackoverflow.com/questions/2761443/targeting-android-with-scala-2-8-trunk-builds work with a single project (vs one project for scala and one for android). I've come across a problem. Using this input file (arguments to) proguard: -injars bin;lib/scala-library.jar(!MET...

Why are mercurial subrepos behaving as unversioned files in eclipse AND torotoiseHG

I am trying to use the subrepo feature of mercurial, using the mercurial eclipse plugin\tortoiseHG. These are the steps I took: Created an empty dir /root cloned all repos that I want to be subrepos inside this folder (/root/sub1, /root/sub2) Created and added the .hgsub file in the root repo /root/.hgsub and put all the mappings of ...

J2EE _ Eclipse Id Exception

i import an existing simple stateless session bean project in to my eclipse Galileo workspace. it uses Jboss 4.2 server. The problem is, while try to congiure the project into server it will not shown in servers's available project list. later i try to add the project by right clicking the server but it says " there are no resources that...

Re-installation failed due to different application signatures.

I moved my Android project to a laptop and now I get this when I hit Debug. Sounds like this is a bug? This shouldn't happen via Eclipse as far as I know. Re-installation failed due to different application signatures. The weirdest thing is this happened after I upgraded sdk/adt and Eclipse to support SDK 2.2 It was working fine earli...

How to display given contents in View when developing Eclipse Plugin?

e.g. I'd like to show one given string(not fixed one) in one view of my Eclipse plugin,how to do it?thx. [email protected] ...

Phantom project in an Eclipse plugin

I am trying to put all the projects in the combo, but I get "External Plugin Libraries" as shown in the picture below. How am I getting this as project which I don't have. How do I get rid of it? ...

Eclipse plugin: Custom icon for a Marker

I want to specify a custom icon for a marker. Sadly, the icon that I chose is not displayed. Here's the relevant parts of the plugin.xml file (the project id "x"): <extension id="xmlProblem" name="XML Problem" point="org.eclipse.core.resources.markers"> <super type="org.eclipse.core.resources.problemmarker"/> <p...

Is there any disadvantage to putting API code into a JAR along with the classes?

In Java if you package the source code (.java) files into the jar along with classes (.class) most IDE's like eclipse will show the javadoc comments for code completion. IIRC there are few open-source projects that do this like JMock. Lets say I have cleanly separated my API code from implementation code so that I have something like m...

More Code Assist in Eclipse PDT For HTML

I am trying to come over from dreamweaver to eclipse. In eclipse when I am in a php file writing html. If I just type a "<" then the code assist popup will come up with all the options I can choose from. I would like to know if the code assist can appear in more places though. If I type "<div" and hit space can I get another code assi...

from C to assembly

how can I get assembly code from C program I used this recommendation and I use something like this -c -fmessage-length=0 -O2 -S in Eclipse, but I've got an error, thanks in advance for any help now I have this error atam.c:11: error: conflicting types for 'select' /usr/include/sys/select.h:112: error: previous declaration of 'selec...

How do I change colors for the Java Docs Hover Over in Eclipse

If you hover over a standard library Java method in Eclipse, you get a hover over dialog. How can you change the color of the text in that hover over dialog ? Thanks, Ankur ...

Including java libraries to Tomcat inside Eclipse

I am running Eclipse with Tomcat 5.5. My dynamic web site project includes some JAVA code that needs external jar files. Where should I place those jar files so Apache will not giving me errors such as java.lang.ClassNotFoundException ? Thanks on this. ...

Running each JUnit test in a separate JVM in Eclipse?

I have a project with nearly 500 individual tests in around 200 test classes. Some of these tests don't do a great job of tearing down their own state after they're finished, and in Eclipse this results in some tests failing. The tests all pass when running the test suite from the command line via Ant. Can I enable 'test isolation' some...

Maven "Module" vs "Project" (Eclipse, m2eclipse plugin)

I'm a beginner at Maven and I've played with it from a command line point of view a little, so now I was trying to use it in Eclipse; I installed the m2eclipse plugin to do so. But I'm stumped from the very beginning! Apparently I've missed a bit of terminology somewhere along the line. I can't keep track of all these new Maven terms......

Downloading Eclipse's Source Code

I'm doing a study on large Java projects and would like to view the source code for Eclipse. I have gone to this url (http://wiki.eclipse.org/index.php/CVS_Howto) and figured that the most useful cvs repository for me to look at would be this one: :pserver:[email protected]:/cvsroot/eclipse (The Eclipse platform project) Howev...

Architecture in Eclipse

How can I change architecture in Eclipse from x86 to pdp11, what flags do I need, and do I need adjust cross-compiler, thanks in advance ...

How to change Eclipse indentation style for automatically generated code?

Is there any way to change indentation style for automatically generated code in Eclipse? I'd like to change from class Test { blah blah } to class Test { blah blah } ...