|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.ui.palette.customize.PaletteEntryFactory
org.eclipse.gef.ui.palette.customize.PaletteStackFactory
public class PaletteStackFactory
Factory to create PaletteStack
| Constructor Summary | |
|---|---|
PaletteStackFactory()
Creates a new PaletteStackFactory with label PaletteMessages.MODEL_TYPE_STACK |
|
| Method Summary | |
|---|---|
boolean |
canCreate(PaletteEntry selected)
This method is called by the PaletteCustomizerDialog to
determine whether to enable or disable this action on the toolbar and the
context menu. |
protected PaletteEntry |
createNewEntry(Shell shell)
Create the PaletteEntry |
PaletteEntry |
createNewEntry(Shell shell,
PaletteEntry selected)
This method is called when a new palette entry of the type supported by this PaletteEntryFactory is to be created. |
protected java.lang.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 |
|---|
determineContainerForNewEntry, determineIndexForNewEntry, getImageDescriptor, getLabel, setImageDescriptor, setLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaletteStackFactory()
| Method Detail |
|---|
public boolean canCreate(PaletteEntry selected)
PaletteEntryFactoryPaletteCustomizerDialog to
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
canCreate in class PaletteEntryFactoryselected - The selected PaletteEntry (Will never be
null)
true if, given the current selection, this
PaletteEntryFactory can create a new
PaletteEntryPaletteEntryFactory.canCreate(org.eclipse.gef.palette.PaletteEntry)protected PaletteEntry createNewEntry(Shell shell)
PaletteEntryFactory
createNewEntry in class PaletteEntryFactoryshell - The Shell of the
PaletteCustomizerDialog; it can be used to create
another warning or information dialog.
PaletteEntryFactory.createNewEntry(Shell)
public PaletteEntry createNewEntry(Shell shell,
PaletteEntry selected)
PaletteEntryFactoryPaletteEntryFactory is to be created.
createNewEntry in class PaletteEntryFactoryshell - The Shell of the
PaletteCustomizerDialogselected - The PaletteEntry that was selected in the outline
when this action was launched. Will never be null
.
PaletteEntryPaletteEntryFactory.createNewEntry(org.eclipse.swt.widgets.Shell,
org.eclipse.gef.palette.PaletteEntry)protected java.lang.Object determineTypeForNewEntry(PaletteEntry selected)
PaletteEntryFactorySub-classes may override this method.
determineTypeForNewEntry in class PaletteEntryFactoryselected - The selected entry
PaletteEntryFactory.determineTypeForNewEntry(org.eclipse.gef.palette.PaletteEntry)
|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||