CloneSet250


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18330.969method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11879
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverAction.java
21879
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverAction.java
31972
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteAction.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
79
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CopyDriverAction.java

/**
 * Perform this action. Use the <TT>CopyDriverCommand</TT>.
 *
 * @param       evt      The current event.
 */
public void actionPerformed(ActionEvent evt) {
  final IApplication app = getApplication();
  final DriversListInternalFrame tw = app.getWindowManager().getDriversListInternalFrame();
  tw.moveToFront();
  try {
    tw.setSelected(true);
  }
  catch (PropertyVetoException
         ex) {
    //i18n[CopyDriverAction.error.selectingwindow=Error selecting window]
    s_log.error(s_stringMgr.getString("CopyDriverAction.error.selectingwindow"), ex);
  }
  ISQLDriver driver = _drivers.getSelectedDriver();
  if (driver != null) {
    new CopyDriverCommand(app, driver).execute();
  }
}


Next
Previous
Clone Instance
2
Line Count
18
Source Line
79
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ModifyDriverAction.java

/**
 * Perform this action. Retrieve the current driver from the list and
 * allow the user to maintain it.
 *
 * @param       evt      The current event.
 */
public void actionPerformed(ActionEvent evt) {
  IApplication app = getApplication();
  DriversListInternalFrame tw = app.getWindowManager().getDriversListInternalFrame();
  tw.moveToFront();
  try {
    tw.setSelected(true);
  }
  catch (PropertyVetoException
         ex) {
    //i18n[ModifyDriverAction.error.selectingwindow=Error selecting window]
    s_log.error(s_stringMgr.getString("ModifyDriverAction.error.selectingwindow"), ex);
  }
  ISQLDriver driver = _drivers.getSelectedDriver();
  if (driver != null) {
    new ModifyDriverCommand(app, driver).execute();
  }
}


First
Previous
Clone Instance
3
Line Count
19
Source Line
72
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/ShowDriverWebsiteAction.java

/**
 * Perform this action. Execute the create driver command.
 *
 * @param       evt      The current event.
 */
public void actionPerformed(ActionEvent evt) {
  IApplication app = getApplication();
  DriversListInternalFrame tw = app.getWindowManager().getDriversListInternalFrame();
  tw.moveToFront();
  try {
    tw.setSelected(true);
  }
  catch (PropertyVetoException
         ex) {
    //i18n[CreateDriverAction.error.selectingwindow=Error selecting window]
    s_log.error(s_stringMgr.getString("CreateDriverAction.error.selectingwindow"), ex);
  }
  ISQLDriver driver = _drivers.getSelectedDriver();
  if (driver != null) {
    new ShowDriverWebsiteCommand(app, driver).execute();
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Perform this action. Retrieve the current driver from the list and
         * allow the user to maintain it.
         *
         * @param       evt      The current event.
         */
/**
         * Perform this action. Execute the create driver command.
         *
         * @param       evt      The current event.
         */
/**
         * Perform this action. Use the <TT>CopyDriverCommand</TT>.
         *
         * @param       evt      The current event.
         */
public void actionPerformed(ActionEvent evt) {
   [[#variable18d96e60]]IApplication app = getApplication();
   [[#variable18d96e60]]DriversListInternalFrame tw = app.getWindowManager().getDriversListInternalFrame();
  tw.moveToFront();
  try {
    tw.setSelected(true);
  }
  catch (PropertyVetoException
         ex) {
    //i18n[ModifyDriverAction.error.selectingwindow=Error selecting window]
    //i18n[CreateDriverAction.error.selectingwindow=Error selecting window]
    //i18n[CopyDriverAction.error.selectingwindow=Error selecting window]
    s_log.error(s_stringMgr.getString( [[#variable18d96e20]]), ex);
  }
  ISQLDriver driver = _drivers.getSelectedDriver();
  if (driver != null) {
    new [[#variable18d96dc0]](app, driver).execute();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d96e60]]
final 
12[[#18d96e60]]
13[[#18d96e60]]
21[[#18d96e20]]
"CopyDriverAction.error.selectingwindow" 
22[[#18d96e20]]
"ModifyDriverAction.error.selectingwindow" 
23[[#18d96e20]]
"CreateDriverAction.error.selectingwindow" 
31[[#18d96dc0]]
CopyDriverCommand 
32[[#18d96dc0]]
ModifyDriverCommand 
33[[#18d96dc0]]
ShowDriverWebsiteCommand