Interface PluginPackagesWatcher
-
- All Known Implementing Classes:
PluginPackagesWatcherImpl
public interface PluginPackagesWatcher
Watches modifications of plugin packages on file system and notifiesPluginPackagesListener
implementations about incoming events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
runActionWithDisabledObserver(File root, Runnable action)
Performs an action with disabled file observer if the root parameter is watched.void
watchPluginsRootForUpdates(File root, File extractFolder)
Starts watching root directory for updates
-
-
-
Method Detail
-
runActionWithDisabledObserver
void runActionWithDisabledObserver(@NotNull File root, @NotNull Runnable action)
Performs an action with disabled file observer if the root parameter is watched. Calls action directly otherwise. Should be used when modifying packages by the code.- Parameters:
root
- Directory with plugin packagesaction
- Action to perform
-
watchPluginsRootForUpdates
void watchPluginsRootForUpdates(@NotNull File root, @NotNull File extractFolder)
Starts watching root directory for updates- Parameters:
root
- Directory with plugin packagesextractFolder
- Directory with unpacked packages. Will be passed toPluginPackagesListener
events.
-
-