Package io.jenkins.plugins.prism
Class PrismAppearanceConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.util.GlobalConfigurationItem
io.jenkins.plugins.prism.PrismAppearanceConfiguration
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
@Extension
@Symbol("prism")
public class PrismAppearanceConfiguration
extends io.jenkins.plugins.util.GlobalConfigurationItem
Global system configuration for Prism. These configuration options are used globally for all jobs and require
administrator permissions.
The following settings can be configured:
- Theme: Prism supports several themes that can be used to adapt the look and feel. You can configure the default theme used for all Jenkins jobs.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the global configuration and loads the initial values from the corresponding XML file. -
Method Summary
Modifier and TypeMethodDescriptionReturns all available themes.static PrismAppearanceConfiguration
Returns the singleton instance of thisPrismAppearanceConfiguration
.getTheme()
void
setTheme
(PrismTheme theme) Sets the active theme to be used when rendering the source code with prism.Methods inherited from class io.jenkins.plugins.util.GlobalConfigurationItem
clearRepeatableProperties, configure, load, readResolve, save
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Constructor Details
-
PrismAppearanceConfiguration
public PrismAppearanceConfiguration()Creates the global configuration and loads the initial values from the corresponding XML file.
-
-
Method Details
-
getCategory
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
getInstance
Returns the singleton instance of thisPrismAppearanceConfiguration
.- Returns:
- the singleton instance
-
setTheme
Sets the active theme to be used when rendering the source code with prism.- Parameters:
theme
- the theme to use
-
getTheme
-
doFillThemeItems
Returns all available themes.- Returns:
- a model with all available themes
-