Program: 77879
Project: 77879
Buggy source:
protected Control createContents(Composite parent){
  Composite mainComposite=new Composite(parent,SWT.NONE);
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=2;
  data.verticalSpan=5;
  GridLayout layout=new GridLayout();
  mainComposite.setLayout(layout);
  Group sqlDataSetGroup=new Group(mainComposite,SWT.NONE);
  sqlDataSetGroup.setLayout(layout);
  sqlDataSetGroup.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  sqlDataSetGroup.setLayoutData(data);
  sqlDataSetGroup.setEnabled(true);
  maxDisplaySchemaEditor=new IntegerFieldEditor(USER_MAX_NUM_OF_SCHEMA,"String_Node_Str",sqlDataSetGroup);
  Label lab=maxDisplaySchemaEditor.getLabelControl(sqlDataSetGroup);
  lab.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  maxDisplaySchemaEditor.setPage(this);
  maxDisplaySchemaEditor.setTextLimit(Integer.toString(MAX_MAX_ROW).length());
  maxDisplaySchemaEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
  maxDisplaySchemaEditor.setValidRange(0,MAX_MAX_ROW);
  maxDisplaySchemaEditor.setPropertyChangeListener(new IPropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent event){
      if (event.getProperty().equals(FieldEditor.IS_VALID))       setValid(maxDisplaySchemaEditor.isValid());
    }
  }
);
  maxDisplaySchemaEditor.setErrorMessage(JdbcPlugin.getFormattedString("String_Node_Str",new Object[]{new Integer(MAX_MAX_ROW)}));
  String defaultMaxSchema=JdbcPlugin.getDefault().getPluginPreferences().getString(USER_MAX_NUM_OF_SCHEMA);
  if (defaultMaxSchema == null || defaultMaxSchema.trim().length() <= 0) {
    defaultMaxSchema=String.valueOf(DEFAULT_MAX_NUM_OF_SCHEMA);
  }
  maxDisplaySchemaEditor.setStringValue(defaultMaxSchema);
  maxDisplayTableEditor=new IntegerFieldEditor(USER_MAX_NUM_OF_TABLE_EACH_SCHEMA,"String_Node_Str",sqlDataSetGroup);
  lab=maxDisplayTableEditor.getLabelControl(sqlDataSetGroup);
  lab.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  maxDisplayTableEditor.setPage(this);
  maxDisplayTableEditor.setTextLimit(Integer.toString(MAX_MAX_ROW).length());
  maxDisplayTableEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
  maxDisplayTableEditor.setValidRange(0,MAX_MAX_ROW);
  maxDisplayTableEditor.setPropertyChangeListener(new IPropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent event){
      if (event.getProperty().equals(FieldEditor.IS_VALID))       setValid(maxDisplayTableEditor.isValid());
    }
  }
);
  maxDisplayTableEditor.setErrorMessage(JdbcPlugin.getFormattedString("String_Node_Str",new Object[]{new Integer(MAX_MAX_ROW)}));
  String defaultMaxTable=JdbcPlugin.getDefault().getPluginPreferences().getString(USER_MAX_NUM_OF_TABLE_EACH_SCHEMA);
  if (defaultMaxTable == null || defaultMaxTable.trim().length() <= 0) {
    defaultMaxTable=String.valueOf(DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA);
  }
  maxDisplayTableEditor.setStringValue(defaultMaxTable);
  return mainComposite;
}

Fixed version (ground truth):
protected Control createContents(Composite parent){
  Composite mainComposite=new Composite(parent,SWT.NONE);
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=2;
  data.verticalSpan=5;
  GridLayout layout=new GridLayout();
  mainComposite.setLayout(layout);
  Group sqlDataSetGroup=new Group(mainComposite,SWT.NONE);
  sqlDataSetGroup.setLayout(layout);
  sqlDataSetGroup.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  sqlDataSetGroup.setLayoutData(data);
  sqlDataSetGroup.setEnabled(true);
  maxDisplaySchemaEditor=new IntegerFieldEditor(USER_MAX_NUM_OF_SCHEMA,"String_Node_Str",sqlDataSetGroup);
  Label lab=maxDisplaySchemaEditor.getLabelControl(sqlDataSetGroup);
  lab.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  maxDisplaySchemaEditor.setPage(this);
  maxDisplaySchemaEditor.setTextLimit(Integer.toString(MAX_MAX_ROW).length());
  maxDisplaySchemaEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
  maxDisplaySchemaEditor.setValidRange(0,MAX_MAX_ROW);
  maxDisplaySchemaEditor.setPropertyChangeListener(new IPropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent event){
      if (event.getProperty().equals(FieldEditor.IS_VALID))       setValid(maxDisplaySchemaEditor.isValid());
    }
  }
);
  maxDisplaySchemaEditor.setErrorMessage(JdbcPlugin.getFormattedString("String_Node_Str",new Object[]{new Integer(MAX_MAX_ROW)}));
  String defaultMaxSchema=JdbcPlugin.getDefault().getPluginPreferences().getString(USER_MAX_NUM_OF_SCHEMA);
  if (defaultMaxSchema == null || defaultMaxSchema.trim().length() <= 0) {
    defaultMaxSchema=String.valueOf(DEFAULT_MAX_NUM_OF_SCHEMA);
  }
  maxDisplaySchemaEditor.setStringValue(defaultMaxSchema);
  maxDisplayTableEditor=new IntegerFieldEditor(USER_MAX_NUM_OF_TABLE_EACH_SCHEMA,"String_Node_Str",sqlDataSetGroup);
  lab=maxDisplayTableEditor.getLabelControl(sqlDataSetGroup);
  lab.setText(JdbcPlugin.getResourceString("String_Node_Str"));
  maxDisplayTableEditor.setPage(this);
  maxDisplayTableEditor.setTextLimit(Integer.toString(MAX_MAX_ROW).length());
  maxDisplayTableEditor.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE);
  maxDisplayTableEditor.setValidRange(0,MAX_MAX_ROW);
  maxDisplayTableEditor.setPropertyChangeListener(new IPropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent event){
      if (event.getProperty().equals(FieldEditor.IS_VALID))       setValid(maxDisplayTableEditor.isValid());
    }
  }
);
  maxDisplayTableEditor.setErrorMessage(JdbcPlugin.getFormattedString("String_Node_Str",new Object[]{new Integer(MAX_MAX_ROW)}));
  String defaultMaxTable=JdbcPlugin.getDefault().getPluginPreferences().getString(USER_MAX_NUM_OF_TABLE_EACH_SCHEMA);
  if (defaultMaxTable == null || defaultMaxTable.trim().length() <= 0) {
    defaultMaxTable=String.valueOf(DEFAULT_MAX_NUM_OF_TABLE_EACH_SCHEMA);
  }
  maxDisplayTableEditor.setStringValue(defaultMaxTable);
  Utility.setSystemHelp(mainComposite,IHelpConstants.CONEXT_ID_PREFERENCE_DATASET_JDBC);
  return mainComposite;
}