예제 #1
0
 /**
  * Restore the most-recently-used history from the given memento.
  *
  * @param memento the memento to restore the mru history from
  */
 public IStatus restoreState(IMemento memento) {
   IMemento[] mementos = memento.getChildren(IWorkbenchConstants.TAG_FILE);
   for (int i = 0; i < mementos.length; i++) {
     EditorHistoryItem item = new EditorHistoryItem(mementos[i]);
     if (!"".equals(item.getName())
         || !"".equals(item.getToolTipText())) { // $NON-NLS-1$ //$NON-NLS-2$
       add(item, fifoList.size());
     }
   }
   return Status.OK_STATUS;
 }