Interface PluginPackagesWatcher

    • 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 packages
        action - Action to perform
      • watchPluginsRootForUpdates

        void watchPluginsRootForUpdates​(@NotNull
                                        File root,
                                        @NotNull
                                        File extractFolder)
        Starts watching root directory for updates
        Parameters:
        root - Directory with plugin packages
        extractFolder - Directory with unpacked packages. Will be passed to PluginPackagesListener events.