Category Archives: Eclipse

Maven: adding a reference to a parent pom project

Questions: I’m not sure if I’m understanding how to use a parent pom project correctly. I have the following parent pom defined: <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>../child1</module> <module>../child2</module> </modules> And then the children pom reference the parent (each child has their own set of dependencies which are not shown): <parent> <groupId>com.example</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version>… Read More »

ADB Crashing in Eclipse

Questions: This question relates to this thread, however that thread has no answers so this it not technically a duplicate. I’ve got ADB 1.0.26 running on my Windows 7 x64 and Eclipse SDK 3.6.2 with ADT 10.0.1 SDK tools r10, and I’ve got all the Android SDK versions installed. When I connect my phone to… Read More »

Eclipse Juno – why no warning on unused annotated private field?

Questions: In the previous version of Eclipse this works fine. In Errors/Warnings I checked “Unused private field” -> Warning. But it does not seem to work. For example: public class Main { @Resource private int a; //I see no warning here } Answers: This is intentional see – Also see an open bug on… Read More »

Problems running eclipse juno 64 bit on Mac Lion

Questions: Sorry for my stupid question, but I just don’t get eclipse juno running… Here the error report: Process: eclipse [10355] Path: /Applications/eclipse/ Identifier: eclipse Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [10309] Date/Time: 2012-09-10 23:11:26.871 +0100 OS Version: Mac OS X 10.7.4 (11E53) Report Version: 9 Crashed Thread: 0 Dispatch queue:… Read More »

No create XHTML option in Eclipse

Questions: I am using Eclipse Kepler,version=4.3.0(tried with version=3.7.0 also).I tried using javax.faces-2.2.5.jar and javax.faces-2.2.1.jar. Steps that i am following : File -> New -> Dynamic Web Project -> Dynamic web module version – 2.5(tried with 3.0 also),Configuration – JavaServerFaces v1.2Project -> Next -> Next -> Next -> JSF implementation Library – Added javax.faces-2.2.5.jar -> Finish.… Read More »

Good Call Hierarchy in Eclipse/PyDev

Questions: Is there a way to get a good call hierarchy in PyDev? I want to be able to select a function and see in which files it is called and eventually by which other functions. I tried the Hierarchy View in Eclipse by pressing F4, but it does not output what I want. Answers:… Read More »

Android Studio: 'wrap in container' in XML layout

Questions: When editing XML layout files, Eclipse has a feature called ‘wrap in container’ (Reformat -> Android -> …) that lets you select one or several Views and wrap a layout of your choice around it. Is there something similar in Android Studio? Answers: You can use Live Templates for that. Here’s a nice article… Read More »

automatically generate serial version uid in eclipse

Questions: I frequently use the eclipse quick fix to generate a serial version uid for serializable classes. Is there any way to do this by default? It’s one extra click, but with eclipse selecting quick fixes is generally slowish, and I always generate serial version uids when I implement serializable. Answers: This is perhaps not… Read More »