Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.964 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 11 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/AsyncJavaOwnedMonitorAdapter.java |
2 | 17 | 11 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/AsyncJavaWaitingThreadAdapter.java |
| ||||
/******************************************************************************* * Copyright (c) 2005, 2006 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.debug.ui.monitors; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext; public class AsyncJavaOwnedMonitorAdapter extends AsyncMonitorAdapter { protected Object[] getChildren(Object parent, IPresentationContext context) throws CoreException { return ((JavaOwnedMonitor) parent).getWaitingThreads(); } protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { JavaOwnedMonitor monitor = (JavaOwnedMonitor) element; return monitor.getWaitingThreads().length > 0; } } |
| ||||
/******************************************************************************* * Copyright (c) 2000, 2006 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.debug.ui.monitors; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext; public class AsyncJavaWaitingThreadAdapter extends AsyncMonitorAdapter { protected Object[] getChildren(Object parent, IPresentationContext context) throws CoreException { return ((JavaWaitingThread) parent).getOwnedMonitors(); } protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { JavaWaitingThread thread = (JavaWaitingThread) element; return thread.getOwnedMonitors().length > 0; } } |
| |||
/******************************************************************************* * Copyright (c) 2005, 2006 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 *******************************************************************************/ /******************************************************************************* * Copyright (c) 2000, 2006 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.debug.ui.monitors; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext; public class [[#variable54843a80]]extends AsyncMonitorAdapter { protected Object[] getChildren(Object parent, IPresentationContext context) throws CoreException { return (( [[#variable54843a00]]) parent). [[#variable54843900]](); } protected boolean hasChildren(Object element, IPresentationContext context) throws CoreException { [[#variable54843a00]] [[#variable54843920]]= ( [[#variable54843a00]]) element; return [[#variable54843920]]. [[#variable54843900]]().length > 0; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54843a80]] | AsyncJavaOwnedMonitorAdapter |
1 | 2 | [[#54843a80]] | AsyncJavaWaitingThreadAdapter |
2 | 1 | [[#54843a00]] | JavaOwnedMonitor |
2 | 2 | [[#54843a00]] | JavaWaitingThread |
3 | 1 | [[#54843900]] | getWaitingThreads |
3 | 2 | [[#54843900]] | getOwnedMonitors |
4 | 1 | [[#54843920]] | monitor |
4 | 2 | [[#54843920]] | thread |