Class PaletteStackFactory
java.lang.Object
org.eclipse.gef.ui.palette.customize.PaletteEntryFactory
org.eclipse.gef.ui.palette.customize.PaletteStackFactory
Factory to create 
PaletteStack- Since:
- 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new PaletteStackFactory with label PaletteMessages.MODEL_TYPE_STACK
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanCreate(PaletteEntry selected) This method is called by thePaletteCustomizerDialogto determine whether to enable or disable this action on the toolbar and the context menu.protected PaletteEntrycreateNewEntry(Shell shell) Create the PaletteEntrycreateNewEntry(Shell shell, PaletteEntry selected) This method is called when a new palette entry of the type supported by thisPaletteEntryFactoryis to be created.protected 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.PaletteEntryFactorydetermineContainerForNewEntry, determineIndexForNewEntry, getImageDescriptor, getLabel, setImageDescriptor, setLabel
- 
Constructor Details- 
PaletteStackFactorypublic PaletteStackFactory()Creates a new PaletteStackFactory with label PaletteMessages.MODEL_TYPE_STACK
 
- 
- 
Method Details- 
canCreateDescription copied from class:PaletteEntryFactoryThis method is called by thePaletteCustomizerDialogto determine whether to enable or disable this action on the toolbar and the context menu.This default implementation allows the creation of a new entry only in PaletteContainers with the following user permission:PERMISSION_FULL_MODIFICATION- Overrides:
- canCreatein class- PaletteEntryFactory
- Parameters:
- selected- The selected- PaletteEntry(Will never be- null)
- Returns:
- trueif, given the current selection, this- PaletteEntryFactorycan create a new- PaletteEntry
- See Also:
 
- 
createNewEntryDescription copied from class:PaletteEntryFactoryCreate the PaletteEntry- Specified by:
- createNewEntryin class- PaletteEntryFactory
- Parameters:
- shell- The- Shellof the- PaletteCustomizerDialog; it can be used to create another warning or information dialog.
- Returns:
- The newly created entry
- See Also:
 
- 
createNewEntryDescription copied from class:PaletteEntryFactoryThis method is called when a new palette entry of the type supported by thisPaletteEntryFactoryis to be created.- Overrides:
- createNewEntryin class- PaletteEntryFactory
- Parameters:
- shell- The- Shellof the- PaletteCustomizerDialog
- selected- The- PaletteEntrythat was selected in the outline when this action was launched. Will never be- null.
- Returns:
- PaletteEntry The newly created PaletteEntry
- See Also:
 
- 
determineTypeForNewEntryDescription 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 class- PaletteEntryFactory
- Parameters:
- selected- The selected entry
- Returns:
- The type of the new entry to be created
- See Also:
 
 
-