Skip to content

Commit 7e5ae13

Browse files
committed
Change default file paths.
1 parent 8408eef commit 7e5ae13

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

swan-assist/src/main/java/de/fraunhofer/iem/swan/assist/ui/dialog/RunAnalysisDialog.form

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
170170
</constraints>
171171
<properties>
172+
<selected value="true"/>
172173
<text resource-bundle="dialog_messages" key="Launcher.wekaRadioButton"/>
173174
</properties>
174175
</component>

swan-assist/src/main/java/de/fraunhofer/iem/swan/assist/ui/dialog/RunAnalysisDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ public RunAnalysisDialog(Project project, boolean modal) {
8787
File configurationFile = new File(JSONFileLoader.getConfigurationFile(true));
8888

8989
//Use value for source path, if available. Otherwise set the default path
90-
if (!PropertiesComponent.getInstance(project).isValueSet(Constants.SOURCE_DIRECTORY))
91-
sourceDirTextbox.setText(project.getBasePath());
90+
if (PropertiesComponent.getInstance(project).isValueSet(Constants.SOURCE_DIRECTORY))
91+
sourceDirTextbox.setText(project.getBasePath()+"/target");
9292
else
9393
sourceDirTextbox.setText(PropertiesComponent.getInstance(project).getValue(Constants.SOURCE_DIRECTORY));
9494

9595
//Use value for the output path, if available. Otherwise set the default path
96-
if (!PropertiesComponent.getInstance(project).isValueSet(Constants.OUTPUT_DIRECTORY))
96+
if (PropertiesComponent.getInstance(project).isValueSet(Constants.OUTPUT_DIRECTORY))
9797
outputDir.setText(project.getBasePath() + File.separator + config.getProperty("output_dir_name"));
9898
else
9999
outputDir.setText(PropertiesComponent.getInstance(project).getValue(Constants.OUTPUT_DIRECTORY));

swan-assist/src/main/resources/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
log_suffix = _swanassist_log.txt
2-
output_dir_name = swan-assist
2+
output_dir_name = out
33
output_json_suffix = swan_assist_results.json
44
input_json_suffix = config_input.json
55
train_config_file = trainingmethods.json

0 commit comments

Comments
 (0)