CloneSet683


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.973statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115208
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java
215228
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
208
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java

// call the function in the app code that checks for unexpected
// conditions in the current DB
if (getUpdateableModelReference() != null)
  message = ((IDataSetUpdateableTableModel) getUpdateableModelReference()).getWarningOnCurrentData(getRow(row), _colDefs, col, oldValue);
if (message != null) {
  // set up dialog to ask user if it is ok to proceed
  // IMPORTANT: this dialog is SYNCHRONOUS (ie. we do not proceed until
  // user gives a response).  This is critical since this function provides
  // a return value to its caller that depends on the user input.
  // i18n[baseDataSetViewerDestination.warning=Warning]
  int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
  if (option != JOptionPane.YES_OPTION) {
    return new int[0]; // no update done to underlying data
  }
}


First
Previous
Clone Instance
2
Line Count
15
Source Line
228
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java

// call the function in the app code that checks for unexpected
// conditions in the DB as it will be after doing the update
if (getUpdateableModelReference() != null)
  message = ((IDataSetUpdateableTableModel) getUpdateableModelReference()).getWarningOnProjectedUpdate(getRow(row), _colDefs, col, newValue);
if (message != null) {
  // set up dialog to ask user if it is ok to proceed
  // IMPORTANT: this dialog is SYNCHRONOUS (ie. we do not proceed until
  // user gives a response).  This is critical since this function provides
  // a return value to its caller that depends on the user input.
  // i18n[baseDataSetViewerDestination.warning2=Warning]
  int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString("baseDataSetViewerDestination.warning2"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
  if (option != JOptionPane.YES_OPTION) {
    return new int[0]; // no update done to underlying data
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

// call the function in the app code that checks for unexpected
// conditions in the DB as it will be after doing the update
// conditions in the current DB
if (getUpdateableModelReference() != null)
  message = ((IDataSetUpdateableTableModel) getUpdateableModelReference()). [[#variable1cc2fa80]](getRow(row), _colDefs, col,  [[#variable1cc37860]]);
if (message != null) {
  // set up dialog to ask user if it is ok to proceed
  // IMPORTANT: this dialog is SYNCHRONOUS (ie. we do not proceed until
  // user gives a response).  This is critical since this function provides
  // a return value to its caller that depends on the user input.
  // i18n[baseDataSetViewerDestination.warning2=Warning]
  // i18n[baseDataSetViewerDestination.warning=Warning]
  int option = JOptionPane.showConfirmDialog(null, message, s_stringMgr.getString( [[#variable1cc2fa40]]), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
  if (option != JOptionPane.YES_OPTION) {
    return new int[0]; // no update done to underlying data
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cc2fa80]]
getWarningOnCurrentData 
12[[#1cc2fa80]]
getWarningOnProjectedUpdate 
21[[#1cc37860]]
oldValue 
22[[#1cc37860]]
newValue 
31[[#1cc2fa40]]
"baseDataSetViewerDestination.warning" 
32[[#1cc2fa40]]
"baseDataSetViewerDestination.warning2"