First, getting to know what is Java element, we have to check "Field Detail" in IJavaElement which is a interface of JavaElement . It has
- Java_Model
- Java_Project
- Package_Fragment_Root
- Package_Fragment
- Compilation_Unit
- Class_File
- Type
- Field
- Method
- Initializer
- Package_Declaration
- Import_Container
- Import_Declaration
- Local_Variable
- Type_Paramenter
This list, at least, tells the answer I proposed in the previous article. The method body isn't a JavaElement, so it couldn't be a delta. Then let's see what they are, the following picture may give you a good intuition.
Now let's use Java element do two interesting tasks.
Task1 . List all java project hierarchies in current workspace.
Task2 . Creating a Java project without displaying a wizard