Class ExtensionsManager

java.lang.Object
VASSAL.build.module.ExtensionsManager

public class ExtensionsManager extends Object
Convenience class for managing extensions relative to a module file. Create extension directory as lazily as possible.
Author:
rodneykinney
  • Constructor Details

    • ExtensionsManager

      public ExtensionsManager(File moduleFile)
    • ExtensionsManager

      public ExtensionsManager(GameModule module)
    • ExtensionsManager

      public ExtensionsManager(String dir)
      Manage global extensions
  • Method Details

    • getExtensionsDirectory

      public File getExtensionsDirectory(boolean mustExist)
    • setExtensionsDirectory

      public void setExtensionsDirectory(File dir)
    • ensureExists

      protected File ensureExists(File dir)
      Ensure a directory exists.
      Parameters:
      dir - Directory
      Returns:
      Directory as File object; otherwise null if an error occurs.
    • getInactiveExtensionsDirectory

      public File getInactiveExtensionsDirectory(boolean mustExist)
    • setActive

      public File setActive(File extension, boolean active)
    • getActiveExtensions

      public List<File> getActiveExtensions()
    • getInactiveExtensions

      public List<File> getInactiveExtensions()
    • isExtensionActive

      public boolean isExtensionActive(File extension)