Skip to content

Changes

Summary

  1. [REINDEX] Reference slots in type nodes now include edge to target type (details)
Commit 0d557874d879fdc63ffb5e26a3fd72daeccaddae by Antonio Garcia-Dominguez
[REINDEX] Reference slots in type nodes now include edge to target type

Before this commit, reference slots in a type node only kept a string
with the instance type name of the type of the reference. This prevented
us from doing things like trying to precompute the type of the target
node from the type of the source node + the name of the reference.

Taking advantage of such an optimisation will require a reindex of
existing models, though.

In addition, a new SlotWrapper has been created, and the `x.type`
property for slots has been renamed to `x.instanceTypeName` which is
more accurate. `x.type` now returns a reference to the relevant type
node for reference slots, or `null` otherwise.
The file was modified core/plugins/org.eclipse.hawk.graph/src/org/eclipse/hawk/graph/updater/GraphMetaModelResourceInjector.java
The file was addedcore/plugins/org.eclipse.hawk.epsilon/src/org/eclipse/hawk/epsilon/emc/wrappers/SlotWrapper.java
The file was modified core/tests/org.eclipse.hawk.integration.tests/src/org/eclipse/hawk/integration/tests/emf/MetamodelQueryTest.java
The file was modified core/plugins/org.eclipse.hawk.epsilon/src/org/eclipse/hawk/epsilon/emc/wrappers/TypeNodeWrapper.java
The file was modified core/plugins/org.eclipse.hawk.emf/src/org/eclipse/hawk/emf/EMFClass.java
The file was modified core/plugins/org.eclipse.hawk.graph/src/org/eclipse/hawk/graph/Slot.java