CloneSet1836


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
48220.986compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14811
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenJavaProjectWizardToolbarAction.java
25011
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenPackageWizardToolbarAction.java
Clone Instance
1
Line Count
48
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenJavaProjectWizardToolbarAction.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.wizards;

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

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

import org.eclipse.jdt.ui.actions.OpenNewJavaProjectWizardAction;

public class OpenJavaProjectWizardToolbarAction extends OpenNewJavaProjectWizardAction implements IWorkbenchWindowActionDelegate  {

        public OpenJavaProjectWizardToolbarAction() {
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
         */
        public void dispose() {
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
         */
        public void init(IWorkbenchWindow window) {
                setShell(window.getShell());
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
         */
        public void run(IAction action) {
                super.run();
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
         */
        public void selectionChanged(IAction action, ISelection selection) {
                if (selection instanceof IStructuredSelection) {
                        setSelection((IStructuredSelection) selection);
                }
                else   {
                        setSelection(StructuredSelection.EMPTY);
                }
        }
}




Clone Instance
2
Line Count
50
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenPackageWizardToolbarAction.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.wizards;

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

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

import org.eclipse.jdt.ui.actions.OpenNewPackageWizardAction;

public class OpenPackageWizardToolbarAction extends OpenNewPackageWizardAction implements IWorkbenchWindowActionDelegate  {

        public OpenPackageWizardToolbarAction() {
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
         */
        public void dispose() {
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
         */
        public void init(IWorkbenchWindow window) {
                setShell(window.getShell());
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
         */
        public void run(IAction action) {
                super.run();
        }

        /* (non-Javadoc)
         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
         */
        public void selectionChanged(IAction action, ISelection selection) {
                if (selection instanceof IStructuredSelection) {
                        setSelection((IStructuredSelection) selection);
                }
                else   {
                        setSelection(StructuredSelection.EMPTY);
                }
        }
}




Clone AbstractionParameter Count: 2Parameter Bindings

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

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.jdt.ui.actions. [[#variable8fb931c0]];

public class [[#variable8fb930e0]]extends [[#variable8fb931c0]]implements IWorkbenchWindowActionDelegate {
  public [[#variable8fb930e0]]() {
  }

  /* (non-Javadoc)
           * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose()
           */
  public void dispose() {
  }

  /* (non-Javadoc)
           * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
           */
  public void init(IWorkbenchWindow window) {
    setShell(window.getShell());
  }

  /* (non-Javadoc)
           * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
           */
  public void run(IAction action) {
    super.run();
  }

  /* (non-Javadoc)
           * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
           */
  public void selectionChanged(IAction action, ISelection selection) {
    if (selection instanceof IStructuredSelection) {
      setSelection((IStructuredSelection) selection);
    }
    else {
      setSelection(StructuredSelection.EMPTY);
    }
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#8fb931c0]]
OpenNewJavaProjectWizardAction 
12[[#8fb931c0]]
OpenNewPackageWizardAction 
21[[#8fb930e0]]
OpenJavaProjectWizardToolbarAction 
22[[#8fb930e0]]
OpenPackageWizardToolbarAction