ContributionManager

processing.app.contrib

## Class ContributionManager

- Object
- - ContributionManager

-     public class ContributionManager
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static ContributionListing` | `contribListing`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContributionManager()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `cleanup()` Called by Base to clean up entries previously marked for deletion and remove any "requires restart" flags.
    `static String` | `getFileName(File libFile)` Returns the name of a file without its path or extension.
    `static File` | `getUniqueName(File parentFolder, String fileName)` Returns a file in the parent folder that does not exist yet.
    `static void` | `refreshInstalled(Editor editor)`

    - ### Methods inherited from class Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### contribListing

          public static final ContributionListing contribListing

  - ### Constructor Detail

    - #### ContributionManager

          public ContributionManager()

  - ### Method Detail

    - #### refreshInstalled

          public static void refreshInstalled(Editor editor)

    - #### getUniqueName

          public static File getUniqueName(File parentFolder,
                           String fileName)

      Returns a file in the parent folder that does not exist yet. If parent/fileName already exists, this will look for parent/fileName(2) then parent/fileName(3) and so forth.
      Returns:
        a file that does not exist yet

    - #### getFileName

          public static String getFileName(File libFile)

      Returns the name of a file without its path or extension. For example, "/path/to/helpfullib.zip" returns "helpfullib" "helpfullib-0.1.1.plb" returns "helpfullib-0.1.1"

    - #### cleanup

          public static void cleanup()
                              throws Exception

      Called by Base to clean up entries previously marked for deletion and remove any "requires restart" flags.
      Throws:
        `Exception`