Interface RepositorySourceProvider

    • Method Detail

      • getSources

        @NonNull
        java.util.List<RepositorySource> getSources​(@Nullable
                                                    Downloader downloader,
                                                    @NonNull
                                                    ProgressIndicator logger,
                                                    boolean forceRefresh)
        Gets the RepositorySources from this provider.
        Parameters:
        downloader - The Downloader, if required by this provider.
        logger - A ProgressIndicator to be used for showing progress and logging.
        forceRefresh - If true, this provider should refresh its list of sources, rather than using a cached version.
      • isModifiable

        boolean isModifiable()
        Returns:
        true if this provider can be edited (that is, it has a facility for saving and loading changes), false otherwise.
      • save

        void save​(@NonNull
                  ProgressIndicator progress)
        If any changes have been made, persist them.
      • removeSource

        boolean removeSource​(@NonNull
                             RepositorySource source)
        Remove the given source from this provider, if this provider is editable.
        Parameters:
        source - The source to remove.
        Returns:
        true if the source was successfully removed, false otherwise.
        See Also:
        addSource(RepositorySource)