CloneSet1169


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
49320.989compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14911
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ApplyRefactoringScriptAction.java
24911
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/CreateRefactoringScriptAction.java
34911
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ShowRefactoringHistoryAction.java
Clone Instance
1
Line Count
49
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ApplyRefactoringScriptAction.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.ui.refactoring.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;

import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

/**
 * Action to apply a refactoring script to the workspace.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
public final class ApplyRefactoringScriptAction implements IWorkbenchWindowActionDelegate {

        /** The workbench window, or <code>null</code> */
        private IWorkbenchWindow fWindow = null;

        /**
         * {@inheritDoc}
         */
        public void dispose() {
                // Do nothing
        }

        /**
         * {@inheritDoc}
         */
        public void init( final IWorkbenchWindow window) {
                fWindow = window;
        }

        /**
         * {@inheritDoc}
         */
        public void run( final IAction action) {
                if (fWindow != null) {
                        org.eclipse.ltk.internal.ui.refactoring.actions.ApplyRefactoringScriptAction.showApplyScriptWizard(fWindow);
                }
        }

        /**
         * {@inheritDoc}
         */
        public void selectionChanged( final IAction action, final ISelection selection) {
                // Do nothing
        }
}




Clone Instance
2
Line Count
49
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/CreateRefactoringScriptAction.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.ui.refactoring.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;

import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

/**
 * Action to create a refactoring script from the refactoring history.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
public final class CreateRefactoringScriptAction implements IWorkbenchWindowActionDelegate {

        /** The workbench window, or <code>null</code> */
        private IWorkbenchWindow fWindow = null;

        /**
         * {@inheritDoc}
         */
        public void dispose() {
                // Do nothing
        }

        /**
         * {@inheritDoc}
         */
        public void init( final IWorkbenchWindow window) {
                fWindow = window;
        }

        /**
         * {@inheritDoc}
         */
        public void run( final IAction action) {
                if (fWindow != null) {
                        org.eclipse.ltk.internal.ui.refactoring.actions.CreateRefactoringScriptAction.showCreateScriptWizard(fWindow);
                }
        }

        /**
         * {@inheritDoc}
         */
        public void selectionChanged( final IAction action, final ISelection selection) {
                // Do nothing
        }
}




Clone Instance
3
Line Count
49
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ShowRefactoringHistoryAction.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.ui.refactoring.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;

import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

/**
 * Action to show the global refactoring history.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
public final class ShowRefactoringHistoryAction implements IWorkbenchWindowActionDelegate {

        /** The workbench window, or <code>null</code> */
        private IWorkbenchWindow fWindow = null;

        /**
         * {@inheritDoc}
         */
        public void dispose() {
                // Do nothing
        }

        /**
         * {@inheritDoc}
         */
        public void init( final IWorkbenchWindow window) {
                fWindow = window;
        }

        /**
         * {@inheritDoc}
         */
        public void run( final IAction action) {
                if (fWindow != null) {
                        org.eclipse.ltk.internal.ui.refactoring.actions.ShowRefactoringHistoryAction.showRefactoringHistoryWizard(fWindow);
                }
        }

        /**
         * {@inheritDoc}
         */
        public void selectionChanged( final IAction action, final ISelection selection) {
                // Do nothing
        }
}




Clone AbstractionParameter Count: 2Parameter Bindings

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

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;

/**
 * Action to apply a refactoring script to the workspace.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
/**
 * Action to create a refactoring script from the refactoring history.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
/**
 * Action to show the global refactoring history.
 * 
 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
 */
public final class [[#variablec2787180]]implements IWorkbenchWindowActionDelegate {
  /** The workbench window, or <code>null</code> */
  private IWorkbenchWindow fWindow = null;

  /**
           * {@inheritDoc}
           */
  public void dispose() {
  // Do nothing
  }

  /**
           * {@inheritDoc}
           */
  public void init( final IWorkbenchWindow window) {
    fWindow = window;
  }

  /**
           * {@inheritDoc}
           */
  public void run( final IAction action) {
    if (fWindow != null) {
      org.eclipse.ltk.internal.ui.refactoring.actions. [[#variablec2787180]]. [[#variablec27870c0]](fWindow);
    }
  }

  /**
           * {@inheritDoc}
           */
  public void selectionChanged( final IAction action, final ISelection selection) {
  // Do nothing
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c2787180]]
ApplyRefactoringScriptAction 
12[[#c2787180]]
CreateRefactoringScriptAction 
13[[#c2787180]]
ShowRefactoringHistoryAction 
21[[#c27870c0]]
showApplyScriptWizard 
22[[#c27870c0]]
showCreateScriptWizard 
23[[#c27870c0]]
showRefactoringHistoryWizard