Skip to content

Commit

Permalink
[fix] Restore support for Gantt representation images
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Bégaudeau <[email protected]>
  • Loading branch information
sbegaudeau committed Jun 25, 2024
1 parent 0f86ef8 commit b047d9e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*******************************************************************************
* 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.collaborative.gantt.service;

import java.util.List;

import org.eclipse.sirius.components.core.api.IImagePathService;
import org.springframework.stereotype.Service;

/**
* Register the gantt images folder.
*
* @author sbegaudeau
*/
@Service
public class GanttImagePathService implements IImagePathService {
@Override
public List<String> getPaths() {
return List.of("/gantt-images/");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class GanttImageProvider implements IRepresentationImageProvider {
@Override
public Optional<String> getImageURL(String kind) {
if (Gantt.KIND.equals(kind)) {
return Optional.of("/images/Gantt.svg");
return Optional.of("/gantt-images/gantt.svg");
}
return Optional.empty();
}
Expand Down

0 comments on commit b047d9e

Please sign in to comment.