use of com.redhat.devtools.intellij.tektoncd.ui.hub.HubDialog in project intellij-tekton by redhat-developer.
the class TektonHubAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent anActionEvent, TreePath path, Object selected, Tkn tkncli) {
ActionMessage telemetry = TelemetryService.instance().action(NAME_PREFIX_CRUD + "tekton hub");
ExecHelper.submit(() -> {
ParentableNode element = getElement(selected);
Project project = getEventProject(anActionEvent);
HubModel model = new HubModel(project, tkncli, element);
telemetry.send();
UIHelper.executeInUI(() -> {
HubDialog wizard = new HubDialog(project, model);
wizard.setModal(false);
wizard.show();
return wizard;
});
});
}
Aggregations