public class InputHistory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
InputHistory.CComboWrapper |
private class |
InputHistory.ComboWrapper |
private class |
InputHistory.ControlWrapper |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<InputHistory.ControlWrapper>> |
comboMap
the Map of field ids to List of comboboxes that share the same history
|
protected org.eclipse.jface.dialogs.IDialogSettings |
dialogSettings
dialog settings to store input history
|
protected static int |
MAX_HISTORY
the history limit
|
private java.util.List<java.lang.String> |
privileged |
Constructor and Description |
---|
InputHistory(java.lang.String sectionName) |
InputHistory(java.lang.String sectionName,
java.lang.String[] privileged) |
Modifier and Type | Method and Description |
---|---|
void |
add(org.eclipse.swt.widgets.Control combo)
Adds an input control to the list of fields to save.
|
void |
add(java.lang.String id,
org.eclipse.swt.widgets.Control combo)
Adds an input control to the list of fields to save.
|
void |
load()
Loads the input history from the dialog settings.
|
void |
save()
Saves the input history into the dialog settings.
|
protected static final int MAX_HISTORY
protected org.eclipse.jface.dialogs.IDialogSettings dialogSettings
private java.util.Map<java.lang.String,java.util.List<InputHistory.ControlWrapper>> comboMap
private java.util.List<java.lang.String> privileged
public InputHistory(java.lang.String sectionName)
public InputHistory(java.lang.String sectionName, java.lang.String[] privileged)
public void load()
public void save()
public void add(org.eclipse.swt.widgets.Control combo)
public void add(java.lang.String id, org.eclipse.swt.widgets.Control combo)