CloneSet507


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22230.954class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123132
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/DriversList.java
222176
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/JListAliasesListImpl.java
Next
Last
Clone Instance
1
Line Count
23
Source Line
132
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/DriversList.java

/**
 * Return the description for the driver that the mouse is currently
 * over as the tooltip text.
 *
 * @param       event   Used to determine the current mouse position.
 */
public String getToolTipText(MouseEvent evt) {
  String tip = null;
  final int idx = getList().locationToIndex(evt.getPoint());
  if (idx != -1) {
    tip = ((ISQLDriver) getList().getModel().getElementAt(idx)).getName();
  }
  else {
    tip = getToolTipText();
  }
  return tip;
}

/**
 * Return the tooltip used for this component if the mouse isn't over
 * an entry in the list.
 */
public String getToolTipText() {
  // i18n[DriversList.tooltiptext=List of database drivers that can be used to configure an alias]
  return s_stringMgr.getString("DriversList.tooltiptext");
}


First
Previous
Clone Instance
2
Line Count
22
Source Line
176
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/JListAliasesListImpl.java

/**
      * Return the description for the alias that the mouse is currently
      * over as the tooltip text.
      *
      * @param       event   Used to determine the current mouse position.
      */
public String getToolTipText(MouseEvent evt) {
  String tip;
  final int idx = getList().locationToIndex(evt.getPoint());
  if (idx != -1) {
    tip = ((ISQLAlias) getList().getModel().getElementAt(idx)).getName();
  }
  else {
    tip = getToolTipText();
  }
  return tip;
}

/**
 * Return the tooltip used for this component if the mouse isn't over
 * an entry in the list.
 */
public String getToolTipText() {
  return s_stringMgr.getString("AliasesList.tooltip");
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Return the description for the alias that the mouse is currently
         * over as the tooltip text.
         *
         * @param       event   Used to determine the current mouse position.
         */
/**
         * Return the description for the driver that the mouse is currently
         * over as the tooltip text.
         *
         * @param       event   Used to determine the current mouse position.
         */
public String getToolTipText(MouseEvent evt) {
  String  [[#variable1ce72560]];
  final int idx = getList().locationToIndex(evt.getPoint());
  if (idx != -1) {
    tip = (( [[#variable1ce72520]]) getList().getModel().getElementAt(idx)).getName();
  }
  else {
    tip = getToolTipText();
  }
  return tip;
}

/**
         * Return the tooltip used for this component if the mouse isn't over
         * an entry in the list.
         */
public String getToolTipText() {
  // i18n[DriversList.tooltiptext=List of database drivers that can be used to configure an alias]
  return s_stringMgr.getString( [[#variable1ce724c0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ce72560]]
tip = null 
12[[#1ce72560]]
tip 
21[[#1ce72520]]
ISQLDriver 
22[[#1ce72520]]
ISQLAlias 
31[[#1ce724c0]]
"DriversList.tooltiptext" 
32[[#1ce724c0]]
"AliasesList.tooltip"