Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 6 | 0.969 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 11 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowNextFailureAction.java |
2 | 22 | 11 | 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 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(); } } |
| ||||
/******************************************************************************* * 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(); } } |
| |||
/******************************************************************************* * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#990bd700]] | ShowNextFailureAction |
1 | 2 | [[#990bd700]] | ShowPreviousFailureAction |
2 | 1 | [[#990bd680]] | ShowNextFailureAction_label |
2 | 2 | [[#990bd680]] | ShowPreviousFailureAction_label |
3 | 1 | [[#990bd660]] | "dlcl16/select_next.gif" |
3 | 2 | [[#990bd660]] | "dlcl16/select_prev.gif" |
4 | 1 | [[#990bd5e0]] | "elcl16/select_next.gif" |
4 | 2 | [[#990bd5e0]] | "elcl16/select_prev.gif" |
5 | 1 | [[#98ebb1c0]] | ShowNextFailureAction_tooltip |
5 | 2 | [[#98ebb1c0]] | ShowPreviousFailureAction_tooltip |
6 | 1 | [[#990bd5c0]] | selectNextFailure |
6 | 2 | [[#990bd5c0]] | selectPreviousFailure |