Class PaletteDrawerFactory
java.lang.Object
org.eclipse.gef.ui.palette.customize.PaletteEntryFactory
org.eclipse.gef.ui.palette.customize.PaletteContainerFactory
org.eclipse.gef.ui.palette.customize.PaletteDrawerFactory
Factory to create
categories-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PaletteEntrycreateNewEntry(Shell shell) Create the PaletteEntryprotected ObjectdetermineTypeForNewEntry(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.PaletteContainerFactory
canCreate, determineContainerForNewEntry, determineIndexForNewEntryMethods inherited from class org.eclipse.gef.ui.palette.customize.PaletteEntryFactory
createNewEntry, getImageDescriptor, getLabel, setImageDescriptor, setLabel
-
Constructor Details
-
PaletteDrawerFactory
public PaletteDrawerFactory()Constructor
-
-
Method Details
-
createNewEntry
Description copied from class:PaletteEntryFactoryCreate the PaletteEntry- Specified by:
createNewEntryin classPaletteEntryFactory- Parameters:
shell- TheShellof thePaletteCustomizerDialog; it can be used to create another warning or information dialog.- Returns:
- The newly created entry
- See Also:
-
determineTypeForNewEntry
Description copied from class:PaletteEntryFactoryGiven the current selection, this method determines the type of the new entry to be created.Sub-classes may override this method.
- Overrides:
determineTypeForNewEntryin classPaletteEntryFactory- Parameters:
selected- The selected entry- Returns:
- The type of the new entry to be created
- See Also:
-