Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 6 | 0.981 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 33 | 27 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewPackageCreationWizard.java |
2 | 33 | 26 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewSourceFolderCreationWizard.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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b6979440]] | NewPackageCreationWizard |
1 | 2 | [[#b6979440]] | NewSourceFolderCreationWizard |
2 | 1 | [[#b69793c0]] | DESC_WIZBAN_NEWPACK |
2 | 2 | [[#b69793c0]] | DESC_WIZBAN_NEWSRCFOLDR |
3 | 1 | [[#b6979360]] | NewPackageCreationWizard_title |
3 | 2 | [[#b6979360]] | NewSourceFolderCreationWizard_title |
4 | 1 | [[#b69792e0]] | NewPackageWizardPage |
4 | 2 | [[#b69792e0]] | NewSourceFolderWizardPage |
5 | 1 | [[#b6979280]] | createPackage |
5 | 2 | [[#b6979280]] | createPackageFragmentRoot |
6 | 1 | [[#ba8775e0]] | getModifiedResource |
6 | 2 | [[#ba8775e0]] | getCorrespondingResource |