CloneSet44


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
82430.985compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1821
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/dboutput/NewDBOutputWorksheetAction.java
2821
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/invalidobjects/NewInvalidObjectsWorksheetAction.java
3821
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/NewSessionInfoWorksheetAction.java
4821
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/NewSGATraceWorksheetAction.java
Next
Last
Clone Instance
1
Line Count
82
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/dboutput/NewDBOutputWorksheetAction.java

package net.sourceforge.squirrel_sql.plugins.oracle.dboutput;

/*
 * Copyright (C) 2003 Jason Height
 * jmheight@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 java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import net.sourceforge.squirrel_sql.fw.util.Resources;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;

/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS Output Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
public class NewDBOutputWorksheetAction extends SquirrelAction {
  private Resources _resources;

  /**
   * Ctor.
   *
   * @param   app  Application API.
   *
   * @throws  IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public NewDBOutputWorksheetAction(IApplication app, Resources rsrc) {
    super(app, rsrc);
    _resources = rsrc;
    if (app == null) {
      throw new IllegalArgumentException("Null IApplication passed");
    }
  }

  /**
   * Display the about box.
   *
   * @param   evt  The event being processed.
   */
  public void actionPerformed(ActionEvent evt) {
    ISession activeSession = getApplication().getSessionManager().getActiveSession();
    if (activeSession == null)
      throw new IllegalArgumentException("This method should not be called with a null activeSession");
    final DBOutputInternalFrame sif = new DBOutputInternalFrame(activeSession, _resources);
    getApplication().getMainFrame().addWidget(sif);
    // If we don't invokeLater here no Short-Cut-Key is sent
    // to the internal frame
    // seen under java version "1.4.1_01" and Linux
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   sif.setVisible(true);
                                 }
                               } );
  }
}




Next
Previous
Clone Instance
2
Line Count
82
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/invalidobjects/NewInvalidObjectsWorksheetAction.java

package net.sourceforge.squirrel_sql.plugins.oracle.invalidobjects;

/*
 * Copyright (C) 2003 Jason Height
 * jmheight@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 java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import net.sourceforge.squirrel_sql.fw.util.Resources;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;

/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS Invalid Objects Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
public class NewInvalidObjectsWorksheetAction extends SquirrelAction {
  private Resources _resources;

  /**
   * Ctor.
   *
   * @param   app  Application API.
   *
   * @throws  IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public NewInvalidObjectsWorksheetAction(IApplication app, Resources rsrc) {
    super(app, rsrc);
    _resources = rsrc;
    if (app == null) {
      throw new IllegalArgumentException("Null IApplication passed");
    }
  }

  /**
   * Display the about box.
   *
   * @param   evt  The event being processed.
   */
  public void actionPerformed(ActionEvent evt) {
    ISession activeSession = getApplication().getSessionManager().getActiveSession();
    if (activeSession == null)
      throw new IllegalArgumentException("This method should not be called with a null activeSession");
    final InvalidObjectsInternalFrame sif = new InvalidObjectsInternalFrame(activeSession, _resources);
    getApplication().getMainFrame().addWidget(sif);
    // If we don't invokeLater here no Short-Cut-Key is sent
    // to the internal frame
    // seen under java version "1.4.1_01" and Linux
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   sif.setVisible(true);
                                 }
                               } );
  }
}




Next
Previous
Clone Instance
3
Line Count
82
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/NewSessionInfoWorksheetAction.java

package net.sourceforge.squirrel_sql.plugins.oracle.sessioninfo;

/*
 * Copyright (C) 2003 Jason Height
 * jmheight@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 java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import net.sourceforge.squirrel_sql.fw.util.Resources;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;

/**
 * This <CODE>Action</CODE> displays a new Oracle Session Information Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
public class NewSessionInfoWorksheetAction extends SquirrelAction {
  private Resources _resources;

  /**
   * Ctor.
   *
   * @param   app  Application API.
   *
   * @throws  IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public NewSessionInfoWorksheetAction(IApplication app, Resources rsrc) {
    super(app, rsrc);
    _resources = rsrc;
    if (app == null) {
      throw new IllegalArgumentException("Null IApplication passed");
    }
  }

  /**
   * Display the about box.
   *
   * @param   evt  The event being processed.
   */
  public void actionPerformed(ActionEvent evt) {
    ISession activeSession = getApplication().getSessionManager().getActiveSession();
    if (activeSession == null)
      throw new IllegalArgumentException("This method should not be called with a null activeSession");
    final SessionInfoInternalFrame sif = new SessionInfoInternalFrame(activeSession, _resources);
    getApplication().getMainFrame().addWidget(sif);
    // If we don't invokeLater here no Short-Cut-Key is sent
    // to the internal frame
    // seen under java version "1.4.1_01" and Linux
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   sif.setVisible(true);
                                 }
                               } );
  }
}




First
Previous
Clone Instance
4
Line Count
82
Source Line
1
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/NewSGATraceWorksheetAction.java

package net.sourceforge.squirrel_sql.plugins.oracle.SGAtrace;

/*
 * Copyright (C) 2003 Jason Height
 * jmheight@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 java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import net.sourceforge.squirrel_sql.fw.util.Resources;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;

/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS SGA Trace Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
public class NewSGATraceWorksheetAction extends SquirrelAction {
  private Resources _resources;

  /**
   * Ctor.
   *
   * @param   app  Application API.
   *
   * @throws  IllegalArgumentException
   *                      Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
   */
  public NewSGATraceWorksheetAction(IApplication app, Resources rsrc) {
    super(app, rsrc);
    _resources = rsrc;
    if (app == null) {
      throw new IllegalArgumentException("Null IApplication passed");
    }
  }

  /**
   * Display the about box.
   *
   * @param   evt  The event being processed.
   */
  public void actionPerformed(ActionEvent evt) {
    ISession activeSession = getApplication().getSessionManager().getActiveSession();
    if (activeSession == null)
      throw new IllegalArgumentException("This method should not be called with a null activeSession");
    final SGATraceInternalFrame sif = new SGATraceInternalFrame(activeSession, _resources);
    getApplication().getMainFrame().addWidget(sif);
    // If we don't invokeLater here no Short-Cut-Key is sent
    // to the internal frame
    // seen under java version "1.4.1_01" and Linux
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   sif.setVisible(true);
                                 }
                               } );
  }
}




Clone AbstractionParameter Count: 3Parameter Bindings

package net.sourceforge.squirrel_sql.plugins.oracle. [[#variable1903cf80]];

/*
 * Copyright (C) 2003 Jason Height
 * jmheight@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 java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import net.sourceforge.squirrel_sql.fw.util.Resources;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISession;

/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS Output Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
/**
 * This <CODE>Action</CODE> displays a new Oracle Session Information Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS SGA Trace Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
/**
 * This <CODE>Action</CODE> displays a new Oracle DBMS Invalid Objects Worksheet.
 *
 * @author  <A HREF="mailto:jmheight@users.sourceforge.net">Jason Height</A>
 */
public class [[#variable1903cec0]]extends SquirrelAction {
  private Resources _resources;

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

  /**
           * Display the about box.
           *
           * @param   evt  The event being processed.
           */
  public void actionPerformed(ActionEvent evt) {
    ISession activeSession = getApplication().getSessionManager().getActiveSession();
    if (activeSession == null)
      throw new IllegalArgumentException("This method should not be called with a null activeSession");
    final [[#variable1cf0af40]] sif = new [[#variable1cf0af40]](activeSession, _resources);
    getApplication().getMainFrame().addWidget(sif);
    // If we don't invokeLater here no Short-Cut-Key is sent
    // to the internal frame
    // seen under java version "1.4.1_01" and Linux
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   sif.setVisible(true);
                                 }
                               } );
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1903cf80]]
dboutput 
12[[#1903cf80]]
invalidobjects 
13[[#1903cf80]]
sessioninfo 
14[[#1903cf80]]
SGAtrace 
21[[#1903cec0]]
NewDBOutputWorksheetAction 
22[[#1903cec0]]
NewInvalidObjectsWorksheetAction 
23[[#1903cec0]]
NewSessionInfoWorksheetAction 
24[[#1903cec0]]
NewSGATraceWorksheetAction 
31[[#1cf0af40]]
DBOutputInternalFrame 
32[[#1cf0af40]]
InvalidObjectsInternalFrame 
33[[#1cf0af40]]
SessionInfoInternalFrame 
34[[#1cf0af40]]
SGATraceInternalFrame