Bug 530818 - Support multiple trees of elements in the element change event
Summary: Support multiple trees of elements in the element change event
Status: RESOLVED FIXED
Alias: None
Product: Handly
Classification: Technology
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 enhancement
Target Milestone: 1.0   Edit
Assignee: Vladimir Piskarev CLA
QA Contact:
URL:
Whiteboard: breakingchange
Keywords: api
Depends on:
Blocks:
 
Reported: 2018-02-07 05:29 EST by Vladimir Piskarev CLA
Modified: 2018-05-12 10:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Piskarev CLA 2018-02-07 05:29:03 EST
Currently, the element change event supports only a single tree of elements: it "describes a change to the structure or contents of a tree of elements of a Handly-based model. The changes to the elements are described by the associated delta object carried by this event."

However, since Handly 0.6 we already support models that allow multiple element trees (see bug 500653). To support multiple trees of elements, the element change event should be able to carry multiple top-level delta objects (one top-level delta object per a changed element tree).
Comment 1 Vladimir Piskarev CLA 2018-02-07 05:45:23 EST
Pushed to master:

http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=9c8862639d311ca89e56c5aabb6f5a076763d1c8


Breaking changes:

* IElementChangeEvent#getDelta() -> getDeltas()

* ElementChangeEvent(int, IElementDelta) -> ElementChangeEvent(int, IElementDelta...)