Class Option

java.lang.Object
ghidra.framework.options.Option
Direct Known Subclasses:
ThemeColorOption, ThemeFontOption

public abstract class Option extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getCurrentValue

      public abstract Object getCurrentValue()
    • doSetCurrentValue

      public abstract void doSetCurrentValue(Object value)
    • setCurrentValue

      public void setCurrentValue(Object value)
    • getName

      public String getName()
    • getPropertyEditor

      public PropertyEditor getPropertyEditor()
    • getHelpLocation

      public HelpLocation getHelpLocation()
    • getDescription

      public String getDescription()
    • getValue

      public Object getValue(Object passedInDefaultValue)
    • wasRegisteredInPreviousSession

      public boolean wasRegisteredInPreviousSession()
    • isRegistered

      public boolean isRegistered()
    • setLastRegisteredDate

      public void setLastRegisteredDate(LocalDate date)
    • getLastRegisteredDate

      public LocalDate getLastRegisteredDate()
    • hasExpired

      public boolean hasExpired()
      Returns true if the last registered date for this option is older than 1 year ago. That means that the option has not been registered and is likely no longer valid. This may not be true, if the given option still exists, but is only active on-demand by the user. If the option has expired, it will be removed. If it is still an existing on-demand option, it can again be saved when the user loads the owning provider and changes the option. In this case, it will remain in the tool for at least another year.
      Returns:
      true if expired
    • restoreDefault

      public void restoreDefault()
    • isDefault

      public boolean isDefault()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefaultValue

      public Object getDefaultValue()
    • getInceptionInformation

      public String getInceptionInformation()
    • getOptionType

      public OptionType getOptionType()