Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java222
1 files changed, 111 insertions, 111 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java
index 8b8746b859e..c206a0c7467 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/preferences/TabTooltipPreferences.java
@@ -1,111 +1,111 @@
-/**
- *
- */
-package org.eclipse.papyrus.infra.core.sasheditor.internal.preferences;
-
-import org.eclipse.core.runtime.preferences.InstanceScope;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.papyrus.infra.core.sasheditor.Activator;
-import org.eclipse.ui.preferences.ScopedPreferenceStore;
-
-
-/**
- * An implementation retrieving values from Eclipse preferences
- *
- * @author cedric dumoulin
- *
- */
-public class TabTooltipPreferences implements ITabTooltipPreferences {
-
- /**
- * Store used to access preferences.
- */
- protected IPreferenceStore store;
-
- public TabTooltipPreferences() {
- IPreferenceStore store = createPreferenceStore();
- setPreferenceStore(store);
- }
-
- /**
- * Subclasses may implements this method in order to provide the requested preferenceStore.
- *
- * @return
- */
- protected IPreferenceStore createPreferenceStore() {
- IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, Activator.getDefault().getBundle().getSymbolicName());
-
- return store;
- }
-
-
- /**
- * @return the store
- */
- public IPreferenceStore getPreferenceStore() {
- return store;
- }
-
-
- /**
- * @param store
- * the store to set
- */
- public void setPreferenceStore(IPreferenceStore store) {
- this.store = store;
- }
-
- /**
- * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#isTooltipEnable()
- *
- * @return
- */
- @Override
- public boolean isTooltipEnable() {
-
- return store.getBoolean(ITabTooltipPreferences.isTooltipEnable);
- }
-
- /**
- * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#isTooltipForCurrentTabShown()
- *
- * @return
- */
- @Override
- public boolean isTooltipForCurrentTabShown() {
- return store.getBoolean(ITabTooltipPreferences.isTooltipForCurrentTabShown);
- }
-
- /**
- * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getScaledFactor()
- *
- * @return
- */
- @Override
- public float getScaledFactor() {
- return (store.getInt(ITabTooltipPreferences.scaledFactor) / 100.0f);
-
- }
-
- /**
- * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getScaledFactor()
- *
- * @return
- */
- @Override
- public int getIntScaledFactor() {
- return store.getInt(ITabTooltipPreferences.scaledFactor);
-
- }
-
- /**
- * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getTooltipAutoCloseDelay()
- *
- * @return
- */
- @Override
- public int getTooltipAutoCloseDelay() {
- return store.getInt(ITabTooltipPreferences.tooltipAutoCloseDelay);
- }
-
-}
+/**
+ *
+ */
+package org.eclipse.papyrus.infra.core.sasheditor.internal.preferences;
+
+import org.eclipse.core.runtime.preferences.InstanceScope;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.infra.core.sasheditor.Activator;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+
+
+/**
+ * An implementation retrieving values from Eclipse preferences
+ *
+ * @author cedric dumoulin
+ *
+ */
+public class TabTooltipPreferences implements ITabTooltipPreferences {
+
+ /**
+ * Store used to access preferences.
+ */
+ protected IPreferenceStore store;
+
+ public TabTooltipPreferences() {
+ IPreferenceStore store = createPreferenceStore();
+ setPreferenceStore(store);
+ }
+
+ /**
+ * Subclasses may implements this method in order to provide the requested preferenceStore.
+ *
+ * @return
+ */
+ protected IPreferenceStore createPreferenceStore() {
+ IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE, Activator.getDefault().getBundle().getSymbolicName());
+
+ return store;
+ }
+
+
+ /**
+ * @return the store
+ */
+ public IPreferenceStore getPreferenceStore() {
+ return store;
+ }
+
+
+ /**
+ * @param store
+ * the store to set
+ */
+ public void setPreferenceStore(IPreferenceStore store) {
+ this.store = store;
+ }
+
+ /**
+ * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#isTooltipEnable()
+ *
+ * @return
+ */
+ @Override
+ public boolean isTooltipEnable() {
+
+ return store.getBoolean(ITabTooltipPreferences.isTooltipEnable);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#isTooltipForCurrentTabShown()
+ *
+ * @return
+ */
+ @Override
+ public boolean isTooltipForCurrentTabShown() {
+ return store.getBoolean(ITabTooltipPreferences.isTooltipForCurrentTabShown);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getScaledFactor()
+ *
+ * @return
+ */
+ @Override
+ public float getScaledFactor() {
+ return (store.getInt(ITabTooltipPreferences.scaledFactor) / 100.0f);
+
+ }
+
+ /**
+ * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getScaledFactor()
+ *
+ * @return
+ */
+ @Override
+ public int getIntScaledFactor() {
+ return store.getInt(ITabTooltipPreferences.scaledFactor);
+
+ }
+
+ /**
+ * @see org.eclipse.papyrus.examples.preferences.wsprefs.ITabTooltipPreferences#getTooltipAutoCloseDelay()
+ *
+ * @return
+ */
+ @Override
+ public int getTooltipAutoCloseDelay() {
+ return store.getInt(ITabTooltipPreferences.tooltipAutoCloseDelay);
+ }
+
+}

Back to the top