@Override public void processAnnotationRemoved( ModuleMetaModel metaModel, AnnotationKey key, AnnotationState removed) { if (key.getType().equals(APPLICATION)) { ElementHandle.Package pkg = (ElementHandle.Package) key.getElement(); ApplicationMetaModel mm = metaModel.getChild(Key.of(pkg, ApplicationMetaModel.class)); if (mm != null) { context.remove(mm); mm.remove(); } } }
@Override public void processAnnotationUpdated( ModuleMetaModel metaModel, AnnotationKey key, AnnotationState removed, AnnotationState added) { if (key.getType().equals(APPLICATION)) { ElementHandle.Package pkg = (ElementHandle.Package) key.getElement(); ApplicationMetaModel application = metaModel.getChild(Key.of(pkg, ApplicationMetaModel.class)); application.modified = true; } }