public void configure(TestElement element) { super.configure(element); BarChart bc = (BarChart)element; xItems.setText(bc.getXAxis()); yItems.setText(bc.getYAxis()); xAxisLabel.setText(bc.getXLabel()); yAxisLabel.setText(bc.getYLabel()); caption.setText(bc.getCaption()); url.setText(bc.getURL());
if (s instanceof SoapSampler) { SoapSampler sampler = (SoapSampler) s; sampler.setURLData(urlField.getText()); sampler.setXmlData(soapXml.getText()); sampler.setXmlFile(soapXmlFile.getFilename()); sampler.setSOAPAction(soapAction.getText()); sampler.setSendSOAPAction(sendSoapAction.isSelected()); sampler.setUseKeepAlive(useKeepAlive.isSelected());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement element) {
2
        super.configure(element);
3
        BarChart bc = (BarChart)element;
4
        xItems.setText(bc.getXAxis());
5
        yItems.setText(bc.getYAxis());
6
        xAxisLabel.setText(bc.getXLabel());
7
        yAxisLabel.setText(bc.getYLabel());
8
        caption.setText(bc.getCaption());
9
        url.setText(bc.getURL
1
if (s instanceof SoapSampler) {
2
			SoapSampler sampler = (SoapSampler) s;
3
			sampler.setURLData(urlField.getText());
4
			sampler.setXmlData(soapXml.getText());
5
            sampler.setXmlFile(soapXmlFile.getFilename());
6
			sampler.setSOAPAction(soapAction.getText());
7
			sampler.setSendSOAPAction(sendSoapAction.isSelected());
10
());
8
			sampler.setUseKeepAlive(useKeepAlive.isSelected());
11
    
9
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0