|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.ui.palette.PaletteCustomizer
PaletteCustomizer
is the PaletteCustomizerDialog
's interface
to the model. This class is responsible for propogating to the model changes made in
the dialog.
Constructor Summary | |
PaletteCustomizer()
|
Method Summary | |
boolean |
canDelete(PaletteEntry entry)
Indicates whether the given entry can be deleted from the model or not. |
boolean |
canMoveDown(PaletteEntry entry)
Indicates whether the given entry can be moved down or not. |
boolean |
canMoveUp(PaletteEntry entry)
Indicates whether the given entry can be moved up or not. |
List |
getNewEntryFactories()
Returns the list of PaletteEntryFactories that can be used to create new palette entries. |
EntryPage |
getPropertiesPage(PaletteEntry entry)
Returns an EntryPage that will display the custom properties of the given entry. |
void |
performDelete(PaletteEntry entry)
Updates the model by deleting the given entry from it. |
void |
performMoveDown(PaletteEntry entry)
Updates the model by moving the entry down. |
void |
performMoveUp(PaletteEntry entry)
Updates the model by moving the entry up. |
abstract void |
revertToSaved()
Undoes the changes made to the model since the last save. |
abstract void |
save()
Persists the changes made to the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PaletteCustomizer()
Method Detail |
public boolean canDelete(PaletteEntry entry)
PaletteEntry.getUserModificationPermission()
).
This method will be invoked by PaletteCustomizerDialog
to determine
whether or not to enable the "Delete" action.
entry
- The selected palette entry. It'll never be null
.
true
if the given entry can be deletedperformDelete(PaletteEntry)
public boolean canMoveDown(PaletteEntry entry)
PaletteEntry.getUserModificationPermission()
).
Will be called by PaletteCustomizerDialog to determine whether or not to enable the "Move Down" action.
entry
- The selected palette entry (it'll never be null
)
true
if the given entry can be moved downperformMoveDown(PaletteEntry)
public boolean canMoveUp(PaletteEntry entry)
PaletteEntry.getUserModificationPermission()
).
Will be called by PaletteCustomizerDialog to determine whether or not to enable the "Move Up" action.
entry
- The selected palette entry (it'll never be null
)
true
if the given entry can be moved upperformMoveUp(PaletteEntry)
public List getNewEntryFactories()
public EntryPage getPropertiesPage(PaletteEntry entry)
entry
- The PaletteEntry whose properties page needs to be displayed (it'll
never be null
)
public void performDelete(PaletteEntry entry)
entry
- The selected palette entry (it'll never be null
)canDelete(PaletteEntry)
public void performMoveDown(PaletteEntry entry)
entry
- The selected palette entry (it'll never be null
)canMoveDown(PaletteEntry)
public void performMoveUp(PaletteEntry entry)
entry
- The selected palette entry (it'll never be null
)canMoveUp(PaletteEntry)
public abstract void revertToSaved()
This method is invoked when the "Cancel" is selected in the
PaletteCustomizerDialog
.
public abstract void save()
Called when "OK" or "Apply" are selected in the PaletteCustomizerDialog
.
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |