File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/main/java/com/kodedu/config Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ protected void saveJson(JsonStructure jsonStructure) {
122122
123123 public abstract Path getConfigPath ();
124124
125+ public void loadPrevious (Path configPath , ActionEvent ... actionEvent ) {
126+ load (configPath , actionEvent );
127+ }
128+
125129 public abstract void load (Path configPath , ActionEvent ... actionEvent );
126130
127131 public void load (ActionEvent ... actionEvent ) {
@@ -159,6 +163,6 @@ public void loadPreviousConfiguration(String configDir) {
159163 String userHome = System .getProperty ("user.home" );
160164 Path resolvedConfigPath = Paths .get (userHome ).resolve (configDir ).resolve (fileName );
161165
162- load (resolvedConfigPath );
166+ loadPrevious (resolvedConfigPath );
163167 }
164168}
Original file line number Diff line number Diff line change @@ -154,6 +154,11 @@ public Path getConfigPath() {
154154 return super .resolveConfigPath ("location_config.json" );
155155 }
156156
157+ @ Override
158+ public void loadPrevious (Path configPath , ActionEvent ... actionEvent ) {
159+ // Nothing to do
160+ }
161+
157162 @ Override
158163 public void load (Path configPath , ActionEvent ... actionEvent ) {
159164
You can’t perform that action at this time.
0 commit comments