Skip to content
Snippets Groups Projects
Commit 1a59c197 authored by Simon Barner's avatar Simon Barner
Browse files

GREEN

- Undo last two changes: will be handled by ElementCompositorService (in the kernel)

refs 2309
parent 8491a208
Branches
Tags
No related merge requests found
...@@ -32,8 +32,6 @@ import org.eclipse.emf.ecore.EFactory; ...@@ -32,8 +32,6 @@ import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EObject;
import org.fortiss.tooling.base.model.element.IAnnotatedSpecification; import org.fortiss.tooling.base.model.element.IAnnotatedSpecification;
import org.fortiss.tooling.base.model.element.IModelElement; import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.kernel.extension.data.ITopLevelElement;
import org.fortiss.tooling.kernel.service.IPersistencyService;
/** /**
* Base class for {@link IAnnotationValueProvider}s. * Base class for {@link IAnnotationValueProvider}s.
...@@ -41,7 +39,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService; ...@@ -41,7 +39,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author diewald, barner * @author diewald, barner
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: B97EC7D0532A4B28D92F9CB55F505000 * @ConQAT.Rating GREEN Hash: 4A309AB5ED479F1856AD26C2AB61B259
*/ */
public abstract class ValueProviderBase<T extends IAnnotatedSpecification> implements public abstract class ValueProviderBase<T extends IAnnotatedSpecification> implements
IAnnotationValueProvider<T> { IAnnotationValueProvider<T> {
...@@ -200,15 +198,6 @@ public abstract class ValueProviderBase<T extends IAnnotatedSpecification> imple ...@@ -200,15 +198,6 @@ public abstract class ValueProviderBase<T extends IAnnotatedSpecification> imple
} }
} }
// Assign unique id (if model element hosting annotation is already hooked to the resource).
// Otherwise, IDs will be assigned to the annotations when the model element is added to the
// resource)
ITopLevelElement topLevelElement =
IPersistencyService.INSTANCE.getTopLevelElementFor(element);
if(topLevelElement != null) {
topLevelElement.prepareIDs(specification);
}
// Hook specification to model element // Hook specification to model element
element.addSpecification(specification); element.addSpecification(specification);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment