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)
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)
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/NewSGATraceWorksheetAction.java File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/dboutput/NewDBOutputWorksheetAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class NewSGATraceWorksheetAction extends SquirrelAction {
1
public class NewDBOutputWorksheetAction extends SquirrelAction {
2
    private Resources _resources;
2
    private Resources _resources;
3
	/**
3
	/**
4
	 * Ctor.
4
	 * Ctor.
5
	 *
5
	 *
6
	 * @param   app	 Application API.
6
	 * @param   app	 Application API.
7
	 *
7
	 *
8
	 * @throws  IllegalArgumentException
8
	 * @throws  IllegalArgumentException
9
	 *			Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
9
	 *			Thrown if a <TT>null</TT> <TT>IApplication</TT> passed.
10
	 */
10
	 */
11
	public NewSGATraceWorksheetAction(IApplication app, Resources rsrc) {
11
	public NewDBOutputWorksheetAction(IApplication app, Resources rsrc) {
12
		super(app, rsrc);
12
		super(app, rsrc);
13
                _resources = rsrc;
13
                _resources = rsrc;
14
		if (app == null) {
14
		if (app == null) {
15
			throw new IllegalArgumentException("Null IApplication passed");
15
			throw new IllegalArgumentException("Null IApplication passed");
16
		}
16
		}
17
	}
17
	}
18
	/**
18
	/**
19
	 * Display the about box.
19
	 * Display the about box.
20
	 *
20
	 *
21
	 * @param   evt	 The event being processed.
21
	 * @param   evt	 The event being processed.
22
	 */
22
	 */
23
	public void actionPerformed(ActionEvent evt) {
23
	public void actionPerformed(ActionEvent evt) {
24
          ISession activeSession = getApplication().getSessionManager().getActiveSession();
24
          ISession activeSession = getApplication().getSessionManager().getActiveSession();
25
          if (activeSession == null)
25
          if (activeSession == null)
26
            throw new IllegalArgumentException("This method should not be called with a null activeSession");
26
            throw new IllegalArgumentException("This method should not be called with a null activeSession");
27
          final SGATraceInternalFrame sif = new SGATraceInternalFrame(activeSession, _resources);
27
          final DBOutputInternalFrame sif = new DBOutputInternalFrame(activeSession, _resources);
28
          getApplication().getMainFrame().addWidget(sif);
28
          getApplication().getMainFrame().addWidget(sif);
29
          // If we don't invokeLater here no Short-Cut-Key is sent
29
          // If we don't invokeLater here no Short-Cut-Key is sent
30
          // to the internal frame
30
          // to the internal frame
31
          // seen under java version "1.4.1_01" and Linux
31
          // seen under java version "1.4.1_01" and Linux
32
          SwingUtilities.invokeLater(new Runnable()
32
          SwingUtilities.invokeLater(new Runnable()
33
          {
33
          {
34
                  public void run()
34
                  public void run()
35
                  {
35
                  {
36
                          sif.setVisible(true)
36
                          sif.setVisible(true)
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0