org.eclipse.gmf.runtime.gef.ui.palette.customize
Class PaletteEntryState
java.lang.Object
org.eclipse.gmf.runtime.gef.ui.palette.customize.PaletteEntryState
-
All Implemented Interfaces:
-
IPaletteState
-
Direct Known Subclasses:
-
PaletteDrawerState
-
public class PaletteEntryState
- extends java.lang.Object
- implements
IPaletteState
Used to store, rollback, and apply palette customizations of a palette entry.
-
Since:
- 2.1
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
PaletteEntryState
public PaletteEntryState(
PaletteEntry entry)
getPaletteEntry
protected
PaletteEntry getPaletteEntry()
- Gets the palette entry being acted on.
-
-
-
Returns:
-
storeState
public void storeState()
-
Description copied from interface:
IPaletteState
- Stores the current state of the palette entry.
-
-
Specified by:
-
storeState
in interface
IPaletteState
-
rollback
public void rollback()
-
Description copied from interface:
IPaletteState
- Applies the changes from the stored state to the palette entry.
-
-
Specified by:
-
rollback
in interface
IPaletteState
-
storeChangesInMemento
public void storeChangesInMemento(
IMemento memento)
-
Description copied from interface:
IPaletteState
- Stores changes from the existing palette entry from the stored state into
the memento.
-
-
Specified by:
-
storeChangesInMemento
in interface
IPaletteState
-
-
Parameters:
-
memento
- the memento in which to store the palette entry's
customizations
applyChangesFromMemento
public void applyChangesFromMemento(
IMemento entryMemento)
-
Description copied from interface:
IPaletteState
- Applies the changes from the memento to the palette entry.
-
-
Specified by:
-
applyChangesFromMemento
in interface
IPaletteState
-
-
Parameters:
-
entryMemento
- the memento from which to retrieve the palette entry's
customizations
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.