Class PluginState


  • public final class PluginState
    extends java.lang.Object
    • Method Detail

      • startDownload

        public static void startDownload()
        Called when a download is started.
      • finishDownload

        public static void finishDownload()
        Called when a download is finished.
      • isDownloading

        public static boolean isDownloading()
        Checks if there is any running download.
        Returns:
        true if the plugin is downloading; false otherwise.
      • isSubmittingChangeset

        public static boolean isSubmittingChangeset()
        Checks if there is a changeset being submitted.
        Returns:
        true if the plugin is submitting a changeset false otherwise.
      • isUploading

        public static boolean isUploading()
        Checks if there is any running upload.
        Returns:
        true if the plugin is uploading; false otherwise.
      • addImagesToUpload

        public static void addImagesToUpload​(int amount)
        Sets the amount of images that are going to be uploaded.
        Parameters:
        amount - The amount of images that are going to be uploaded.
      • imageUploaded

        public static void imageUploaded()
        Called when an image is uploaded.
      • getUploadString

        public static java.lang.String getUploadString()
        Returns the text to be written in the status bar.
        Returns:
        The String that is going to be written in the status bar.