Skip to content
Snippets Groups Projects
Commit 23c013a4 authored by Tiziano Munaro's avatar Tiziano Munaro
Browse files

Remove partially implemented KISS console view

parent f312ae24
No related branches found
No related tags found
1 merge request!123[4020] KISS View to JavaFX
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<BorderPane fx:id="borderPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
<center>
<TextArea fx:id="textArea" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" />
</center>
<bottom>
<TextField fx:id="textField" onAction="#onTextFieldAction" prefHeight="100.0" prefWidth="800.0" BorderPane.alignment="CENTER" />
</bottom>
</BorderPane>
/*-------------------------------------------------------------------------+
| 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.introspection;
import org.fortiss.tooling.common.ui.javafx.layout.CompositeFXControllerBase;
import org.fortiss.tooling.kernel.service.IKernelIntrospectionSystemService;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
/**
* Controller for the KISS console view.
*
* @author munaro
*/
@SuppressWarnings("unchecked")
public class KISSConsoleFXController extends CompositeFXControllerBase<AnchorPane, Node> {
/** {@link BorderPane} containing both the {@link TextArea} and the {@link TextField}. */
@FXML
private BorderPane borderPane;
/** The displayed console content area. */
@FXML
private TextArea textArea;
/** The input text field. */
@FXML
private TextField textField;
/** The introspection service. */
private IKernelIntrospectionSystemService kiss;
/** {@inheritDoc} */
@Override
public String getFXMLLocation() {
return "KISSConsole.fxml";
}
/** Executes the command entered in the text field. */
@FXML
private void onTextFieldAction() {
String cmd = textField.getText();
// kiss.executeConsoleCommand(cmd);
textField.setText("");
}
/** {@inheritDoc} */
@Override
public void initialize() {
kiss = IKernelIntrospectionSystemService.getInstance();
// textArea.setText(kiss.getConsoleContent());
}
}
/*******************************************************************************
* Copyright (c) 2017, 2018 fortiss GmbH.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*******************************************************************************/
package org.fortiss.tooling.kernel.ui.introspection;
import org.fortiss.tooling.common.ui.javafx.AF3FXViewPart;
/** {@link AF3FXViewPart} for the KISS console feature. */
public final class KISSConsoleFXViewPart extends AF3FXViewPart {
/** Constructor. */
public KISSConsoleFXViewPart() throws Exception {
super(new KISSConsoleFXController(), null);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment