if (editorToOpen != null) { 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();
if (markerUtil != null) { 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
if (editorToOpen != null)
1
if (markerUtil != null)
2
    {
2
    {
3
      Button openButton = new Button(buttonComposite, SWT.PUSH);
3
      Button createMarkersButton = new Button(buttonComposite, SWT.PUSH);
4
      openButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));
4
      createMarkersButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL));
5
      openButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_OpenEditor_label"));
5
      createMarkersButton.setText(CommonUIPlugin.getPlugin().getString("_UI_ErrorEditor_CreateMarkers_label"));
6
      openButton.addSelectionListener(new SelectionAdapter()
6
      createMarkersButton.addSelectionListener(new SelectionAdapter()
7
        {
7
        {
8
          @Override
8
          @Override
9
          public void widgetSelected(SelectionEvent e)
9
          public void widgetSelected(SelectionEvent e)
10
          {
10
          {
11
            openEditor();
11
            createMarkers();
12
          
12
          
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