CloneSet232


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

/**
 * This <TT>Action</TT> will display the next results tab for the
 * current session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class GotoNextResultsTabAction extends SquirrelAction implements ISQLPanelAction {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger(GotoNextResultsTabAction.class );

  /** Current panel. */
  private ISQLPanelAPI _panel;

  /** Command that will be executed by this action. */
  private ICommand _cmd;

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

  public void setSQLPanel(ISQLPanelAPI panel) {
    _panel = panel;
    _cmd = null;
    setEnabled(null != _panel);
  }

  /**
   * Display the next results tab.
   *
   * @param       evt             Event being executed.
   */
  public synchronized void actionPerformed(ActionEvent evt) {
    if (_panel != null) {
      if (_cmd == null) {
        _cmd = new GotoNextResultsTabCommand(_panel);
      }
      try {
        _cmd.execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured seting current results tab";
        _panel.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}




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

/**
 * This <TT>Action</TT> will display the previous results tab for the
 * current session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class GotoPreviousResultsTabAction extends SquirrelAction implements ISQLPanelAction {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger(GotoPreviousResultsTabAction.class );

  /** Current panel. */
  private ISQLPanelAPI _panel;

  /** Command that will be executed by this action. */
  private ICommand _cmd;

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

  public void setSQLPanel(ISQLPanelAPI panel) {
    _panel = panel;
    _cmd = null;
    setEnabled(null != _panel);
  }

  /**
   * Display the previous results tab.
   *
   * @param       evt             Event being executed.
   */
  public synchronized void actionPerformed(ActionEvent evt) {
    if (_panel != null) {
      if (_cmd == null) {
        _cmd = new GotoPreviousResultsTabCommand(_panel);
      }
      try {
        _cmd.execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured seting current results tab";
        _panel.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}




Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * This <TT>Action</TT> will display the previous results tab for the
 * current session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
/**
 * This <TT>Action</TT> will display the next results tab for the
 * current session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class [[#variable18d70fa0]]extends SquirrelAction implements ISQLPanelAction {
  /** Logger for this class. */
  private final static ILogger s_log = LoggerController.createLogger( [[#variable18d70fa0]].class );

  /** Current panel. */
  private ISQLPanelAPI _panel;

  /** Command that will be executed by this action. */
  private ICommand _cmd;

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

  public void setSQLPanel(ISQLPanelAPI panel) {
    _panel = panel;
    _cmd = null;
    setEnabled(null != _panel);
  }

  /**
           * Display the previous results tab.
           *
           * @param       evt             Event being executed.
           */
  /**
           * Display the next results tab.
           *
           * @param       evt             Event being executed.
           */
  public synchronized void actionPerformed(ActionEvent evt) {
    if (_panel != null) {
      if (_cmd == null) {
        _cmd = new [[#variable18d70f00]](_panel);
      }
      try {
        _cmd.execute();
      }
      catch (Throwable
             ex) {
        final String msg = "Error occured seting current results tab";
        _panel.getSession().showErrorMessage(msg + ": " + ex);
        s_log.error(msg, ex);
      }
    }
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d70fa0]]
GotoNextResultsTabAction 
12[[#18d70fa0]]
GotoPreviousResultsTabAction 
21[[#18d70f00]]
GotoNextResultsTabCommand 
22[[#18d70f00]]
GotoPreviousResultsTabCommand