Class Refactor

java.lang.Object
uno.anahata.ai.nb.tools.Refactor

public class Refactor extends Object
A tool for performing programmatic refactoring operations within the NetBeans IDE.
  • Constructor Details

    • Refactor

      public Refactor()
  • Method Details

    • rename

      public static String rename(String filePath, String newName) throws Exception
      Performs a programmatic rename refactoring of a file within the IDE, providing detailed feedback.
      Parameters:
      filePath - The absolute path of the file to rename.
      newName - The new name for the file (without the extension).
      Returns:
      A detailed log of the refactoring process.
      Throws:
      Exception - if there is an error invoking the operation.