use of org.talend.dataprofiler.core.ui.action.actions.CreateHDFSAction in project tdq-studio-se by Talend.
the class CreateHDFSActionProvider method fillContextMenu.
@Override
public void fillContextMenu(IMenuManager menu) {
// MOD mzhao user readonly role on svn repository mode.
if (!isShowMenu()) {
return;
}
// MOD mzhao user readonly role on svn repository mode.
AbstractSvnRepositoryService svnReposService = GlobalServiceRegister.getDefault().getSvnRepositoryService(AbstractSvnRepositoryService.class);
if (svnReposService != null && svnReposService.isReadonly()) {
return;
}
// MOD gdbu 2011-4-1 bug 20051
RepositoryNode node = (RepositoryNode) getFirstRepositoryNode();
if (node != null) {
// ~20051
IAction action = null;
if (node instanceof HadoopClusterConnectionRepNode || node instanceof HDFSOfHCFolderRepNode) {
action = new CreateHDFSAction(node);
menu.add(action);
}
}
}
Aggregations