com.ibm.etools.systems.pushtoclient.core.extensions

Class ConfigurationExtension

  • java.lang.Object
    • com.ibm.etools.systems.pushtoclient.core.extensions.ConfigurationExtension
    • Constructor Detail

      • ConfigurationExtension

        public ConfigurationExtension(java.lang.String id,
                                      java.lang.String name,
                                      java.lang.String description)
        Constructor for a configuration extension
        Parameters:
        id - the unique id of the configuration extension
        name - the name, for display, of the configuration extension
        description - the description, for display, of the configuration extension
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the id of the extension
        Specified by:
        getId in interface IConfigurationExtension
        Returns:
        the id
      • getName

        public java.lang.String getName()
        Returns the name of the extension
        Specified by:
        getName in interface IConfigurationExtension
        Returns:
        the name
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the extension
        Returns:
        the description
      • getIcon

        public java.lang.String getIcon()
        Returns the icon path associated with the extension
        Specified by:
        getIcon in interface IConfigurationExtension
        Returns:
        the icon path
      • setIcon

        public void setIcon(java.lang.String icon)
        Sets the icon path associated with the extension
        Specified by:
        setIcon in interface IConfigurationExtension
        Parameters:
        icon - the path to the icon
      • setBundle

        public void setBundle(Bundle bundle)
        Sets the bundle associated with the extension
        Specified by:
        setBundle in interface IConfigurationExtension
        Parameters:
        bundle - the bundle associated with this extension
      • getImageDescriptor

        public ImageDescriptor getImageDescriptor()
        Returns the image descriptor associated with the extension
        Returns:
        the image descriptor
      • getExportElement

        public IConfigurationElement getExportElement()
        Returns the element that represents the exported information for this configuration extension. This gets called by the export wizards.
        Specified by:
        getExportElement in interface IConfigurationExtension
        Returns:
        the parent configuration element for this configuration extension
      • getImportElement

        public IConfigurationElement getImportElement(java.io.File cacheFolder)
        Returns the element that represents the imported information for this configuration extension. This gets called by the import wizards.
        Specified by:
        getImportElement in interface IConfigurationExtension
        Parameters:
        cacheFolder - the folder containing the cached configuration files used for importing
        Returns:
        the parent configuration element
      • compareTo

        public int compareTo(IConfigurationExtension o)
        Compares this configuration extension to another based on the names of the configuration extensions.
        Specified by:
        compareTo in interface java.lang.Comparable<IConfigurationExtension>