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

- Ignore update of IDs that may be triggered massively when saving a model...

- Ignore update of IDs that may be triggered massively when saving a model that contains a lot of generated artifacts for which IDs are typically not assigned.
- Disabling the delivery of notifications during the assignment of IDs is not possible since the kernel needs to be notified about ID changes.	
refs 2309
parent d694f788
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ import org.fortiss.tooling.base.annotation.AnnotationEntry;
import org.fortiss.tooling.base.annotation.IAnnotationValueService;
import org.fortiss.tooling.base.model.element.IAnnotatedSpecification;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
import org.fortiss.tooling.kernel.model.IProjectRootElement;
import org.fortiss.tooling.kernel.service.IPersistencyService;
......@@ -56,7 +57,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: A108501D4B4AC14E2FF4D02293B99559
* @ConQAT.Rating YELLOW Hash: B55BAC235E8E1237779F65D244BDC2F5
*/
public abstract class AnnotationViewPartBase extends ViewPart implements ISelectionListener,
IAnnotationViewPart {
......@@ -108,6 +109,15 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
return;
}
// Ignore update of IDs that may be triggered massively when saving a model that
// contains a lot of generated artifacts for which IDs are typically not assigned.
//
// Disabling the delivery of notifications during the assignment of IDs is not possible
// since the kernel needs to be notified about ID changes.
if(notification.getFeature() == FortissToolingKernelPackage.Literals.IID_LABELED__ID) {
return;
}
boolean isAddOrRemoveEvent =
eventType == Notification.ADD || eventType == Notification.ADD_MANY ||
eventType == Notification.REMOVE ||
......
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