okBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String name;
TestPropertyHolder sourceStep = (TestPropertyHolder) sourceStepCombo.getSelectedItem();
if (sourceStep == PropertyExpansionUtils.getGlobalProperties()) {
name = PropertyExpansion.GLOBAL_REFERENCE;
} else if (sourceStep == parent.getTestCase().getTestSuite().getProject()) {
name = PropertyExpansion.PROJECT_REFERENCE;
} else if (sourceStep == parent.getTestCase().getTestSuite()) {
name = PropertyExpansion.TESTSUITE_REFERENCE;
} else if (sourceStep == parent.getTestCase()) {
name = PropertyExpansion.TESTCASE_REFERENCE;
} else {
name = sourceStep.getModelItem().getName();
}
badTransfer.setTargetStepName(name);
badTransfer.setTargetPropertyName((String) propertiesCombo.getSelectedItem());