diff options
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java')
-rw-r--r-- | plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java index 761fe44cddc..750fd38a807 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/preferences/ConnectionToolPreferences.java @@ -1,36 +1,36 @@ -/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- * 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.infra.gmfdiag.common.preferences;
-
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.papyrus.infra.gmfdiag.common.Activator;
-
-
-public class ConnectionToolPreferences {
-
- public static final String DRAW_CONNECTION_MODE = "drawConnectionMode";
-
- public static final String SINGLE_CLICK = "singleClick";
-
- public static final String TWO_CLICKS = "twoClicks";
-
- private ConnectionToolPreferences() {
- }
-
- public boolean isInSingleClickMode() {
- return SINGLE_CLICK.equals(preferences.getString(DRAW_CONNECTION_MODE));
- }
-
- private IPreferenceStore preferences = Activator.getInstance().getPreferenceStore();
-
- public static final ConnectionToolPreferences instance = new ConnectionToolPreferences();
-}
+/***************************************************************************** + * Copyright (c) 2012 CEA LIST. + * + * 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: + * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.infra.gmfdiag.common.preferences; + +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.papyrus.infra.gmfdiag.common.Activator; + + +public class ConnectionToolPreferences { + + public static final String DRAW_CONNECTION_MODE = "drawConnectionMode"; + + public static final String SINGLE_CLICK = "singleClick"; + + public static final String TWO_CLICKS = "twoClicks"; + + private ConnectionToolPreferences() { + } + + public boolean isInSingleClickMode() { + return SINGLE_CLICK.equals(preferences.getString(DRAW_CONNECTION_MODE)); + } + + private IPreferenceStore preferences = Activator.getInstance().getPreferenceStore(); + + public static final ConnectionToolPreferences instance = new ConnectionToolPreferences(); +} |