X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.structural.ui%2Fsrc%2Forg%2Fsimantics%2Fstructural%2Fui%2FmenuContributions%2FLinkWithEditorContribution.java;h=e29f396b7e5ad94294ae45e94303c0a0e6c38971;hb=666ee533a3cfa9f59e79215a269f8342227cdbda;hp=73ae57831f9b2ba237f0668f12f803bff9f53501;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.structural.ui/src/org/simantics/structural/ui/menuContributions/LinkWithEditorContribution.java b/bundles/org.simantics.structural.ui/src/org/simantics/structural/ui/menuContributions/LinkWithEditorContribution.java index 73ae57831..e29f396b7 100644 --- a/bundles/org.simantics.structural.ui/src/org/simantics/structural/ui/menuContributions/LinkWithEditorContribution.java +++ b/bundles/org.simantics.structural.ui/src/org/simantics/structural/ui/menuContributions/LinkWithEditorContribution.java @@ -1,38 +1,38 @@ -/******************************************************************************* - * Copyright (c) 2007, 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementatio - *******************************************************************************/ -package org.simantics.structural.ui.menuContributions; - -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.preference.IPreferenceStore; -import org.simantics.structural.ui.Activator; - -/** - * @author Tuukka Lehtonen - */ -public class LinkWithEditorContribution extends ActionContributionItem { - - public LinkWithEditorContribution(String preferenceKey) { - this(preferenceKey, Activator.getDefault().getPreferenceStore()); - } - - public LinkWithEditorContribution(String preferenceKey, IPreferenceStore preferenceStore) { - super(new LinkWithEditorAction(preferenceKey, preferenceStore)); - } - - public static class LinkWithEditorAction extends PreferenceCheckBoxAction { - public LinkWithEditorAction(String preferenceKey, IPreferenceStore preferenceStore) { - super("Link With Editor", preferenceKey, preferenceStore); - setImageDescriptor(Activator.SYNCED_ICON); - } - } - +/******************************************************************************* + * Copyright (c) 2007, 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementatio + *******************************************************************************/ +package org.simantics.structural.ui.menuContributions; + +import org.eclipse.jface.action.ActionContributionItem; +import org.eclipse.jface.preference.IPreferenceStore; +import org.simantics.structural.ui.Activator; + +/** + * @author Tuukka Lehtonen + */ +public class LinkWithEditorContribution extends ActionContributionItem { + + public LinkWithEditorContribution(String preferenceKey) { + this(preferenceKey, Activator.getDefault().getPreferenceStore()); + } + + public LinkWithEditorContribution(String preferenceKey, IPreferenceStore preferenceStore) { + super(new LinkWithEditorAction(preferenceKey, preferenceStore)); + } + + public static class LinkWithEditorAction extends PreferenceCheckBoxAction { + public LinkWithEditorAction(String preferenceKey, IPreferenceStore preferenceStore) { + super("Link With Editor", preferenceKey, preferenceStore); + setImageDescriptor(Activator.SYNCED_ICON); + } + } + } \ No newline at end of file