public void add(IEditorInput input){
  File file=MME.getFile(input);
  if (file != null) {
    String uri=WorkbookHistoryItem.toURI(file.getAbsolutePath());
    remove(input,uri);
    items.add(0,new WorkbookHistoryItem(input,uri,System.currentTimeMillis()));
    while (items.size() > MAX_SIZE) {
      items.remove(items.size() - 1);
    }
    lastModifiedTime=System.currentTimeMillis();
    scheduleSave();
    fireUpdated();
  }
}

public void add ( IEditorInput input ) { File file = MME . getFile ( input ) ; if ( file != null ) { String uri = WorkbookHistoryItem . toURI ( file . getAbsolutePath ( ) ) ; remove ( input , uri ) ; items . add ( 0 , new WorkbookHistoryItem ( input , uri , System . currentTimeMillis ( ) ) ) ; while ( items . size ( ) > MAX_SIZE ) { items . remove ( items . size ( ) - 1 ) ; } lastModifiedTime = System . currentTimeMillis ( ) ; scheduleSave ( ) ; fireUpdated ( ) ; } }
add editor input to this history . currently only editor inputs adaptable to a file or ifilestore are supported . other types will be considered later .
