Skip to content
Snippets Groups Projects
Commit d5ab2a00 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

feature: iss1098 - new job

Job subdirectory -> Job working directory
Input -> Input data location (same for output)
Copying config.yaml
titles added
parent 122c77ed
No related branches found
No related tags found
No related merge requests found
...@@ -187,11 +187,12 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl ...@@ -187,11 +187,12 @@ public class BenchmarkSPIMControl extends BorderPane implements CloseableControl
@Override @Override
public void run() { public void run() {
Alert al = new Alert(AlertType.CONFIRMATION, Alert al = new Alert(AlertType.CONFIRMATION,
"Main file \"" + CONFIG_YAML + "\" found in input directory \"" "The file \"" + CONFIG_YAML + "\" found in the defined data input directory \""
+ job.getInputDirectory() + job.getInputDirectory()
+ "\". Would you like to copy it into job subdirectory \"" + "\". Would you like to copy it into the job working directory \""
+ job.getDirectory() + "\"?", + job.getDirectory() + "\"?",
ButtonType.YES, ButtonType.NO); ButtonType.YES, ButtonType.NO);
al.setHeaderText(null); al.setHeaderText(null);
al.setTitle("Copy " + CONFIG_YAML + "?"); al.setTitle("Copy " + CONFIG_YAML + "?");
al.getDialogPane().setMinHeight(Region.USE_PREF_SIZE); al.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TitledPane?> <?import javafx.scene.control.TitledPane?>
<?import javafx.scene.control.ToggleGroup?> <?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?> <?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?> <?import javafx.scene.layout.HBox?>
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
<center> <center>
<VBox BorderPane.alignment="CENTER"> <VBox BorderPane.alignment="CENTER">
<children> <children>
<TitledPane animated="false" collapsible="false" text="Input"> <TitledPane animated="false" collapsible="false" text="Input data location">
<content> <content>
<AnchorPane> <AnchorPane>
<children> <children>
...@@ -27,13 +28,19 @@ ...@@ -27,13 +28,19 @@
<ToggleGroup fx:id="tg_inputDataLocation" /> <ToggleGroup fx:id="tg_inputDataLocation" />
</toggleGroup> </toggleGroup>
<graphic> <graphic>
<Label maxHeight="1.7976931348623157E308" text="Demonstration data on IT4I cluster" /> <Label maxHeight="1.7976931348623157E308" text="Demonstration data on the Salomon IT4I cluster" />
</graphic> </graphic>
<tooltip>
<Tooltip text="Demonstration data located on the Salomon IT4I cluster will be used and there will be created config.yaml in the job working directory." />
</tooltip>
</RadioButton> </RadioButton>
<RadioButton maxHeight="1.7976931348623157E308" mnemonicParsing="false" toggleGroup="$tg_inputDataLocation"> <RadioButton maxHeight="1.7976931348623157E308" mnemonicParsing="false" toggleGroup="$tg_inputDataLocation">
<graphic> <graphic>
<Label maxHeight="1.7976931348623157E308" text="Job subdirectory" /> <Label maxHeight="1.7976931348623157E308" text="Job working directory" />
</graphic> </graphic>
<tooltip>
<Tooltip text="Job working directory will be used as location for input data. Data and config.yaml will be needed to copy into it." />
</tooltip>
</RadioButton> </RadioButton>
<RadioButton fx:id="rb_ownInput" mnemonicParsing="false" toggleGroup="$tg_inputDataLocation"> <RadioButton fx:id="rb_ownInput" mnemonicParsing="false" toggleGroup="$tg_inputDataLocation">
<graphic> <graphic>
...@@ -44,6 +51,9 @@ ...@@ -44,6 +51,9 @@
</children> </children>
</HBox> </HBox>
</graphic> </graphic>
<tooltip>
<Tooltip text="External directory will be used as location for the input data. The file config.yaml could be automaticaly copied from the directory into the job working directory." />
</tooltip>
</RadioButton> </RadioButton>
</children> </children>
</VBox> </VBox>
...@@ -51,7 +61,7 @@ ...@@ -51,7 +61,7 @@
</AnchorPane> </AnchorPane>
</content> </content>
</TitledPane> </TitledPane>
<TitledPane animated="false" collapsible="false" text="Output"> <TitledPane animated="false" collapsible="false" text="Output data location">
<content> <content>
<AnchorPane minHeight="0.0" minWidth="0.0"> <AnchorPane minHeight="0.0" minWidth="0.0">
<children> <children>
...@@ -64,7 +74,7 @@ ...@@ -64,7 +74,7 @@
<ToggleGroup fx:id="tg_outputDataLocation" /> <ToggleGroup fx:id="tg_outputDataLocation" />
</toggleGroup> </toggleGroup>
<graphic> <graphic>
<Label maxHeight="1.7976931348623157E308" text="Job subdirectory" /> <Label maxHeight="1.7976931348623157E308" text="Job working directory" />
</graphic> </graphic>
</RadioButton> </RadioButton>
</children> </children>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment