CloneSet750


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52340.977compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15212
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationIJavaProjectRenameParticipant.java
24612
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationIPackageFragmentRenameParticipant.java
34711
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationITypeRenameParticipant.java
Clone Instance
1
Line Count
52
Source Line
12
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationIJavaProjectRenameParticipant.java

/*******************************************************************************
 * 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.core.refactoring;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;

import org.eclipse.jdt.core.IJavaProject;

import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;

/**
 * Provides a rename participant for java projects with respect to launch configurations
 */
public class LaunchConfigurationIJavaProjectRenameParticipant extends RenameParticipant {

        /**
         * the project to rename
         */
        private IJavaProject fJavaProject;

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
         */
        protected boolean initialize(Object element) {
                fJavaProject = (IJavaProject) element;
                return true;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
         */
        public String getName() {
                return RefactoringMessages.LaunchConfigurationParticipant_0;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
         */
        public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
                return new RefactoringStatus();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.participants.IRefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
         */
        public Change createChange(IProgressMonitor pm) throws CoreException {
                return JDTDebugRefactoringUtil.createChangesForProjectRename(fJavaProject, getArguments().getNewName());
        }
}




Clone Instance
2
Line Count
46
Source Line
12
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationIPackageFragmentRenameParticipant.java

/*******************************************************************************
 * 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.core.refactoring;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;

import org.eclipse.jdt.core.IPackageFragment;

import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;

public class LaunchConfigurationIPackageFragmentRenameParticipant extends RenameParticipant {

        private IPackageFragment fPackageFragment;

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
         */
        protected boolean initialize(Object element) {
                fPackageFragment = (IPackageFragment) element;
                return true;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
         */
        public String getName() {
                return RefactoringMessages.LaunchConfigurationParticipant_0;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
         */
        public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
                return new RefactoringStatus();
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.refactoring.participants.IRefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
         */
        public Change createChange(IProgressMonitor pm) throws CoreException {
                return JDTDebugRefactoringUtil.createChangesForPackageRename(fPackageFragment, getArguments().getNewName());
        }
}




Clone Instance
3
Line Count
47
Source Line
11
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LaunchConfigurationITypeRenameParticipant.java

/*******************************************************************************
 * 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.core.refactoring;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IType;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;


/**
 */
public class LaunchConfigurationITypeRenameParticipant extends RenameParticipant {

        private IType fType;

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
         */
        protected boolean initialize(Object element) {
                fType = (IType) element;
                return true;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
         */
        public String getName() {
                return RefactoringMessages.LaunchConfigurationParticipant_0;
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
         */
        public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
                return new RefactoringStatus();
        }

        /* (non-Javadoc)
         * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
         */
        public Change createChange(IProgressMonitor pm) throws CoreException {
                return JDTDebugRefactoringUtil.createChangesForTypeRename(fType, getArguments().getNewName());
        }
}




Clone AbstractionParameter Count: 4Parameter Bindings

/*******************************************************************************
 * 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.core.refactoring;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core. [[#variablec2d131e0]];
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
import org.eclipse.ltk.core.refactoring.participants.RenameParticipant;

/**
 * Provides a rename participant for java projects with respect to launch configurations
 */
/**
 */
public class [[#variablec2d13180]]extends RenameParticipant {
  /**
           * the project to rename
           */
  private [[#variablec2d131e0]]  [[#variablec11b0420]];

  /* (non-Javadoc)
           * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#initialize(java.lang.Object)
           */
  protected boolean initialize(Object element) {
     [[#variablec11b0420]]= ( [[#variablec2d131e0]]) element;
    return true;
  }

  /* (non-Javadoc)
           * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#getName()
           */
  public String getName() {
    return RefactoringMessages.LaunchConfigurationParticipant_0;
  }

  /* (non-Javadoc)
           * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#checkConditions(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
           */
  public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) {
    return new RefactoringStatus();
  }

  /* (non-Javadoc)
           * @see org.eclipse.jdt.internal.corext.refactoring.participants.IRefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
           */
  /* (non-Javadoc)
           * @see org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant#createChange(org.eclipse.core.runtime.IProgressMonitor)
           */
  public Change createChange(IProgressMonitor pm) throws CoreException {
    return JDTDebugRefactoringUtil. [[#variablec2d13160]]( [[#variablec11b0420]], getArguments().getNewName());
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c2d131e0]]
IJavaProject 
12[[#c2d131e0]]
IPackageFragment 
13[[#c2d131e0]]
IType 
21[[#c2d13180]]
LaunchConfigurationIJavaProjectRenameParticipant 
22[[#c2d13180]]
LaunchConfigurationIPackageFragmentRenameParticipant 
23[[#c2d13180]]
LaunchConfigurationITypeRenameParticipant 
31[[#c11b0420]]
fJavaProject 
32[[#c11b0420]]
fPackageFragment 
33[[#c11b0420]]
fType 
41[[#c2d13160]]
createChangesForProjectRename 
42[[#c2d13160]]
createChangesForPackageRename 
43[[#c2d13160]]
createChangesForTypeRename