Menu fileMenu = new FileMenu(fileManagerPresenter)
.getFileMenu();
final MenuItem referMenuItem = getReferMenuItem(false);
fileMenu.add(new SeparatorMenuItem());
fileMenu.add(referMenuItem);
fileMenu.addBeforeShowHandler(new BeforeShowHandler() {
@Override
public void onBeforeShow(BeforeShowEvent event) {
if(getMyTreeGrid().getSelectionModel().getSelectedItem().isFolder()){
referMenuItem.setEnabled(false);
}else{