Class PaletteSeparatorFactory
java.lang.Object
org.eclipse.gef.ui.palette.customize.PaletteEntryFactory
org.eclipse.gef.ui.palette.customize.PaletteSeparatorFactory
Factory to create
PaletteSeparators
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewEntry
(Shell shell) Create the PaletteEntryprotected Object
determineTypeForNewEntry
(PaletteEntry selected) Given the current selection, this method determines the type of the new entry to be created.Methods inherited from class org.eclipse.gef.ui.palette.customize.PaletteEntryFactory
canCreate, createNewEntry, determineContainerForNewEntry, determineIndexForNewEntry, getImageDescriptor, getLabel, setImageDescriptor, setLabel
-
Constructor Details
-
PaletteSeparatorFactory
public PaletteSeparatorFactory()Constructor
-
-
Method Details
-
createNewEntry
Description copied from class:PaletteEntryFactory
Create the PaletteEntry- Specified by:
createNewEntry
in classPaletteEntryFactory
- Parameters:
shell
- TheShell
of thePaletteCustomizerDialog
; it can be used to create another warning or information dialog.- Returns:
- The newly created entry
- See Also:
-
determineTypeForNewEntry
Description copied from class:PaletteEntryFactory
Given the current selection, this method determines the type of the new entry to be created.Sub-classes may override this method.
- Overrides:
determineTypeForNewEntry
in classPaletteEntryFactory
- Parameters:
selected
- The selected entry- Returns:
- The type of the new entry to be created
- See Also:
-