Skip to content
Snippets Groups Projects
Commit b2415278 authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Reuse: Added FixMe for the removal of external references

Issue af3#4346 added a fix to remove external references when elements
are added to a reuse library. This should be removed, as soon as
af3#4150 is implemented.

Issue-ref: 4150
Issue-URL: af3#4150

Issue-ref: 4346
Issue-URL: af3#4346



Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent 155f5029
No related branches found
No related tags found
1 merge request!2194346
Pipeline #39648 passed
Pipeline: maven-releng

#39649

    IReuseProvider.java 18d293f7f1f072883188f16fb6eeb52c8d6042cf GREEN IReuseProvider.java 18d293f7f1f072883188f16fb6eeb52c8d6042cf GREEN
    IReuseProviderService.java bcc70de0bb8d39c330e3a25d884abc7092dc1b7e GREEN IReuseProviderService.java bcc70de0bb8d39c330e3a25d884abc7092dc1b7e GREEN
    LayoutedReuseProviderBase.java b0e4ce3cda818b0723ec37b925a4c4c3d0c41909 GREEN LayoutedReuseProviderBase.java b0e4ce3cda818b0723ec37b925a4c4c3d0c41909 GREEN
    ReuseProviderBase.java d7b615677c9b147f93943a8b87c631c26f6e5b4d YELLOW ReuseProviderBase.java 51be8cde5d4aa3ec79433a5d728a6342f18d29ba YELLOW
    ReuseProviderService.java c4ef33283002d6dac6167f9c6c8f71d2c2ce39d1 GREEN ReuseProviderService.java c4ef33283002d6dac6167f9c6c8f71d2c2ce39d1 GREEN
    ...@@ -137,6 +137,9 @@ public class ReuseProviderBase<T extends EObject> implements IReuseProvider<T> { ...@@ -137,6 +137,9 @@ public class ReuseProviderBase<T extends EObject> implements IReuseProvider<T> {
    * Recursively removes all external (i.e. non-containment) reference targets from this and all * Recursively removes all external (i.e. non-containment) reference targets from this and all
    * contained {@link EObject}s. * contained {@link EObject}s.
    * *
    * FIXME #4150 (https://git.fortiss.org/af3/af3/-/issues/4150): This functionality should be
    * removed, as soon as there is a dedicated management of external references.
    *
    * @param eObj * @param eObj
    * The {@link EObject} for which all reference targets shall be removed. * The {@link EObject} for which all reference targets shall be removed.
    */ */
    ...@@ -144,12 +147,17 @@ public class ReuseProviderBase<T extends EObject> implements IReuseProvider<T> { ...@@ -144,12 +147,17 @@ public class ReuseProviderBase<T extends EObject> implements IReuseProvider<T> {
    // whitelist all contained elements as reference targets. // whitelist all contained elements as reference targets.
    Set<EObject> whitelist = new HashSet<EObject>(getChildrenWithType(eObj, EObject.class)); Set<EObject> whitelist = new HashSet<EObject>(getChildrenWithType(eObj, EObject.class));
    // FIXME #4150 (https://git.fortiss.org/af3/af3/-/issues/4150): This functionality should be
    // removed, as soon as there is a dedicated management of external references.
    removeReferences(eObj, whitelist); removeReferences(eObj, whitelist);
    } }
    /** /**
    * Recursively removes all reference targets from this and all contained {@link EObject}s which * Recursively removes all reference targets from this and all contained {@link EObject}s which
    * are not contained in the given whitelist. * are not contained in the given whitelist.
    *
    * FIXME #4150 (https://git.fortiss.org/af3/af3/-/issues/4150): This functionality should be
    * removed, as soon as there is a dedicated management of external references.
    */ */
    @SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
    private void removeReferences(EObject eObj, Set<EObject> whitelist) { private void removeReferences(EObject eObj, Set<EObject> whitelist) {
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment