Class AutoCompleteHistory

java.lang.Object
org.yamcs.studio.autocomplete.ui.history.AutoCompleteHistory

public class AutoCompleteHistory extends Object
Handles history of auto-completed fields.
  • Constructor Details

  • Method Details

    • installListener

      public void installListener(Control control)
      Install listeners on specified control to add an entry in the history when a SelectionEvent is raised.
      Parameters:
      control -
    • addEntry

      public void addEntry(String newEntry)
      Add an entry to the history. History contains unique values. If a value is already in the history, this value is bring to the first place in the file. The maximum number of entries in the history is defined by preferences.
      Parameters:
      newEntry -