Button openButton = new Button(buttonComposite, SWT.PUSH); openButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL)); openButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_OpenEditor_label")); openButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { openEditor();
Button createMarkersButton = new Button(buttonComposite, SWT.PUSH); createMarkersButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL)); createMarkersButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_CreateMarkers_label")); createMarkersButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { createMarkers();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/editor/ProblemEditorPart.java File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/editor/ProblemEditorPart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Button openButton = new Button(buttonComposite, SWT.PUSH);
1
Button createMarkersButton = new Button(buttonComposite, SWT.PUSH);
2
      openButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));
2
      createMarkersButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));
3
      openButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_OpenEditor_label"));
3
      createMarkersButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_CreateMarkers_label"));
4
      openButton.addSelectionListener(new SelectionAdapter()
4
      createMarkersButton.addSelectionListener(new SelectionAdapter()
5
        {
5
        {
6
          @Override
6
          @Override
7
          public void widgetSelected(SelectionEvent e)
7
          public void widgetSelected(SelectionEvent e)
8
          {
8
          {
9
            openEditor();
9
            createMarkers();
10
          
10
          
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