Program: 62449
Project: 62449
Buggy source:
private JPanel createButtonsPanel(){
  JPanel panel=new JPanel(new SpringLayout());
  panel.add(createButton("String_Node_Str",TangoIcons.actions_document_new(TangoIcons.Res.R22),Bundle.ToolTipNewOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor newOperatorSpi=new ToolAdapterOperatorDescriptor(ToolAdapterConstants.OPERATOR_NAMESPACE + "String_Node_Str",ToolAdapterOp.class,"String_Node_Str",null,null,null,null,null,null);
    AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),newOperatorSpi,true);
    dialog.show();
    refreshContent();
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_edit_copy(TangoIcons.Res.R22),Bundle.ToolTipCopyOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      String opName=operatorDesc.getName();
      int newNameIndex=0;
      while (GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(opName) != null) {
        newNameIndex++;
        opName=operatorDesc.getName() + ToolAdapterConstants.OPERATOR_GENERATED_NAME_SEPARATOR + newNameIndex;
      }
      ToolAdapterOperatorDescriptor newOperator=new ToolAdapterOperatorDescriptor(operatorDesc,opName,opName);
      AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),newOperator,newNameIndex);
      dialog.show();
      refreshContent();
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.apps_accessories_text_editor(TangoIcons.Res.R22),Bundle.ToolTipEditOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),operatorDesc,false);
      dialog.show();
      refreshContent();
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_edit_clear(TangoIcons.Res.R22),Bundle.ToolTipDeleteOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDescriptor=requestSelection();
    if (operatorDescriptor != null) {
      if (Dialogs.Answer.YES == Dialogs.requestDecision(Bundle.MessageConfirmRemoval_TitleText(),Bundle.MessageConfirmRemoval_Text(),true,Bundle.MessageConfirmRemovalDontAsk_Text())) {
        if (operatorDescriptor.isFromPackage()) {
          Dialogs.showWarning(String.format(Bundle.MessagePackageModules_Text(),operatorDescriptor.getName()));
        }
 else {
          ToolAdapterIO.removeOperator(operatorDescriptor);
        }
        refreshContent();
      }
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_media_playback_start(TangoIcons.Res.R22),Bundle.ToolTipExecuteOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      final ToolAdapterExecutionDialog operatorDialog=new ToolAdapterExecutionDialog(operatorDesc,appContext,operatorDesc.getLabel());
      operatorDialog.show();
    }
  }
));
  makeCompactGrid(panel,1,5,0,0,DEFAULT_PADDING,DEFAULT_PADDING);
  return panel;
}

Fixed version (ground truth):
private JPanel createButtonsPanel(){
  JPanel panel=new JPanel(new SpringLayout());
  panel.add(createButton("String_Node_Str",TangoIcons.actions_document_new(TangoIcons.Res.R22),Bundle.ToolTipNewOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor newOperatorSpi=new ToolAdapterOperatorDescriptor(ToolAdapterConstants.OPERATOR_NAMESPACE + "String_Node_Str",ToolAdapterOp.class,"String_Node_Str",null,null,null,null,null,null);
    AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),newOperatorSpi,OperationType.NEW);
    dialog.show();
    refreshContent();
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_edit_copy(TangoIcons.Res.R22),Bundle.ToolTipCopyOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      String opName=operatorDesc.getName();
      int newNameIndex=0;
      while (GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(opName) != null) {
        newNameIndex++;
        opName=operatorDesc.getName() + ToolAdapterConstants.OPERATOR_GENERATED_NAME_SEPARATOR + newNameIndex;
      }
      AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),operatorDesc,newNameIndex,OperationType.COPY);
      dialog.show();
      refreshContent();
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.apps_accessories_text_editor(TangoIcons.Res.R22),Bundle.ToolTipEditOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),operatorDesc,OperationType.EDIT);
      dialog.show();
      refreshContent();
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_edit_clear(TangoIcons.Res.R22),Bundle.ToolTipDeleteOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDescriptor=requestSelection();
    if (operatorDescriptor != null) {
      if (Dialogs.Answer.YES == Dialogs.requestDecision(Bundle.MessageConfirmRemoval_TitleText(),Bundle.MessageConfirmRemoval_Text(),true,Bundle.MessageConfirmRemovalDontAsk_Text())) {
        if (operatorDescriptor.isFromPackage()) {
          Dialogs.showWarning(String.format(Bundle.MessagePackageModules_Text(),operatorDescriptor.getName()));
        }
 else {
          ToolAdapterIO.removeOperator(operatorDescriptor);
        }
        refreshContent();
      }
    }
  }
));
  panel.add(createButton("String_Node_Str",TangoIcons.actions_media_playback_start(TangoIcons.Res.R22),Bundle.ToolTipExecuteOperator_Text(),e -> {
    ToolAdapterOperatorDescriptor operatorDesc=requestSelection();
    if (operatorDesc != null) {
      final ToolAdapterExecutionDialog operatorDialog=new ToolAdapterExecutionDialog(operatorDesc,appContext,operatorDesc.getLabel());
      operatorDialog.show();
    }
  }
));
  makeCompactGrid(panel,1,5,0,0,DEFAULT_PADDING,DEFAULT_PADDING);
  return panel;
}