Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.editors/src')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/EncodingActionGroup.java4
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditor.java6
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferenceConstants.java14
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/ConvertLineDelimitersAction.java2
-rwxr-xr-xorg.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java50
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/PreviousPulldownActionDelegate.java6
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/RemoveTrailingWhitespaceHandler.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesBlock.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java108
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java12
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java26
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java12
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/TaskRulerAction.java8
13 files changed, 126 insertions, 126 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/EncodingActionGroup.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/EncodingActionGroup.java
index fe3102433e1..965acf01643 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/EncodingActionGroup.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/EncodingActionGroup.java
@@ -83,7 +83,7 @@ public class EncodingActionGroup extends ActionGroup {
* @param editor the target editor
*/
public PredefinedEncodingAction(ResourceBundle bundle, String prefix, String encoding, ITextEditor editor) {
- super(bundle, prefix, editor);
+ super(bundle, prefix, editor);
fEncoding= encoding;
if (prefix == null)
setText(encoding);
@@ -98,7 +98,7 @@ public class EncodingActionGroup extends ActionGroup {
* @param editor the target editor
*/
public PredefinedEncodingAction(ResourceBundle bundle, String encoding, ITextEditor editor) {
- super(bundle, null, editor);
+ super(bundle, null, editor);
fEncoding= encoding;
setText(encoding);
fLabel= getText();
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditor.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditor.java
index 366351fc11f..ab09e71a1cf 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditor.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditor.java
@@ -97,9 +97,9 @@ public class TextEditor extends AbstractDecoratedTextEditor {
/**
* Installs the encoding support on the given text editor.
* <p>
- * Subclasses may override to install their own encoding
- * support or to disable the default encoding support.
- * </p>
+ * Subclasses may override to install their own encoding
+ * support or to disable the default encoding support.
+ * </p>
* @since 2.1
*/
protected void installEncodingSupport() {
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferenceConstants.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferenceConstants.java
index 88ff833f53e..7c977951111 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferenceConstants.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextEditorPreferenceConstants.java
@@ -24,7 +24,7 @@ import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
* @since 2.1
* @noinstantiate This class is not intended to be instantiated by clients.
* @noextend This class is not intended to be subclassed by clients.
- */
+ */
public class TextEditorPreferenceConstants {
/**
@@ -60,7 +60,7 @@ public class TextEditorPreferenceConstants {
/**
* A named preference that controls whether the print margin is turned on or off
- * (value <code>"printMargin"</code>).
+ * (value <code>"printMargin"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -125,7 +125,7 @@ public class TextEditorPreferenceConstants {
/**
* A named preference that controls whether the overview ruler shows unknown indicators
- * (value <code>"othersIndicationInOverviewRuler"</code>).
+ * (value <code>"othersIndicationInOverviewRuler"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -137,7 +137,7 @@ public class TextEditorPreferenceConstants {
/**
* A named preference that controls if the overview ruler is shown in the UI
- * (value <code>"overviewRuler"</code>).
+ * (value <code>"overviewRuler"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -281,10 +281,10 @@ public class TextEditorPreferenceConstants {
public final static String EDITOR_SEARCH_RESULT_INDICATION_IN_OVERVIEW_RULER= "searchResultIndicationInOverviewRuler"; //$NON-NLS-1$
/**
- * Initializes the given preference store with the default values.
+ * Initializes the given preference store with the default values.
*
- * @param store the preference store to be initialized
- */
+ * @param store the preference store to be initialized
+ */
public static void initializeDefaultValues(IPreferenceStore store) {
// set defaults from AbstractDecoratedTextEditor
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/ConvertLineDelimitersAction.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/ConvertLineDelimitersAction.java
index 2782c92b9de..47d92444ce8 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/ConvertLineDelimitersAction.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/ConvertLineDelimitersAction.java
@@ -90,7 +90,7 @@ public class ConvertLineDelimitersAction extends FileBufferOperationAction {
return filterUnacceptableFiles(files);
}
- final IFilter filter= new IFilter() {
+ final IFilter filter= new IFilter() {
@Override
public boolean accept(IResource resource) {
return resource != null && isAcceptableLocation(resource.getFullPath());
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
index 87ea350c397..05604cf898b 100755
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/LinkedModeConfigurationBlock.java
@@ -375,12 +375,12 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
* @param chars the number of characters
* @return the number of pixels
*/
- protected int convertWidthInCharsToPixels(int chars) {
- // test for failure to initialize for backward compatibility
- if (fFontMetrics == null)
- return 0;
- return Dialog.convertWidthInCharsToPixels(fFontMetrics, chars);
- }
+ protected int convertWidthInCharsToPixels(int chars) {
+ // test for failure to initialize for backward compatibility
+ if (fFontMetrics == null)
+ return 0;
+ return Dialog.convertWidthInCharsToPixels(fFontMetrics, chars);
+ }
/**
* Returns the number of pixels corresponding to the height of the given number of characters.
@@ -394,12 +394,12 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
* @param chars the number of characters
* @return the number of pixels
*/
- protected int convertHeightInCharsToPixels(int chars) {
- // test for failure to initialize for backward compatibility
- if (fFontMetrics == null)
- return 0;
- return Dialog.convertHeightInCharsToPixels(fFontMetrics, chars);
- }
+ protected int convertHeightInCharsToPixels(int chars) {
+ // test for failure to initialize for backward compatibility
+ if (fFontMetrics == null)
+ return 0;
+ return Dialog.convertHeightInCharsToPixels(fFontMetrics, chars);
+ }
/**
* Initializes the computation of horizontal and vertical dialog units based on the size of
@@ -410,13 +410,13 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
*
* @param testControl a control from which to obtain the current font
*/
- protected void initializeDialogUnits(Control testControl) {
- // Compute and store a font metric
- GC gc = new GC(testControl);
- gc.setFont(JFaceResources.getDialogFont());
- fFontMetrics = gc.getFontMetrics();
- gc.dispose();
- }
+ protected void initializeDialogUnits(Control testControl) {
+ // Compute and store a font metric
+ GC gc = new GC(testControl);
+ gc.setFont(JFaceResources.getDialogFont());
+ fFontMetrics = gc.getFontMetrics();
+ gc.dispose();
+ }
private void handleAnnotationListSelection() {
ListItem item= getSelectedItem();
@@ -545,12 +545,12 @@ class LinkedModeConfigurationBlock implements IPreferenceConfigurationBlock {
private void initializeFields() {
- // Update slaves
- Iterator<SelectionListener> iter= fMasterSlaveListeners.iterator();
- while (iter.hasNext()) {
- SelectionListener listener= iter.next();
- listener.widgetSelected(null);
- }
+ // Update slaves
+ Iterator<SelectionListener> iter= fMasterSlaveListeners.iterator();
+ while (iter.hasNext()) {
+ SelectionListener listener= iter.next();
+ listener.widgetSelected(null);
+ }
}
@Override
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/PreviousPulldownActionDelegate.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/PreviousPulldownActionDelegate.java
index bf025618866..e73da307b01 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/PreviousPulldownActionDelegate.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/PreviousPulldownActionDelegate.java
@@ -23,9 +23,9 @@ import org.eclipse.ui.texteditor.AnnotationPreference;
*/
public class PreviousPulldownActionDelegate extends NextPreviousPulldownActionDelegate {
- @Override
+ @Override
public String getPreferenceKey(AnnotationPreference annotationPreference) {
- return annotationPreference.getIsGoToPreviousNavigationTargetKey();
- }
+ return annotationPreference.getIsGoToPreviousNavigationTargetKey();
+ }
}
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/RemoveTrailingWhitespaceHandler.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/RemoveTrailingWhitespaceHandler.java
index 3933e92a111..c25a0aa873b 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/RemoveTrailingWhitespaceHandler.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/RemoveTrailingWhitespaceHandler.java
@@ -65,7 +65,7 @@ public class RemoveTrailingWhitespaceHandler extends FileBufferOperationHandler
if (containsOnlyFiles(resources))
return files;
- final IFilter filter= new IFilter() {
+ final IFilter filter= new IFilter() {
@Override
public boolean accept(IResource resource) {
return resource != null && isAcceptableLocation(resource.getFullPath());
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesBlock.java
index 657bdedd70e..9ff215c94f0 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesBlock.java
@@ -78,7 +78,7 @@ class SelectResourcesBlock implements ICheckStateListener, ISelectionChangedList
void filterElements(Collection<Object> elements) throws InterruptedException;
- void filterElements(Object[] elements) throws InterruptedException;
+ void filterElements(Object[] elements) throws InterruptedException;
}
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
index 0a21c76961f..75ec3955a69 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
@@ -63,11 +63,11 @@ class SelectResourcesDialog extends Dialog {
}
private SelectResourcesBlock fResourceGroup;
- private List<Object> fAcceptedFileTypes = new ArrayList<>();
- private IResource[] fInput;
- private String fTitle;
- private String fInstruction;
- private Label fCountIndication;
+ private List<Object> fAcceptedFileTypes = new ArrayList<>();
+ private IResource[] fInput;
+ private String fTitle;
+ private String fInstruction;
+ private Label fCountIndication;
private IFilter fAcceptableLocationsFilter;
@@ -130,50 +130,50 @@ class SelectResourcesDialog extends Dialog {
return (displayHeight / fontHeight) > 50;
}
- private ITreeContentProvider getResourceProvider(final int resourceType) {
- return new WorkbenchContentProvider() {
- @Override
+ private ITreeContentProvider getResourceProvider(final int resourceType) {
+ return new WorkbenchContentProvider() {
+ @Override
public Object[] getChildren(Object o) {
- if (o instanceof IWorkspaceRoot) {
- HashSet<IResource> projects= new HashSet<>();
- for (int i= 0; i < fInput.length; i++) {
- IResource project= fInput[i].getProject();
- if ((project.getType() & resourceType) > 0)
- projects.add(project);
- }
- return projects.toArray();
- }
-
- if (o instanceof IContainer) {
- IResource[] members = null;
- try {
- members = ((IContainer) o).members();
- } catch (CoreException e) {
- //just return an empty set of children
- return new Object[0];
- }
-
- //filter out the desired resource types
- ArrayList<IResource> results = new ArrayList<>();
- for (int i = 0; i < members.length; i++) {
- //And the test bits with the resource types to see if they are what we want
- if ((members[i].getType() & resourceType) > 0 && (resourceType != IResource.FILE || fAcceptableLocationsFilter == null || fAcceptableLocationsFilter.accept(members[i]))) {
- results.add(members[i]);
- }
- }
- return results.toArray();
- }
-
- //input element case
- if (o instanceof ArrayList)
- return ((ArrayList<?>) o).toArray();
-
- return new Object[0];
- }
- };
- }
-
- protected Composite createSelectionButtonGroup(Composite parent) {
+ if (o instanceof IWorkspaceRoot) {
+ HashSet<IResource> projects= new HashSet<>();
+ for (int i= 0; i < fInput.length; i++) {
+ IResource project= fInput[i].getProject();
+ if ((project.getType() & resourceType) > 0)
+ projects.add(project);
+ }
+ return projects.toArray();
+ }
+
+ if (o instanceof IContainer) {
+ IResource[] members = null;
+ try {
+ members = ((IContainer) o).members();
+ } catch (CoreException e) {
+ //just return an empty set of children
+ return new Object[0];
+ }
+
+ //filter out the desired resource types
+ ArrayList<IResource> results = new ArrayList<>();
+ for (int i = 0; i < members.length; i++) {
+ //And the test bits with the resource types to see if they are what we want
+ if ((members[i].getType() & resourceType) > 0 && (resourceType != IResource.FILE || fAcceptableLocationsFilter == null || fAcceptableLocationsFilter.accept(members[i]))) {
+ results.add(members[i]);
+ }
+ }
+ return results.toArray();
+ }
+
+ //input element case
+ if (o instanceof ArrayList)
+ return ((ArrayList<?>) o).toArray();
+
+ return new Object[0];
+ }
+ };
+ }
+
+ protected Composite createSelectionButtonGroup(Composite parent) {
Font font= parent.getFont();
@@ -225,7 +225,7 @@ class SelectResourcesDialog extends Dialog {
return buttonComposite;
}
- protected void handleSelectFileTypes() {
+ protected void handleSelectFileTypes() {
Object[] acceptedFileTypes= queryFileTypes();
if (acceptedFileTypes != null) {
fAcceptedFileTypes= Arrays.asList(acceptedFileTypes);
@@ -233,13 +233,13 @@ class SelectResourcesDialog extends Dialog {
}
}
- protected Object[] queryFileTypes() {
+ protected Object[] queryFileTypes() {
TypeFilteringDialog dialog= new TypeFilteringDialog(getShell(), fAcceptedFileTypes);
dialog.open();
return dialog.getResult();
}
- private void filterSelection() {
+ private void filterSelection() {
final IFilter filter= resource -> hasAcceptedFileType(resource);
@@ -248,10 +248,10 @@ class SelectResourcesDialog extends Dialog {
Runnable runnable= () -> setSelection(resources, filter);
- BusyIndicator.showWhile(getShell().getDisplay(), runnable);
- }
+ BusyIndicator.showWhile(getShell().getDisplay(), runnable);
+ }
- protected boolean hasAcceptedFileType(IResource resource) {
+ protected boolean hasAcceptedFileType(IResource resource) {
if (fAcceptedFileTypes == null)
return true;
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
index 87036b60c4a..23e1615359b 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/TextEditorDefaultsPreferencePage.java
@@ -1058,12 +1058,12 @@ public class TextEditorDefaultsPreferencePage extends PreferencePage implements
fFieldsInitialized= true;
updateStatus(new StatusInfo());
- // Update slaves
- Iterator<SelectionListener> iter= fMasterSlaveListeners.iterator();
- while (iter.hasNext()) {
- SelectionListener listener= iter.next();
- listener.widgetSelected(null);
- }
+ // Update slaves
+ Iterator<SelectionListener> iter= fMasterSlaveListeners.iterator();
+ while (iter.hasNext()) {
+ SelectionListener listener= iter.next();
+ listener.widgetSelected(null);
+ }
}
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java
index bd8ee10238b..6c0f9af9060 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditor.java
@@ -1185,10 +1185,10 @@ public abstract class AbstractDecoratedTextEditor extends StatusTextEditor {
setAction(ITextEditorActionConstants.QUICKDIFF_REVERTDELETION, action);
IAction action2= new CompositeRevertAction(this, new IAction[] {
- getAction(ITextEditorActionConstants.QUICKDIFF_REVERTSELECTION),
- getAction(ITextEditorActionConstants.QUICKDIFF_REVERTBLOCK),
- getAction(ITextEditorActionConstants.QUICKDIFF_REVERTDELETION),
- getAction(ITextEditorActionConstants.QUICKDIFF_REVERTLINE)});
+ getAction(ITextEditorActionConstants.QUICKDIFF_REVERTSELECTION),
+ getAction(ITextEditorActionConstants.QUICKDIFF_REVERTBLOCK),
+ getAction(ITextEditorActionConstants.QUICKDIFF_REVERTDELETION),
+ getAction(ITextEditorActionConstants.QUICKDIFF_REVERTLINE)});
action2.setActionDefinitionId(ITextEditorActionDefinitionIds.QUICKDIFF_REVERT);
setAction(ITextEditorActionConstants.QUICKDIFF_REVERT, action2);
@@ -1310,7 +1310,7 @@ public abstract class AbstractDecoratedTextEditor extends StatusTextEditor {
IAnnotationHover hover= fLineColumn.getHover();
showFocusedRulerHover(hover, sourceViewer, caretOffset);
- }
+ }
/**
* Opens a sticky annotation ruler hover for the caret line. Does nothing if no annotation hover
@@ -1528,14 +1528,14 @@ public abstract class AbstractDecoratedTextEditor extends StatusTextEditor {
// Check whether file exists and if so, confirm overwrite
final File localFile= new File(path);
if (localFile.exists()) {
- MessageDialog overwriteDialog= new MessageDialog(
- shell,
- TextEditorMessages.AbstractDecoratedTextEditor_saveAs_overwrite_title,
- null,
- NLSUtility.format(TextEditorMessages.AbstractDecoratedTextEditor_saveAs_overwrite_message, path),
- MessageDialog.WARNING,
- new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL },
- 1); // 'No' is the default
+ MessageDialog overwriteDialog= new MessageDialog(
+ shell,
+ TextEditorMessages.AbstractDecoratedTextEditor_saveAs_overwrite_title,
+ null,
+ NLSUtility.format(TextEditorMessages.AbstractDecoratedTextEditor_saveAs_overwrite_message, path),
+ MessageDialog.WARNING,
+ new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL },
+ 1); // 'No' is the default
if (overwriteDialog.open() != Window.OK) {
if (progressMonitor != null) {
progressMonitor.setCanceled(true);
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java
index 0717f06115a..79f55b89dba 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractDecoratedTextEditorPreferenceConstants.java
@@ -102,7 +102,7 @@ public class AbstractDecoratedTextEditorPreferenceConstants {
/**
* A named preference that controls whether the print margin is turned on or off
- * (value <code>"printMargin"</code>).
+ * (value <code>"printMargin"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -170,7 +170,7 @@ public class AbstractDecoratedTextEditorPreferenceConstants {
/**
* A named preference that controls whether the overview ruler shows unknown indicators
- * (value <code>"othersIndicationInOverviewRuler"</code>).
+ * (value <code>"othersIndicationInOverviewRuler"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -181,7 +181,7 @@ public class AbstractDecoratedTextEditorPreferenceConstants {
/**
* A named preference that controls if the overview ruler is shown in the UI
- * (value <code>"overviewRuler"</code>).
+ * (value <code>"overviewRuler"</code>).
* <p>
* The preference value is of type <code>Boolean</code>.
* </p>
@@ -672,10 +672,10 @@ public class AbstractDecoratedTextEditorPreferenceConstants {
public static final String EDITOR_HOVER_ENRICH_MODE= AbstractTextEditor.PREFERENCE_HOVER_ENRICH_MODE;
/**
- * Initializes the given preference store with the default values.
+ * Initializes the given preference store with the default values.
*
- * @param store the preference store to be initialized
- */
+ * @param store the preference store to be initialized
+ */
public static void initializeDefaultValues(IPreferenceStore store) {
store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_ANNOTATIONS_PREFERENCE_PAGE, false);
store.setDefault(AbstractDecoratedTextEditorPreferenceConstants.USE_QUICK_DIFF_PREFERENCE_PAGE, false);
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/TaskRulerAction.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/TaskRulerAction.java
index 6b914d3c4e8..e28f26799a6 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/TaskRulerAction.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/TaskRulerAction.java
@@ -63,10 +63,10 @@ public class TaskRulerAction extends AbstractRulerActionDelegate {
if (resource == null)
return;
- TaskPropertiesDialog dialog = new TaskPropertiesDialog(getTextEditor().getSite().getShell());
- dialog.setResource(resource);
- dialog.setInitialAttributes(getInitialAttributes());
- dialog.open();
+ TaskPropertiesDialog dialog = new TaskPropertiesDialog(getTextEditor().getSite().getShell());
+ dialog.setResource(resource);
+ dialog.setInitialAttributes(getInitialAttributes());
+ dialog.open();
}
}

Back to the top