예제 #1
0
 public void restore(Memento a_memento) {
   m_glyph = loadGlyphElement(a_memento.getData());
   ModuleManager.getSingletonInstance().clear();
 }
예제 #2
0
 public void restoreFromMemento(Memento m) {
   state = m.getSavedState();
   System.out.println("Originator: State after restoring from Memento: " + state);
 }