|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.core.PaletteManager
The palette manager parses the contents of the defined extensions to the extension-point org.eclipse.contribution.visualiser.palettes.
Field Summary | |
static java.lang.String |
PALETTE_EXTENSION
|
Constructor Summary | |
PaletteManager()
|
Method Summary | |
static java.util.List |
getAllPaletteDefinitions()
Get a list of all the registered palettes |
static PaletteDefinition |
getCurrentPalette()
Get the current palette, either as set by the preferences, or if not set the default palette specified by the current provider, or if that is not set, use the default palette implementation |
static PaletteDefinition |
getDefaultForProvider(ProviderDefinition def)
|
static PaletteDefinition |
getDefaultPalette()
Get the defined default palette |
static PaletteDefinition |
getPaletteByID(java.lang.String id)
Return the palette definition with the given id, or null if not found |
static PaletteDefinition |
getPaletteByName(java.lang.String name)
Return the palette definition with the given name, or null if not found |
static void |
resetCurrent()
Reset the current choice of palette, so that next time it is requested, the usual process is used to determine the chosen palette. |
static void |
setCurrentPaletteByName(java.lang.String name)
Search for a registered palette with the given name and if found, sets that palette to be the current one |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PALETTE_EXTENSION
Constructor Detail |
public PaletteManager()
Method Detail |
public static java.util.List getAllPaletteDefinitions()
public static PaletteDefinition getCurrentPalette()
public static PaletteDefinition getPaletteByName(java.lang.String name)
name
-
public static PaletteDefinition getPaletteByID(java.lang.String id)
id
-
public static void resetCurrent()
public static void setCurrentPaletteByName(java.lang.String name)
name
- the name of the palettepublic static PaletteDefinition getDefaultPalette()
public static PaletteDefinition getDefaultForProvider(ProviderDefinition def)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |