Program: 133482
Project: 133482
Buggy source:
/** 
 * This method creates a Local/Remote file browser button for  an Entry with the Executable AllowedValueType. 
 */
private void createExecutableBrowser(){
  boolean redraw=buttons.isEmpty();
  if (redraw) {
    Button browseButton=new Button(this,SWT.PUSH);
    browseButton.setText("String_Node_Str");
    browseButton.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent e){
        String entryValue=null;
        MessageDialog dialog=new MessageDialog(getShell(),"String_Node_Str",null,"String_Node_Str",MessageDialog.QUESTION_WITH_CANCEL,new String[]{"String_Node_Str","String_Node_Str"},0);
        int result=dialog.open();
        if (result == 1) {
          RemoteResourceBrowser browser=new RemoteResourceBrowser(getShell(),SWT.NONE);
          browser.setTitle("String_Node_Str");
          browser.setType(RemoteResourceBrowser.FILE_BROWSER);
          if (browser.open() != Window.OK) {
            return;
          }
          IFileStore fs=browser.getResource();
          entryValue=fs.toURI().toString();
        }
 else {
          FileDialog fileDialog=new FileDialog(getShell());
          fileDialog.setText("String_Node_Str");
          String filePath=fileDialog.open();
          if (filePath != null) {
            File importedFile=new File(filePath);
            entryValue=importedFile.toURI().toString();
          }
        }
        if (entryValue != null && !entryValue.isEmpty()) {
          IEntryContentProvider prov=new BasicEntryContentProvider();
          ArrayList<String> valueList=entry.getAllowedValues();
          if (!valueList.contains(entryValue)) {
            valueList.add(entryValue);
          }
          prov.setAllowedValueType(AllowedValueType.Executable);
          prov.setAllowedValues(valueList);
          entry.setContentProvider(prov);
          setEntryValue(entryValue);
        }
        notifyListeners(SWT.Selection,new Event());
        return;
      }
    }
);
    buttons.add(browseButton);
  }
}

Fixed version (ground truth):
/** 
 * This method creates a Local/Remote file browser button for  an Entry with the Executable AllowedValueType. 
 */
private void createExecutableBrowser(){
  boolean redraw=buttons.isEmpty();
  if (redraw) {
    Button browseButton=new Button(this,SWT.PUSH);
    browseButton.setText("String_Node_Str");
    browseButton.addSelectionListener(new SelectionAdapter(){
      @Override public void widgetSelected(      SelectionEvent e){
        String entryValue=null;
        MessageDialog dialog=new MessageDialog(getShell(),"String_Node_Str",null,"String_Node_Str",MessageDialog.QUESTION_WITH_CANCEL,new String[]{"String_Node_Str","String_Node_Str"},0);
        int result=dialog.open();
        if (result == 1) {
          RemoteResourceBrowser browser=new RemoteResourceBrowser(getShell(),SWT.NONE);
          browser.setTitle("String_Node_Str");
          browser.setType(RemoteResourceBrowser.FILE_BROWSER);
          if (browser.open() != Window.OK) {
            return;
          }
          IFileStore fs=browser.getResource();
          String hostName=browser.getConnection().getService(IRemoteConnectionHostService.class).getHostname();
          URI uri=fs.toURI();
          entryValue=uri.getScheme() + "String_Node_Str" + hostName+ uri.getPath();
        }
 else {
          FileDialog fileDialog=new FileDialog(getShell());
          fileDialog.setText("String_Node_Str");
          String filePath=fileDialog.open();
          if (filePath != null) {
            File importedFile=new File(filePath);
            entryValue=importedFile.toURI().toString();
          }
        }
        if (entryValue != null && !entryValue.isEmpty()) {
          IEntryContentProvider prov=new BasicEntryContentProvider();
          ArrayList<String> valueList=entry.getAllowedValues();
          if (!valueList.contains(entryValue)) {
            valueList.add(entryValue);
          }
          prov.setAllowedValueType(AllowedValueType.Executable);
          prov.setAllowedValues(valueList);
          entry.setContentProvider(prov);
          setEntryValue(entryValue);
        }
        notifyListeners(SWT.Selection,new Event());
        return;
      }
    }
);
    buttons.add(browseButton);
  }
}