Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link to the e-Mail form #567

Merged
merged 1 commit into from
Nov 6, 2024
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
@@ -1,8 +1,13 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: OpenChrom
Bundle-SymbolicName: net.openchrom.feature.branding
Bundle-Name: Branding
Bundle-SymbolicName: net.openchrom.feature.branding;singleton:=true
Bundle-Version: 1.5.0.qualifier
Require-Bundle: org.eclipse.swt,
org.eclipse.e4.core.di.annotations,
org.eclipse.osgi
Automatic-Module-Name: net.openchrom.feature.branding
Bundle-ActivationPolicy: lazy
Bundle-Activator: net.openchrom.feature.branding.Activator
Bundle-RequiredExecutionEnvironment: JavaSE-17
Bundle-Vendor: OpenChrom®
Bundle-Vendor: OpenChrom
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
###############################################################################
# Copyright (c) 2024 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong encoding?

###############################################################################
#Properties file
Contact=Contact
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
###############################################################################
# Copyright (c) 2024 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong encoding?

###############################################################################
#Properties file
Contact=Kontakt
2 changes: 1 addition & 1 deletion openchrom/plugins/net.openchrom.feature.branding/about.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
featureImage=32x32-32.bmp
featureImage=icons/32x32-32.bmp
aboutText=OpenChrom� is a tool for the analysis and visualization of mass spectrometric and chromatographic data developed by Lablicate GmbH.\n\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong encoding?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, here it looks ok. In the review it was odd.

It is based on Chemclipse but offers additional features that cannot be part of the Chemclipse project due to licencing constrains.\n\
\n\
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
OSGI-INF/,\
.,\
about.ini,\
32x32-32.bmp
icons/,\
fragment.e4xmi,\
plugin.xml
12 changes: 12 additions & 0 deletions openchrom/plugins/net.openchrom.feature.branding/fragment.e4xmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="ASCII"?>
<fragment:ModelFragments xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:commands="http://www.eclipse.org/ui/2010/UIModel/application/commands" xmlns:fragment="http://www.eclipse.org/ui/2010/UIModel/fragment" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_QRMGEKATEeqL1crrxNJdbw">
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_S6Kb8KDuEeqL1crrxNJdbw" featurename="commands" parentElementId="org.eclipse.chemclipse.rcp.ide.application">
<elements xsi:type="commands:Command" xmi:id="_Zd-HMKDuEeqL1crrxNJdbw" elementId="net.openchrom.feature.branding.command.contact" commandName="Contact"/>
</fragments>
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_U4yEwKDuEeqL1crrxNJdbw" featurename="handlers" parentElementId="org.eclipse.chemclipse.rcp.ide.application">
<elements xsi:type="commands:Handler" xmi:id="_ezy8YKDuEeqL1crrxNJdbw" elementId="net.openchrom.feature.branding.handler.contact" contributionURI="bundleclass://net.openchrom.feature.branding/net.openchrom.feature.branding.ContactHandler" command="_Zd-HMKDuEeqL1crrxNJdbw"/>
</fragments>
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_XMKcoKDuEeqL1crrxNJdbw" featurename="children" parentElementId="org.eclipse.chemclipse.rcp.app.ui.menu.help">
<elements xsi:type="menu:HandledMenuItem" xmi:id="_jqFV4KDuEeqL1crrxNJdbw" elementId="net.openchrom.feature.branding.handledmenuitem.contact" label="%Contact" iconURI="platform:/plugin/net.openchrom.feature.branding/icons/mail.gif" tooltip="Message the developers." command="_Zd-HMKDuEeqL1crrxNJdbw"/>
</fragments>
</fragment:ModelFragments>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions openchrom/plugins/net.openchrom.feature.branding/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>

<extension
id="net.openchrom.feature.branding.contact"
point="org.eclipse.e4.workbench.model">
<fragment
uri="fragment.e4xmi">
</fragment>
</extension>

</plugin>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*******************************************************************************
* Copyright (c) 2008, 2024 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:
* Philip Wenig - initial API and implementation
*******************************************************************************/
package net.openchrom.feature.branding;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

private static BundleContext context;

public static BundleContext getContext() {

return context;
}

/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
@Override
public void start(BundleContext bundleContext) throws Exception {

System.err.println("ACTIVATOR");
Activator.context = bundleContext;
}

/*
* (non-Javadoc)
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext bundleContext) throws Exception {

Activator.context = null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2024 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.feature.branding;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.swt.program.Program;
import org.eclipse.swt.widgets.Shell;

public class ContactHandler {

@Execute
public void execute(Shell shell) {

Program.launch("https://lablicate.com/about/contact");
}
}