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 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);
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/sessioninfo/NewSessionInfoWorksheetAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void actionPerformed(ActionEvent evt) {
1
public void actionPerformed(ActionEvent evt) {
2
          ISession activeSession = getApplication().getSessionManager().getActiveSession();
2
          ISession activeSession = getApplication().getSessionManager().getActiveSession();
3
          if (activeSession == null)
3
          if (activeSession == null)
4
            throw new IllegalArgumentException("This method should not be called with a null activeSession");
4
            throw new IllegalArgumentException("This method should not be called with a null activeSession");
5
          final SGATraceInternalFrame sif = new SGATraceInternalFrame(activeSession, _resources);
5
          final SessionInfoInternalFrame sif = new SessionInfoInternalFrame(activeSession, _resources);
6
          getApplication().getMainFrame().addWidget(sif);
6
          getApplication().getMainFrame().addWidget(sif);
7
          // If we don't invokeLater here no Short-Cut-Key is sent
7
          // If we don't invokeLater here no Short-Cut-Key is sent
8
          // to the internal frame
8
          // to the internal frame
9
          // seen under java version "1.4.1_01" and Linux
9
          // seen under java version "1.4.1_01" and Linux
10
          SwingUtilities.invokeLater(new Runnable()
10
          SwingUtilities.invokeLater(new Runnable()
11
          {
11
          {
12
                  public void run()
12
                  public void run()
13
                  {
13
                  {
14
                          sif.setVisible(true);
14
                          sif.setVisible(true);
15
                  
15
                  
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