CloneSet356


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
63340.985type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16426
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewAnnotationCreationWizard.java
26326
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewClassCreationWizard.java
36326
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewInterfaceCreationWizard.java
Clone Instance
1
Line Count
64
Source Line
26
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewAnnotationCreationWizard.java

public class NewAnnotationCreationWizard extends NewElementWizard {

    private NewAnnotationWizardPage fPage;

        public NewAnnotationCreationWizard(NewAnnotationWizardPage page) {
                setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWANNOT);
                setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
                setWindowTitle(NewWizardMessages.NewAnnotationCreationWizard_title);

                fPage = page;
        }

        public NewAnnotationCreationWizard() {
                this(null);
        }

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


        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#canRunForked()
         */
        protected boolean canRunForked() {
                return !fPage.isEnclosingTypeSelected();
        }

        /* (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.createType(monitor); // use the full progress monitor
        }

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

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#getCreatedElement()
         */
        public IJavaElement getCreatedElement() {
                return fPage.getCreatedType();
        }
}




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

public class NewClassCreationWizard extends NewElementWizard {

        private NewClassWizardPage fPage;

        public NewClassCreationWizard(NewClassWizardPage page) {
                setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWCLASS);
                setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
                setWindowTitle(NewWizardMessages.NewClassCreationWizard_title);

                fPage = page;
        }

        public NewClassCreationWizard() {
                this(null);
        }

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

        /*(non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#canRunForked()
         */
        protected boolean canRunForked() {
                return !fPage.isEnclosingTypeSelected();
        }

        /* (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.createType(monitor); // use the full progress monitor
        }

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

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#getCreatedElement()
         */
        public IJavaElement getCreatedElement() {
                return fPage.getCreatedType();
        }
}




Clone Instance
3
Line Count
63
Source Line
26
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewInterfaceCreationWizard.java

public class NewInterfaceCreationWizard extends NewElementWizard {

        private NewInterfaceWizardPage fPage;

        public NewInterfaceCreationWizard(NewInterfaceWizardPage page) {
                setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_NEWINT);
                setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
                setWindowTitle(NewWizardMessages.NewInterfaceCreationWizard_title);

                fPage = page;
        }

        public NewInterfaceCreationWizard() {
                this(null);
        }

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

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#canRunForked()
         */
        protected boolean canRunForked() {
                return !fPage.isEnclosingTypeSelected();
        }

        /* (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.createType(monitor); // use the full progress monitor
        }

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

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#getCreatedElement()
         */
        public IJavaElement getCreatedElement() {
                return fPage.getCreatedType();
        }
}




Clone AbstractionParameter Count: 4Parameter Bindings

public class [[#variablec1196fa0]]extends NewElementWizard {
  private [[#variablec239fba0]] fPage;

  public [[#variablec1196fa0]]( [[#variablec239fba0]] page) {
    setDefaultPageImageDescriptor(JavaPluginImages. [[#variablec239fb20]]);
    setDialogSettings(JavaPlugin.getDefault().getDialogSettings());
    setWindowTitle(NewWizardMessages. [[#variablec1196f00]]);
    fPage = page;
  }

  public [[#variablec1196fa0]]() {
    this(null);
  }

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

  /* (non-Javadoc)
           * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#canRunForked()
           */
  /*(non-Javadoc)
           * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#canRunForked()
           */
  protected boolean canRunForked() {
    return !fPage.isEnclosingTypeSelected();
  }

  /* (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.createType(monitor); // use the full progress monitor
  }

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

  /* (non-Javadoc)
           * @see org.eclipse.jdt.internal.ui.wizards.NewElementWizard#getCreatedElement()
           */
  public IJavaElement getCreatedElement() {
    return fPage.getCreatedType();
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c1196fa0]]
NewInterfaceCreationWizard 
12[[#c1196fa0]]
NewClassCreationWizard 
13[[#c1196fa0]]
NewAnnotationCreationWizard 
21[[#c239fba0]]
NewInterfaceWizardPage 
22[[#c239fba0]]
NewClassWizardPage 
23[[#c239fba0]]
NewAnnotationWizardPage 
31[[#c239fb20]]
DESC_WIZBAN_NEWINT 
32[[#c239fb20]]
DESC_WIZBAN_NEWCLASS 
33[[#c239fb20]]
DESC_WIZBAN_NEWANNOT 
41[[#c1196f00]]
NewInterfaceCreationWizard_title 
42[[#c1196f00]]
NewClassCreationWizard_title 
43[[#c1196f00]]
NewAnnotationCreationWizard_title