Ejemplo n.º 1
0
  @Override
  public void propertyChange(PropertyChangeEvent event) {
    // allow superclass to handle as well
    super.propertyChange(event);

    if (fInfo instanceof MultiResourceInfo) {
      MultiResourceInfo mri = (MultiResourceInfo) fInfo;
      if (event.getSource() == commandStringField) {
        mri.setToolsCommand(fTool, commandStringField.getStringValue());
        updateFields();
      } else if (event.getSource() == commandLinePatternField) {
        mri.setCommandLinePattern(fTool, commandLinePatternField.getStringValue());
      }
    } else {
      if (event.getSource() == commandStringField) {
        fTool.setToolCommand(commandStringField.getStringValue());
        updateFields();
      } else if (event.getSource() == commandLinePatternField) {
        fTool.setCommandLinePattern(commandLinePatternField.getStringValue());
      }
    }
  }