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
0
votes
1 answer

Importing File/Directory into IJavaProject - Eclipse JDT

So I've been able to successfully generate an IJavaProject from within my Eclipse Plug-In, and now I would like to add packages to this IJavaProject. These packages are located on the file system, and are to be selected by the user. I have created…
HJM
  • 236
  • 1
  • 5
  • 16
0
votes
1 answer

Eclipse JDT AST: Problems parsing a class with nested members

I would like to do some static code analysis for Java source code. For parsing I use the Eclipse JDT (3.6) ASTParser outside of Eclipse with following code: private static final Map COMPILER_OPTIONS; static { COMPILER_OPTIONS =…
0
votes
3 answers

JDT equivalent for C#/Visual Studio

I'm looking for an equivalent to the JDT in Visual Studio for C#. Generally, I want to extend Visual Studio with a plugin to analyze C# source code. So what should I look for?
anon
0
votes
1 answer

Getting returned type in an Assignment statement

How i can get the type of an Assignment Statement using JDT. I am traversing through a class file using an ASTVisitor, to find the instances of assignment which are having date (Calendar) as the type. Though i am able to find such instances for…
Unni Kris
  • 3,081
  • 4
  • 35
  • 57
0
votes
1 answer

Eclipse JDT compiler can incrementally compile Java Source and notify what classes compiled?

Now I want to implement this case: If java source file modified, I compile dynamically the java source file to class file. Then I want to know what classes are recompiled so that I can redefine and reload them. Or someone have a better solution.
Chantz Yang
  • 89
  • 1
  • 1
  • 9
0
votes
1 answer

Information about JDT index format

I'm looking for information about the JDT index. For example what the format is, how the data is structured (Documents? Fields?). Information on that topic seems to be scarce. The ansers to this question didn't help yet. Here I found a hint to look…
Tobias
  • 4,999
  • 7
  • 34
  • 40
0
votes
1 answer

how to judge the abstract class with ICompilationUnit

I am working on the eclipse plugin development,so I find the api docs and google them,it only contains such method isClass() isInterface() with the ICompilationUnit,but I want to dig deep with the abstract class,the code like public boolean…
clevertension
  • 6,929
  • 3
  • 28
  • 33
-1
votes
1 answer

Is there any tool to generate the ASM ClassWriter code?

I want to create dynamic java classes, I use a template to generate the source code, and then use jasper jdt to compile. But now, I want to remove the dependency for jdt and create class bytecode with ASM directly. The source code is about 200…
-1
votes
1 answer

How to rename field using jdt

Public class RenameClass{ private static final String TITLE= "title"; Public static void main(String [] args){ System.out.println(TITLE) } } By using jdt, I want to remove the field and in place of TITLE I want to rename with the…
-1
votes
1 answer

Looking for Reference Guide with sample for JDT eclipse Content assist

I am trying to develop a JDT content assist for a custom framework, I am actually writing a plugin for JSDT but even if I can get good reference for JDT, I can relate to JSDT, so far I am able to get my list of type ahead content but not able to…
Vivek
  • 580
  • 2
  • 7
  • 26
-1
votes
1 answer

Why JDT parser didn't pops elements when the state is shift-reduce?

According to A pratyical method for constructing efficient LALR(K) Parsers with Automatic Error Recovery in chapter 4.2 . When the parser encounters a shift-reduce , it should pops |α| elements. But the parser in JDT ,it did't pops elements. I…
-1
votes
1 answer

How to check if function was called by value?

EDIT: How do I use the eclipse parser to workout the type of an parameter at compile time? I'm trying to check if a function was called by value. So i activate the following function on the user's code: public boolean visit(MethodInvocation…
Alaa M.
  • 4,961
  • 10
  • 54
  • 95
1 2 3
56
57