mirror of
https://github.com/paulscherrerinstitute/ch.psi.imagej.hdf5.git
synced 2025-04-29 17:30:05 +02:00
Refactoring config done
This commit is contained in:
parent
e747ef9a87
commit
a373c6198c
@ -4,6 +4,7 @@ import ij.Prefs;
|
|||||||
import ij.gui.GenericDialog;
|
import ij.gui.GenericDialog;
|
||||||
import ij.plugin.PlugIn;
|
import ij.plugin.PlugIn;
|
||||||
|
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import java.util.regex.*;
|
import java.util.regex.*;
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
@ -49,21 +50,14 @@ public class HDF5Config implements PlugIn {
|
|||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String[] formatTokens = HDF5GroupedVarnames.parseFormatString(groupVarsByNameFormat, dollarRegexpForGrouping);
|
HDF5GroupedVarnames.parseFormatString(groupVarsByNameFormat, dollarRegexpForGrouping);
|
||||||
for (int i = 0; i < formatTokens.length; i++) {
|
|
||||||
logger.info("tok " + Integer.toString(i) + " : " + formatTokens[i]);
|
|
||||||
}
|
|
||||||
} catch (PatternSyntaxException e) {
|
} catch (PatternSyntaxException e) {
|
||||||
// produce an error dialog an start over
|
logger.log(Level.WARNING, "", e);
|
||||||
String errMsg = e.getMessage();
|
|
||||||
logger.info(errMsg);
|
|
||||||
// reset all and return a new dialog
|
|
||||||
configDiag.setVisible(false);
|
|
||||||
this.run(arg);
|
this.run(arg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Saving...");
|
logger.info("Saving configuration ...");
|
||||||
|
|
||||||
// All OK and "Save" was pressed, so save it...
|
// All OK and "Save" was pressed, so save it...
|
||||||
Prefs.set(GROUP_VARS_BY_NAME, groupVarsByName);
|
Prefs.set(GROUP_VARS_BY_NAME, groupVarsByName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user