Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
50 | 7 | 1 | 0.999 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 50 | 156 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddArchiveToBuildpathAction.java |
2 | 50 | 278 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddFolderToBuildpathAction.java |
3 | 50 | 197 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddLibraryToBuildpathAction.java |
4 | 50 | 176 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddSelectedLibraryToBuildpathAction.java |
5 | 50 | 167 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ExcludeFromBuildpathAction.java |
6 | 50 | 162 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/IncludeToBuildpathAction.java |
7 | 50 | 251 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/RemoveFromBuildpathAction.java |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.AddArchiveToBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.AddSourceFolderToBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.AddLibraryToBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.AddSelectedLibraryToBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.ExcludeFromBuildathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.IncludeToBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| ||||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages.RemoveFromBuildpathAction_ErrorTitle, exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
| |||
private void showExceptionDialog(CoreException exception) { showError(exception, fSite.getShell(), NewWizardMessages. [[#variableb85d3a60]], exception.getMessage()); } private void showError(CoreException e, Shell shell, String title, String message) { IStatus status = e.getStatus(); if (status != null) { ErrorDialog.openError(shell, message, title, status); } else { MessageDialog.openError(shell, title, message); } } private void selectAndReveal( final ISelection selection) { // validate the input IWorkbenchPage page = fSite.getPage(); if (page == null) return; // get all the view and editor parts List parts = new ArrayList(); IWorkbenchPartReference refs[] = page.getViewReferences(); for (int i = 0; i < refs.length; i++) { IWorkbenchPart part = refs[i].getPart(false); if (part != null) parts.add(part); } refs = page.getEditorReferences(); for (int i = 0; i < refs.length; i++) { if (refs[i].getPart(false) != null) parts.add(refs[i].getPart(false)); } Iterator itr = parts.iterator(); while (itr.hasNext()) { IWorkbenchPart part = (IWorkbenchPart) itr.next(); // get the part's ISetSelectionTarget implementation ISetSelectionTarget target = null; if (part instanceof ISetSelectionTarget) target = (ISetSelectionTarget) part; else target = (ISetSelectionTarget) part.getAdapter(ISetSelectionTarget.class ); if (target != null) { // select and reveal resource final ISetSelectionTarget finalTarget = target; page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() { public void run() { finalTarget.selectReveal(selection); } } ); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b85d3a60]] | AddArchiveToBuildpathAction_ErrorTitle |
1 | 2 | [[#b85d3a60]] | AddSourceFolderToBuildpathAction_ErrorTitle |
1 | 3 | [[#b85d3a60]] | AddLibraryToBuildpathAction_ErrorTitle |
1 | 4 | [[#b85d3a60]] | AddSelectedLibraryToBuildpathAction_ErrorTitle |
1 | 5 | [[#b85d3a60]] | ExcludeFromBuildathAction_ErrorTitle |
1 | 6 | [[#b85d3a60]] | IncludeToBuildpathAction_ErrorTitle |
1 | 7 | [[#b85d3a60]] | RemoveFromBuildpathAction_ErrorTitle |