Program: 140663
Project: 140663
Buggy source:
protected void createPart(Composite parent){
  GridLayout layout=new GridLayout();
  layout.numColumns=2;
  parent.setLayout(layout);
  boolean compositeEnable=!(dbType.getHostName() == null);
  Label label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text hostNameText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  hostNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    hostNameText.setText(dbType.getHostName());
  }
  label.setEnabled(compositeEnable);
  hostNameText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getPort() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text portText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  portText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    portText.setText(dbType.getPort());
  }
  label.setEnabled(compositeEnable);
  portText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getDBName() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text databaseNameText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  databaseNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    databaseNameText.setText(dbType.getDBName());
  }
  label.setEnabled(compositeEnable);
  databaseNameText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getParamSeprator() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text parameterText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  parameterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  parameterText.setText(PluginConstant.EMPTY_STRING);
  parameterText.setEnabled(compositeEnable);
  label.setEnabled(compositeEnable);
  parameterText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getDataSource() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text dataSourceText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  dataSourceText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    dataSourceText.setText(dbType.getDataSource());
  }
  label.setEnabled(compositeEnable);
  dataSourceText.setEnabled(compositeEnable);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  urlText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  urlText.setEditable(false);
  urlText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  urlText.setText(getConnectionURL());
  dataSourceText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  hostNameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  portText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  portText.addKeyListener(new KeyAdapter(){
    public void keyReleased(    KeyEvent e){
      Long portValue=null;
      try {
        portValue=new Long(portText.getText());
      }
 catch (      NumberFormatException e1) {
      }
      if (portValue == null || portValue <= 0) {
        portText.setText(PluginConstant.EMPTY_STRING);
      }
    }
  }
);
  databaseNameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
      SupportDBUrlStore.getInstance().changeAllDBNmae(databaseNameText.getText());
    }
  }
);
  parameterText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
}

Fixed version (ground truth):
protected void createPart(Composite parent){
  GridLayout layout=new GridLayout();
  layout.numColumns=2;
  parent.setLayout(layout);
  boolean compositeEnable=!(dbType.getHostName() == null);
  Label label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text hostNameText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  hostNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    hostNameText.setText(dbType.getHostName());
  }
  label.setEnabled(compositeEnable);
  hostNameText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getPort() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text portText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  portText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    portText.setText(dbType.getPort());
  }
  label.setEnabled(compositeEnable);
  portText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getDBName() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text databaseNameText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  databaseNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    databaseNameText.setText(dbType.getDBName());
  }
  label.setEnabled(compositeEnable);
  databaseNameText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getParamSeprator() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text parameterText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  parameterText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (dbType.getParamSeprator() != null) {
    parameterText.setText(PluginConstant.DEFAULT_PARAMETERS);
  }
 else {
    parameterText.setText(PluginConstant.EMPTY_STRING);
  }
  parameterText.setEnabled(compositeEnable);
  label.setEnabled(compositeEnable);
  parameterText.setEnabled(compositeEnable);
  compositeEnable=!(dbType.getDataSource() == null);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  final Text dataSourceText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  dataSourceText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  if (compositeEnable) {
    dataSourceText.setText(dbType.getDataSource());
  }
  label.setEnabled(compositeEnable);
  dataSourceText.setEnabled(compositeEnable);
  label=new Label(parent,SWT.NONE);
  label.setText("String_Node_Str");
  urlText=new Text(parent,SWT.BORDER | SWT.SINGLE);
  urlText.setEditable(false);
  urlText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  urlText.setText(getConnectionURL());
  dataSourceText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  hostNameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  portText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
  portText.addKeyListener(new KeyAdapter(){
    public void keyReleased(    KeyEvent e){
      Long portValue=null;
      try {
        portValue=new Long(portText.getText());
      }
 catch (      NumberFormatException e1) {
      }
      if (portValue == null || portValue <= 0) {
        portText.setText(PluginConstant.EMPTY_STRING);
      }
    }
  }
);
  databaseNameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent event){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
      SupportDBUrlStore.getInstance().changeAllDBNmae(databaseNameText.getText());
    }
  }
);
  parameterText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setConnectionURL(SupportDBUrlStore.getInstance().getDBUrl(dbType.getDBKey(),hostNameText.getText(),portText.getText(),databaseNameText.getText(),dataSourceText.getText(),parameterText.getText()));
      urlText.setText(getConnectionURL());
    }
  }
);
}