Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.openchrom.chromatogram.xxd.report.supplier.masc.escape.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=utf8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin.includes = feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="net.openchrom.chromatogram.xxd.report.supplier.masc.escape.feature"
label="MaSC Escape Report"
version="1.6.34.qualifier"
provider-name="OpenChrom"
plugin="net.openchrom.feature.branding"
license-feature="org.eclipse.license"
license-feature-version="2.0.2.qualifier">

<description url="https://www.openchrom.net">
This is the MaSC ESCAPE report plugin.
</description>

<copyright url="https://www.lablicate.com">
Copyright (c) 2026 Lablicate GmbH.
</copyright>

<license url="%licenseURL">
%license
</license>

<url>
<discovery label="MaSC" url="https://mascgroup.org/"/>
</url>

<plugin
id="net.openchrom.chromatogram.xxd.report.supplier.masc.escape"
version="0.0.0"/>

</feature>
4 changes: 4 additions & 0 deletions openchrom/features/net.openchrom.platform.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
id="org.eclipse.chemclipse.nmr.processing.supplier.base.feature"
version="0.0.0"/>

<includes
id="net.openchrom.chromatogram.xxd.report.supplier.masc.escape.feature"
version="0.0.0"/>

<requires>
<import feature="org.eclipse.rcp"/>
<import feature="org.eclipse.help"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
*******************************************************************************/
package net.openchrom.chromatogram.xxd.report.supplier.excel.template.ui;

import org.eclipse.chemclipse.support.events.IChemClipseEvents;
import org.eclipse.chemclipse.support.ui.activator.AbstractActivatorUI;
import org.eclipse.chemclipse.ux.extension.ui.support.DataUpdateSupport;
import org.osgi.framework.BundleContext;

import net.openchrom.chromatogram.xxd.report.supplier.excel.template.preferences.PreferenceSupplier;
Expand All @@ -24,16 +22,12 @@ public class Activator extends AbstractActivatorUI {

private static Activator plugin;

private DataUpdateSupport dataUpdateSupport;

@Override
public void start(BundleContext context) throws Exception {

super.start(context);
plugin = this;
initializePreferenceStore(PreferenceSupplier.INSTANCE());
dataUpdateSupport = new DataUpdateSupport(getEventBroker());
initialize(dataUpdateSupport);
}

@Override
Expand All @@ -47,14 +41,4 @@ public static Activator getDefault() {

return plugin;
}

public DataUpdateSupport getDataUpdateSupport() {

return dataUpdateSupport;
}

private void initialize(DataUpdateSupport dataUpdateSupport) {

dataUpdateSupport.subscribe(IChemClipseEvents.TOPIC_CHROMATOGRAM_XXD_UPDATE_SELECTION, IChemClipseEvents.EVENT_BROKER_DATA);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-25"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=utf8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=25
org.eclipse.jdt.core.compiler.compliance=25
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=25
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
classpath=true
dsVersion=V1_3
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
path=OSGI-INF
validationErrorLevel=error
validationErrorLevel.missingImplicitUnbindMethod=error
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Manifest-Version: 1.0
Automatic-Module-Name: net.openchrom.chromatogram.xxd.report.supplier.csv.ui
Bundle-ManifestVersion: 2
Bundle-Name: MaSC ESCAPE Report UI
Bundle-SymbolicName: net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui;singleton:=true
Bundle-Version: 1.6.34.qualifier
Bundle-Activator: net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui.Activator
Bundle-Vendor: OpenChrom
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.chemclipse.support;bundle-version="0.9.0",
org.eclipse.chemclipse.support.ui;bundle-version="0.9.0",
org.eclipse.ui;bundle-version="3.109.100",
org.eclipse.chemclipse.ux.extension.ui;bundle-version="0.9.0",
org.eclipse.chemclipse.rcp.ui.icons;bundle-version="0.9.0",
org.eclipse.chemclipse.xxd.process.ui;bundle-version="0.9.0",
org.eclipse.e4.core.services;bundle-version="2.3.400",
net.openchrom.chromatogram.xxd.report.supplier.masc.escape;bundle-version="1.6.34",
org.eclipse.chemclipse.logging;bundle-version="0.9.0"
Bundle-RequiredExecutionEnvironment: JavaSE-25
Bundle-ActivationPolicy: lazy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#Properties file
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
OSGI-INF/
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.eclipse.chemclipse.chromatogram.xxd.report.ui.preferences.reportPreferencePage"
class="net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui.preferences.PreferencePage"
id="net.openchrom.chromatogram.xxd.report.supplier.csv.ui.preferences.preferencePage"
name="MaSC ESCAPE Chromatogram Report">
</page>
</extension>
<extension
point="org.eclipse.chemclipse.xxd.process.ui.menu.icon">
<icon
class="net.openchrom.chromatogram.xxd.report.supplier.excel.template.ui.icon.MenuIcon"
id="net.openchrom.chromatogram.xxd.report.supplier.excel.template">
</icon>
</extension>
</plugin>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*******************************************************************************
* Copyright (c) 2026 Lablicate GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Matthias Mailänder - data update support
*******************************************************************************/
package net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui;

import org.eclipse.chemclipse.support.preferences.PreferenceSupplier;
import org.eclipse.chemclipse.support.ui.activator.AbstractActivatorUI;
import org.osgi.framework.BundleContext;

public class Activator extends AbstractActivatorUI {

private static Activator plugin;

@Override
public void start(BundleContext context) throws Exception {

super.start(context);
plugin = this;
initializePreferenceStore(PreferenceSupplier.INSTANCE());
}

@Override
public void stop(BundleContext context) throws Exception {

plugin = null;
super.stop(context);
}

public static Activator getDefault() {

return plugin;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*******************************************************************************
* Copyright (c) 2026 Lablicate GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Matthias Mailänder - initial API and implementation
*******************************************************************************/
package net.openchrom.chromatogram.xxd.report.supplier.masc.escape.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 MenuIcon implements IMenuIcon {

@Override
public Image getImage() {

return ApplicationImageFactory.getInstance().getImage(IApplicationImage.IMAGE_EXCEL, IApplicationImageProvider.SIZE_16x16);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*******************************************************************************
* Copyright (c) 2026 Lablicate GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Matthias Mailänder - initial API and implementation
*******************************************************************************/
package net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui.preferences;

import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import net.openchrom.chromatogram.xxd.report.supplier.masc.escape.preferences.PreferenceSupplier;
import net.openchrom.chromatogram.xxd.report.supplier.masc.escape.ui.Activator;

public class PreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {

public PreferencePage() {

super(GRID);
setPreferenceStore(Activator.getDefault().getPreferenceStore());
setTitle("MaSC ESCAPE Chromatogram Reports");
setDescription("Allows user customizable report based on *.xltx spreadsheet templates.");
}

@Override
public void createFieldEditors() {

addField(new FileFieldEditor(PreferenceSupplier.P_TEMPLATE, "ESCAPE Template", getFieldEditorParent()));
addField(new FileFieldEditor(PreferenceSupplier.P_REPORT, "Export Folder", getFieldEditorParent()));
}

@Override
public void init(IWorkbench workbench) {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-25"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.openchrom.chromatogram.xxd.report.supplier.masc.escape</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=utf8
Loading
Loading