Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 6 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 464 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java |
2 | 18 | 485 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java |
| ||||
/* * Opens a dialog to choose a jar from the file system. */ private IPath chooseExtJarFile() { IPath currPath = getFilePath(); if (currPath.segmentCount() == 0) { currPath = fEntry.getPath(); } if (ArchiveFileFilter.isArchivePath(currPath)) { currPath = currPath.removeLastSegments(1); } FileDialog dialog = new FileDialog(getShell()); dialog.setText(NewWizardMessages.SourceAttachmentBlock_extjardialog_text); dialog.setFilterExtensions(new String[] { "*.jar;*.zip" } ); //$NON-NLS-1$ dialog.setFilterPath(currPath.toOSString()); String res = dialog.open(); if (res != null) { return Path.fromOSString(res).makeAbsolute(); } return null; } |
| ||||
private IPath chooseExtFolder() { IPath currPath = getFilePath(); if (currPath.segmentCount() == 0) { currPath = fEntry.getPath(); } if (ArchiveFileFilter.isArchivePath(currPath)) { currPath = currPath.removeLastSegments(1); } DirectoryDialog dialog = new DirectoryDialog(getShell()); dialog.setMessage(NewWizardMessages.SourceAttachmentBlock_extfolderdialog_message); dialog.setText(NewWizardMessages.SourceAttachmentBlock_extfolderdialog_text); dialog.setFilterPath(currPath.toOSString()); String res = dialog.open(); if (res != null) { return Path.fromOSString(res).makeAbsolute(); } return null; } |
| |||
/* * Opens a dialog to choose a jar from the file system. */ private IPath [[#variable6447ec00]]() { IPath currPath = getFilePath(); if (currPath.segmentCount() == 0) { currPath = fEntry.getPath(); } if (ArchiveFileFilter.isArchivePath(currPath)) { currPath = currPath.removeLastSegments(1); } [[#variable6447eb60]] dialog = new [[#variable6447eb60]](getShell()); dialog. [[#variable6447eac0]](NewWizardMessages. [[#variable6447ea40]]); dialog. [[#variable6447e9e0]]( [[#variable6447e980]]); //$NON-NLS-1$ dialog.setFilterPath(currPath.toOSString()); String res = dialog.open(); if (res != null) { return Path.fromOSString(res).makeAbsolute(); } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6447ec00]] | chooseExtJarFile |
1 | 2 | [[#6447ec00]] | chooseExtFolder |
2 | 1 | [[#6447eb60]] | FileDialog |
2 | 2 | [[#6447eb60]] | DirectoryDialog |
3 | 1 | [[#6447eac0]] | setText |
3 | 2 | [[#6447eac0]] | setMessage |
4 | 1 | [[#6447ea40]] | SourceAttachmentBlock_extjardialog_text |
4 | 2 | [[#6447ea40]] | SourceAttachmentBlock_extfolderdialog_message |
5 | 1 | [[#6447e9e0]] | setFilterExtensions |
5 | 2 | [[#6447e9e0]] | setText |
6 | 1 | [[#6447e980]] | new String[] { "*.jar;*.zip" } |
6 | 2 | [[#6447e980]] | NewWizardMessages.SourceAttachmentBlock_extfolderdialog_text |