CloneSet499


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
59220.979compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1591
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java
2591
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultWindowsCommand.java
Next
Last
Clone Instance
1
Line Count
59
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/CloseAllSQLResultTabsCommand.java

package net.sourceforge.squirrel_sql.client.session.action;

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * Modifications Copyright (C) 2003-2004 Jason Height
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;

/**
 * This <CODE>ICommand</CODE> closes all the SQL Results tabs
 * for the specified session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CloseAllSQLResultTabsCommand implements ICommand {
  private final ISQLPanelAPI _api;

  /**
   * Ctor.
   *
   * @param       api
   *
   * @throws      IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
   */
  public CloseAllSQLResultTabsCommand(ISQLPanelAPI api) {
    super();
    if (api == null) {
      throw new IllegalArgumentException("ISQLPanelAPI == null");
    }
    _api = api;
  }

  public void execute() {
    _api.closeAllSQLResultTabs();
  }
}




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

package net.sourceforge.squirrel_sql.client.session.action;

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * Modifications Copyright (C) 2003-2004 Jason Height
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;

/**
 * This <CODE>ICommand</CODE> closes all the torn off SQL Results
 * windows for the specified session.
 *
 * @author  <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CloseAllSQLResultWindowsCommand implements ICommand {
  private final ISQLPanelAPI _api;

  /**
   * Ctor.
   *
   * @param       api
   *
   * @throws      IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
   */
  public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api) {
    super();
    if (api == null) {
      throw new IllegalArgumentException("ISQLPanelAPI == null");
    }
    _api = api;
  }

  public void execute() {
    _api.closeAllSQLResultFrames();
  }
}




Clone AbstractionParameter Count: 2Parameter Bindings

package net.sourceforge.squirrel_sql.client.session.action;

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * Modifications Copyright (C) 2003-2004 Jason Height
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
import net.sourceforge.squirrel_sql.fw.util.ICommand;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;

/**
 * This <CODE>ICommand</CODE> closes all the SQL Results tabs
 * for the specified session.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
/**
 * This <CODE>ICommand</CODE> closes all the torn off SQL Results
 * windows for the specified session.
 *
 * @author  <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class [[#variable1ce99da0]]implements ICommand {
  private final ISQLPanelAPI _api;

  /**
           * Ctor.
           *
           * @param       api
           *
           * @throws      IllegalArgumentException
           *                      Thrown if a <TT>null</TT> <TT>ISQLPanelAPI</TT> passed.
           */
  /**
           * Ctor.
           *
           * @param       api
           *
           * @throws      IllegalArgumentException
           *                      Thrown if a <TT>null</TT> <TT>ISession</TT> passed.
           */
  public [[#variable1ce99da0]](ISQLPanelAPI api) {
    super();
    if (api == null) {
      throw new IllegalArgumentException("ISQLPanelAPI == null");
    }
    _api = api;
  }

  public void execute() {
    _api. [[#variable1ce99d40]]();
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ce99da0]]
CloseAllSQLResultTabsCommand 
12[[#1ce99da0]]
CloseAllSQLResultWindowsCommand 
21[[#1ce99d40]]
closeAllSQLResultTabs 
22[[#1ce99d40]]
closeAllSQLResultFrames