CloneSet125


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
70210.992class_body_declarations[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16945
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/BasePreparedStatementTab.java
27043
E:/TSE/Projects-CloneDR/sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/tab/BaseSQLTab.java
Next
Last
Clone Instance
1
Line Count
69
Source Line
45
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/BasePreparedStatementTab.java

/** Title to display for tab. */
private final String _title;

/** Hint to display for tab. */
private final String _hint;

private boolean _firstRowOnly;

/** Component to display in tab. */
private DataSetScrollingPanel _comp;

/** Logger for this class. */
private final static ILogger s_log = LoggerController.createLogger(BasePreparedStatementTab.class );

public BasePreparedStatementTab(String title, String hint) {
  this(title, hint, false);
}

public BasePreparedStatementTab(String title, String hint, boolean firstRowOnly) {
  super();
  if (title == null) {
    throw new IllegalArgumentException("Title == null");
  }
  _title = title;
  _hint = hint != null ? hint: title;
  _firstRowOnly = firstRowOnly;
}

/**
 * Return the title for the tab.
 * 
 * @return The title for the tab.
 */
public String getTitle() {
  return _title;
}

/**
 * Return the hint for the tab.
 * 
 * @return The hint for the tab.
 */
public String getHint() {
  return _hint;
}

public void clear() {
}

public Component getComponent() {
  if (_comp == null) {
    ISession session = getSession();
    SessionProperties props = session.getProperties();
    String destClassName = props.getMetaDataOutputClassName();
    try {
      _comp = new DataSetScrollingPanel(destClassName, null);
    }
    catch (Exception
           e) {
      s_log.error("Unexpected exception from call to getComponent: " + e.getMessage(), e);
    }
  }
  return _comp;
}


First
Previous
Clone Instance
2
Line Count
70
Source Line
43
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/mysql/src/net/sourceforge/squirrel_sql/plugins/mysql/tab/BaseSQLTab.java

/** Title to display for tab. */
private final String _title;

/** Hint to display for tab. */
private final String _hint;

private boolean _firstRowOnly;

/** Component to display in tab. */
private DataSetScrollingPanel _comp;

/** Logger for this class. */
private final static ILogger s_log = LoggerController.createLogger(BaseSQLTab.class );

public BaseSQLTab(String title, String hint) {
  this(title, hint, false);
}

public BaseSQLTab(String title, String hint, boolean firstRowOnly) {
  super();
  if (title == null) {
    throw new IllegalArgumentException("Title == null");
  }
  _title = title;
  _hint = hint != null ? hint: title;
  _firstRowOnly = firstRowOnly;
}

/**
 * Return the title for the tab.
 *
 * @return      The title for the tab.
 */
public String getTitle() {
  return _title;
}

/**
 * Return the hint for the tab.
 *
 * @return      The hint for the tab.
 */
public String getHint() {
  return _hint;
}

public void clear() {
}

public Component getComponent() {
  if (_comp == null) {
    ISession session = getSession();
    SessionProperties props = session.getProperties();
    String destClassName = props.getMetaDataOutputClassName();
    try {
      _comp = new DataSetScrollingPanel(destClassName, null);
    }
    catch (Exception
           e) {
      s_log.error("Unexpected exception from call to getComponent: " + e.getMessage(), e);
    }
  }
  return _comp;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/** Title to display for tab. */
private final String _title;

/** Hint to display for tab. */
private final String _hint;

private boolean _firstRowOnly;

/** Component to display in tab. */
private DataSetScrollingPanel _comp;

/** Logger for this class. */
private final static ILogger s_log = LoggerController.createLogger( [[#variable18cad4a0]].class );

public [[#variable18cad4a0]](String title, String hint) {
  this(title, hint, false);
}

public [[#variable18cad4a0]](String title, String hint, boolean firstRowOnly) {
  super();
  if (title == null) {
    throw new IllegalArgumentException("Title == null");
  }
  _title = title;
  _hint = hint != null ? hint: title;
  _firstRowOnly = firstRowOnly;
}

/**
         * Return the title for the tab.
         *
         * @return      The title for the tab.
         */
/**
         * Return the title for the tab.
         * 
         * @return The title for the tab.
         */
public String getTitle() {
  return _title;
}

/**
         * Return the hint for the tab.
         *
         * @return      The hint for the tab.
         */
/**
         * Return the hint for the tab.
         * 
         * @return The hint for the tab.
         */
public String getHint() {
  return _hint;
}

public void clear() {
}

public Component getComponent() {
  if (_comp == null) {
    ISession session = getSession();
    SessionProperties props = session.getProperties();
    String destClassName = props.getMetaDataOutputClassName();
    try {
      _comp = new DataSetScrollingPanel(destClassName, null);
    }
    catch (Exception
           e) {
      s_log.error("Unexpected exception from call to getComponent: " + e.getMessage(), e);
    }
  }
  return _comp;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18cad4a0]]
BasePreparedStatementTab 
12[[#18cad4a0]]
BaseSQLTab