Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 2 | 0.985 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaTextViewerCreator.java |
2 | 24 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/PropertiesFileViewerCreator.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.ui.compare; import org.eclipse.swt.widgets.Composite; import org.eclipse.jface.viewers.Viewer; import org.eclipse.compare.CompareConfiguration; import org.eclipse.compare.IViewerCreator; /** * A factory object for the <code>JavaTextViewer</code>. * This indirection is necessary because only objects with a default * constructor can be created via an extension point * (this precludes Viewers). */ public class JavaTextViewerCreator implements IViewerCreator { public Viewer createViewer(Composite parent, CompareConfiguration mp) { return new JavaTextViewer(parent); } } |
| ||||
/******************************************************************************* * 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.ui.compare; import org.eclipse.swt.widgets.Composite; import org.eclipse.jface.viewers.Viewer; import org.eclipse.compare.CompareConfiguration; import org.eclipse.compare.IViewerCreator; /** * A factory object for the {@link org.eclipse.jdt.internal.ui.compare.PropertiesFileViewer}. * This indirection is necessary because only objects with a default * constructor can be created via an extension point * (this precludes Viewers). * * @since 3.1 */ public class PropertiesFileViewerCreator implements IViewerCreator { public Viewer createViewer(Composite parent, CompareConfiguration mp) { return new PropertiesFileViewer(parent); } } |
| |||
/******************************************************************************* * 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.ui.compare; import org.eclipse.swt.widgets.Composite; import org.eclipse.jface.viewers.Viewer; import org.eclipse.compare.CompareConfiguration; import org.eclipse.compare.IViewerCreator; /** * A factory object for the <code>JavaTextViewer</code>. * This indirection is necessary because only objects with a default * constructor can be created via an extension point * (this precludes Viewers). */ /** * A factory object for the {@link org.eclipse.jdt.internal.ui.compare.PropertiesFileViewer}. * This indirection is necessary because only objects with a default * constructor can be created via an extension point * (this precludes Viewers). * * @since 3.1 */ public class [[#variablea33edf20]]implements IViewerCreator { public Viewer createViewer(Composite parent, CompareConfiguration mp) { return new [[#variablea33edec0]](parent); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a33edf20]] | JavaTextViewerCreator |
1 | 2 | [[#a33edf20]] | PropertiesFileViewerCreator |
2 | 1 | [[#a33edec0]] | JavaTextViewer |
2 | 2 | [[#a33edec0]] | PropertiesFileViewer |