Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitruv remote adaptions #79

Merged
merged 3 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package tools.vitruv.change.atomic.hid;

import org.eclipse.emf.ecore.impl.EObjectImpl;

/**
* A hierarchical id is a volatile identifier which identifies an element based
* on its hierarchical location in a resource. A hierarchical id is not bound to
* a resource set, i.e. two elements at the same location in identical resources
* of different resource sets will have the same hierarchical id.
*/
public final class HierarchicalId implements Comparable<HierarchicalId> {
public final class HierarchicalId extends EObjectImpl implements Comparable<HierarchicalId> {
private String id;

public HierarchicalId(String id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ protected <Source, Target> VitruviusChange<Target> transformVitruviusChange(Vitr
List<EChange<Target>> resolvedChanges = transactionalChange.getEChanges().stream().map(changeHandler::apply)
.toList();
TransactionalChange<Target> result = new TransactionalChangeImpl<>(resolvedChanges);
result.setUserInteractions(change.getUserInteractions());
onTransactionEnd.accept(result);
return result;
}
Expand Down
Loading