changeset 6:02f9b0b69300

7901931: JFileChooserOperator.enterSubDir does not navigate to sub directory Contributed-by: vikrant.v.agarwal@oracle.com
author shurailine
date Mon, 21 Aug 2017 11:21:34 -0700
parents 61ae5c91ea82
children f13513b40f2d
files src/org/netbeans/jemmy/operators/JFileChooserOperator.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/netbeans/jemmy/operators/JFileChooserOperator.java	Mon Aug 21 11:15:47 2017 -0700
+++ b/src/org/netbeans/jemmy/operators/JFileChooserOperator.java	Mon Aug 21 11:21:34 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -543,6 +543,7 @@
      * @return new current directory
      */
     public File enterSubDir(String dir, StringComparator comparator) {
+        setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
         getQueueTool().waitEmpty();
         selectFile(dir, comparator);
         int index = findFileIndex(dir, comparator);