CloneSet792


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16360.967class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116920
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java
216938
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java
316956
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java
Clone Instance
1
Line Count
16
Source Line
920
Source File
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;
        }


Clone Instance
2
Line Count
16
Source Line
938
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java

        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;
        }


Clone Instance
3
Line Count
16
Source Line
956
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetEditor.java

        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;
        }


Clone AbstractionParameter Count: 6Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b67af020]]
workingDirHasChanged 
12[[#b67af020]]
vmArgsChanged 
13[[#b67af020]]
vmHasChanged 
21[[#b67aefa0]]
String 
22[[#b67aefa0]]
String 
23[[#b67aefa0]]
IVMInstall 
31[[#b67aef00]]
wd 
32[[#b67aef00]]
args 
33[[#b67aef00]]
vm 
41[[#b67aeee0]]
getWorkingDirectoryAttribute 
42[[#b67aeee0]]
getVMArgsAttribute 
43[[#b67aeee0]]
getVMInstall 
51[[#b67ae480]]
fLaunchedWorkingDir 
52[[#b67ae480]]
fLaunchedVMArgs 
53[[#b67ae480]]
fLaunchedVM 
61[[#b67aee40]]
"SnippetEditor.The_working_directory_has_changed._Restarting_the_evaluation_context._2" 
62[[#b67aee40]]
"SnippetEditor.1" 
63[[#b67aee40]]
"SnippetEditor.The_JRE_has_changed._Restarting_the_evaluation_context._2"