if(!result.equals("")) {
if(result != null) {
      public void widgetSelected(SelectionEvent e) {        DirectoryDialog dialog = new DirectoryDialog (shell);        dialog.setMessage("Choose the location for iRATE downloads -- The directory 'irate' will be created in this location");        String result = dialog.open();        if(!result.equals("")) {          txtDirectory.setText(result);        }      }