|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.preferences.ProposalFilterPreferencesUtil
public class ProposalFilterPreferencesUtil
A class which encapsulates several utility functions related to code completion preference settings.
Nested Class Summary | |
---|---|
static class |
ProposalFilterPreferencesUtil.ComboState
Convenience class wraps the data to initialize a Combo |
Method Summary | |
---|---|
static java.lang.String |
comboStateAsString(org.eclipse.swt.widgets.Combo combo)
The state of a Combo consists of the list of entries and the index of the selected entry. |
static ProposalFilterPreferencesUtil.ComboState |
getComboState(java.lang.String comboPreference)
Convenience method to extract the state of a Combo from the state string stored e.g. in a preference store |
static org.eclipse.core.runtime.IConfigurationElement |
getElementForName(java.lang.String filterName)
Return the configuration element which corresponds to the human-readable filter name |
static org.eclipse.core.runtime.IConfigurationElement |
getPreferredFilterElement()
Look up the setting for the preferred proposal filter and return it's configuration element. |
static java.lang.String[] |
getProposalFilterNames()
Get an array of proposal filter names (i.e. the human-readable text for display to fill into the Combo) |
static java.lang.String |
getProposalFilternamesAsString()
Look up all contributed completion proposal filters and return their names as a semicolon-separated list plus a leading entry for the selected index 0, plus a leading |
static void |
restoreComboFromString(org.eclipse.swt.widgets.Combo combo,
java.lang.String text)
The state of a Combo consists of the list of entries and the index of the selected entry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String[] getProposalFilterNames()
public static java.lang.String getProposalFilternamesAsString()
public static org.eclipse.core.runtime.IConfigurationElement getElementForName(java.lang.String filterName)
filterName
- The human-readable filter name
public static java.lang.String comboStateAsString(org.eclipse.swt.widgets.Combo combo)
combo
- The Combo whose state shall be converted
public static void restoreComboFromString(org.eclipse.swt.widgets.Combo combo, java.lang.String text)
combo
- The combo to be restored.text
- The text representation of the state.public static ProposalFilterPreferencesUtil.ComboState getComboState(java.lang.String comboPreference)
comboPreference
- The state string
public static org.eclipse.core.runtime.IConfigurationElement getPreferredFilterElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |