diff options
author | ralph isenmann | 2020-12-15 10:58:01 +0100 |
---|---|---|
committer | ralph isenmann | 2020-12-15 10:58:01 +0100 |
commit | 169f55cde66eff5c4bbfdb6d404769969df503de (patch) | |
tree | c706100fef6c2587a6b8766ba0ac01e8adc57333 /dozentenmodul/src/main/java/org/openslx/dozmod/gui | |
parent | [client] Refactoring (diff) | |
download | tutor-module-169f55cde66eff5c4bbfdb6d404769969df503de.tar.gz tutor-module-169f55cde66eff5c4bbfdb6d404769969df503de.tar.xz tutor-module-169f55cde66eff5c4bbfdb6d404769969df503de.zip |
[client] fix directory navigation in file chooser
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java index 874a2435..fb5a8b86 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/ContainerUploadPage.java @@ -242,13 +242,12 @@ public class ContainerUploadPage extends ContainerUploadPageLayout { private static class DockerfileFilter extends FileFilter { @Override public boolean accept(File f) { - - + Pattern p = Pattern.compile("[Dd]ockerfile"); Matcher m = p.matcher(f.getName()); boolean accept = false; - if (f.isFile() && m.matches()) + if ((f.isFile() && m.matches()) || f.isDirectory()) accept = true; return accept; } |