Skip to content
Snippets Groups Projects
Commit 7d47ad12 authored by Alberto Debiasi's avatar Alberto Debiasi
Browse files

Add creation of Dialog with title

Change-Id: Ib9497ef1d85a25318d85e4c6a4b76ca60d2ca9c6
parent e3edc3d5
No related branches found
No related tags found
No related merge requests found
......@@ -34,16 +34,19 @@ public class DialogUtils {
public String getDirectoryNameFromDialog() throws Exception {
public String getDirectoryNameFromDialog() throws Exception {
return getDirectoryNameFromDialog("Select the directory");
}
public String getDirectoryNameFromDialog(String title) throws Exception {
final Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
final DirectoryDialog directoryDialog = new DirectoryDialog(shell);
directoryDialog.setText("Select the directory");
directoryDialog.setText(title);
directoryDialog.setFilterPath(directoryUtils.getCurrentProjectDir());
String directoryName = directoryDialog.open();
return directoryName;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment