CloneSet271


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18301.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118768
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java
218713
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
318737
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
768
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java

public void setSelectedIndex(int option) {
  if (option == DateFormat.SHORT)
    super.setSelectedIndex(3);
  else
    if (option == DateFormat.MEDIUM)
      super.setSelectedIndex(2);
    else
      if (option == DateFormat.LONG)
        super.setSelectedIndex(1);
      else
        super.setSelectedIndex(0);
}

public int getValue() {
  if (getSelectedIndex() == 3)
    return DateFormat.SHORT;
  else
    if (getSelectedIndex() == 2)
      return DateFormat.MEDIUM;
    else
      if (getSelectedIndex() == 1)
        return DateFormat.LONG;
      else
        return DateFormat.FULL;
}


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

public void setSelectedIndex(int option) {
  if (option == DateFormat.SHORT)
    super.setSelectedIndex(3);
  else
    if (option == DateFormat.MEDIUM)
      super.setSelectedIndex(2);
    else
      if (option == DateFormat.LONG)
        super.setSelectedIndex(1);
      else
        super.setSelectedIndex(0);
}

public int getValue() {
  if (getSelectedIndex() == 3)
    return DateFormat.SHORT;
  else
    if (getSelectedIndex() == 2)
      return DateFormat.MEDIUM;
    else
      if (getSelectedIndex() == 1)
        return DateFormat.LONG;
      else
        return DateFormat.FULL;
}


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

public void setSelectedIndex(int option) {
  if (option == DateFormat.SHORT)
    super.setSelectedIndex(3);
  else
    if (option == DateFormat.MEDIUM)
      super.setSelectedIndex(2);
    else
      if (option == DateFormat.LONG)
        super.setSelectedIndex(1);
      else
        super.setSelectedIndex(0);
}

public int getValue() {
  if (getSelectedIndex() == 3)
    return DateFormat.SHORT;
  else
    if (getSelectedIndex() == 2)
      return DateFormat.MEDIUM;
    else
      if (getSelectedIndex() == 1)
        return DateFormat.LONG;
      else
        return DateFormat.FULL;
}


Clone AbstractionParameter Count: 0Parameter Bindings

public void setSelectedIndex(int option) {
  if (option == DateFormat.SHORT)
    super.setSelectedIndex(3);
  else
    if (option == DateFormat.MEDIUM)
      super.setSelectedIndex(2);
    else
      if (option == DateFormat.LONG)
        super.setSelectedIndex(1);
      else
        super.setSelectedIndex(0);
}

public int getValue() {
  if (getSelectedIndex() == 3)
    return DateFormat.SHORT;
  else
    if (getSelectedIndex() == 2)
      return DateFormat.MEDIUM;
    else
      if (getSelectedIndex() == 1)
        return DateFormat.LONG;
      else
        return DateFormat.FULL;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None