These terms come from the JDT, the Java Development Tools. A Java project is represented internally by the JDT plugin as, more or less, a tree of "elements": packages, classes, members are all "Java elements." This tree is the "Java model". Changes occur to the model when you type, when a refactoring is done, etc. If you register an IElementChangedListener, it gets notified when any of these changes occur.
Can anybody point me at least to some piece of documentation about this?
The Eclipse system generates change events indicating, for example, the files and folders that have been added, modified, and removed during the course of an operation. The Java tools issue similar events covering the creation, modification and deletion of Java elements (methods, fields, types, etc.). Interested objects can subscribe to these events and take whatever action is necessary to keep themselves synchronized with Eclipse. We cover this in chapter 8 ("Resource Change Tracking") of our book.
API docs for all of the Eclipse APIs are available on the eclipse.org web site. See...IElementChangedListener
Eric Clayberg
Software Engineering Manager
Google
Alexandru Popescu
Ranch Hand
Joined: Jul 12, 2004
Posts: 995
posted
0
Originally posted by Ernest Friedman-Hill: These terms come from the JDT, the Java Development Tools. A Java project is represented internally by the JDT plugin as, more or less, a tree of "elements": packages, classes, members are all "Java elements." This tree is the "Java model". Changes occur to the model when you type, when a refactoring is done, etc. If you register an IElementChangedListener, it gets notified when any of these changes occur.
Exactly what I expected. Thanks Ernest and Eric. I have already read the API ;-). What is interesting is that the same event is triggered for resource changes (files, folders) and also for logical resources (methods, fields, imports).
./pope
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.