Search in sources :

Example 1 with HubDialog

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;
        });
    });
}
Also used : Project(com.intellij.openapi.project.Project) ParentableNode(com.redhat.devtools.intellij.tektoncd.tree.ParentableNode) HubDialog(com.redhat.devtools.intellij.tektoncd.ui.hub.HubDialog) ActionMessage(com.redhat.devtools.intellij.telemetry.core.service.TelemetryMessageBuilder.ActionMessage) HubModel(com.redhat.devtools.intellij.tektoncd.ui.hub.HubModel)

Aggregations

Project (com.intellij.openapi.project.Project)1 ParentableNode (com.redhat.devtools.intellij.tektoncd.tree.ParentableNode)1 HubDialog (com.redhat.devtools.intellij.tektoncd.ui.hub.HubDialog)1 HubModel (com.redhat.devtools.intellij.tektoncd.ui.hub.HubModel)1 ActionMessage (com.redhat.devtools.intellij.telemetry.core.service.TelemetryMessageBuilder.ActionMessage)1