Class ExtensionTab

  • All Implemented Interfaces:
    java.awt.MenuContainer , java.awt.image.ImageObserver , java.io.Serializable , javax.accessibility.Accessible , javax.swing.TransferHandler.HasGetTransferHandler

    
    public abstract class ExtensionTab
    extends JPanel
                        

    Class to extend from if you want to add your own tabs to the ServerPackCreator GUI.

    • Method Detail

      • getPluginConfig

         final Optional<CommentedConfig> getPluginConfig()

        Plugin specific configuration conveniently provided by ServerPackCreator. This is the global configuration of the plugin which provides the ConfigPanelExtension to ServerPackCreator.

      • getConfigFile

         final Optional<File> getConfigFile()

        The config-file corresponding to the ID of the plugin, wrapped in an Optional.

      • getLog

         final Logger getLog()
      • saveConfiguration

         final Unit saveConfiguration()

        Save the current configuration of this plugin to the overlying plugins config-file. Requires your plugin to register a global configuration-file. If your plugin does not provide a configuration-file, this method will not store or save anything. No file will be created. Your plugin MUST provide the initial configuration-file.