0

Im using a DirectoryDialog like this:

public static String showDialog(Composite parent, String path)
{
    log.debug("Showing submission directory dialog");
    Shell shell = parent.getShell();
    DirectoryDialog dialog = new DirectoryDialog(shell);
    dialog.setFilterPath(path);
    return dialog.open();
}

Works fine, but the view is not showing the directory provided by the path. It is selected but not shown:

One Should be something like this: Two

Any ideas? Thanks in advance!

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
RoodRallec
  • 57
  • 1
  • 1
  • 7

1 Answers1

0

IMHO it is not possible. These are native dialogs of underlying OS, so the behaviour of these dialogs may change one OS to other.

Automatic scrolling to the selected folder may not possible.

Also check whether it works: Open DirectoryDialog and hide the hidden folders, so automatically the filter folder will be visible.

Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
  • open the notepad and click on open file then in the window you can customize the view like show in list, details, add or remove column etc. Right click on this area check some option here. I am on Ubuntu not able to guide you exactly with screenshot. Check this image http://i.imgur.com/SftoFYe.jpg – Chandrayya G K Feb 24 '15 at 13:19
  • Ah you mean Windows specific. This doesn't change anything at all, but thanks for your effort – RoodRallec Feb 24 '15 at 14:44