Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
27 | 2 | 2 | 0.991 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 27 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/AnnotationFilter.java |
2 | 27 | 11 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/filters/EnumFilter.java |
| ||||
/******************************************************************************* * Copyright (c) 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.filters; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; /** * Filters annotations. */ public class AnnotationFilter extends ViewerFilter { /* * @see ViewerFilter */ public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof IType) { try { return !((IType) element).isAnnotation(); } catch (JavaModelException ex) { return true; } } return true; } } |
| ||||
/******************************************************************************* * Copyright (c) 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.filters; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; /** * Filters enums. */ public class EnumFilter extends ViewerFilter { /* * @see ViewerFilter */ public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof IType) { try { return !((IType) element).isEnum(); } catch (JavaModelException ex) { return true; } } return true; } } |
| |||
/******************************************************************************* * Copyright (c) 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.filters; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; /** * Filters annotations. */ /** * Filters enums. */ public class [[#variableb6681120]]extends ViewerFilter { /* * @see ViewerFilter */ public boolean select(Viewer viewer, Object parent, Object element) { if (element instanceof IType) { try { return !((IType) element). [[#variableb66810c0]](); } catch (JavaModelException ex) { return true; } } return true; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b6681120]] | AnnotationFilter |
1 | 2 | [[#b6681120]] | EnumFilter |
2 | 1 | [[#b66810c0]] | isAnnotation |
2 | 2 | [[#b66810c0]] | isEnum |