Class RenameFieldQuickFix


public class RenameFieldQuickFix extends CompositeFieldQuickFix
QuickFix for renaming structure or union fields
  • Constructor Details

    • RenameFieldQuickFix

      public RenameFieldQuickFix(Program program, Composite composite, int ordinal, String original, String newName)
      Constructor
      Parameters:
      program - the program containing the structure or union field to be renamed
      composite - the composite whose field is being renamed
      ordinal - the ordinal of the field being renamed with its containing composite
      original - the original name of the field
      newName - the new name for the enum value
  • Method Details

    • getActionName

      public String getActionName()
      Description copied from class: QuickFix
      Returns the general name of the action to be performed.
      Specified by:
      getActionName in class QuickFix
      Returns:
      the general name of the action to be performed
    • getItemType

      public String getItemType()
      Description copied from class: QuickFix
      Returns the type of program element being affected (function, label, comment, etc.)
      Specified by:
      getItemType in class QuickFix
      Returns:
      the type of program element being affected
    • doGetCurrent

      public String doGetCurrent()
      Description copied from class: QuickFix
      Returns the current value of the item.
      Specified by:
      doGetCurrent in class QuickFix
      Returns:
      the current value of the item
    • execute

      public void execute()
      Description copied from class: QuickFix
      Executes the action.
      Specified by:
      execute in class QuickFix
    • getProgramLocation

      public ProgramLocation getProgramLocation()
      Specified by:
      getProgramLocation in class QuickFix
    • getFieldName

      protected String getFieldName()
      Specified by:
      getFieldName in class CompositeFieldQuickFix