From e9a515ea30b9edeb1ece398535f37457c5559acb Mon Sep 17 00:00:00 2001 From: Florian Barbin Date: Tue, 25 Jun 2024 17:49:32 +0200 Subject: [PATCH] [3664] Fix missing default images Bug: https://github.com/eclipse-sirius/sirius-web/issues/3664 Signed-off-by: Florian Barbin --- CHANGELOG.adoc | 1 + .../core/services/CoreImagePathService.java | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/core/backend/sirius-components-core/src/main/java/org/eclipse/sirius/components/core/services/CoreImagePathService.java diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 314b7e67d9..c9e9f36d16 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -68,6 +68,7 @@ More existing APIs will be migrated to this new common pattern. - https://github.com/eclipse-sirius/sirius-web/issues/3649[#3649] [sirius-web] Restore support for Related elements view icons - https://github.com/eclipse-sirius/sirius-web/issues/3630[#3630] [sirius-web] Restore support for the deletion of dangling representations - https://github.com/eclipse-sirius/sirius-web/issues/3666[#3666] [core] Enable EMF's intrinsicIDToEObjectMap for JSON resources to support languages which use modeled identifiers (e.g. SysMLv2). +- https://github.com/eclipse-sirius/sirius-web/issues/3664[#3664] [core] The Default.svg image is no longer displayed with the new architecture. === New Features diff --git a/packages/core/backend/sirius-components-core/src/main/java/org/eclipse/sirius/components/core/services/CoreImagePathService.java b/packages/core/backend/sirius-components-core/src/main/java/org/eclipse/sirius/components/core/services/CoreImagePathService.java new file mode 100644 index 0000000000..d429fae6f7 --- /dev/null +++ b/packages/core/backend/sirius-components-core/src/main/java/org/eclipse/sirius/components/core/services/CoreImagePathService.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2024 Obeo. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.components.core.services; + +import java.util.List; + +import org.eclipse.sirius.components.core.CoreImageConstants; +import org.eclipse.sirius.components.core.api.IImagePathService; +import org.springframework.stereotype.Service; + +/** + * An IImagePathService for the default images. + * @author fbarbin + */ +@Service +public class CoreImagePathService implements IImagePathService { + + @Override + public List getPaths() { + return List.of(CoreImageConstants.IMAGES_ROOT_FOLDER); + } + +}