|
From: <caw...@us...> - 2006-07-20 00:06:42
|
Revision: 1523 Author: cawilliams Date: 2006-07-19 17:06:30 -0700 (Wed, 19 Jul 2006) ViewCVS: http://svn.sourceforge.net/rubyeclipse/?rev=1523&view=rev Log Message: ----------- Add preference pages to UI to allow users to control mark occurrences behavior Modified Paths: -------------- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.properties branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.xml branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/PreferenceConstants.java Added Paths: ----------- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.properties =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.properties 2006-07-19 23:21:17 UTC (rev 1522) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.properties 2006-07-20 00:06:30 UTC (rev 1523) @@ -50,6 +50,7 @@ preferenceKeywords.syntaxcoloring=Ruby editor colors semantic coloring highlighting Rdoc html links tags multi line single line comment task tag method invocation static field annotation autoboxing unboxing boxing constant deprecated field keywords local variable operators brackets strings type variable inherited method declaration preferenceKeywords.templates=Ruby editor templates snippet macros preferenceKeywords.folding=Ruby editor folding section comment comments header method import inner type +preferenceKeywords.markoccurrences=Ruby editor occurrence mark highlight type method constant field exception PerspectiveRuby.name=Ruby @@ -70,6 +71,7 @@ editorSyntaxColoringPage=Syntax Coloring editorFoldingPage=Folding editorTypingPage=Typing +editorMarkOccurrencesPage=Mark Occurrences EditorRubyFile.name=Ruby Editor EditorRubyFile.extension=rb, rbw, cgi, fcgi, rake, rjs, rxml Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.xml =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.xml 2006-07-19 23:21:17 UTC (rev 1522) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/plugin.xml 2006-07-20 00:06:30 UTC (rev 1523) @@ -80,6 +80,13 @@ id="org.rubypeople.rdt.ui.preferences.SmartTypingPreferencePage"> <keywordReference id="org.rubypeople.rdt.ui.smarttyping"/> </page> + <page + name="%editorMarkOccurrencesPage" + category="org.rubypeople.rdt.ui.preferences.PreferencePageRubyEditor" + class="org.rubypeople.rdt.internal.ui.preferences.MarkOccurrencesPreferencePage" + id="org.rubypeople.rdt.ui.preferences.MarkOccurrencesPreferencePage"> + <keywordReference id="org.rubypeople.rdt.ui.markoccurrences"/> + </page> </extension> <!-- =========================================================================== --> <!-- Ruby Perspective --> @@ -333,6 +340,9 @@ <keyword label="%preferenceKeywords.folding" id="org.rubypeople.rdt.ui.folding"/> + <keyword + label="%preferenceKeywords.markoccurrences" + id="org.rubypeople.rdt.ui.markoccurrences"/> </extension> <extension point="org.eclipse.ui.views"> Added: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java (rev 0) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java 2006-07-20 00:06:30 UTC (rev 1523) @@ -0,0 +1,232 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +package org.rubypeople.rdt.internal.ui.preferences; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.jface.text.Assert; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Label; +import org.rubypeople.rdt.internal.ui.dialogs.StatusInfo; +import org.rubypeople.rdt.internal.ui.util.PixelConverter; +import org.rubypeople.rdt.ui.PreferenceConstants; + +/** + * Configures Ruby Editor mark occurrences preferences. + * + * @since 0.9.0 + */ +class MarkOccurrencesConfigurationBlock implements IPreferenceConfigurationBlock { + + private OverlayPreferenceStore fStore; + + + private Map fCheckBoxes= new HashMap(); + private SelectionListener fCheckBoxListener= new SelectionListener() { + public void widgetDefaultSelected(SelectionEvent e) { + } + public void widgetSelected(SelectionEvent e) { + Button button= (Button) e.widget; + fStore.setValue((String) fCheckBoxes.get(button), button.getSelection()); + } + }; + + /** + * List of master/slave listeners when there's a dependency. + * + * @see #createDependency(Button, String, Control) + * @since 3.0 + */ + private ArrayList fMasterSlaveListeners= new ArrayList(); + + private StatusInfo fStatus; + + public MarkOccurrencesConfigurationBlock(OverlayPreferenceStore store) { + Assert.isNotNull(store); + fStore= store; + + fStore.addKeys(createOverlayStoreKeys()); + } + + private OverlayPreferenceStore.OverlayKey[] createOverlayStoreKeys() { + + ArrayList overlayKeys= new ArrayList(); + + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS)); + overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_STICKY_OCCURRENCES)); + + OverlayPreferenceStore.OverlayKey[] keys= new OverlayPreferenceStore.OverlayKey[overlayKeys.size()]; + overlayKeys.toArray(keys); + return keys; + } + + /** + * Creates page for mark occurrences preferences. + * + * @param parent the parent composite + * @return the control for the preference page + */ + public Control createControl(Composite parent) { + + Composite composite= new Composite(parent, SWT.NONE); + GridLayout layout= new GridLayout(); + layout.numColumns= 1; + composite.setLayout(layout); + + String label; + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markOccurrences; + Button master= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_OCCURRENCES, 0); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markTypeOccurrences; + Button slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_STICKY_OCCURRENCES, slave); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markMethodOccurrences; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, slave); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markConstantOccurrences; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, slave); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markFieldOccurrences; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, slave); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markLocalVariableOccurrences; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, slave); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markMethodExitPoints; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, 0); + createDependency(master, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, slave); + + addFiller(composite); + + label= PreferencesMessages.MarkOccurrencesConfigurationBlock_stickyOccurrences; + slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_STICKY_OCCURRENCES, 0); + createDependency(master, PreferenceConstants.EDITOR_STICKY_OCCURRENCES, slave); + + return composite; + } + + private void addFiller(Composite composite) { + PixelConverter pixelConverter= new PixelConverter(composite); + + Label filler= new Label(composite, SWT.LEFT ); + GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL); + gd.horizontalSpan= 2; + gd.heightHint= pixelConverter.convertHeightInCharsToPixels(1) / 2; + filler.setLayoutData(gd); + } + + private Button addCheckBox(Composite parent, String label, String key, int indentation) { + Button checkBox= new Button(parent, SWT.CHECK); + checkBox.setText(label); + + GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); + gd.horizontalIndent= indentation; + gd.horizontalSpan= 2; + checkBox.setLayoutData(gd); + checkBox.addSelectionListener(fCheckBoxListener); + + fCheckBoxes.put(checkBox, key); + + return checkBox; + } + + private void createDependency(final Button master, String masterKey, final Control slave) { + indent(slave); + boolean masterState= fStore.getBoolean(masterKey); + slave.setEnabled(masterState); + SelectionListener listener= new SelectionListener() { + public void widgetSelected(SelectionEvent e) { + slave.setEnabled(master.getSelection()); + } + + public void widgetDefaultSelected(SelectionEvent e) {} + }; + master.addSelectionListener(listener); + fMasterSlaveListeners.add(listener); + } + + private static void indent(Control control) { + GridData gridData= new GridData(); + gridData.horizontalIndent= 20; + control.setLayoutData(gridData); + } + + public void initialize() { + initializeFields(); + } + + void initializeFields() { + + Iterator iter= fCheckBoxes.keySet().iterator(); + while (iter.hasNext()) { + Button b= (Button) iter.next(); + String key= (String) fCheckBoxes.get(b); + b.setSelection(fStore.getBoolean(key)); + } + + // Update slaves + iter= fMasterSlaveListeners.iterator(); + while (iter.hasNext()) { + SelectionListener listener= (SelectionListener)iter.next(); + listener.widgetSelected(null); + } + + } + + public void performOk() { + } + + public void performDefaults() { + restoreFromPreferences(); + initializeFields(); + } + + private void restoreFromPreferences() { + + } + + IStatus getStatus() { + if (fStatus == null) + fStatus= new StatusInfo(); + return fStatus; + } + + /* + * @see org.eclipse.jdt.internal.ui.preferences.IPreferenceConfigurationBlock#dispose() + * @since 3.0 + */ + public void dispose() { + } +} Added: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java (rev 0) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java 2006-07-20 00:06:30 UTC (rev 1523) @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ + +package org.rubypeople.rdt.internal.ui.preferences; + + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import org.rubypeople.rdt.internal.ui.IRubyHelpContextIds; +import org.rubypeople.rdt.internal.ui.RubyPlugin; + + +/** + * The page for setting the editor options. + */ +public final class MarkOccurrencesPreferencePage extends AbstractConfigurationBlockPreferencePage { + + /* + * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#getHelpId() + */ + protected String getHelpId() { + return IRubyHelpContextIds.RUBY_EDITOR_PREFERENCE_PAGE; + } + + /* + * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription() + */ + protected void setDescription() { + String description= PreferencesMessages.MarkOccurrencesConfigurationBlock_title; + setDescription(description); + } + + /* + * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore() + */ + protected void setPreferenceStore() { + setPreferenceStore(RubyPlugin.getDefault().getPreferenceStore()); + } + + + protected Label createDescriptionLabel(Composite parent) { + return null; // no description for new look. + } + + /* + * @see org.eclipse.ui.internal.editors.text.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(org.eclipse.ui.internal.editors.text.OverlayPreferenceStore) + */ + protected IPreferenceConfigurationBlock createConfigurationBlock(OverlayPreferenceStore overlayPreferenceStore) { + return new MarkOccurrencesConfigurationBlock(overlayPreferenceStore); + } + +} Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java 2006-07-19 23:21:17 UTC (rev 1522) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.java 2006-07-20 00:06:30 UTC (rev 1523) @@ -138,6 +138,15 @@ public static String ProblemSeveritiesConfigurationBlock_pb_unused_private_label; public static String ProblemSeveritiesConfigurationBlock_pb_unnecessary_else_label; public static String RubyEditorPreferencePage_background_color; + public static String MarkOccurrencesConfigurationBlock_markOccurrences; + public static String MarkOccurrencesConfigurationBlock_markTypeOccurrences; + public static String MarkOccurrencesConfigurationBlock_markMethodOccurrences; + public static String MarkOccurrencesConfigurationBlock_markConstantOccurrences; + public static String MarkOccurrencesConfigurationBlock_markFieldOccurrences; + public static String MarkOccurrencesConfigurationBlock_markLocalVariableOccurrences; + public static String MarkOccurrencesConfigurationBlock_markMethodExitPoints; + public static String MarkOccurrencesConfigurationBlock_stickyOccurrences; + public static String MarkOccurrencesConfigurationBlock_title; static { NLS.initializeMessages(BUNDLE_NAME, PreferencesMessages.class); Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties 2006-07-19 23:21:17 UTC (rev 1522) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/preferences/PreferencesMessages.properties 2006-07-20 00:06:30 UTC (rev 1523) @@ -157,3 +157,14 @@ ProblemSeveritiesConfigurationBlock_pb_unused_parameter_label=Parameter is never read: ProblemSeveritiesConfigurationBlock_pb_unused_private_label=Unused local or private member: ProblemSeveritiesConfigurationBlock_pb_unnecessary_else_label=Unnecessary else statement: + +MarkOccurrencesConfigurationBlock_title= &Mark Occurrences +MarkOccurrencesConfigurationBlock_markOccurrences= Mark &occurrences of the selected element in the current file. +MarkOccurrencesConfigurationBlock_markTypeOccurrences= &Types +MarkOccurrencesConfigurationBlock_markMethodOccurrences= &Methods +MarkOccurrencesConfigurationBlock_markConstantOccurrences= &Constants +MarkOccurrencesConfigurationBlock_markFieldOccurrences= &Non-constant fields +MarkOccurrencesConfigurationBlock_markLocalVariableOccurrences= &Local variables +MarkOccurrencesConfigurationBlock_markMethodExitPoints= Method &exits +MarkOccurrencesConfigurationBlock_stickyOccurrences= &Keep marks when the selection changes + Modified: branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/PreferenceConstants.java =================================================================== --- branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/PreferenceConstants.java 2006-07-19 23:21:17 UTC (rev 1522) +++ branches/type_inferrence/trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/ui/PreferenceConstants.java 2006-07-20 00:06:30 UTC (rev 1523) @@ -486,6 +486,91 @@ */ public final static String EDITOR_CLOSE_BRACES= "closeBraces"; //$NON-NLS-1$ + + /** + * A named preference that controls whether occurrences are marked in the editor. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_OCCURRENCES= "markOccurrences"; //$NON-NLS-1$ + + /** + * A named preference that controls whether occurrences are sticky in the editor. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_STICKY_OCCURRENCES= "stickyOccurrences"; //$NON-NLS-1$ + + /** + * A named preference that controls whether type occurrences are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_TYPE_OCCURRENCES= "markTypeOccurrences"; //$NON-NLS-1$ + + /** + * A named preference that controls whether method occurrences are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_METHOD_OCCURRENCES= "markMethodOccurrences"; //$NON-NLS-1$ + /** + * A named preference that controls whether non-constant field occurrences are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_FIELD_OCCURRENCES= "markFieldOccurrences"; //$NON-NLS-1$ + /** + * A named preference that controls whether constant (static final) occurrences are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_CONSTANT_OCCURRENCES= "markConstantOccurrences"; //$NON-NLS-1$ + + /** + * A named preference that controls whether local variable occurrences are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES= "markLocalVariableOccurrences"; //$NON-NLS-1$ + + /** + * A named preference that controls whether method exit points are marked. + * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is <code>true</code>. + * <p> + * Value is of type <code>Boolean</code>. + * </p> + * + * @since 0.9.0 + */ + public static final String EDITOR_MARK_METHOD_EXIT_POINTS= "markMethodExitPoints"; //$NON-NLS-1$ + public static void initializeDefaultValues(IPreferenceStore store) { store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false); @@ -551,6 +636,16 @@ store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true); store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true); store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true); + + // mark occurrences + store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, true); + store.setDefault(PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, true); } private static String getDefaultPath(String programName) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |