CloneSet88


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18601.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114317
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java
218292
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java
314421
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java
414338
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java
514341
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
614426
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java
Next
Last
Clone Instance
1
Line Count
14
Source Line
317
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


Next
Previous
Clone Instance
2
Line Count
18
Source Line
292
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


Next
Previous
Clone Instance
3
Line Count
14
Source Line
421
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


Next
Previous
Clone Instance
4
Line Count
14
Source Line
338
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


Next
Previous
Clone Instance
5
Line Count
14
Source Line
341
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


First
Previous
Clone Instance
6
Line Count
14
Source Line
426
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}


Clone AbstractionParameter Count: 0Parameter Bindings

// tabs and newlines get put into the text before this check,
// so remove them
// This only applies to Popup editing since these chars are
// not passed to this level by the in-cell editor.
if (c == KeyEvent.VK_TAB || c == KeyEvent.VK_ENTER) {
  // remove all instances of the offending char
  int index = text.indexOf(c);
  if (index != -1) {
    if (index == text.length() - 1) {
      text = text.substring(0, text.length() - 1); // truncate string
    }
    else {
      text = text.substring(0, index) + text.substring(index + 1);
    }
    ((IRestorableTextComponent) _theComponent).updateText(text);
    _beepHelper.beep(_theComponent);
  }
  e.consume();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None