CloneSet2281


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22260.969compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12211
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowNextFailureAction.java
22211
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowPreviousFailureAction.java
Clone Instance
1
Line Count
22
Source Line
11
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowNextFailureAction.java

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.junit.ui;

import org.eclipse.jface.action.Action;

class ShowNextFailureAction extends Action {

        private TestRunnerViewPart fPart;

        public ShowNextFailureAction(TestRunnerViewPart part) {
                super(JUnitMessages.ShowNextFailureAction_label);
                setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/select_next.gif")); //$NON-NLS-1$
                setHoverImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_next.gif")); //$NON-NLS-1$
                setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_next.gif")); //$NON-NLS-1$
                setToolTipText(JUnitMessages.ShowNextFailureAction_tooltip);
                fPart = part;
        }

        public void run() {
                fPart.selectNextFailure();
        }
}




Clone Instance
2
Line Count
22
Source Line
11
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowPreviousFailureAction.java

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.junit.ui;

import org.eclipse.jface.action.Action;

class ShowPreviousFailureAction extends Action {

        private TestRunnerViewPart fPart;

        public ShowPreviousFailureAction(TestRunnerViewPart part) {
                super(JUnitMessages.ShowPreviousFailureAction_label);
                setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/select_prev.gif")); //$NON-NLS-1$
                setHoverImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_prev.gif")); //$NON-NLS-1$
                setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_prev.gif")); //$NON-NLS-1$
                setToolTipText(JUnitMessages.ShowPreviousFailureAction_tooltip);
                fPart = part;
        }

        public void run() {
                fPart.selectPreviousFailure();
        }
}




Clone AbstractionParameter Count: 6Parameter Bindings

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.junit.ui;

import org.eclipse.jface.action.Action;

class [[#variable990bd700]]extends Action {
  private TestRunnerViewPart fPart;

  public [[#variable990bd700]](TestRunnerViewPart part) {
    super(JUnitMessages. [[#variable990bd680]]);
    setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor( [[#variable990bd660]])); //$NON-NLS-1$
    setHoverImageDescriptor(JUnitPlugin.getImageDescriptor( [[#variable990bd5e0]])); //$NON-NLS-1$
    setImageDescriptor(JUnitPlugin.getImageDescriptor( [[#variable990bd5e0]])); //$NON-NLS-1$
    setToolTipText(JUnitMessages. [[#variable98ebb1c0]]);
    fPart = part;
  }

  public void run() {
    fPart. [[#variable990bd5c0]]();
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#990bd700]]
ShowNextFailureAction 
12[[#990bd700]]
ShowPreviousFailureAction 
21[[#990bd680]]
ShowNextFailureAction_label 
22[[#990bd680]]
ShowPreviousFailureAction_label 
31[[#990bd660]]
"dlcl16/select_next.gif" 
32[[#990bd660]]
"dlcl16/select_prev.gif" 
41[[#990bd5e0]]
"elcl16/select_next.gif" 
42[[#990bd5e0]]
"elcl16/select_prev.gif" 
51[[#98ebb1c0]]
ShowNextFailureAction_tooltip 
52[[#98ebb1c0]]
ShowPreviousFailureAction_tooltip 
61[[#990bd5c0]]
selectNextFailure 
62[[#990bd5c0]]
selectPreviousFailure