Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.gef.ui.palette.customize
Class PaletteEntryState

java.lang.Object
  extended by 
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

Constructor Summary
PaletteEntryState ( PaletteEntry entry)
           
 
Method Summary
 void applyChangesFromMemento ( IMemento entryMemento)
          Applies the changes from the memento to the palette entry.
protected   PaletteEntry getPaletteEntry ()
          Gets the palette entry being acted on.
 void rollback ()
          Applies the changes from the stored state to the palette entry.
 void storeChangesInMemento ( IMemento memento)
          Stores changes from the existing palette entry from the stored state into the memento.
 void storeState ()
          Stores the current state of the palette entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteEntryState

public PaletteEntryState(
PaletteEntry entry)
Method Detail

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

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire