CloneSet147


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.965statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101879
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
292010
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
1879
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java

// save caret info. Buffer.load() will load it.
View _view = viewsFirst;
while (_view != null) {
  EditPane[] panes = _view.getEditPanes();
  for (int i = 0; i < panes.length; i++) {
    panes[i].saveCaretInfo();
  }
  _view = _view.next;
}


First
Previous
Clone Instance
2
Line Count
9
Source Line
2010
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java

// the problem with this is that if we have two edit panes
// looking at the same buffer and the file is reloaded both
// will jump to the same location
View _view = viewsFirst;
while (_view != null) {
  EditPane[] editPanes = _view.getEditPanes();
  for (int i = 0; i < editPanes.length; i++) {
    editPanes[i].saveCaretInfo();
  }
  _view = _view.next;
}


Clone AbstractionParameter Count: 1Parameter Bindings

// save caret info. Buffer.load() will load it.
// the problem with this is that if we have two edit panes
// looking at the same buffer and the file is reloaded both
// will jump to the same location
View _view = viewsFirst;
while (_view != null) {
  EditPane[]  [[#variableaee7e20]]= _view.getEditPanes();
  for (int i = 0; i <  [[#variableaee7e20]].length; i++) {
     [[#variableaee7e20]][i].saveCaretInfo();
  }
  _view = _view.next;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#aee7e20]]
panes 
12[[#aee7e20]]
editPanes