Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 3 | 6 | 0.967 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 920 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java |
2 | 16 | 938 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java |
3 | 16 | 956 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java |
| ||||
protected boolean workingDirHasChanged() { String wd = getWorkingDirectoryAttribute(); boolean changed = false; if (wd == null || fLaunchedWorkingDir == null) { if (wd != fLaunchedWorkingDir) { changed = true; } } else { if ( !wd.equals(fLaunchedWorkingDir)) { changed = true; } } if (changed && fVM != null) { MessageDialog.openWarning(getShell(), SnippetMessages.getString("SnippetEditor.Warning_1"), SnippetMessages.getString("SnippetEditor.The_working_directory_has_changed._Restarting_the_evaluation_context._2")); //$NON-NLS-1$ //$NON-NLS-2$ } return changed; } |
| ||||
protected boolean vmArgsChanged() { String args = getVMArgsAttribute(); boolean changed = false; if (args == null || fLaunchedVMArgs == null) { if (args != fLaunchedVMArgs) { changed = true; } } else { if ( !args.equals(fLaunchedVMArgs)) { changed = true; } } if (changed && fVM != null) { MessageDialog.openWarning(getShell(), SnippetMessages.getString("SnippetEditor.Warning_1"), SnippetMessages.getString("SnippetEditor.1")); //$NON-NLS-1$ //$NON-NLS-2$ } return changed; } |
| ||||
protected boolean vmHasChanged() { IVMInstall vm = getVMInstall(); boolean changed = false; if (vm == null || fLaunchedVM == null) { if (vm != fLaunchedVM) { changed = true; } } else { if ( !vm.equals(fLaunchedVM)) { changed = true; } } if (changed && fVM != null) { MessageDialog.openWarning(getShell(), SnippetMessages.getString("SnippetEditor.Warning_1"), SnippetMessages.getString("SnippetEditor.The_JRE_has_changed._Restarting_the_evaluation_context._2")); //$NON-NLS-1$ //$NON-NLS-2$ } return changed; } |
| |||
protected boolean [[#variableb67af020]]() { [[#variableb67aefa0]] [[#variableb67aef00]]= [[#variableb67aeee0]](); boolean changed = false; if ( [[#variableb67aef00]]== null || [[#variableb67ae480]]== null) { if ( [[#variableb67aef00]]!= [[#variableb67ae480]]) { changed = true; } } else { if ( ! [[#variableb67aef00]].equals( [[#variableb67ae480]])) { changed = true; } } if (changed && fVM != null) { MessageDialog.openWarning(getShell(), SnippetMessages.getString("SnippetEditor.Warning_1"), SnippetMessages.getString( [[#variableb67aee40]])); //$NON-NLS-1$ //$NON-NLS-2$ } return changed; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b67af020]] | workingDirHasChanged |
1 | 2 | [[#b67af020]] | vmArgsChanged |
1 | 3 | [[#b67af020]] | vmHasChanged |
2 | 1 | [[#b67aefa0]] | String |
2 | 2 | [[#b67aefa0]] | String |
2 | 3 | [[#b67aefa0]] | IVMInstall |
3 | 1 | [[#b67aef00]] | wd |
3 | 2 | [[#b67aef00]] | args |
3 | 3 | [[#b67aef00]] | vm |
4 | 1 | [[#b67aeee0]] | getWorkingDirectoryAttribute |
4 | 2 | [[#b67aeee0]] | getVMArgsAttribute |
4 | 3 | [[#b67aeee0]] | getVMInstall |
5 | 1 | [[#b67ae480]] | fLaunchedWorkingDir |
5 | 2 | [[#b67ae480]] | fLaunchedVMArgs |
5 | 3 | [[#b67ae480]] | fLaunchedVM |
6 | 1 | [[#b67aee40]] | "SnippetEditor.The_working_directory_has_changed._Restarting_the_evaluation_context._2" |
6 | 2 | [[#b67aee40]] | "SnippetEditor.1" |
6 | 3 | [[#b67aee40]] | "SnippetEditor.The_JRE_has_changed._Restarting_the_evaluation_context._2" |