-
Notifications
You must be signed in to change notification settings - Fork 5
/
QHAnaPlugin.js
44 lines (41 loc) · 1.37 KB
/
QHAnaPlugin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from "react";
import QHAnaExtensionModule from "./modeling";
import TransformationButton from "../../editor/ui/TransformationButton";
import ExtensibleButton from "../../editor/ui/ExtensibleButton";
import UpdateQHAnaConfigurationsButton from "./ui/UpdateQHAnaConfigurationsButton";
import QHAnaConfigTab from "./configTabs/QHAnaConfigTab";
import { startQHAnaReplacementProcess } from "./replacement/QHAnaTransformationHandler";
import qhanaStyles from "./resources/styling/qhana-icons.css";
let qhanaModdleDescriptor = require("./resources/qhana-extension.json");
/**
* Plugin Object of the QHAna extension. Used to register the plugin in the plugin handler of the modeler.
*/
export default {
name: "qhana",
buttons: [
<ExtensibleButton
subButtons={[<UpdateQHAnaConfigurationsButton />]}
title="QHAna"
styleClass="qwm-qhana-service-task"
description="Show buttons of the QHAna plugin"
/>,
],
configTabs: [
{
tabId: "QHAnaEndpointsTab",
tabTitle: "QHAna Plugin",
configTab: QHAnaConfigTab,
},
],
extensionModule: QHAnaExtensionModule,
moddleDescription: qhanaModdleDescriptor,
styling: [qhanaStyles],
transformExtensionButton: (
<TransformationButton
name="QHAna Transformation"
transformWorkflow={async (xml) => {
return await startQHAnaReplacementProcess(xml);
}}
/>
),
};