Questions tagged [eclipse-jdt]

Use this tag for questions about the Eclipse JDT (Java Development Toolkit) project which provides the plug-ins that implement a Java IDE supporting the development of any Java application, including Eclipse plug-ins.

The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of any Java application, including Eclipse plug-ins.
It adds a Java project nature and Java perspective to the Eclipse Workbench as well as a number of views, editors, wizards, builders, and code merging and refactoring tools. The JDT project allows Eclipse to be a development environment for itself.

852 questions
12
votes
2 answers

Eclipse autocomplete broken

Eclipse autocomplete is not working and is always telling me merely "No Default Proposals". This is true whether I try to autocomplete for code under java.util or in my own project. I'm running Eclipse 3.5.2 on Lucid Lynx using java-6-openjdk. Any…
Ben McCann
  • 18,548
  • 25
  • 83
  • 101
12
votes
2 answers

Why are classes kept in jars added via custom classpath container not available for code completion?

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 project. It adds all jars in a specific folder to the…
Markus
  • 2,071
  • 4
  • 22
  • 44
12
votes
3 answers

JDT without Eclipse?

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 need to get JDT to work outside Eclipse. Is there…
alexloh
  • 1,606
  • 2
  • 15
  • 29
12
votes
3 answers

Disabling Eclipse code formatting for part of a javadoc

I have a Java class for which part of the javadoc is actually generated as part of the build process: the return value of a method (a static String value) is inserted into the source file, much like $Revision: $ tags work in some version control…
Kristóf Marussy
  • 1,202
  • 8
  • 18
11
votes
5 answers

eclipse shortcut for enabling / disabling JAVA breakpoints

I'm looking for a shortcut to completely enable / disable all JAVA breakpoints (analogue of pushing the "Skip all breakpoints" button in Debug view ), not to enable / disable them on a row-by-row basis.
WeMakeSoftware
  • 9,039
  • 5
  • 34
  • 52
11
votes
1 answer

How to build Eclipse JDT Core from source code via Git?

I want to build Eclipse JDT Core from source code via Git. Naïvely, I cloned git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git and tried to run mvn validate (the most basic of Maven phases) from the Git master branch but this failed with…
kevinarpe
  • 20,319
  • 26
  • 127
  • 154
10
votes
2 answers

How do I get the current method from the active Eclipse editor?

I'm currently working on an Eclipse addon which would help me coding. Basically a library of String snippets. When creating a new one, I'd love to give it an ID of sorts ClassName.MethodName.X. Getting the editor is pretty…
Michael
  • 695
  • 2
  • 12
  • 36
10
votes
3 answers

Why doesn't Eclipse add @Override annotations in "Generate Delegate Methods" refactoring?

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 for the generated methods. Is this a bug or is…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
10
votes
2 answers

How do I browse JDT source code in eclipse?

My current attempt to browse the JDT source code in eclipse: installing Eclipse Helios RCP version. importing all plugins from installation as binary files into my workspace It does not work.
Skiy
  • 161
  • 1
  • 5
10
votes
1 answer

Eclipse - Find Java references of a library without attached sources

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 foo.doStuff() Then I have Eclipse Java project with a…
Pavel Horal
  • 17,782
  • 3
  • 65
  • 89
9
votes
4 answers

Is there a way to make Eclipse add static imports without autocomplete?

Eclipse can add unambiguous classes with an "on-save" action, but it will not resolve static functions. I don't always use autocomplete, and going back to trigger it is cumbersome. e.g. I often write code like printDebug("my value", my_obj); and I…
gatoatigrado
  • 16,580
  • 18
  • 81
  • 143
9
votes
3 answers

What does "Computing additional info" mean?

Eclipse Helios periodically starts running a job which displays "Computing additional info". During this time, Eclipse is very sluggish, bordering on unusable. What does this job do? Can I shut it off? I just hope that someone in the JDT team comes…
JesperE
  • 63,317
  • 21
  • 138
  • 197
9
votes
3 answers

How can I add JDT as a Maven dependency?

I'm trying to create a project that depends on JDT core. I was using the entries in Maven central until I realized they were several years out of date. After poking around a little, I came across https://repo.eclipse.org. I found the repository I…
Jeffrey
  • 44,417
  • 8
  • 90
  • 141
9
votes
3 answers

How can I define a custom action for "Open Declaration" (shortcut F3) in Eclipse

How do I register an additional handler/action/command for "Open Declaration" (aka F3) in a plugin? I want to use F3 on String literals in Java code to navigate to the files declaring resource bundle keys. I already have a context menu action ready…
Stroboskop
  • 4,327
  • 5
  • 35
  • 52
9
votes
1 answer

How to programmatically rename a method using JDT

My aim is to programmatically call the Refactor >> Rename Eclipse command for a method inside a Java Source File. Renaming a method as such should also apply the change to all the instances where this method is being used/referred. I believe that…
Unni Kris
  • 3,081
  • 4
  • 35
  • 57
1 2
3
56 57