CloneSet474


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
61220.980compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1611
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java
2611
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllSessionsCommand.java
Next
Last
Clone Instance
1
Line Count
61
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/app/src/net/sourceforge/squirrel_sql/client/mainframe/action/CloseAllButCurrentSessionsCommand.java

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

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * 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.IApplication;

/**
 * This <CODE>ICommand</CODE> allows the user to close all open sessions.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CloseAllButCurrentSessionsCommand implements ICommand {
  /** Application API. */
  private final IApplication _app;

  /**
   * Ctor.
   *
   * @param       app     Application API.
   *
   * @throws      IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public CloseAllButCurrentSessionsCommand(IApplication app) throws IllegalArgumentException {
    super();
    if (app == null) {
      throw new IllegalArgumentException("IApplication == null");
    }
    _app = app;
  }

  /**
   * Close all sessions.
   */
  public void execute() {
    _app.getSessionManager().closeAllButCurrentSessions();
  }
}




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

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

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * 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.IApplication;

/**
 * This <CODE>ICommand</CODE> allows the user to close all open sessions.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class CloseAllSessionsCommand implements ICommand {
  /** Application API. */
  private final IApplication _app;

  /**
   * Ctor.
   *
   * @param       app     Application API.
   *
   * @throws      IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public CloseAllSessionsCommand(IApplication app) throws IllegalArgumentException {
    super();
    if (app == null) {
      throw new IllegalArgumentException("IApplication == null");
    }
    _app = app;
  }

  /**
   * Close all sessions.
   */
  public void execute() {
    _app.getSessionManager().closeAllSessions();
  }
}




Clone AbstractionParameter Count: 2Parameter Bindings

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

/*
 * Copyright (C) 2001-2004 Colin Bell
 * colbell@users.sourceforge.net
 *
 * 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.IApplication;

/**
 * This <CODE>ICommand</CODE> allows the user to close all open sessions.
 *
 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
 */
public class [[#variable1ce60340]]implements ICommand {
  /** Application API. */
  private final IApplication _app;

  /**
           * Ctor.
           *
           * @param       app     Application API.
           *
           * @throws      IllegalArgumentException
           *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
           */
  public [[#variable1ce60340]](IApplication app) throws IllegalArgumentException {
    super();
    if (app == null) {
      throw new IllegalArgumentException("IApplication == null");
    }
    _app = app;
  }

  /**
           * Close all sessions.
           */
  public void execute() {
    _app.getSessionManager(). [[#variable1ce602c0]]();
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ce60340]]
CloseAllButCurrentSessionsCommand 
12[[#1ce60340]]
CloseAllSessionsCommand 
21[[#1ce602c0]]
closeAllButCurrentSessions 
22[[#1ce602c0]]
closeAllSessions