From 694e9b55e549fcd2035e21068fdd31e703d19178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 13 Feb 2025 23:09:59 +0100 Subject: [PATCH] Use the same icon as target transfer. --- .../plugin.xml | 14 ++++++++++ .../templates/ui/icon/TransferMenuIcon.java | 27 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/src/net/openchrom/xxd/process/supplier/templates/ui/icon/TransferMenuIcon.java diff --git a/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/plugin.xml b/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/plugin.xml index 377b4b178..29b3f057a 100644 --- a/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/plugin.xml +++ b/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/plugin.xml @@ -338,4 +338,18 @@ id="org.eclipse.chemclipse.chromatogram.xxd.report.supplier.openchrom.templateChromatogramReport"> + + + + + + + + diff --git a/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/src/net/openchrom/xxd/process/supplier/templates/ui/icon/TransferMenuIcon.java b/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/src/net/openchrom/xxd/process/supplier/templates/ui/icon/TransferMenuIcon.java new file mode 100644 index 000000000..df466c8d4 --- /dev/null +++ b/openchrom/plugins/net.openchrom.xxd.process.supplier.templates.ui/src/net/openchrom/xxd/process/supplier/templates/ui/icon/TransferMenuIcon.java @@ -0,0 +1,27 @@ +/******************************************************************************* + * Copyright (c) 2025 Lablicate GmbH. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Matthias Mailänder - initial API and implementation + *******************************************************************************/ +package net.openchrom.xxd.process.supplier.templates.ui.icon; + +import org.eclipse.chemclipse.rcp.ui.icons.core.ApplicationImageFactory; +import org.eclipse.chemclipse.rcp.ui.icons.core.IApplicationImage; +import org.eclipse.chemclipse.rcp.ui.icons.core.IApplicationImageProvider; +import org.eclipse.chemclipse.xxd.process.ui.menu.IMenuIcon; +import org.eclipse.swt.graphics.Image; + +public class TransferMenuIcon implements IMenuIcon { + + @Override + public Image getImage() { + + return ApplicationImageFactory.getInstance().getImage(IApplicationImage.IMAGE_TARGETS, IApplicationImageProvider.SIZE_16x16); + } +} \ No newline at end of file