Preferencedialog for "Mark Occurrences"
authoraxelcl <axelcl>
Mon, 10 Oct 2005 19:03:15 +0000 (19:03 +0000)
committeraxelcl <axelcl>
Mon, 10 Oct 2005 19:03:15 +0000 (19:03 +0000)
net.sourceforge.phpeclipse/plugin.properties
net.sourceforge.phpeclipse/plugin.xml
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java [new file with mode: 0644]
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/PreferencesMessages.properties

index 4e2f6b2..87909f1 100644 (file)
@@ -40,6 +40,7 @@ todoTaskPrefName= Task Tags
 templatePageName= Templates
 spellingPrefName= Spelling
 codeAssistPageName= Code Assist
+editorMarkOccurrencesPage= Mark Occurrences
 
 #
 # Extension point names
@@ -374,7 +375,7 @@ OccurrenceAnnotation.label= PHP Marker Occurrences
 
 phpEditorFontDefiniton.label= PHP Editor Text Font
 phpEditorFontDefintion.description= The PHP editor text font is used by PHP editors.
-#--- filter 
+#--- filter
 HideImportDeclaration.label= Import declarations
 HideImportDeclaration.description= Hides all import declarations
 
index 0e77cc1..42ac482 100644 (file)
             class="net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage"
             id = "net.sourceforge.phpdt.internal.ui.preferences.SpellingPreferencePage">
       </page>
+      <page
+            name="%editorMarkOccurrencesPage"
+            category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
+            class="net.sourceforge.phpdt.internal.ui.preferences.MarkOccurrencesPreferencePage"
+            id="net.sourceforge.phpdt.internal.ui.preferences.MarkOccurrencesPreferencePage">
+  <!--       <keywordReference id="org.eclipse.jdt.ui.markoccurrences"/> -->
+      </page>
    </extension>
  <!--  <extension
          point="org.eclipse.ui.editors.documentProviders">
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java
new file mode 100644 (file)
index 0000000..dab1aa8
--- /dev/null
@@ -0,0 +1,246 @@
+/*******************************************************************************
+ * 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 net.sourceforge.phpdt.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.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.eclipse.jface.text.Assert;
+
+import net.sourceforge.phpdt.ui.PreferenceConstants;
+
+import net.sourceforge.phpdt.internal.ui.dialogs.StatusInfo;
+import net.sourceforge.phpdt.internal.ui.util.PixelConverter;
+
+/**
+ * Configures Java Editor hover preferences.
+ *
+ * @since 2.1
+ */
+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_EXCEPTION_OCCURRENCES));
+//             overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS));
+//             overlayKeys.add(new OverlayPreferenceStore.OverlayKey(OverlayPreferenceStore.BOOLEAN, PreferenceConstants.EDITOR_MARK_IMPLEMENTORS));
+               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.getString("JavaEditorPreferencePage.markOccurrences");
+               Button master= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_OCCURRENCES, 0); //$NON-NLS-1$
+
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markTypeOccurrences;
+//             Button slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_TYPE_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_STICKY_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markMethodOccurrences;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_METHOD_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markConstantOccurrences;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_CONSTANT_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markFieldOccurrences;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_FIELD_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markLocalVariableOccurrences;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_LOCAL_VARIABLE_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markExceptionOccurrences;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_EXCEPTION_OCCURRENCES, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markMethodExitPoints;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_METHOD_EXIT_POINTS, slave);
+//
+//             label= PreferencesMessages.MarkOccurrencesConfigurationBlock_markImplementors;
+//             slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, 0); //$NON-NLS-1$
+//             createDependency(master, PreferenceConstants.EDITOR_MARK_IMPLEMENTORS, slave);
+
+               addFiller(composite);
+
+               label= PreferencesMessages.getString("JavaEditorPreferencePage.stickyOccurrences");
+               Button slave= addCheckBox(composite, label, PreferenceConstants.EDITOR_STICKY_OCCURRENCES, 0); //$NON-NLS-1$
+               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 net.sourceforge.phpdt.internal.ui.preferences.IPreferenceConfigurationBlock#dispose()
+        * @since 3.0
+        */
+       public void dispose() {
+       }
+}
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/MarkOccurrencesPreferencePage.java
new file mode 100644 (file)
index 0000000..07fbfd4
--- /dev/null
@@ -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 net.sourceforge.phpdt.internal.ui.preferences;
+
+
+import net.sourceforge.phpdt.internal.ui.IJavaHelpContextIds;
+import net.sourceforge.phpeclipse.PHPeclipsePlugin;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+
+/**
+ * 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 IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
+       }
+
+       /*
+        * @see org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setDescription()
+        */
+       protected void setDescription() {
+               String description= PreferencesMessages.getString("MarkOccurrencesConfigurationBlock.title");
+               setDescription(description);
+       }
+
+       /*
+        * @see org.org.eclipse.ui.internal.editors.text.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
+        */
+       protected void setPreferenceStore() {
+               setPreferenceStore(PHPeclipsePlugin.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);
+       }
+
+}
index a3d7935..0756df8 100644 (file)
@@ -1,10 +1,10 @@
 ###############################################################################
 # Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
+# All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Common Public License v1.0
 # which accompanies this distribution, and is available at
 # http://www.eclipse.org/legal/cpl-v10.html
-# 
+#
 # Contributors:
 #     IBM Corporation - initial API and implementation
 ###############################################################################
@@ -78,7 +78,7 @@ NewJavaProjectPreferencePage.folders.bin=&Output folder name:
 NewJavaProjectPreferencePage.folders.error.namesempty=Enter folder names.
 NewJavaProjectPreferencePage.folders.error.invalidsrcname=Invalid source folder name: {0}
 NewJavaProjectPreferencePage.folders.error.invalidbinname=Invalid output folder name: {0}
-NewJavaProjectPreferencePage.folders.error.invalidcp=Settings will result in an invalid build path. Check for nested folders. 
+NewJavaProjectPreferencePage.folders.error.invalidcp=Settings will result in an invalid build path. Check for nested folders.
 
 JavaEditorPreferencePage.annotationsTab.title= Annotation&s
 JavaEditorPreferencePage.showQuickFixables= Indicate annotations solvable with &Quick Fix in vertical ruler
@@ -101,7 +101,7 @@ JavaEditorPreferencePage.multiLineComment=Multi-line comment
 JavaEditorPreferencePage.singleLineComment=Single-line comment
 JavaEditorPreferencePage.returnKeyword= Keyword 'return'
 JavaEditorPreferencePage.keywords=Keywords excluding 'return'
-JavaEditorPreferencePage.functionNames=Predefined function names 
+JavaEditorPreferencePage.functionNames=Predefined function names
 JavaEditorPreferencePage.variables='$' Variables
 JavaEditorPreferencePage.variables_dollar='$_' Variables
 JavaEditorPreferencePage.constants=Constants
@@ -204,10 +204,11 @@ JavaEditorPreferencePage.navigation.modifierIsNotValid= Modifier ''{0}'' is not
 JavaEditorPreferencePage.navigation.shiftIsDisabled= The modifier 'Shift' is not allowed because 'Shift' + click sets a new selection.
 
 JavaEditorPreferencePage.navigation.delimiter= +
-JavaEditorPreferencePage.navigation.insertDelimiterAndModifierAndDelimiter= \ + {0} + 
-JavaEditorPreferencePage.navigation.insertModifierAndDelimiter= \ {0} + 
+JavaEditorPreferencePage.navigation.insertDelimiterAndModifierAndDelimiter= \ + {0} +
+JavaEditorPreferencePage.navigation.insertModifierAndDelimiter= \ {0} +
 JavaEditorPreferencePage.navigation.insertDelimiterAndModifier= \ + {0}
 
+MarkOccurrencesConfigurationBlock.title=Mark Occurences
 JavaEditorPreferencePage.markOccurrences= Mar&k occurrences in file
 JavaEditorPreferencePage.stickyOccurrences= S&ticky
 
@@ -220,21 +221,21 @@ JavaEditorHoverConfigurationBlock.modifierIsNotValidForHover= Modifier ''{0}'' f
 JavaEditorHoverConfigurationBlock.duplicateModifier= ''{0}'' hover uses the same modifier as ''{1}'' hover.
 
 JavaEditorHoverConfigurationBlock.delimiter= +
-JavaEditorHoverConfigurationBlock.insertDelimiterAndModifierAndDelimiter= \ + {0} + 
-JavaEditorHoverConfigurationBlock.insertModifierAndDelimiter= \ {0} + 
+JavaEditorHoverConfigurationBlock.insertDelimiterAndModifierAndDelimiter= \ + {0} +
+JavaEditorHoverConfigurationBlock.insertModifierAndDelimiter= \ {0} +
 JavaEditorHoverConfigurationBlock.insertDelimiterAndModifier= \ + {0}
 
 JavaEditorHoverConfigurationBlock.showAffordance= Show affordance in hover on how to make it sticky
 
 JavaElementInfoPage.binary=binary
-JavaElementInfoPage.classpath_entry_kind=Classpath entry kind: 
+JavaElementInfoPage.classpath_entry_kind=Classpath entry kind:
 JavaElementInfoPage.library=library
-JavaElementInfoPage.nameLabel=Name: 
+JavaElementInfoPage.nameLabel=Name:
 JavaElementInfoPage.not_present=not present
-JavaElementInfoPage.package=Package: 
-JavaElementInfoPage.package_contents=Package contents: 
+JavaElementInfoPage.package=Package:
+JavaElementInfoPage.package_contents=Package contents:
 JavaElementInfoPage.project=project
-JavaElementInfoPage.resource_path=Resource path: 
+JavaElementInfoPage.resource_path=Resource path:
 JavaElementInfoPage.source=source
 JavaElementInfoPage.variable=variable
 JavaElementInfoPage.variable_path=Variable path:
@@ -379,7 +380,7 @@ CompilerConfigurationBlock.build_warnings.description=Select the severity level
 CompilerConfigurationBlock.variable_attr.label=Add varia&ble attributes to generated class files (used by the debugger)
 CompilerConfigurationBlock.line_number_attr.label=Add &line number attributes to generated class files (used by the debugger)
 CompilerConfigurationBlock.source_file_attr.label=Add source &file name to generated class file (used by the debugger)
-CompilerConfigurationBlock.codegen_unused_local.label=Pr&eserve unused local variables (never read) 
+CompilerConfigurationBlock.codegen_unused_local.label=Pr&eserve unused local variables (never read)
 
 CompilerConfigurationBlock.compiler_compliance.label=Comp&iler compliance level:
 CompilerConfigurationBlock.default_settings.label=Use defaul&t compliance settings
@@ -393,7 +394,7 @@ CompilerConfigurationBlock.classfiles.group.label=Classfile Generation
 CompilerConfigurationBlock.pb_file_not_exist.label=Include filename doesn't exist in project:
 CompilerConfigurationBlock.pb_var_deprecated.label=Keyword 'var' is deprecated:
 CompilerConfigurationBlock.pb_keyword.label=Don't use keyword as identifier:
-CompilerConfigurationBlock.pb_uppercase_identifier.label=Non-variable identifiers should contain only uppercase characters: 
+CompilerConfigurationBlock.pb_uppercase_identifier.label=Non-variable identifiers should contain only uppercase characters:
 CompilerConfigurationBlock.pb_unreachable_code.label=&Unreachable code:
 CompilerConfigurationBlock.pb_unitialized_local_variable.label=Uninitialized local function or method variable:
 
@@ -586,7 +587,7 @@ CodeTemplateBlock.templates.import.button=&Import...
 CodeTemplateBlock.templates.export.button=E&xport...
 CodeTemplateBlock.templates.exportall.button=Ex&port All...
 
-CodeTemplateBlock.createcomment.label=A&utomatically add comments for new methods and types 
+CodeTemplateBlock.createcomment.label=A&utomatically add comments for new methods and types
 CodeTemplateBlock.createcomment.description=(does not apply to comments contained in the code patterns)
 CodeTemplateBlock.templates.label=C&onfigure generated code and comments:
 CodeTemplateBlock.preview=Pa&ttern:
@@ -718,6 +719,6 @@ EditTemplateDialog.content.assist=Insert &Variable...
 JavaEditorPreferencePage.folding.title= &Folding
 
 FoldingConfigurationBlock.enable= Enable folding when &opening a new editor
-FoldingConfigurationBlock.combo_caption= Select folding to &use: 
+FoldingConfigurationBlock.combo_caption= Select folding to &use:
 FoldingConfigurationBlock.info.no_preferences= The selected folding provider did not provide a preference control
 FoldingConfigurationBlock.error.not_exist= The selected folding provider does not exist