diff --git a/org.fortiss.tooling.kernel.ui/build.properties b/org.fortiss.tooling.kernel.ui/build.properties index 18adab1cb32cf9127272831fd9b0de8a362e33e7..1554d67f7ff1243b04701de95399865c40b8da7f 100644 --- a/org.fortiss.tooling.kernel.ui/build.properties +++ b/org.fortiss.tooling.kernel.ui/build.properties @@ -5,6 +5,7 @@ output.. = build/ bin.includes = .,\ plugin.xml,\ icons/,\ - META-INF/ + META-INF/,\ + src/ src.includes = schema/,\ icons/ diff --git a/org.fortiss.tooling.kernel.ui/plugin.xml b/org.fortiss.tooling.kernel.ui/plugin.xml index 314a127591cb64707af017c6b9a0b78b003f5221..febc45db957cd4f5d4445cc34989d45decf3ffe8 100644 --- a/org.fortiss.tooling.kernel.ui/plugin.xml +++ b/org.fortiss.tooling.kernel.ui/plugin.xml @@ -54,6 +54,12 @@ name="Kernel Introspection System Service (KISS)" restorable="true"> </view> + <view + class="org.fortiss.tooling.kernel.ui.internal.views.ErrorViewFXViewPart" + id="org.fortiss.tooling.kernel.ui.internal.views.ErrorViewFXViewPart" + name="Error FXView" + restorable="true"> +</view> </extension> <extension point="org.eclipse.core.runtime.adapters"> diff --git a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayout.fxml b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayout.fxml new file mode 100644 index 0000000000000000000000000000000000000000..e5893b692dd5cbd0bb94f30437034eb7af27054c --- /dev/null +++ b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayout.fxml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<?import javafx.scene.control.Label?> +<?import javafx.scene.control.TreeTableColumn?> +<?import javafx.scene.control.TreeTableView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.Pane?> +<?import javafx.scene.text.Font?> + +<AnchorPane prefHeight="360.0" prefWidth="614.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1"> + <children> + <Pane layoutX="-81.0" layoutY="-160.0" prefHeight="367.0" prefWidth="622.0" AnchorPane.bottomAnchor="-7.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="-8.0" AnchorPane.topAnchor="0.0"> + <children> + <Label fx:id="displayLabel" layoutX="106.0" layoutY="155.0"> + <font> + <Font size="24.0" /> + </font></Label> + <TreeTableView layoutX="6.0" layoutY="30.0" prefHeight="327.0" prefWidth="595.0"> + <columns> + <TreeTableColumn fx:id="El" prefWidth="146.39999103546143" text="Element" /> + <TreeTableColumn fx:id="Ex" prefWidth="221.59999084472656" text="Explanation" /> + <TreeTableColumn fx:id="Pr" prefWidth="224.0001220703125" text="Project" /> + </columns> + </TreeTableView> + <Label layoutX="6.0" layoutY="7.0" prefHeight="17.0" prefWidth="87.0" text="Error View" wrapText="true"> + <font> + <Font name="Arial Bold Italic" size="15.0" /> + </font> + </Label> + </children> + </Pane> + </children> +</AnchorPane> diff --git a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayoutController.java b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayoutController.java new file mode 100644 index 0000000000000000000000000000000000000000..d9f35a4185b9ee3de7e24ee71e37f23c2ad1fc08 --- /dev/null +++ b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXLayoutController.java @@ -0,0 +1,68 @@ +/*-------------------------------------------------------------------------+ +| Copyright 2020 fortiss GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ +package org.fortiss.tooling.kernel.ui.internal.views; + +import org.eclipse.emf.ecore.EObject; +import org.fortiss.tooling.common.ui.javafx.layout.CompositeFXControllerBase; + +import javafx.fxml.FXML; +import javafx.scene.Node; +import javafx.scene.control.TreeTableColumn; +import javafx.scene.control.TreeTableView; + +/** + * + * Let's say hello to the world. + * + * + * + * Controller class for the "Hello world!" view. References the FXML layout and contains all control + * + * logic. + * + * + * + * @author abid + * + */ + +public class ErrorViewFXLayoutController extends CompositeFXControllerBase<Node, Node> { + + /** {@inheritDoc} */ + + /** + * {@link TreeTableView} displaying the ECU's name and safety level. + */ + @FXML + private TreeTableView<EObject> view; + + @FXML + private TreeTableColumn El; + + @Override + + public String getFXMLLocation() { + + return "ErrorViewFXLayout.fxml"; + } + + /** {@inheritDoc} */ + @Override + public void initialize() { + // TODO Auto-generated method stub + + } +} diff --git a/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXViewPart.java b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXViewPart.java new file mode 100644 index 0000000000000000000000000000000000000000..108d10374fe3ac99c04f9d6eea686bac8473d22a --- /dev/null +++ b/org.fortiss.tooling.kernel.ui/src/org/fortiss/tooling/kernel/ui/internal/views/ErrorViewFXViewPart.java @@ -0,0 +1,45 @@ +/*-------------------------------------------------------------------------+ +| Copyright 2020 fortiss GmbH | +| | +| Licensed under the Apache License, Version 2.0 (the "License"); | +| you may not use this file except in compliance with the License. | +| You may obtain a copy of the License at | +| | +| http://www.apache.org/licenses/LICENSE-2.0 | +| | +| Unless required by applicable law or agreed to in writing, software | +| distributed under the License is distributed on an "AS IS" BASIS, | +| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | +| See the License for the specific language governing permissions and | +| limitations under the License. | ++--------------------------------------------------------------------------*/ +package org.fortiss.tooling.kernel.ui.internal.views; + +import org.fortiss.tooling.common.ui.javafx.AF3FXViewPart; + +/** + * + * Let's say hello to the world. + * + * + * + * Wrapper for the {@link ErrorViewFXViewPart}. This class can be referenced in the + * + * {@code plugins.xml} file to register the view. + * + * + * + * @author abid + * + */ + +public class ErrorViewFXViewPart extends AF3FXViewPart { + + /** Constructor. */ + + public ErrorViewFXViewPart() throws Exception { + + super(new ErrorViewFXLayoutController(), null); + } + +}