CloneSet1691


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33260.981class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13327
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewPackageCreationWizard.java
23326
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderCreationWizard.java
Clone Instance
1
Line Count
33
Source Line
27
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewPackageCreationWizard.java

        public NewPackageCreationWizard() {
                super();
                setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWPACK);
                setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
                setWindowTitle(NewWizardMessages.NewPackageCreationWizard_title);
        }

        /*
         * @see Wizard#addPages
         */
        public void addPages() {
                super.addPages();
                fPage = new NewPackageWizardPage();
                addPage(fPage);
                fPage.init(getSelection());
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
         */
        protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
                fPage.createPackage(monitor); // use the full progress monitor
        }

        /* (non-Javadoc)
         * @see org.eclipse.jface.wizard.IWizard#performFinish()
         */
        public boolean performFinish() {
                boolean res = super.performFinish();
                if (res) {
                        selectAndReveal(fPage.getModifiedResource());
                }
                return res;
        }


Clone Instance
2
Line Count
33
Source Line
26
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderCreationWizard.java

        public NewSourceFolderCreationWizard() {
                super();
                setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWSRCFOLDR);
                setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
                setWindowTitle(NewWizardMessages.NewSourceFolderCreationWizard_title);
        }

        /*
         * @see Wizard#addPages
         */
        public void addPages() {
                super.addPages();
                fPage = new NewSourceFolderWizardPage();
                addPage(fPage);
                fPage.init(getSelection());
        }

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
         */
        protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
                fPage.createPackageFragmentRoot(monitor); // use the full progress monitor
        }

        /* (non-Javadoc)
         * @see org.eclipse.jface.wizard.IWizard#performFinish()
         */
        public boolean performFinish() {
                boolean res = super.performFinish();
                if (res) {
                        selectAndReveal(fPage.getCorrespondingResource());
                }
                return res;
        }


Clone AbstractionParameter Count: 6Parameter Bindings

public [[#variableb6979440]]() {
  super();
  setDefaultPageImageDescriptor(JavaPluginImages. [[#variableb69793c0]]);
  setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
  setWindowTitle(NewWizardMessages. [[#variableb6979360]]);
}

/*
         * @see Wizard#addPages
         */
public void addPages() {
  super.addPages();
  fPage = new [[#variableb69792e0]]();
  addPage(fPage);
  fPage.init(getSelection());
}

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
         */
protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
  fPage. [[#variableb6979280]](monitor); // use the full progress monitor
}

/* (non-Javadoc)
         * @see org.eclipse.jface.wizard.IWizard#performFinish()
         */
public boolean performFinish() {
  boolean res = super.performFinish();
  if (res) {
    selectAndReveal(fPage. [[#variableba8775e0]]());
  }
  return res;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b6979440]]
NewPackageCreationWizard 
12[[#b6979440]]
NewSourceFolderCreationWizard 
21[[#b69793c0]]
DESC_WIZBAN_NEWPACK 
22[[#b69793c0]]
DESC_WIZBAN_NEWSRCFOLDR 
31[[#b6979360]]
NewPackageCreationWizard_title 
32[[#b6979360]]
NewSourceFolderCreationWizard_title 
41[[#b69792e0]]
NewPackageWizardPage 
42[[#b69792e0]]
NewSourceFolderWizardPage 
51[[#b6979280]]
createPackage 
52[[#b6979280]]
createPackageFragmentRoot 
61[[#ba8775e0]]
getModifiedResource 
62[[#ba8775e0]]
getCorrespondingResource