(cProject.getOptions(true));
+ }
if (inputCElement instanceof ITranslationUnit) {
ITranslationUnit tu= (ITranslationUnit) inputCElement;
- ILanguage language= null;
+ ILanguage language;
try {
language= tu.getLanguage();
- } catch (CoreException exc) {
+ } catch (CoreException e) {
// Use fallback CPP
language= GPPLanguage.getDefault();
}
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/AlreadyExistsDialog.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/AlreadyExistsDialog.java
index 8c81f53d8f9..bb10d5ea0ed 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/AlreadyExistsDialog.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/AlreadyExistsDialog.java
@@ -7,12 +7,13 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
- * Sergey Prigogin, Google
+ * Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.internal.ui.preferences.formatter;
import org.eclipse.core.runtime.IStatus;
-
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.StatusDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -27,19 +28,14 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.StatusDialog;
-
-import org.eclipse.cdt.internal.ui.util.Messages;
-
import org.eclipse.cdt.internal.ui.dialogs.StatusInfo;
import org.eclipse.cdt.internal.ui.preferences.formatter.ProfileManager.CustomProfile;
+import org.eclipse.cdt.internal.ui.util.Messages;
/**
* The dialog to rename an imported profile.
*/
public class AlreadyExistsDialog extends StatusDialog {
-
private Composite fComposite;
protected Text fNameText;
private Button fRenameRadio, fOverwriteRadio;
@@ -61,8 +57,7 @@ public class AlreadyExistsDialog extends StatusDialog {
fDuplicate= new StatusInfo(IStatus.ERROR, FormatterMessages.AlreadyExistsDialog_message_profile_already_exists);
fEmpty= new StatusInfo(IStatus.ERROR, FormatterMessages.AlreadyExistsDialog_message_profile_name_empty);
}
-
-
+
@Override
public void create() {
super.create();
@@ -71,7 +66,6 @@ public class AlreadyExistsDialog extends StatusDialog {
@Override
public Control createDialogArea(Composite parent) {
-
initializeComposite(parent);
createLabel(Messages.format(FormatterMessages.AlreadyExistsDialog_dialog_label, fProfile.getName()));
@@ -87,7 +81,7 @@ public class AlreadyExistsDialog extends StatusDialog {
fNameText.setSelection(0, fProfile.getName().length());
fNameText.setFocus();
- fNameText.addModifyListener( new ModifyListener() {
+ fNameText.addModifyListener(new ModifyListener() {
@Override
public void modifyText(ModifyEvent e) {
doValidation();
@@ -170,13 +164,12 @@ public class AlreadyExistsDialog extends StatusDialog {
* Validate the current settings
*/
protected void doValidation() {
-
if (fOverwriteRadio.getSelection()) {
updateStatus(fOk);
return;
}
- final String name= fNameText.getText().trim();
+ String name= fNameText.getText().trim();
if (name.length() == 0) {
updateStatus(fEmpty);
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementContentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementContentProvider.java
index b699e731e7b..f491b0d5b3e 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementContentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementContentProvider.java
@@ -11,8 +11,6 @@
*******************************************************************************/
package org.eclipse.cdt.ui;
-
-
import java.util.HashSet;
import org.eclipse.core.resources.IResource;
@@ -69,7 +67,6 @@ C model (ICModel
)
*
*/
public class CElementContentProvider extends BaseCElementContentProvider implements IElementChangedListener, IInformationProvider, IInformationProviderExtension{
-
/** Editor. */
protected ITextEditor fEditor;
protected StructuredViewer fViewer;
@@ -81,8 +78,7 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
/**
* Creates a new content provider for C elements.
*/
- public CElementContentProvider()
- {
+ public CElementContentProvider() {
// Empty.
}
@@ -90,8 +86,7 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
* Creates a new content provider for C elements.
* @param editor Editor.
*/
- public CElementContentProvider(ITextEditor editor)
- {
+ public CElementContentProvider(ITextEditor editor) {
fEditor = editor;
}
@@ -102,21 +97,14 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
super(provideMembers, provideWorkingCopy);
}
- /**
- * @see org.eclipse.jface.viewers.IContentProvider#dispose()
- */
@Override
public void dispose() {
super.dispose();
CoreModel.getDefault().removeElementChangedListener(this);
}
- /**
- * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
- */
@Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
-
super.inputChanged(viewer, oldInput, newInput);
fViewer = (StructuredViewer) viewer;
@@ -129,9 +117,6 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
fInput= newInput;
}
- /**
- * @see org.eclipse.cdt.core.model.IElementChangedListener#elementChanged(org.eclipse.cdt.core.model.ElementChangedEvent)
- */
@Override
public void elementChanged(final ElementChangedEvent event) {
try {
@@ -235,7 +220,7 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
/**
- * Process resource deltas.
+ * Processes resource deltas.
*
* @return true if the parent got refreshed
*/
@@ -260,7 +245,7 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
/**
- * Process a resource delta.
+ * Processes a resource delta.
*
* @return true if the parent got refreshed
*/
@@ -318,14 +303,17 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
protected interface IRefreshable {
public void refresh();
}
+
protected final class RefreshContainer implements IRefreshable {
private IParent container;
private Object project;
+
public RefreshContainer(IParent container, Object project) {
this.container = container;
this.project = project;
}
- @Override
+
+ @Override
public void refresh() {
if (container.hasChildren()) {
if (fViewer.testFindItem(container) != null) {
@@ -337,7 +325,8 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
fViewer.refresh(project);
}
}
- @Override
+
+ @Override
public boolean equals(Object o) {
if (o instanceof RefreshContainer) {
RefreshContainer c = (RefreshContainer)o;
@@ -345,16 +334,20 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
return false;
}
- @Override
+
+ @Override
public int hashCode() {
- return container.hashCode()*10903143 + 31181;
+ return container.hashCode() * 10903143 + 31181;
}
}
+
protected final class RefreshElement implements IRefreshable {
private Object element;
+
public RefreshElement(Object element) {
this.element = element;
}
+
@Override
public void refresh() {
if (element instanceof IWorkingCopy){
@@ -369,7 +362,8 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
fViewer.refresh(element);
}
}
- @Override
+
+ @Override
public boolean equals(Object o) {
if (o instanceof RefreshElement) {
RefreshElement c = (RefreshElement)o;
@@ -377,17 +371,20 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
return false;
}
- @Override
+
+ @Override
public int hashCode() {
- return element.hashCode()*7 + 490487;
+ return element.hashCode() * 7 + 490487;
}
}
protected final class RefreshProjectState implements IRefreshable {
private Object element;
+
public RefreshProjectState(Object element) {
this.element = element;
}
+
@Override
public void refresh() {
fViewer.refresh(element, true);
@@ -395,7 +392,8 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
// enable state.
fViewer.setSelection(fViewer.getSelection());
}
- @Override
+
+ @Override
public boolean equals(Object o) {
if (o instanceof RefreshElement) {
RefreshElement c = (RefreshElement)o;
@@ -403,9 +401,10 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
return false;
}
- @Override
+
+ @Override
public int hashCode() {
- return element.hashCode()*11 + 490487;
+ return element.hashCode() * 11 + 490487;
}
}
@@ -452,9 +451,6 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
}
}
- /*
- * @see org.eclipse.jface.text.information.IInformationProvider#getSubject(org.eclipse.jface.text.ITextViewer, int)
- */
@Override
public IRegion getSubject(ITextViewer textViewer, int offset) {
if (textViewer != null && fEditor != null) {
@@ -468,10 +464,6 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
return null;
}
- /*
- * @see org.eclipse.jface.text.information.IInformationProvider#getInformation(org.eclipse.jface.text.ITextViewer,
- * org.eclipse.jface.text.IRegion)
- */
@Override
public String getInformation(ITextViewer textViewer, IRegion subject) {
// deprecated API - not used anymore
@@ -482,9 +474,6 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
return null;
}
- /*
- * @see org.eclipse.jface.text.information.IInformationProviderExtension#getInformation2(org.eclipse.jface.text.ITextViewer, org.eclipse.jface.text.IRegion)
- */
@Override
public Object getInformation2(ITextViewer textViewer, IRegion subject) {
if (fEditor == null)
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java
index 2d9e65125a5..5af640e8e5f 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java
@@ -18,16 +18,15 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.model.WorkbenchLabelProvider;
import org.eclipse.cdt.core.model.ICElement;
-import org.eclipse.cdt.internal.ui.viewsupport.CElementLabels;
import org.eclipse.cdt.internal.ui.viewsupport.CElementImageProvider;
+import org.eclipse.cdt.internal.ui.viewsupport.CElementLabels;
import org.eclipse.cdt.internal.ui.viewsupport.CUILabelProvider;
/**
* The label provider for the c model elements.
*/
public class CElementLabelProvider extends LabelProvider {
-
/**
* Flag (bit mask) indicating that methods labels include the method return type. (appended)
*/
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java
index f8710d799eb..783e603a4cd 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CUIPreferenceInitializer.java
@@ -39,10 +39,6 @@ import org.eclipse.cdt.internal.ui.refactoring.includes.IncludePreferences;
* @noextend This class is not intended to be subclassed by clients.
*/
public class CUIPreferenceInitializer extends AbstractPreferenceInitializer {
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
- */
@Override
public void initializeDefaultPreferences() {
final IPreferenceStore store = CUIPlugin.getDefault().getPreferenceStore();
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java
index e4f12acf0aa..c5f25813ecd 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/PreferenceConstants.java
@@ -37,18 +37,18 @@ import org.eclipse.cdt.internal.ui.preferences.formatter.FormatterProfileManager
import org.eclipse.cdt.internal.ui.text.spelling.SpellCheckEngine;
/**
- * Preference constants used in the CDT-UI preference store. Clients should only read the
- * CDT-UI preference store using these values. Clients are not allowed to modify the
- * preference store programmatically.
+ * Preference constants used in the CDT-UI preference store. Clients should only read
+ * the CDT-UI preference store using these values. Clients are not allowed to modify
+ * the preference store programmatically.
*
* The preferences defined in this file are exported in the plugin's
* "preferenceTransfer" extension. If adding a new preference please
* also add it to one of the two if applicable:
*
* - "Editor Appearance" - Any preference related to how the editor presents
- * the edited code to the user.
- * - "Editor Behavior" - Any preference related to how the editor process the
- * edited code.
+ * the edited code to the user.
+ * - "Editor Behavior" - Any preference related to how the editor processes
+ * the edited code.
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
@@ -90,9 +90,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render multi-line comments.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -103,9 +102,8 @@ public class PreferenceConstants {
/**
* A named preference that controls whether multi-line comments are rendered in bold.
*
- * Value is of type Boolean
. If true
multi-line comments are rendered
- * in bold. If false
the are rendered using no font style attribute.
- *
+ * Value is of type {@code Boolean}. If {@code true} multi-line comments are rendered
+ * in bold. If {@code false} the are rendered using no font style attribute.
*
* @since 4.0
*/
@@ -114,9 +112,8 @@ public class PreferenceConstants {
/**
* A named preference that controls whether multi-line comments are rendered in italic.
*
- * Value is of type Boolean
. If true
multi-line comments are rendered
- * in italic. If false
the are rendered using no italic font style attribute.
- *
+ * Value is of type {@code Boolean}. If {@code true} multi-line comments are rendered
+ * in italic. If {@code false} the are rendered using no italic font style attribute.
*
* @since 4.0
*/
@@ -125,9 +122,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render single line comments.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -138,9 +134,8 @@ public class PreferenceConstants {
/**
* A named preference that controls whether single line comments are rendered in bold.
*
- * Value is of type Boolean
. If true
single line comments are rendered
- * in bold. If false
the are rendered using no font style attribute.
- *
+ * Value is of type {@code Boolean}. If {@code true} single line comments are rendered
+ * in bold. If {@code false} the are rendered using no font style attribute.
*
* @since 4.0
*/
@@ -149,9 +144,8 @@ public class PreferenceConstants {
/**
* A named preference that controls whether single line comments are rendered in italic.
*
- * Value is of type Boolean
. If true
single line comments are rendered
- * in italic. If false
the are rendered using no italic font style attribute.
- *
+ * Value is of type {@code Boolean}. If {@code true} single line comments are rendered
+ * in italic. If {@code false} the are rendered using no italic font style attribute.
*
* @since 4.0
*/
@@ -160,9 +154,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render C/C++ keywords.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -173,8 +166,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether keywords are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -183,8 +175,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether keywords are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -193,9 +184,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render preprocessor directives.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -206,8 +196,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether preprocessor directives are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -216,8 +205,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether preprocessor directives are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -226,9 +214,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render headers.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -239,8 +226,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether headers are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -249,8 +235,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether number are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -259,9 +244,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render preprocessor text.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -272,8 +256,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether preprocessor text is rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -282,8 +265,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether preprocessor text is rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -292,9 +274,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render builtin types.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -305,8 +286,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether builtin types are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -315,8 +295,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether builtin types are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -325,9 +304,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render string constants.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -338,8 +316,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether string constants are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -348,8 +325,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether string constants are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -358,9 +334,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render operators.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -371,8 +346,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether operators are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -381,8 +355,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether operators are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -391,9 +364,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render numbers.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -404,8 +376,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether number are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -414,8 +385,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether number are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -424,9 +394,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render braces.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -437,8 +406,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether braces are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -447,8 +415,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether braces are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -457,9 +424,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render C/C++ default text.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -470,8 +436,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether C/C++ default text is rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -480,8 +445,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether C/C++ default text is rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -490,9 +454,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render assembly labels.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -503,8 +466,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether assembly labels are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -513,8 +475,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether assembly labels are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -523,9 +484,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render assembly directives.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -536,8 +496,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether assembly directives are rendered in bold.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -546,8 +505,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether assembly directives are rendered in italic.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -556,9 +514,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render doxygen tags.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -569,9 +526,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render doxygen single line comments.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -582,9 +538,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the color used to render doxygen multi-line comments.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -594,7 +549,7 @@ public class PreferenceConstants {
/**
* The symbolic font name for the C/C++ editor text font
- * (value "org.eclipse.cdt.ui.editors.textfont"
).
+ * (value {@code "org.eclipse.cdt.ui.editors.textfont"}).
*
* @since 4.0
*/
@@ -604,8 +559,7 @@ public class PreferenceConstants {
* A named preference that controls whether the cview's selection is linked to the active
* editor.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String PREF_LINK_TO_EDITOR= "org.eclipse.cdt.ui.editor.linkToEditor"; //$NON-NLS-1$
@@ -613,8 +567,7 @@ public class PreferenceConstants {
* A named preference that specifies whether children of a translation unit are shown in
* the CView.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String PREF_SHOW_CU_CHILDREN= "org.eclipse.cdt.ui.editor.CUChildren"; //$NON-NLS-1$
@@ -622,8 +575,7 @@ public class PreferenceConstants {
* A named preference that speficies whether to use the parser's structural mode to build
* the CModel.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String PREF_USE_STRUCTURAL_PARSE_MODE= "org.eclipse.cdt.ui.editor.UseStructuralMode"; //$NON-NLS-1$
@@ -631,16 +583,15 @@ public class PreferenceConstants {
* A named preference that controls if segmented view (show selected element only) is turned
* on or off.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String EDITOR_SHOW_SEGMENTS= "org.eclipse.cdt.ui.editor.showSegments"; //$NON-NLS-1$
/**
* A named preference that holds the color used to render task tags.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
*
* @see org.eclipse.jface.resource.StringConverter
@@ -651,7 +602,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether task tags are rendered in bold.
*
- * Value is of type Boolean
.
+ * Value is of type {@code Boolean}.
*
*/
public final static String EDITOR_TASK_TAG_BOLD= ICColorConstants.TASK_TAG + EDITOR_BOLD_SUFFIX;
@@ -659,7 +610,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether task tags are rendered in italic.
*
- * Value is of type Boolean
.
+ * Value is of type {@code Boolean}.
*
*/
public final static String EDITOR_TASK_TAG_ITALIC= ICColorConstants.TASK_TAG + EDITOR_ITALIC_SUFFIX;
@@ -667,16 +618,14 @@ public class PreferenceConstants {
/**
* A named preference that controls if correction indicators are shown in the UI.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_CORRECTION_INDICATION= "CEditor.ShowTemporaryProblem"; //$NON-NLS-1$
/**
* A named preference that controls if temporary problems are evaluated and shown in the UI.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_EVALUATE_TEMPORARY_PROBLEMS= "handleTemporaryProblems"; //$NON-NLS-1$
@@ -688,7 +637,7 @@ public class PreferenceConstants {
/**
* A named preference that defines the key for the hover modifier state masks.
- * The value is only used if the value of EDITOR_TEXT_HOVER_MODIFIERS
+ * The value is only used if the value of {@code EDITOR_TEXT_HOVER_MODIFIERS}
* cannot be resolved to valid SWT modifier bits.
*
* @see #EDITOR_TEXT_HOVER_MODIFIERS
@@ -699,8 +648,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'close strings' feature
* is enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_CLOSE_STRINGS= "closeStrings"; //$NON-NLS-1$
@@ -708,8 +656,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'wrap strings' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_WRAP_STRINGS= "wrapStrings"; //$NON-NLS-1$
@@ -717,8 +664,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'escape strings' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_ESCAPE_STRINGS= "escapeStrings"; //$NON-NLS-1$
@@ -726,8 +672,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'close brackets' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_CLOSE_BRACKETS= "closeBrackets"; //$NON-NLS-1$
@@ -735,8 +680,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'close angular brackets' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_CLOSE_ANGULAR_BRACKETS= "closeAngularBrackets"; //$NON-NLS-1$
@@ -744,8 +688,7 @@ public class PreferenceConstants {
* A named preference that controls whether the 'close braces' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_CLOSE_BRACES= "closeBraces"; //$NON-NLS-1$
@@ -753,15 +696,14 @@ public class PreferenceConstants {
* A named preference that controls whether the 'smart paste' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_SMART_PASTE= "smartPaste"; //$NON-NLS-1$
/**
* A named preference that controls the smart tab behavior.
*
- * Value is of type Boolean
.
+ * Value is of type {@code Boolean}.
*/
public static final String EDITOR_SMART_TAB= "smart_tab"; //$NON-NLS-1$
@@ -769,14 +711,13 @@ public class PreferenceConstants {
* A named preference that controls whether the 'auto indent' feature is
* enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public final static String EDITOR_AUTO_INDENT= "autoIndent"; //$NON-NLS-1$
/**
* The id of the best match hover contributed for extension point
- * org.eclipse.cdt.ui.textHovers
.
+ * {@code org.eclipse.cdt.ui.textHovers}.
*
* @since 2.1
*/
@@ -785,24 +726,21 @@ public class PreferenceConstants {
/**
* A named preference that controls whether the Outline view should group include directives.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String OUTLINE_GROUP_INCLUDES= "org.eclipse.cdt.ui.outline.groupincludes"; //$NON-NLS-1$
/**
* A named preference that controls whether the Outline view should group namespaces.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String OUTLINE_GROUP_NAMESPACES= "org.eclipse.cdt.ui.outline.groupnamespaces"; //$NON-NLS-1$
/**
* A named preference that controls whether the Outline view should group member definitions.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.1
*/
public static final String OUTLINE_GROUP_MEMBERS= "org.eclipse.cdt.ui.outline.groupmembers"; //$NON-NLS-1$
@@ -810,8 +748,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether the Outline view should group macro definitions.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.2
*/
public static final String OUTLINE_GROUP_MACROS= "org.eclipse.cdt.ui.outline.groupmacros"; //$NON-NLS-1$
@@ -820,8 +757,7 @@ public class PreferenceConstants {
* A named preference that controls whether the Outline view
* selection should stay in sync with with the element at the current cursor position.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String OUTLINE_LINK_TO_EDITOR = "org.eclipse.cdt.ui.outline.linktoeditor"; //$NON-NLS-1$
@@ -829,8 +765,7 @@ public class PreferenceConstants {
* A named preference that controls whether include directives should be grouped in
* the C/C++ Projects view and the Project Explorer view.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String CVIEW_GROUP_INCLUDES= "org.eclipse.cdt.ui.cview.groupincludes"; //$NON-NLS-1$
@@ -838,8 +773,7 @@ public class PreferenceConstants {
* A named preference that controls whether macro definitions should be grouped in
* the C/C++ Projects view and the Project Explorer view.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.2
*/
public static final String CVIEW_GROUP_MACROS= "org.eclipse.cdt.ui.cview.groupmacros"; //$NON-NLS-1$
@@ -848,8 +782,7 @@ public class PreferenceConstants {
* A named preference that controls whether header and source files should be separated in
* the C/C++ Projects view and the Project Explorer view.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -859,8 +792,7 @@ public class PreferenceConstants {
* A named preference that controls whether the sorting order of source files should be changed
* in the C/C++ Projects view and the Project Explorer view when they are excluded from build.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.3
*/
@@ -870,8 +802,7 @@ public class PreferenceConstants {
* A named preference that controls which completion proposal categories
* have been excluded from the default proposal list.
*
- * Value is of type String
, a "\0"-separated list of identifiers.
- *
+ * Value is of type {@code String}, a "\0"-separated list of identifiers.
*
* @since 4.0
*/
@@ -880,8 +811,7 @@ public class PreferenceConstants {
/**
* A named preference that controls the order of the specific code assist commands.
*
- * Value is of type String
, a "\0"-separated list of identifiers.
- *
+ * Value is of type {@code String}, a "\0"-separated list of identifiers.
*
* @since 4.0
*/
@@ -890,8 +820,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether folding is enabled in the C editor.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
*/
public static final String EDITOR_FOLDING_ENABLED= "editor_folding_enabled"; //$NON-NLS-1$
@@ -899,8 +828,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the configured folding provider.
*
- * Value is of type String
.
- *
+ * Value is of type {@code String}.
*
*/
public static final String EDITOR_FOLDING_PROVIDER= "editor_folding_provider"; //$NON-NLS-1$
@@ -908,8 +836,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for Structure folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 3.0
*/
@@ -918,16 +845,14 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for statements folding (if/else, do/while, for, switch statements)
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*/
public static final String EDITOR_FOLDING_STATEMENTS = "editor_folding_statements"; //$NON-NLS-1$
/**
* A named preference that stores the value for functions folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 3.0
*/
@@ -936,8 +861,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for method folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 3.0
*/
@@ -946,8 +870,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for macros folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 3.0
*/
@@ -956,8 +879,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for comment folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -966,8 +888,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for header comment folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -976,8 +897,7 @@ public class PreferenceConstants {
/**
* A named preference that stores the value for inactive code folding for the default folding provider.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -986,8 +906,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether folding of preprocessor branches is enabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 4.0
*/
@@ -996,8 +915,7 @@ public class PreferenceConstants {
/**
* A named preference that controls if templates are formatted when applied.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 2.1
*/
@@ -1006,8 +924,7 @@ public class PreferenceConstants {
/**
* A named preference that controls which profile is used by the code formatter.
*
- * Value is of type String
.
- *
+ * Value is of type {@code String}.
*
* @since 4.0
*/
@@ -1056,9 +973,8 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls a semantic highlighting's color.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1069,8 +985,7 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls if semantic highlighting has the text attribute bold.
*
- * Value is of type Boolean
: true
if bold.
- *
+ * Value is of type {@code Boolean}: {@code true} if bold.
*
* @since 4.0
*/
@@ -1079,8 +994,7 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls if semantic highlighting has the text attribute italic.
*
- * Value is of type Boolean
: true
if italic.
- *
+ * Value is of type {@code Boolean}: {@code true} if italic.
*
* @since 4.0
*/
@@ -1089,8 +1003,7 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls if semantic highlighting has the text attribute strikethrough.
*
- * Value is of type Boolean
: true
if strikethrough.
- *
+ * Value is of type {@code Boolean}: {@code true} if strikethrough.
*
* @since 4.0
*/
@@ -1099,8 +1012,7 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls if semantic highlighting has the text attribute underline.
*
- * Value is of type Boolean
: true
if underline.
- *
+ * Value is of type {@code Boolean}: {@code true} if underline.
*
* @since 4.0
*/
@@ -1109,8 +1021,7 @@ public class PreferenceConstants {
/**
* A named preference suffix that controls if semantic highlighting is enabled.
*
- * Value is of type Boolean
: true
if enabled.
- *
+ * Value is of type {@code Boolean}: {@code true} if enabled.
*
* @since 4.0
*/
@@ -1119,8 +1030,7 @@ public class PreferenceConstants {
/**
* A named preference key that controls if semantic highlighting is enabled.
*
- * Value is of type Boolean
: true
if enabled.
- *
+ * Value is of type {@code Boolean}: {@code true} if enabled.
*
* @since 4.0
*/
@@ -1129,9 +1039,8 @@ public class PreferenceConstants {
/**
* A named preference that controls if quick assist light bulbs are shown.
*
- * Value is of type Boolean
: if true
light bulbs are shown
+ * Value is of type {@code Boolean}: if {@code true} light bulbs are shown
* for quick assists.
- *
*
* @since 5.0
*/
@@ -1140,9 +1049,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the background color used in the code assist selection dialog.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1153,9 +1061,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the foreground color used in the code assist selection dialog.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1168,7 +1075,7 @@ public class PreferenceConstants {
* A named preference that holds the duration (in milli seconds) a content proposal may compute
* until it is assumed that the proposal computer has a problem and should be disabled.
*
- * Value is of type long
.
+ * Value is of type {@code long}.
*
* @since 5.4
*/
@@ -1177,9 +1084,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the background color used for parameter hints.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1191,9 +1097,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the foreground color used in the code assist selection dialog.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1206,8 +1111,7 @@ public class PreferenceConstants {
* A named preference that controls whether all dirty editors are automatically saved before a refactoring is
* executed.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.3
*/
public static final String REFACTOR_SAVE_ALL_EDITORS= "Refactoring.savealleditors"; //$NON-NLS-1$
@@ -1216,8 +1120,7 @@ public class PreferenceConstants {
* A named preference that controls whether certain refactorings use a lightweight UI when
* started from a C/C++ editor.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.3
*/
public static final String REFACTOR_LIGHTWEIGHT= "Refactor.lightweight"; //$NON-NLS-1$
@@ -1226,8 +1129,7 @@ public class PreferenceConstants {
* A named preference that controls whether words containing digits should
* be skipped during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1237,8 +1139,7 @@ public class PreferenceConstants {
* A named preference that controls whether mixed case words should be
* skipped during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1248,8 +1149,7 @@ public class PreferenceConstants {
* A named preference that controls whether sentence capitalization should
* be ignored during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1259,8 +1159,7 @@ public class PreferenceConstants {
* A named preference that controls whether upper case words should be
* skipped during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1270,8 +1169,7 @@ public class PreferenceConstants {
* A named preference that controls whether URLs should be ignored during
* spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1281,8 +1179,7 @@ public class PreferenceConstants {
* A named preference that controls whether single letters
* should be ignored during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1292,8 +1189,7 @@ public class PreferenceConstants {
* A named preference that controls whether string literals
* should be ignored during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1303,8 +1199,7 @@ public class PreferenceConstants {
* A named preference that controls whether non-letters at word boundaries
* should be ignored during spell checking.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1313,8 +1208,7 @@ public class PreferenceConstants {
/**
* A named preference that controls the locale used for spell checking.
*
- * Value is of type String
.
- *
+ * Value is of type {@code String}.
*
* @since 5.0
*/
@@ -1324,8 +1218,7 @@ public class PreferenceConstants {
* A named preference that controls the number of proposals offered during
* spell checking.
*
- * Value is of type Integer
.
- *
+ * Value is of type {@code Integer}.
*
* @since 5.0
*/
@@ -1335,8 +1228,7 @@ public class PreferenceConstants {
* A named preference that controls the maximum number of problems reported
* during spell checking.
*
- * Value is of type Integer
.
- *
+ * Value is of type {@code Integer}.
*
* @since 5.0
*/
@@ -1345,8 +1237,7 @@ public class PreferenceConstants {
/**
* A named preference that specifies the workspace user dictionary.
*
- * Value is of type Integer
.
- *
+ * Value is of type {@code Integer}.
*
* @since 5.0
*/
@@ -1355,8 +1246,7 @@ public class PreferenceConstants {
/**
* A named preference that specifies encoding of the workspace user dictionary.
*
- * Value is of type String
.
- *
+ * Value is of type {@code String}.
*
* @since 5.0
*/
@@ -1368,8 +1258,7 @@ public class PreferenceConstants {
* Note: This is currently not supported because the spelling engine
* cannot return word proposals but only correction proposals.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1379,8 +1268,7 @@ public class PreferenceConstants {
* A named preference that controls if documentation comment stubs will be added
* automatically to newly created types and methods.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
* @since 5.0
*/
public static final String CODEGEN_ADD_COMMENTS= "org.eclipse.cdt.ui.add_comments"; //$NON-NLS-1$
@@ -1388,9 +1276,8 @@ public class PreferenceConstants {
/**
* A named preference that holds the source hover background color.
*
- * Value is of type String
. A RGB color value encoded as a string
- * using class PreferenceConverter
- *
+ * Value is of type {@code String}. A RGB color value encoded as a string
+ * using class {@code PreferenceConverter}
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1403,8 +1290,7 @@ public class PreferenceConstants {
* default color ({@link SWT#COLOR_INFO_BACKGROUND}) for
* the source hover background color.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
@@ -1415,8 +1301,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether occurrences are marked in the editor.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1424,10 +1309,9 @@ public class PreferenceConstants {
/**
* A named preference that controls whether occurrences are sticky in the editor.
- * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is true
.
+ * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is {@code true}.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1435,10 +1319,9 @@ public class PreferenceConstants {
/**
* A named preference that controls whether occurrences of overloaded operators are marked in the editor.
- * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is true
.
+ * Only valid if {@link #EDITOR_MARK_OCCURRENCES} is {@code true}.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.3
*/
@@ -1447,8 +1330,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether all scalability mode options should be turned on.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1457,8 +1339,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether the editor's reconciler is disabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1467,8 +1348,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether syntax coloring is disabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1477,8 +1357,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether parser-based content assist proposals are disabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1487,8 +1366,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether users should be notified if scalability mode should be turned on.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1497,8 +1375,7 @@ public class PreferenceConstants {
/**
* The size of the file that will trigger scalability mode
*
- * Value is of type int
.
- *
+ * Value is of type {@code int}.
*
* @since 5.0
*/
@@ -1507,8 +1384,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether syntax coloring is disabled.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1517,8 +1393,7 @@ public class PreferenceConstants {
/**
* A named preference that controls whether the content assist auto activation is disabled in scalability mode.
*
- * Value is of type Boolean
.
- *
+ * Value is of type {@code Boolean}.
*
* @since 5.0
*/
@@ -1527,15 +1402,14 @@ public class PreferenceConstants {
/**
* A named preference that controls how an include guard symbol is created.
*
- * Value is of type Integer
.
- *
+ * Value is of type {@code Integer}.
*
* @since 5.1
*/
public static final String CODE_TEMPLATES_INCLUDE_GUARD_SCHEME = "codetemplates.includeGuardGenerationScheme"; //$NON-NLS-1$
/**
- * The value of CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME
+ * The value of {@code CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME}
* specifying that the include guard symbol is to be derived from
* the include file's name.
*
@@ -1544,7 +1418,7 @@ public class PreferenceConstants {
public static final int CODE_TEMPLATES_INCLUDE_GUARD_SCHEME_FILE_NAME = 0;
/**
- * The value of CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME
+ * The value of {@code CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME}
* specifying that the include guard symbol is to be derived from a UUID.
*
* @since 5.1
@@ -1552,7 +1426,7 @@ public class PreferenceConstants {
public static final int CODE_TEMPLATES_INCLUDE_GUARD_SCHEME_UUID = 1;
/**
- * The value of CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME
+ * The value of {@code CODE_TEMPLATES_INCLUDE_GUARD_GENERATION_SCHEME}
* specifying that the include guard symbol is to be derived from
* the include file's path relative to the source folder.
*
@@ -1563,7 +1437,7 @@ public class PreferenceConstants {
/**
* A named preference that controls how capitalization of a constant name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1571,7 +1445,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of a constant name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1579,7 +1453,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of a constant name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1588,7 +1462,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* of a constant name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1597,7 +1471,7 @@ public class PreferenceConstants {
/**
* A named preference that controls how capitalization of a variable name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1605,7 +1479,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of a variable name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1613,7 +1487,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of a variable name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1622,7 +1496,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* of a variable name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1631,7 +1505,7 @@ public class PreferenceConstants {
/**
* A named preference that controls how capitalization of a field name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1639,7 +1513,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of a field name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1647,7 +1521,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of a field name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1656,7 +1530,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* of a field name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1665,7 +1539,7 @@ public class PreferenceConstants {
/**
* A named preference that controls how capitalization of a method name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.4
*/
@@ -1673,7 +1547,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of a method name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.4
*/
@@ -1681,7 +1555,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of a method name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.4
*/
@@ -1690,7 +1564,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* of a method name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.4
*/
@@ -1700,7 +1574,7 @@ public class PreferenceConstants {
* A named preference that controls how capitalization of the getter name
* depends on capitalization of the method name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1708,7 +1582,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the getter name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1716,7 +1590,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the getter name for a boolean field.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1724,7 +1598,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of the getter name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1733,7 +1607,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* when composing the getter name from the field name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1743,7 +1617,7 @@ public class PreferenceConstants {
* A named preference that controls how capitalization of the setter name
* depends on capitalization of the field name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1751,7 +1625,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the setter name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1759,7 +1633,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of the setter name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1768,7 +1642,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* when composing the setter name from the field name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1778,7 +1652,7 @@ public class PreferenceConstants {
* A named preference that controls how capitalization of the C++ source file name
* depends on capitalization of the class name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1786,7 +1660,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the C++ source file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1794,7 +1668,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of the C++ source file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1803,7 +1677,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* when composing the C++ source file name from the class name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1813,7 +1687,7 @@ public class PreferenceConstants {
* A named preference that controls how capitalization of the C++ header file name
* depends on capitalization of the class name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1821,7 +1695,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the C++ header file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1829,7 +1703,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of the C++ header file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1838,7 +1712,7 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* when composing the C++ header file name from the class name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1848,7 +1722,7 @@ public class PreferenceConstants {
* A named preference that controls how capitalization of the C++ test file name
* depends on capitalization of the class name.
*
- * Value is of type Integer
.
+ * Value is of type {@code Integer}.
*
* @since 5.3
*/
@@ -1856,7 +1730,7 @@ public class PreferenceConstants {
/**
* A named preference that controls prefix of the C++ test file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1864,7 +1738,7 @@ public class PreferenceConstants {
/**
* A named preference that controls suffix of the C++ test file name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
@@ -1873,14 +1747,14 @@ public class PreferenceConstants {
* A named preference that controls delimiter that is inserted between words
* when composing the C++ test file name from the class name.
*
- * Value is of type String
.
+ * Value is of type {@code String}.
*
* @since 5.3
*/
public static final String NAME_STYLE_CPP_TEST_WORD_DELIMITER = "nameStyle.cpp.test.wordDelimiter"; //$NON-NLS-1$
/**
- * The value of NAME_STYLE_*_CAPITALIZATION
specifying that the name
+ * The value of {@code NAME_STYLE_*_CAPITALIZATION} specifying that the name
* is to be derived from the class or the variable name without changing
* capitalization.
*
@@ -1888,7 +1762,7 @@ public class PreferenceConstants {
*/
public static final int NAME_STYLE_CAPITALIZATION_ORIGINAL = 0;
/**
- * The value of NAME_STYLE_*_CAPITALIZATION
specifying that the name
+ * The value of {@code NAME_STYLE_*_CAPITALIZATION} specifying that the name
* is to be derived from the class or the variable name by converting it to upper
* case.
*
@@ -1896,7 +1770,7 @@ public class PreferenceConstants {
*/
public static final int NAME_STYLE_CAPITALIZATION_UPPER_CASE = 1;
/**
- * The value of NAME_STYLE_*_CAPITALIZATION
specifying that the name
+ * The value of {@code NAME_STYLE_*_CAPITALIZATION} specifying that the name
* is to be derived from the class or the variable name by converting it to lower
* case.
*
@@ -1904,7 +1778,7 @@ public class PreferenceConstants {
*/
public static final int NAME_STYLE_CAPITALIZATION_LOWER_CASE = 2;
/**
- * The value of NAME_STYLE_*_CAPITALIZATION
specifying that the name
+ * The value of {@code NAME_STYLE_*_CAPITALIZATION} specifying that the name
* is to be derived from the class or the variable name by capitalizing first
* letter of every word.
*
@@ -1912,7 +1786,7 @@ public class PreferenceConstants {
*/
public static final int NAME_STYLE_CAPITALIZATION_CAMEL_CASE = 3;
/**
- * The value of NAME_STYLE_*_CAPITALIZATION
specifying that the name
+ * The value of {@code NAME_STYLE_*_CAPITALIZATION} specifying that the name
* is to be derived from the class or the variable name by capitalizing first
* letter of every word except the first one.
*
@@ -1924,7 +1798,7 @@ public class PreferenceConstants {
* A named preference that controls the order of private/protected/public class members in
* generated code.
*
- * Value is of type Boolean
. The true
value means that private members
+ * Value is of type {@code Boolean}. The {@code true} value means that private members
* are before public ones. The default is to put public members before private ones.
*
* @since 5.4
@@ -1934,7 +1808,7 @@ public class PreferenceConstants {
/**
* A named preference that controls the order of parameters of generated functions.
*
- * Value is of type Boolean
. The true
value means that output
+ * Value is of type {@code Boolean}. The {@code true} value means that output
* parameters are before the input ones. The default is to put outputparameters after the input
* ones.
*
@@ -1946,7 +1820,7 @@ public class PreferenceConstants {
* A named preference that controls whether output parameters of generated functions are passed
* by pointer or by reference.
*
- * Value is of type Boolean
. The true
value means that output
+ * Value is of type {@code Boolean}. The {@code true} value means that output
* parameters are passed by pointer. The default is to pass output parameters by reference.
*
* @since 5.4
@@ -2195,17 +2069,17 @@ public class PreferenceConstants {
* @param store the preference store to be initialized
*/
public static void initializeDefaultValues(IPreferenceStore store) {
- store.setDefault(PreferenceConstants.EDITOR_CORRECTION_INDICATION, false);
- store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
- store.setDefault(PreferenceConstants.PREF_SHOW_CU_CHILDREN, true);
+ store.setDefault(EDITOR_CORRECTION_INDICATION, false);
+ store.setDefault(EDITOR_SHOW_SEGMENTS, false);
+ store.setDefault(PREF_SHOW_CU_CHILDREN, true);
// This option has to be turned on for the spelling checker too work.
- store.setDefault(PreferenceConstants.EDITOR_EVALUATE_TEMPORARY_PROBLEMS, true);
+ store.setDefault(EDITOR_EVALUATE_TEMPORARY_PROBLEMS, true);
int sourceHoverModifier= SWT.MOD2;
String sourceHoverModifierName= Action.findModifierString(sourceHoverModifier); // Shift
- store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIERS, "org.eclipse.cdt.ui.BestMatchHover;0;org.eclipse.cdt.ui.CSourceHover;" + sourceHoverModifierName); //$NON-NLS-1$
- store.setDefault(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS, "org.eclipse.cdt.ui.BestMatchHover;0;org.eclipse.cdt.ui.CSourceHover;" + sourceHoverModifier); //$NON-NLS-1$
+ store.setDefault(EDITOR_TEXT_HOVER_MODIFIERS, "org.eclipse.cdt.ui.BestMatchHover;0;org.eclipse.cdt.ui.CSourceHover;" + sourceHoverModifierName); //$NON-NLS-1$
+ store.setDefault(EDITOR_TEXT_HOVER_MODIFIER_MASKS, "org.eclipse.cdt.ui.BestMatchHover;0;org.eclipse.cdt.ui.CSourceHover;" + sourceHoverModifier); //$NON-NLS-1$
store.setDefault(EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT, true);
@@ -2256,97 +2130,97 @@ public class PreferenceConstants {
store.setDefault(EDITOR_ASM_DIRECTIVE_ITALIC, false);
// Folding
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_PROVIDER, "org.eclipse.cdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_FUNCTIONS, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_STRUCTURES, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_METHODS, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_MACROS, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_COMMENTS, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_HEADERS, true);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_INACTIVE_CODE, false);
- store.setDefault(PreferenceConstants.EDITOR_FOLDING_PREPROCESSOR_BRANCHES_ENABLED, false);
+ store.setDefault(EDITOR_FOLDING_ENABLED, true);
+ store.setDefault(EDITOR_FOLDING_PROVIDER, "org.eclipse.cdt.ui.text.defaultFoldingProvider"); //$NON-NLS-1$
+ store.setDefault(EDITOR_FOLDING_FUNCTIONS, false);
+ store.setDefault(EDITOR_FOLDING_STRUCTURES, false);
+ store.setDefault(EDITOR_FOLDING_METHODS, false);
+ store.setDefault(EDITOR_FOLDING_MACROS, false);
+ store.setDefault(EDITOR_FOLDING_COMMENTS, false);
+ store.setDefault(EDITOR_FOLDING_HEADERS, true);
+ store.setDefault(EDITOR_FOLDING_INACTIVE_CODE, false);
+ store.setDefault(EDITOR_FOLDING_PREPROCESSOR_BRANCHES_ENABLED, false);
// Smart edit
- store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, true);
- store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true);
- store.setDefault(PreferenceConstants.EDITOR_CLOSE_ANGULAR_BRACKETS, true);
- store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
- store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
- store.setDefault(PreferenceConstants.EDITOR_SMART_TAB, true);
- store.setDefault(PreferenceConstants.EDITOR_WRAP_STRINGS, true);
- store.setDefault(PreferenceConstants.EDITOR_ESCAPE_STRINGS, false);
- store.setDefault(PreferenceConstants.EDITOR_AUTO_INDENT, true);
+ store.setDefault(EDITOR_CLOSE_STRINGS, true);
+ store.setDefault(EDITOR_CLOSE_BRACKETS, true);
+ store.setDefault(EDITOR_CLOSE_ANGULAR_BRACKETS, true);
+ store.setDefault(EDITOR_CLOSE_BRACES, true);
+ store.setDefault(EDITOR_SMART_PASTE, true);
+ store.setDefault(EDITOR_SMART_TAB, true);
+ store.setDefault(EDITOR_WRAP_STRINGS, true);
+ store.setDefault(EDITOR_ESCAPE_STRINGS, false);
+ store.setDefault(EDITOR_AUTO_INDENT, true);
- store.setDefault(PreferenceConstants.REMOVE_TRAILING_WHITESPACE, true);
- store.setDefault(PreferenceConstants.REMOVE_TRAILING_WHITESPACE_LIMIT_TO_EDITED_LINES, true);
- store.setDefault(PreferenceConstants.ENSURE_NEWLINE_AT_EOF, true);
+ store.setDefault(REMOVE_TRAILING_WHITESPACE, true);
+ store.setDefault(REMOVE_TRAILING_WHITESPACE_LIMIT_TO_EDITED_LINES, true);
+ store.setDefault(ENSURE_NEWLINE_AT_EOF, true);
// Formatter profile
- store.setDefault(PreferenceConstants.FORMATTER_PROFILE, FormatterProfileManager.DEFAULT_PROFILE);
+ store.setDefault(FORMATTER_PROFILE, FormatterProfileManager.DEFAULT_PROFILE);
// Content assist
- store.setDefault(PreferenceConstants.CODEASSIST_EXCLUDED_CATEGORIES, "org.eclipse.cdt.ui.textProposalCategory\0"); //$NON-NLS-1$
- store.setDefault(PreferenceConstants.CODEASSIST_CATEGORY_ORDER, "org.eclipse.cdt.ui.parserProposalCategory:65539\0org.eclipse.cdt.ui.textProposalCategory:65541\0org.eclipse.cdt.ui.templateProposalCategory:2\0org.eclipse.cdt.ui.helpProposalCategory:5\0"); //$NON-NLS-1$
+ store.setDefault(CODEASSIST_EXCLUDED_CATEGORIES, "org.eclipse.cdt.ui.textProposalCategory\0"); //$NON-NLS-1$
+ store.setDefault(CODEASSIST_CATEGORY_ORDER, "org.eclipse.cdt.ui.parserProposalCategory:65539\0org.eclipse.cdt.ui.textProposalCategory:65541\0org.eclipse.cdt.ui.templateProposalCategory:2\0org.eclipse.cdt.ui.helpProposalCategory:5\0"); //$NON-NLS-1$
- store.setDefault(PreferenceConstants.CODEASSIST_PROPOSALS_TIMEOUT, 5000);
+ store.setDefault(CODEASSIST_PROPOSALS_TIMEOUT, 5000);
// Refactoring.
- store.setDefault(PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS, false);
- store.setDefault(PreferenceConstants.REFACTOR_LIGHTWEIGHT, true);
+ store.setDefault(REFACTOR_SAVE_ALL_EDITORS, false);
+ store.setDefault(REFACTOR_LIGHTWEIGHT, true);
// Spell checking
- store.setDefault(PreferenceConstants.SPELLING_LOCALE, "en_US"); //$NON-NLS-1$
+ store.setDefault(SPELLING_LOCALE, "en_US"); //$NON-NLS-1$
String isInitializedKey= "spelling_locale_initialized"; //$NON-NLS-1$
if (!store.getBoolean(isInitializedKey)) {
store.setValue(isInitializedKey, true);
Locale locale= SpellCheckEngine.getDefaultLocale();
locale= SpellCheckEngine.findClosestLocale(locale);
if (locale != null)
- store.setValue(PreferenceConstants.SPELLING_LOCALE, locale.toString());
+ store.setValue(SPELLING_LOCALE, locale.toString());
}
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_DIGITS, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_MIXED, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_SENTENCE, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_UPPER, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_URLS, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_SINGLE_LETTERS, true);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_STRING_LITERALS, false);
- store.setDefault(PreferenceConstants.SPELLING_IGNORE_NON_LETTERS, true);
- store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
+ store.setDefault(SPELLING_IGNORE_DIGITS, true);
+ store.setDefault(SPELLING_IGNORE_MIXED, true);
+ store.setDefault(SPELLING_IGNORE_SENTENCE, true);
+ store.setDefault(SPELLING_IGNORE_UPPER, true);
+ store.setDefault(SPELLING_IGNORE_URLS, true);
+ store.setDefault(SPELLING_IGNORE_SINGLE_LETTERS, true);
+ store.setDefault(SPELLING_IGNORE_STRING_LITERALS, false);
+ store.setDefault(SPELLING_IGNORE_NON_LETTERS, true);
+ store.setDefault(SPELLING_USER_DICTIONARY, ""); //$NON-NLS-1$
// Note: For backwards compatibility we must use the property and not the workspace default
- store.setDefault(PreferenceConstants.SPELLING_USER_DICTIONARY_ENCODING,
+ store.setDefault(SPELLING_USER_DICTIONARY_ENCODING,
System.getProperty("file.encoding")); //$NON-NLS-1$
- store.setDefault(PreferenceConstants.SPELLING_PROPOSAL_THRESHOLD, 20);
- store.setDefault(PreferenceConstants.SPELLING_PROBLEMS_THRESHOLD, 100);
+ store.setDefault(SPELLING_PROPOSAL_THRESHOLD, 20);
+ store.setDefault(SPELLING_PROBLEMS_THRESHOLD, 100);
/*
* TODO: This is currently disabled because the spelling engine
* cannot return word proposals but only correction proposals.
*/
- store.setToDefault(PreferenceConstants.SPELLING_ENABLE_CONTENTASSIST);
+ store.setToDefault(SPELLING_ENABLE_CONTENTASSIST);
// codegen
- store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, false);
+ store.setDefault(CODEGEN_ADD_COMMENTS, false);
// mark occurrences
- store.setDefault(PreferenceConstants.EDITOR_MARK_OCCURRENCES, true);
- store.setDefault(PreferenceConstants.EDITOR_MARK_OVERLOADED_OPERATOR_OCCURRENCES, false);
- store.setDefault(PreferenceConstants.EDITOR_STICKY_OCCURRENCES, true);
+ store.setDefault(EDITOR_MARK_OCCURRENCES, true);
+ store.setDefault(EDITOR_MARK_OVERLOADED_OPERATOR_OCCURRENCES, false);
+ store.setDefault(EDITOR_STICKY_OCCURRENCES, true);
// Scalability
- store.setDefault(PreferenceConstants.SCALABILITY_ALERT, true);
- store.setDefault(PreferenceConstants.SCALABILITY_NUMBER_OF_LINES, 5000);
- store.setDefault(PreferenceConstants.SCALABILITY_ENABLE_ALL, false);
- store.setDefault(PreferenceConstants.SCALABILITY_RECONCILER, true);
- store.setDefault(PreferenceConstants.SCALABILITY_SYNTAX_COLOR, false);
- store.setDefault(PreferenceConstants.SCALABILITY_SEMANTIC_HIGHLIGHT, false);
- store.setDefault(PreferenceConstants.SCALABILITY_PARSER_BASED_CONTENT_ASSIST, false);
- store.setDefault(PreferenceConstants.SCALABILITY_CONTENT_ASSIST_AUTO_ACTIVATION, false);
+ store.setDefault(SCALABILITY_ALERT, true);
+ store.setDefault(SCALABILITY_NUMBER_OF_LINES, 5000);
+ store.setDefault(SCALABILITY_ENABLE_ALL, false);
+ store.setDefault(SCALABILITY_RECONCILER, true);
+ store.setDefault(SCALABILITY_SYNTAX_COLOR, false);
+ store.setDefault(SCALABILITY_SEMANTIC_HIGHLIGHT, false);
+ store.setDefault(SCALABILITY_PARSER_BASED_CONTENT_ASSIST, false);
+ store.setDefault(SCALABILITY_CONTENT_ASSIST_AUTO_ACTIVATION, false);
// Code Templates
- store.setDefault(PreferenceConstants.CODE_TEMPLATES_INCLUDE_GUARD_SCHEME,
+ store.setDefault(CODE_TEMPLATES_INCLUDE_GUARD_SCHEME,
CODE_TEMPLATES_INCLUDE_GUARD_SCHEME_FILE_PATH);
// Name Style
@@ -2399,6 +2273,7 @@ public class PreferenceConstants {
/**
* Returns the node in the preference in the given context.
+ *
* @param key The preference key.
* @param project The current context or {@code null} if no context is available and
* the workspace setting should be taken. Note that passing {@code null} should be avoided.
@@ -2428,6 +2303,7 @@ public class PreferenceConstants {
/**
* Returns the string value for the given key in the given context.
+ *
* @param key The preference key
* @param project The current context or {@code null} if no context is available and
* the workspace setting should be taken. Note that passing {@code null} should be avoided.
@@ -2440,6 +2316,7 @@ public class PreferenceConstants {
/**
* Returns the string value for the given key in the given context.
+ *
* @param key The preference key
* @param project The current context or {@code null} if no context is available and
* the workspace setting should be taken. Note that passing {@code null} should be avoided.
@@ -2453,6 +2330,7 @@ public class PreferenceConstants {
/**
* Returns the integer value for the given key in the given context.
+ *
* @param key The preference key
* @param project The current context or {@code null} if no context is available and
* the workspace setting should be taken. Note that passing {@code null} should
@@ -2467,6 +2345,7 @@ public class PreferenceConstants {
/**
* Returns the boolean value for the given key in the given context.
+ *
* @param key The preference key
* @param project The current context or {@code null} if no context is available and
* the workspace setting should be taken. Note that passing {@code null} should be avoided.