eclipse-jdt Questions
1
Solved
I tried annotating the enclosing method with
@SuppressWarnings("compareIdentical")
but this does not work (worse yet, the annotation results in its own Unsupported @SuppressWarnings("compareIde...
Phagocytosis asked 9/8, 2011 at 13:7
3
right now in eclipse it is not possible to extend Menu defined by Other plugins by using eclipse extension:
org.eclipse.ui.menus.
I want to add one menu item in Search but not a search page. since...
Lamppost asked 4/8, 2011 at 6:54
1
Solved
Every time I call IJavaProject.findPackageFragmentRoots(IClasspathEntry cpe) and pass it an IClasspathEntry of kind CPE_PROJECT, it returns an empty list. I paused the debugger and ran the followin...
Assault asked 27/7, 2010 at 2:26
1
Solved
I have the following code
IJavaProject targetProject = null;
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
for (IProject project : root.getProjects()) {
if (project.getName()...
Emmi asked 10/7, 2011 at 17:39
2
Solved
It is recommended and sometimes necessary, classes that represent values (value classes) to override hashCode(), equals() [and optionally toString()] methods.
The values that these methods return d...
Insipid asked 6/6, 2011 at 16:38
2
Solved
How do you break (pause) a Java program in Eclipse?
I'm not talking about breakpoints. I'm talking about randomly pausing a program without knowing what it's currently executing, like in Visual St...
Skull asked 22/4, 2011 at 21:30
2
Solved
I am writing a plug-in (ClassRefactoringPlugin) that examines source code in Eclipse 3.6.1. The plug-in contains a CallData class that examines a Java source file and figures out which Java element...
Gosplan asked 29/7, 2010 at 2:53
4
Solved
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 wr...
Piled asked 11/1, 2011 at 20:28
3
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 bun...
Umbilical asked 10/12, 2009 at 16:9
5
Solved
I would like to deprecate only the extension of a given class, not all the methods and fields contained within a class, using the @Deprecated annotation.
That is, a warning will occur if you exten...
Microbicide asked 14/2, 2011 at 19:24
2
Solved
just found this bit, while reading eclipse JDT's documentation:
IMethodBinding.getParameterTypes(): . . .
Note: The result does not include synthetic parameters introduced by inner class emula...
Glad asked 18/12, 2010 at 4:36
1
Solved
I am interested in using the Eclipse JDT to create a CAPTURE binding.
I've read several capture conversion tutorials, but when I copy-paste sample code snippets, I can never find a capture convers...
Pope asked 15/12, 2010 at 11:55
1
Solved
I'd like to do some command-line Java compiling of individual Java source files on a machine that has Eclipse installed. However, I don't have permissions to install a full Java SDK on this machine...
Kollwitz asked 30/10, 2010 at 20:27
1
Solved
I know I can generate setters and getters for fields in the Eclipse source menu, but I'm very surprised it doesn't offer to replace the direct field accessors with calls to the newly created method...
Gook asked 19/10, 2010 at 22:11
2
Solved
Is there a simple, straightforward way to get an IType from a class name? I think there must be some static method somewhere. Basically, I'd like to do something like:
IType objectType = Somewhere...
Radiogram asked 12/8, 2010 at 6:56
1
Solved
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 v...
Emmott asked 6/7, 2010 at 15:38
2
Solved
Visual Studio has an option to break automatically into the debugger when an unhandled exception is thrown, does Eclipse have similar functionality?
Audraaudras asked 17/6, 2010 at 22:52
2
Solved
I am working on an Eclipse plugin that modifies Java code in a user's project.
Basically the result of this plugin is that Java annotations are added to some methods, so
void foo() { ... }
bec...
Kingsbury asked 20/5, 2010 at 12:34
1
Solved
I have an Eclipse CDT environment up and running and customised just the way I like it. I'm also going to be heavily dealing with Java.
I don't want to install a separate version of Eclipse just ...
Ratsbane asked 15/4, 2010 at 1:3
1
Solved
I am writing an Eclipse plug-in that uses JDT AST's ASTParser to parse a method. I am looking within that method for the creation of a particular type of object.
When I find a ClassInstanceCreatio...
Diaphanous asked 13/4, 2010 at 18:9
3
Solved
I am new to eclipse plugin development and I am trying to convert a IMethod to a string representation of the full method name. I.E.
my.full.package.ClassName.methodName(int param, String string)
...
Constantinople asked 11/11, 2009 at 0:41
3
Possible Duplicate:
A tool like ReSharper, but for Java?
I make very heavy use of the Java code refactoring tools provided by Eclipse (extract interface, rename method, etc.). Does an...
Fellini asked 2/4, 2009 at 3:23
4
I want to do the following imports in a class.
import org.eclipse.jdt.core.dom.*;
import org.eclipse.jdt.core.compiler.CharOperation;
import org.eclipse.jdt.core.compiler.IProblem;
import org.e...
Interrupter asked 18/9, 2008 at 15:44
© 2022 - 2024 — McMap. All rights reserved.