PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS; Integer button = new Integer(MouseEvent.BUTTON1); AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button); AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button); AShapeUtil.addMouseEventBlock(containerAShape, false, new Integer( MouseEvent.MOUSE_MOVED)); return root;
PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS; Integer button = new Integer(MouseEvent.BUTTON1); AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button); AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button); AShapeUtil.addMouseEventBlock(outlineAShape, false, new Integer( MouseEvent.MOUSE_MOVED)); return root;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/AShapeCreator.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/calendar/AShapeCreator.java
Method name: RootAShape createDarkGrayShape() Method name: RootAShape createTraslucentShapeHorizontal()
Number of AST nodes: 6 Number of AST nodes: 6
1
PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS;

		Integer button = new Integer(MouseEvent.BUTTON1);

		AShapeUtil.addMouseFireEvent(containerAShape, trigger,
				DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);

		AShapeUtil.addMouseFireEvent(containerAShape, trigger,
				DefaultDateArea.AE_DRAG_PRESSED, true, true, button);

		AShapeUtil.addMouseEventBlock(containerAShape, false, new Integer(
				MouseEvent.MOUSE_MOVED));

		return root;
1
PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS;
		Integer button = new Integer(MouseEvent.BUTTON1);
		AShapeUtil.addMouseFireEvent(outlineAShape, trigger,
				DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
		AShapeUtil.addMouseFireEvent(outlineAShape, trigger,
				DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
		AShapeUtil.addMouseEventBlock(outlineAShape, false, new Integer(
				MouseEvent.MOUSE_MOVED));

		return root;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons26
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    45
    PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS;
    25
    PropertyKey trigger = MouseKeyInteractor.MOUSE_PRESS;
    46
    Integer button = new Integer(MouseEvent.BUTTON1);
    26
    Integer button = new Integer(MouseEvent.BUTTON1);
    47
    AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    47
    AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    27
    AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    Differences
    Expression1Expression2Difference
    containerAShapeoutlineAShapeVARIABLE_NAME_MISMATCH
    com.miginfocom.ashape.shapes.ContainerAShapecom.miginfocom.ashape.shapes.DrawAShapeSUBCLASS_TYPE_MISMATCH
    27
    AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_SELECTED_PRESSED, true, false, button);
    48
    AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    48
    AShapeUtil.addMouseFireEvent(containerAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    28
    AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    Differences
    Expression1Expression2Difference
    containerAShapeoutlineAShapeVARIABLE_NAME_MISMATCH
    com.miginfocom.ashape.shapes.ContainerAShapecom.miginfocom.ashape.shapes.DrawAShapeSUBCLASS_TYPE_MISMATCH
    28
    AShapeUtil.addMouseFireEvent(outlineAShape, trigger, DefaultDateArea.AE_DRAG_PRESSED, true, true, button);
    49
    AShapeUtil.addMouseEventBlock(containerAShape, false, new Integer(MouseEvent.MOUSE_MOVED));
    49
    AShapeUtil.addMouseEventBlock(containerAShape, false, new Integer(MouseEvent.MOUSE_MOVED));
    29
    AShapeUtil.addMouseEventBlock(outlineAShape, false, new Integer(MouseEvent.MOUSE_MOVED));
    Differences
    Expression1Expression2Difference
    containerAShapeoutlineAShapeVARIABLE_NAME_MISMATCH
    com.miginfocom.ashape.shapes.ContainerAShapecom.miginfocom.ashape.shapes.DrawAShapeSUBCLASS_TYPE_MISMATCH
    29
    AShapeUtil.addMouseEventBlock(outlineAShape, false, new Integer(MouseEvent.MOUSE_MOVED));
    50
    return root;
    30
    return root;
    Precondition Violations (0)
    Row Violation