CloneSet267


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52220.982type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15236
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CopyQualifiedObjectNameAction.java
25234
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CopySimpleObjectNameAction.java
Next
Last
Clone Instance
1
Line Count
52
Source Line
36
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CopyQualifiedObjectNameAction.java

/**
 * This <CODE>Action</CODE> will copy the qualified object names of all objects
 * currently in the object tree and place on the system clipboard.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CopyQualifiedObjectNameAction extends SquirrelAction implements IObjectTreeAction, CopyObjectNameCommand.ICopyTypes {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger(CopyQualifiedObjectNameAction.class );

  /** API for the current tree. */
  private IObjectTreeAPI _tree;

  /**
   * Ctor.
   *
   * @param       app             Application API.
   */
  public CopyQualifiedObjectNameAction(IApplication app) {
    super(app);
  }

  /**
   * Set the current object tree API.
   *
   * @param       tree    Current ObjectTree
   */
  public void setObjectTree(IObjectTreeAPI tree) {
    _tree = tree;
    setEnabled(null != _tree);
  }

  /**
   * Perform this action. Use the <TT>CopyObjectNameCommand</TT>.
   *
   * @param       evt     The current event.
   */
  public void actionPerformed(ActionEvent evt) {
    if (_tree != null) {
      try {
        new CopyObjectNameCommand(_tree, QUALIFIED_NAME).execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured copying object names";
        _tree.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}




First
Previous
Clone Instance
2
Line Count
52
Source Line
34
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CopySimpleObjectNameAction.java

/**
 * This <CODE>Action</CODE> will copy the simple object names of all objects
 * currently in the object tree and place on the system clipboard.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CopySimpleObjectNameAction extends SquirrelAction implements IObjectTreeAction, CopyObjectNameCommand.ICopyTypes {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger(CopySimpleObjectNameAction.class );

  /** API for the current tree. */
  private IObjectTreeAPI _tree;

  /**
   * Ctor.
   *
   * @param       app             Application API.
   */
  public CopySimpleObjectNameAction(IApplication app) {
    super(app);
  }

  /**
   * Set the current object tree API.
   *
   * @param       tree    Current ObjectTree
   */
  public void setObjectTree(IObjectTreeAPI tree) {
    _tree = tree;
    setEnabled(null != _tree);
  }

  /**
   * Perform this action. Use the <TT>CopyObjectNameCommand</TT>.
   *
   * @param       evt     The current event.
   */
  public void actionPerformed(ActionEvent evt) {
    if (_tree != null) {
      try {
        new CopyObjectNameCommand(_tree, SIMPLE_NAME).execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured copying object names";
        _tree.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}




Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * This <CODE>Action</CODE> will copy the simple object names of all objects
 * currently in the object tree and place on the system clipboard.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
/**
 * This <CODE>Action</CODE> will copy the qualified object names of all objects
 * currently in the object tree and place on the system clipboard.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class [[#variable18dada80]]extends SquirrelAction implements IObjectTreeAction, CopyObjectNameCommand.ICopyTypes {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger( [[#variable18dada80]].class );

  /** API for the current tree. */
  private IObjectTreeAPI _tree;

  /**
           * Ctor.
           *
           * @param       app             Application API.
           */
  public [[#variable18dada80]](IApplication app) {
    super(app);
  }

  /**
           * Set the current object tree API.
           *
           * @param       tree    Current ObjectTree
           */
  public void setObjectTree(IObjectTreeAPI tree) {
    _tree = tree;
    setEnabled(null != _tree);
  }

  /**
           * Perform this action. Use the <TT>CopyObjectNameCommand</TT>.
           *
           * @param       evt     The current event.
           */
  public void actionPerformed(ActionEvent evt) {
    if (_tree != null) {
      try {
        new CopyObjectNameCommand(_tree,  [[#variable18db4c20]]).execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured copying object names";
        _tree.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18dada80]]
CopyQualifiedObjectNameAction 
12[[#18dada80]]
CopySimpleObjectNameAction 
21[[#18db4c20]]
QUALIFIED_NAME 
22[[#18db4c20]]
SIMPLE_NAME