eclipse-jdt Questions

1

I'm writing a java framework, for a class file, sample.class, it generates a proxy file sample_proxy.class. When sample.testMethod() is called, it excutes sample_proxy.class. I already make an ecli...
Theurich asked 19/7, 2015 at 12:36

2

Solved

I regularly used Eclipse's code generation tools (Source / Generate hashCode() and equals()...) to create the equals() implementation for simple POJO classes. If I choose to "Use instanceof to comp...
Grantley asked 17/8, 2015 at 10:24

5

I just installed Eclipse standard 4.4 Luna, and after installing the Scala IDE and friends I get JDT Weaving is currently disabled. The Scala IDE needs JDT Weaving to be active, or it will not wor...
Groan asked 30/6, 2014 at 21:18

2

Solved

What is necessary to get classes provided via custom classpath container visible in the code completion? I have successfully implemented a custom classpath container, that adds libraries to a proj...
Derrek asked 26/7, 2014 at 10:3

1

Solved

I want to use maven to build projects in which there are unresolved compilation problems. The main purpose is package and deploy or run aplications using some kind of stubs for classes that contai...
Ammonal asked 6/6, 2014 at 18:41

6

Solved

Is it possible to quick fix all errors in a class opened in Eclipse? I have 71 errors that are pretty much the same, I would rather not do it one-by-one. (Note: I am quick fixing a Java file)
Claudetta asked 20/7, 2011 at 12:8

1

I'm writing a PMD plug-in for Eclipse which lets users suppress PMD warnings by adding annotations like @SuppressWarnings("PMD.ReturnEmptyArrayRatherThanNull"). Since Eclipse doesn't know that PMD....
Philippine asked 6/1, 2014 at 13:46

3

I'm trying to use AST parser in a non-plugin environment. The code compiles, but I get the following runtime error: Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/reso...
Dudeen asked 14/12, 2009 at 22:21

4

Solved

The development of Eclipse support for Java 8 is ongoing in a branch (http://wiki.eclipse.org/JDT_Core/Java8). To try out the current Eclipse support for Java 8, I did the following: I installed...
Dail asked 8/11, 2012 at 18:21

4

I am working on a fairly big Maven project, and develop in Java with Eclipse. To save compilation time, I would like Maven and Eclipse to share the same target, which I managed to do. However when...
Ryter asked 27/6, 2011 at 16:29

2

I want to add a shortcut to my eclipse plugin to show a quick menu with existing bindings. It should work like the "Refactor" quick menu in JDT. Shortcut for quick menu in JDT: JDT quick menu: ...
Giuliana asked 6/10, 2011 at 9:37

3

Solved

In Eclipse, if I try to apply a "Generate Delegate Methods" refactoring to a Java class like the following: class Foo implements Bar { Bar bar; } Eclipse doesn't generate @Override annotations ...
Speaks asked 23/5, 2011 at 2:45

2

Solved

Each time I click Save the entire file's formatting alternates between these two formats: this.getObject() .method() .method(); this.method(arg1, arg2, arg3, arg4); and this.getObject() .met...
Daybreak asked 23/4, 2014 at 11:8

3

Solved

I'm trying to try out eclipse jdt/ast following this article. This is the java code as an input: class Hello { int hello() { int a = 0, b = 3; /* hello */ { b = a * 3; } return a; } pub...
Gallardo asked 6/10, 2012 at 0:28

3

In my Eclipse plugin, I need to know when the editor that is visible on the screen has changed. I am currently getting the active editor as follows: PlatformUI.getWorkbench().getActiveWorkbenchWin...
Swithbart asked 19/2, 2012 at 11:30

1

Solved

I am writing an eclipse plugin which exposes a view to the user with several buttons. On the click of any button, I would like to paste a certain comment into the editor window where the user is cu...
Sterculiaceous asked 30/4, 2014 at 13:28

1

Solved

Eclipse (any version AFAIK) has some weird behavior related to folding in Java code. Suppose I’m editing this class: class A { String field; @Nonnull Object method(){ // whatever } } If fo...
Pacify asked 7/3, 2014 at 10:55

5

There's a lot of discussion about Ant and Eclipse, but no previously answered seems to help me. Here's the deal: I am trying to build a Java program that compiles successfully with Ant from the co...
Opiumism asked 8/3, 2010 at 19:48

2

Solved

Here is my sample java code: public class Test { public static void foo() { Foo.InnerKey key = new Foo.InnerKey(); getInstance().query(key); } public static void bar() { Bar.InnerKey key = ...
Epididymis asked 11/3, 2014 at 6:17

1

Solved

With the release of Eclipse's java 8 support, I understood that null annotations on types (JSR 308) were possible, as described here. I have installed JDK8, and the Java 8 feature patch for Eclipse...
Sophomore asked 20/3, 2014 at 11:15

3

Solved

Some time ago I wrote an Eclipse plugin which makes use of JDT to do some parsing. Now I am thinking of making a command-line version of this app. Naturally, I hope to reuse the parsing code, so I ...
Providenciaprovident asked 21/1, 2010 at 23:40

3

Background Sometimes, functions return null on some cases, and yet whoever uses them wasn't aware of it, so NPE is inevitable . For example (and it's just an example, to show what I'm talking abo...

1

Environment I have a simple test-foo.jar library with just two files: interface Foo with a single method void doStuff() class Bar with a single method void executeFoo(Foo foo), which just calls ...
Gonidium asked 20/1, 2014 at 13:51

2

Solved

Does someone know a plugin for Eclipse that replaces fully qualified Java class names with the simple one and the corresponding import where possible? It would be even better if it could be perform...
Credulous asked 15/4, 2010 at 10:26

2

This is not a duplicate of How to come out of while loop during debugging. See the comment on this answer https://stackoverflow.com/a/8107702/1391924 by the author of this question. While debuggin...
Burress asked 10/12, 2013 at 10:7

© 2022 - 2024 — McMap. All rights reserved.