diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml
index cb510b5cc02..22a955db0a5 100644
--- a/core/org.eclipse.cdt.ui/plugin.xml
+++ b/core/org.eclipse.cdt.ui/plugin.xml
@@ -572,8 +572,8 @@
contentTypeId="org.eclipse.cdt.core.binaryFile">
-
+
IInformationControl
.
+ * Displays information in a source viewer.
+ *
*/
public class SourceViewerInformationControl implements IInformationControl, IInformationControlExtension, DisposeListener {
-
+
/** Border thickness in pixels. */
private static final int BORDER= 1;
/** The control's shell */
@@ -61,22 +64,22 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
/** The control's text widget */
private StyledText fText;
/** The control's source viewer */
- private SourceViewer fViewer;
+ private SourceViewer fViewer;
/**
* The optional status field.
- *
+ *
* @since 3.0
*/
- private Label fStatusField;
+ private Label fStatusField;
/**
* The separator for the optional status field.
- *
+ *
* @since 3.0
*/
- private Label fSeparator;
+ private Label fSeparator;
/**
* The font of the optional status text label.
- *
+ *
* @since 3.0
*/
private Font fStatusTextFont;
@@ -90,12 +93,15 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
* @since 4.0
*/
private int fMaxHeight= SWT.DEFAULT;
-
+
+ private Color fBackgroundColor;
+ private boolean fIsSystemBackgroundColor= true;
+
/**
* Creates a default information control with the given shell as parent. The given
* information presenter is used to process the information to be displayed. The given
* styles are applied to the created styled text widget.
- *
+ *
* @param parent the parent shell
* @param shellStyle the additional styles for the shell
* @param style the additional styles for the styled text widget
@@ -103,12 +109,12 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
public SourceViewerInformationControl(Shell parent, int shellStyle, int style) {
this(parent, shellStyle, style, null);
}
-
+
/**
* Creates a default information control with the given shell as parent. The given
* information presenter is used to process the information to be displayed. The given
* styles are applied to the created styled text widget.
- *
+ *
* @param parent the parent shell
* @param shellStyle the additional styles for the shell
* @param style the additional styles for the styled text widget
@@ -121,9 +127,11 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
GridData gd;
fShell= new Shell(parent, SWT.NO_FOCUS | SWT.ON_TOP | shellStyle);
- Display display= fShell.getDisplay();
+ Display display= fShell.getDisplay();
fShell.setBackground(display.getSystemColor(SWT.COLOR_BLACK));
+ initializeColors();
+
Composite composite= fShell;
layout= new GridLayout(1, false);
int border= ((shellStyle & SWT.NO_TRIM) == 0) ? 0 : BORDER;
@@ -142,31 +150,31 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
gd= new GridData(GridData.FILL_BOTH);
composite.setLayoutData(gd);
composite.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
- composite.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
- }
+ composite.setBackground(fBackgroundColor);
+ }
// Source viewer
IPreferenceStore store= CUIPlugin.getDefault().getCombinedPreferenceStore();
fViewer= new CSourceViewer(composite, null, null, false, style, store);
CTextTools tools= CUIPlugin.getDefault().getTextTools();
- fViewer.configure(new SimpleCSourceViewerConfiguration(tools.getColorManager(), store, null, tools.getDocumentPartitioning(), false));
+ fViewer.configure(new SimpleCSourceViewerConfiguration(tools.getColorManager(), store, null, ICPartitions.C_PARTITIONING, false));
fViewer.setEditable(false);
-
+
fText= fViewer.getTextWidget();
gd= new GridData(GridData.BEGINNING | GridData.FILL_BOTH);
fText.setLayoutData(gd);
fText.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
- fText.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+ fText.setBackground(fBackgroundColor);
initializeFont();
fText.addKeyListener(new KeyListener() {
-
+
public void keyPressed(KeyEvent e) {
if (e.character == 0x1B) // ESC
fShell.dispose();
}
-
+
public void keyReleased(KeyEvent e) {}
});
@@ -191,45 +199,62 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
// Regarding the color see bug 41128
fStatusField.setForeground(display.getSystemColor(SWT.COLOR_WIDGET_DARK_SHADOW));
-
- fStatusField.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
+ fStatusField.setBackground(fBackgroundColor);
}
-
+
addDisposeListener(this);
}
+ private void initializeColors() {
+ RGB bgRGB= getHoverBackgroundColorRGB();
+ if (bgRGB != null) {
+ fBackgroundColor= new Color(fShell.getDisplay(), bgRGB);
+ fIsSystemBackgroundColor= false;
+ } else {
+ fBackgroundColor= fShell.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND);
+ fIsSystemBackgroundColor= true;
+ }
+ }
+
+ private RGB getHoverBackgroundColorRGB() {
+ IPreferenceStore store= CUIPlugin.getDefault().getPreferenceStore();
+ return store.getBoolean(PreferenceConstants.EDITOR_SOURCE_HOVER_BACKGROUND_COLOR_SYSTEM_DEFAULT)
+ ? null
+ : PreferenceConverter.getColor(store, PreferenceConstants.EDITOR_SOURCE_HOVER_BACKGROUND_COLOR);
+ }
+
/**
* Creates a default information control with the given shell as parent. The given
* information presenter is used to process the information to be displayed. The given
* styles are applied to the created styled text widget.
- *
+ *
* @param parent the parent shell
* @param style the additional styles for the styled text widget
- */
+ */
public SourceViewerInformationControl(Shell parent,int style) {
- this(parent, SWT.NO_TRIM, style);
+ this(parent, SWT.NO_TRIM | SWT.TOOL, style);
}
-
+
/**
* Creates a default information control with the given shell as parent. The given
* information presenter is used to process the information to be displayed. The given
* styles are applied to the created styled text widget.
- *
+ *
* @param parent the parent shell
* @param style the additional styles for the styled text widget
* @param statusFieldText the text to be used in the optional status field
* or null
if the status field should be hidden
* @since 3.0
- */
+ */
public SourceViewerInformationControl(Shell parent,int style, String statusFieldText) {
- this(parent, SWT.NO_TRIM, style, statusFieldText);
+ this(parent, SWT.NO_TRIM | SWT.TOOL, style, statusFieldText);
}
/**
* Creates a default information control with the given shell as parent.
* No information presenter is used to process the information
* to be displayed. No additional styles are applied to the styled text widget.
- *
+ *
* @param parent the parent shell
*/
public SourceViewerInformationControl(Shell parent) {
@@ -240,7 +265,7 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
* Creates a default information control with the given shell as parent.
* No information presenter is used to process the information
* to be displayed. No additional styles are applied to the styled text widget.
- *
+ *
* @param parent the parent shell
* @param statusFieldText the text to be used in the optional status field
* or null
if the status field should be hidden
@@ -249,10 +274,10 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
public SourceViewerInformationControl(Shell parent, String statusFieldText) {
this(parent, SWT.NONE, statusFieldText);
}
-
+
/**
* Initialize the font to the editor font.
- *
+ *
* @since 4.0
*/
private void initializeFont() {
@@ -279,12 +304,12 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
fViewer.setInput(null);
return;
}
-
+
IDocument doc= new Document(content);
CUIPlugin.getDefault().getTextTools().setupCDocument(doc);
fViewer.setInput(doc);
}
-
+
/*
* @see IInformationControl#setVisible(boolean)
*/
@@ -299,27 +324,29 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
public void widgetDisposed(DisposeEvent event) {
if (fStatusTextFont != null && !fStatusTextFont.isDisposed())
fStatusTextFont.dispose();
-
+
fStatusTextFont= null;
fShell= null;
fText= null;
}
-
+
/**
* {@inheritDoc}
*/
public final void dispose() {
+ if (!fIsSystemBackgroundColor)
+ fBackgroundColor.dispose();
if (fShell != null && !fShell.isDisposed())
fShell.dispose();
else
widgetDisposed(null);
}
-
+
/*
* @see IInformationControl#setSize(int, int)
*/
public void setSize(int width, int height) {
-
+
if (fStatusField != null) {
GridData gd= (GridData)fViewer.getTextWidget().getLayoutData();
Point statusSize= fStatusField.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
@@ -327,22 +354,18 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
gd.heightHint= height - statusSize.y - separatorSize.y;
}
fShell.setSize(width, height);
-
+
if (fStatusField != null)
fShell.pack(true);
}
-
+
/*
* @see IInformationControl#setLocation(Point)
*/
public void setLocation(Point location) {
- Rectangle trim= fShell.computeTrim(0, 0, 0, 0);
- Point textLocation= fText.getLocation();
- location.x += trim.x - textLocation.x;
- location.y += trim.y - textLocation.y;
- fShell.setLocation(location);
+ fShell.setLocation(location);
}
-
+
/*
* @see IInformationControl#setSizeConstraints(int, int)
*/
@@ -350,7 +373,7 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
fMaxWidth= maxWidth;
fMaxHeight= maxHeight;
}
-
+
/*
* @see IInformationControl#computeSizeHint()
*/
@@ -370,42 +393,42 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
return size;
}
-
+
/*
* @see IInformationControl#addDisposeListener(DisposeListener)
*/
public void addDisposeListener(DisposeListener listener) {
fShell.addDisposeListener(listener);
}
-
+
/*
* @see IInformationControl#removeDisposeListener(DisposeListener)
*/
public void removeDisposeListener(DisposeListener listener) {
fShell.removeDisposeListener(listener);
}
-
+
/*
* @see IInformationControl#setForegroundColor(Color)
*/
public void setForegroundColor(Color foreground) {
fText.setForeground(foreground);
}
-
+
/*
* @see IInformationControl#setBackgroundColor(Color)
*/
public void setBackgroundColor(Color background) {
fText.setBackground(background);
}
-
+
/*
* @see IInformationControl#isFocusControl()
*/
public boolean isFocusControl() {
return fText.isFocusControl();
}
-
+
/*
* @see IInformationControl#setFocus()
*/
@@ -413,28 +436,28 @@ public class SourceViewerInformationControl implements IInformationControl, IInf
fShell.forceFocus();
fText.setFocus();
}
-
+
/*
* @see IInformationControl#addFocusListener(FocusListener)
*/
public void addFocusListener(FocusListener listener) {
fText.addFocusListener(listener);
}
-
+
/*
* @see IInformationControl#removeFocusListener(FocusListener)
*/
public void removeFocusListener(FocusListener listener) {
fText.removeFocusListener(listener);
}
-
+
/*
* @see IInformationControlExtension#hasContents()
*/
public boolean hasContents() {
return fText.getCharCount() > 0;
}
-
+
protected ISourceViewer getViewer() {
return fViewer;
}
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistPreference.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistPreference.java
index 0a22ec1a133..169951ef974 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistPreference.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/ContentAssistPreference.java
@@ -17,6 +17,8 @@ import org.eclipse.swt.graphics.RGB;
import org.eclipse.cdt.internal.ui.text.CTextTools;
import org.eclipse.cdt.internal.ui.text.IColorManager;
import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.cdt.ui.PreferenceConstants;
+
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.jface.text.IDocument;
@@ -35,13 +37,13 @@ public class ContentAssistPreference {
/** Preference key for content assist timeout delay (unused) */
public final static String TIMEOUT_DELAY= "content_assist_timeout_delay"; //$NON-NLS-1$
/** Preference key for content assist proposal color */
- public final static String PROPOSALS_FOREGROUND= "content_assist_proposals_foreground"; //$NON-NLS-1$
+ public final static String PROPOSALS_FOREGROUND= PreferenceConstants.CODEASSIST_PROPOSALS_FOREGROUND;
/** Preference key for content assist proposal color */
- public final static String PROPOSALS_BACKGROUND= "content_assist_proposals_background"; //$NON-NLS-1$
+ public final static String PROPOSALS_BACKGROUND= PreferenceConstants.CODEASSIST_PROPOSALS_BACKGROUND;
/** Preference key for content assist parameters color */
- public final static String PARAMETERS_FOREGROUND= "content_assist_parameters_foreground"; //$NON-NLS-1$
+ public final static String PARAMETERS_FOREGROUND= PreferenceConstants.CODEASSIST_PARAMETERS_FOREGROUND;
/** Preference key for content assist parameters color */
- public final static String PARAMETERS_BACKGROUND= "content_assist_parameters_background"; //$NON-NLS-1$
+ public final static String PARAMETERS_BACKGROUND= PreferenceConstants.CODEASSIST_PARAMETERS_BACKGROUND;
/** Preference key for content assist auto insert */
public final static String AUTOINSERT= "content_assist_autoinsert"; //$NON-NLS-1$
/** Preference key for content assist to insert the common prefix */
@@ -104,7 +106,7 @@ public class ContentAssistPreference {
// boolean enabled;
// enabled= store.getBoolean(SHOW_DOCUMENTED_PROPOSALS);
// ccp.restrictProposalsToVisibility(enabled);
-//
+//
// enabled= store.getBoolean(CASE_SENSITIVITY);
// ccp.restrictProposalsToMatchingCases(enabled);
@@ -112,23 +114,23 @@ public class ContentAssistPreference {
// ccp.orderProposalsAlphabetically(enabled);
// enabled= store.getBoolean(ADD_INCLUDE);
-// ccp.allowAddingIncludes(enabled);
+// ccp.allowAddingIncludes(enabled);
}
/**
* Configure the given content assistant from the given store.
*/
- public static void configure(ContentAssistant assistant, IPreferenceStore store) {
+ public static void configure(ContentAssistant assistant, IPreferenceStore store) {
CTextTools textTools= CUIPlugin.getDefault().getTextTools();
- IColorManager manager= textTools.getColorManager();
+ IColorManager manager= textTools.getColorManager();
boolean enabledDot= store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT);
boolean enabledArrow= store.getBoolean(AUTOACTIVATION_TRIGGERS_ARROW);
boolean enabledDoubleColon= store.getBoolean(AUTOACTIVATION_TRIGGERS_DOUBLECOLON);
boolean enabled = ((enabledDot) || ( enabledArrow ) || (enabledDoubleColon ));
- assistant.enableAutoActivation(enabled);
+ assistant.enableAutoActivation(enabled);
int delay= store.getInt(AUTOACTIVATION_DELAY);
assistant.setAutoActivationDelay(delay);
@@ -162,7 +164,7 @@ public class ContentAssistPreference {
if (ccp == null)
return;
- if ( (AUTOACTIVATION_TRIGGERS_DOT.equals(key))
+ if ( (AUTOACTIVATION_TRIGGERS_DOT.equals(key))
|| (AUTOACTIVATION_TRIGGERS_ARROW.equals(key))
|| (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(key)) ){
boolean useDotAsTrigger = store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT);
@@ -205,14 +207,14 @@ public class ContentAssistPreference {
String p= event.getProperty();
- if ((AUTOACTIVATION_TRIGGERS_DOT.equals(p))
+ if ((AUTOACTIVATION_TRIGGERS_DOT.equals(p))
|| (AUTOACTIVATION_TRIGGERS_ARROW.equals(p))
|| (AUTOACTIVATION_TRIGGERS_DOUBLECOLON.equals(p))){
boolean enabledDot= store.getBoolean(AUTOACTIVATION_TRIGGERS_DOT);
boolean enabledArrow= store.getBoolean(AUTOACTIVATION_TRIGGERS_ARROW);
boolean enabledDoubleColon= store.getBoolean(AUTOACTIVATION_TRIGGERS_DOUBLECOLON);
boolean enabled = ((enabledDot) || ( enabledArrow ) || (enabledDoubleColon ));
- assistant.enableAutoActivation(enabled);
+ assistant.enableAutoActivation(enabled);
} else if (AUTOACTIVATION_DELAY.equals(p)) {
int delay= store.getInt(AUTOACTIVATION_DELAY);
assistant.setAutoActivationDelay(delay);
@@ -236,7 +238,7 @@ public class ContentAssistPreference {
} else if (PREFIX_COMPLETION.equals(p)) {
boolean enabled= store.getBoolean(PREFIX_COMPLETION);
assistant.enablePrefixCompletion(enabled);
- }
+ }
changeCProcessor(assistant, store, p);
}
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 bfa35565f58..28d55a689b5 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
@@ -35,40 +35,40 @@ 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
+ * CDT-UI preference store using these values. Clients are not allowed to modify the
* preference store programmatically.
- *
+ *
* @since 2.0
*/
public class PreferenceConstants {
-
+
private PreferenceConstants() {
}
-
+
/**
* Preference key suffix for bold text style preference keys.
- *
+ *
* @since 4.0
*/
public static final String EDITOR_BOLD_SUFFIX= "_bold"; //$NON-NLS-1$
/**
* Preference key suffix for italic text style preference keys.
- *
+ *
* @since 4.0
*/
public static final String EDITOR_ITALIC_SUFFIX= "_italic"; //$NON-NLS-1$
-
+
/**
* Preference key suffix for strikethrough text style preference keys.
- *
+ *
* @since 4.0
*/
public static final String EDITOR_STRIKETHROUGH_SUFFIX= "_strikethrough"; //$NON-NLS-1$
-
+
/**
* Preference key suffix for underline text style preference keys.
- *
+ *
* @since 4.0
*/
public static final String EDITOR_UNDERLINE_SUFFIX= "_underline"; //$NON-NLS-1$
@@ -79,7 +79,7 @@ public class PreferenceConstants {
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
Boolean
. If true
multi-line comments are rendered
* in bold. If false
the are rendered using no font style attribute.
*
- *
+ *
* @since 4.0
*/
- public final static String EDITOR_MULTI_LINE_COMMENT_BOLD= ICColorConstants.C_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
+ public final static String EDITOR_MULTI_LINE_COMMENT_BOLD= ICColorConstants.C_MULTI_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
/**
* A named preference that controls whether multi-line comments are rendered in italic.
@@ -103,18 +103,18 @@ public class PreferenceConstants {
* 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.
*
- *
+ *
* @since 4.0
*/
public final static String EDITOR_MULTI_LINE_COMMENT_ITALIC= ICColorConstants.C_MULTI_LINE_COMMENT + EDITOR_ITALIC_SUFFIX;
-
+
/**
* 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
*
Boolean
. If true
single line comments are rendered
* in bold. If false
the are rendered using no font style attribute.
*
- *
+ *
* @since 4.0
*/
- public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD= ICColorConstants.C_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
+ public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD= ICColorConstants.C_SINGLE_LINE_COMMENT + EDITOR_BOLD_SUFFIX;
/**
* A named preference that controls whether single line comments are rendered in italic.
@@ -138,18 +138,18 @@ public class PreferenceConstants {
* 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.
*
- *
+ *
* @since 4.0
*/
public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC= ICColorConstants.C_SINGLE_LINE_COMMENT + EDITOR_ITALIC_SUFFIX;
-
+
/**
* 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 Boolean
.
*
* Value is of type Boolean
.
*
String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
* @since 4.0
@@ -194,7 +194,7 @@ public class PreferenceConstants {
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
* @since 4.0
*/
- public final static String EDITOR_PP_HEADER_COLOR= ICColorConstants.PP_HEADER;
+ public final static String EDITOR_PP_HEADER_COLOR= ICColorConstants.PP_HEADER;
/**
* A named preference that controls whether headers are rendered in bold.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
* @since 4.0
@@ -293,7 +293,7 @@ public class PreferenceConstants {
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
* @since 5.0
@@ -491,7 +491,7 @@ public class PreferenceConstants {
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
* @since 5.0
@@ -524,7 +524,7 @@ public class PreferenceConstants {
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
"org.eclipse.cdt.ui.editors.textfont"
).
- *
+ *
* @since 4.0
*/
public final static String EDITOR_TEXT_FONT= "org.eclipse.cdt.ui.editors.textfont"; //$NON-NLS-1$
@@ -578,14 +578,14 @@ public class PreferenceConstants {
*
*/
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
*
@@ -633,7 +633,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
* cannot be resolved to valid SWT modifier bits.
- *
+ *
* @see #EDITOR_TEXT_HOVER_MODIFIERS
*/
public static final String EDITOR_TEXT_HOVER_MODIFIER_MASKS= "hoverModifierMasks"; //$NON-NLS-1$
@@ -732,16 +732,16 @@ public class PreferenceConstants {
*/
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
+ * 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
.
*
@@ -756,7 +756,7 @@ public class PreferenceConstants { *
* Value is of type String
, a "\0"-separated list of identifiers.
*
* Value is of type String
, a "\0"-separated list of identifiers.
*
* Value is of type Boolean
.
*
* Value is of type String
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
@@ -876,7 +876,7 @@ public class PreferenceConstants { *
* * @since 2.1 - */ + */ public static final String TEMPLATES_USE_CODEFORMATTER= "org.eclipse.cdt.ui.text.templates.format"; //$NON-NLS-1$ /** @@ -886,15 +886,15 @@ public class PreferenceConstants { * * * @since 4.0 - */ + */ public static final String FORMATTER_PROFILE = "formatter_profile"; //$NON-NLS-1$ - /** + /** * Preference key for whether to ensure a newline at the end of files when saving. - * + * * @since 4.0 */ - public final static String ENSURE_NEWLINE_AT_EOF = "ensureNewlineAtEOF"; //$NON-NLS-1$ + public final static String ENSURE_NEWLINE_AT_EOF = "ensureNewlineAtEOF"; //$NON-NLS-1$ /** * A named preference that defines whether the hint to make hover sticky should be shown. @@ -906,18 +906,18 @@ public class PreferenceConstants { /** * A named preference prefix for semantic highlighting preferences. - * + * * @since 4.0 */ public static final String EDITOR_SEMANTIC_HIGHLIGHTING_PREFIX="semanticHighlighting."; //$NON-NLS-1$ - + /** * 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 Boolean
: true
if bold.
*
* Value is of type Boolean
: true
if italic.
*
* Value is of type Boolean
: true
if strikethrough.
*
* Value is of type Boolean
: true
if underline.
*
* Value is of type Boolean
: true
if enabled.
*
* Value is of type Boolean
: true
if enabled.
*
Boolean
: if true
light bulbs are shown
* for quick assists.
*
- *
+ *
* @since 5.0
*/
public static final String EDITOR_QUICKASSIST_LIGHTBULB="org.eclipse.cdt.quickassist.lightbulb"; //$NON-NLS-1$
@@ -1001,10 +1001,10 @@ public class PreferenceConstants {
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
- *
+ *
* @since 5.0
*/
public final static String CODEASSIST_PROPOSALS_BACKGROUND= "content_assist_proposals_background"; //$NON-NLS-1$
@@ -1014,13 +1014,41 @@ public class PreferenceConstants {
* Value is of type String
. A RGB color value encoded as a string
* using class PreferenceConverter
*
- *
+ *
* @see org.eclipse.jface.resource.StringConverter
* @see org.eclipse.jface.preference.PreferenceConverter
- *
+ *
* @since 5.0
*/
public final static String CODEASSIST_PROPOSALS_FOREGROUND= "content_assist_proposals_foreground"; //$NON-NLS-1$
+
+ /**
+ * 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 String
. A RGB color value encoded as a string
+ * using class PreferenceConverter
+ *
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type Boolean
.
*
* Value is of type String
.
*
* Value is of type Integer
.
*
* Value is of type Integer
.
*
* Value is of type Integer
.
*
* Value is of type String
.
*
* Value is of type Boolean
.
*
+ * Value is of type String
. A RGB color value encoded as a string
+ * using class PreferenceConverter
+ *
+ * Value is of type Boolean
.
+ *