use of org.talend.dataprofiler.core.ui.action.actions.CreateAnalysisOnHDFSAction in project tdq-studio-se by Talend.
the class CreateAnalysisOnHDFSActionProvider method fillContextMenu.
@Override
public void fillContextMenu(IMenuManager menu) {
if (!isShowMenu()) {
return;
}
AbstractSvnRepositoryService svnReposService = GlobalServiceRegister.getDefault().getSvnRepositoryService(AbstractSvnRepositoryService.class);
if (svnReposService != null && svnReposService.isReadonly()) {
return;
}
RepositoryNode node = (RepositoryNode) getFirstRepositoryNode();
if (node != null) {
IAction action = null;
if (node instanceof HDFSOfHCConnectionNode) {
action = new CreateAnalysisOnHDFSAction(node);
menu.add(action);
}
}
}
Aggregations