public void onOpenFile(OpenFileEvent event) {
FileModel model=event.getModel();
if(!model.isFolder()){
open(model.getId(), null);
if(model.getOwner().equals(context.getUser().getUid())){
History.newItem(new PlacePath().toApp(App.Document)
.toDocType(DocType.MyDoc)
.toDocId(model.getId()).create().getToken(), false);
}else{
History.newItem(new PlacePath().toApp(App.Document)
.toDocType(DocType.SharedDoc)
.toDocId(model.getId())
.create().getToken(), false);
}
}