forked from eclipse-sirius/sirius-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Add the ADR for supporting any kind of object as semantic eleme…
…nt in trees Signed-off-by: Jerome Gout <[email protected]>
- Loading branch information
1 parent
d1964bc
commit 70a563e
Showing
12 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...drs/137_use_a_common_identification_strategy_for_transient_representations.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc/adrs/138_allow_consumers_to_reuse_smaller_parts_of_the_sirius_web_backend.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
= [ADR-141] Factorize GraphQL queries in tests | ||
= ADR-141 Factorize GraphQL queries in tests | ||
|
||
== Context | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
= [ADR-142] Add report on document upload | ||
= ADR-142 Add report on document upload | ||
|
||
== Context | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
doc/adrs/143_handle_documents_upload_with_other_formats_than_json_and_xmi.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc/adrs/146_contribute_representation_metadata_for_transient_representations.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
= [ADR-147] Add support for overlapping nodes | ||
= ADR-147 Add support for overlapping nodes | ||
|
||
== Context | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
= [ADR-148] Improve edge layout | ||
= ADR-148 Improve edge layout | ||
|
||
== Context | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
= [ADR-151] Improve Diagram Subscription Lifecycle | ||
= ADR-151 Improve Diagram Subscription Lifecycle | ||
|
||
== Context | ||
|
||
|
24 changes: 24 additions & 0 deletions
24
...support_for_any_kind_of_object_as_semantic_element_in_the_tree_description.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
= ADR-152 Add support for any kind of object as semantic element in the tree representation | ||
|
||
== Context | ||
|
||
Sirius Web doesn't provide in its Tree description API a way to retrieve the model element associated to a TreeItem. | ||
At the moment Sirius Web Explorer relies on `IObjectSearchService.getObject()` to retrieve the object associated to a given TreeItem node using its `id`. | ||
While it works, it is restricted to objects that have been considered as semantic elements by the server. | ||
|
||
In order to extend the tree capabilities to handle any kind of object, we need to be able to extend this behavior. | ||
For that, we will provide a mechanism to find an object associated to a TreeItem using its id. | ||
|
||
== Decision | ||
|
||
We will add a new field `Function<VariableManager, Object> treeItemObjectProvider` in `org.eclipse.sirius.components.trees.description.TreeDescription` and in its builder. | ||
Existing usages of `org.eclipse.sirius.components.trees.description.TreeDescription` should be completed by providing a default object retrieval mechanism which can delegate its behavior to `IObjectSearchService.getObject()`. | ||
|
||
`o.e.s.w.a.v.explorer.services.DeleteObjectTreeItemEventHandler` and `o.e.s.w.a.v.explorer.services.RenameObjectTreeItemEventHandler` should be updated, because they rely on the `IObjectSearchService.getObject()` service to retrieve the object before performing the deletion or renaming operations. | ||
`o.e.s.w.a.v.explorer.services.ExplorerNavigationService` and `o.e.s.w.a.v.explorer.services.ExpandAllTreePathProvider` are also retrieving the object associated to a TreeItem using `IObjectSearchService.getObject()` service. | ||
|
||
They should instead get the object by calling `treeItemObjectProvider` specified on the tree description of the Sirius Web Explorer in our case. | ||
|
||
== Status | ||
|
||
Work in progress |