CloneSet371


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28210.977method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
128345
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java
228306
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java
Next
Last
Clone Instance
1
Line Count
28
Source Line
345
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeString.this._textComponent, evt, DataTypeString.this._table);
                                                                 CellDataPopup.showDialog(DataTypeString.this._table, DataTypeString.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


First
Previous
Clone Instance
2
Line Count
28
Source Line
306
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/derby/src/net/sourceforge/squirrel_sql/plugins/derby/types/DerbyClobDataTypeComponent.java

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DerbyClobDataTypeComponent.this._textComponent, evt, DerbyClobDataTypeComponent.this._table);
                                                                 CellDataPopup.showDialog(DerbyClobDataTypeComponent.this._table, DerbyClobDataTypeComponent.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Return a JTextField usable in a CellEditor.
         */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField)  [[#variable1aff14e0]].this._textComponent, evt,  [[#variable1aff14e0]].this._table);
                                                                 CellDataPopup.showDialog( [[#variable1aff14e0]].this._table,  [[#variable1aff14e0]].this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aff14e0]]
DataTypeString 
12[[#1aff14e0]]
DerbyClobDataTypeComponent