Class RefactorUtil

java.lang.Object
org.eclnt.ccaddons.pbc.refactor.util.RefactorUtil

public class RefactorUtil extends Object
  • Constructor Details

    • RefactorUtil

      public RefactorUtil()
  • Method Details

    • findPath

      public static String findPath(File file, List<String> directories)
    • findNewDependentFileName

      public static String findNewDependentFileName(File dependentFile, String fromPath, String toPath)
    • findDependentFiles

      public static List<File> findDependentFiles(List<String> directories, String filePathDirectory, String filePath)
      Dependent files are:

      1. in the same path directory as original. 2. have same file name without extension or have file name with "_" + properties
    • checkToFilePath

      public static String checkToFilePath(String from, String to)
    • findSearchExtensions

      public static List<String> findSearchExtensions(String filePath)
    • findSearchTextVariants

      public static List<String> findSearchTextVariants(String path)
    • updateFile

      public static void updateFile(File file, String filePath, String newFilePath)
    • moveFile

      public static void moveFile(String fromFile, String fromPath, String toFile, String toPath)