if(evt.getSource() == ok)
dispose();
else if(evt.getSource() == pluginMgr)
{
org.gjt.sp.jedit.pluginmgr.PluginManager
.showPluginManager(JOptionPane
.getFrameForComponent(
ErrorListDialog.this));
}
if(orientation.getValue()==OrientationRequested.PORTRAIT.getValue())
{
pf.setOrientation(PageFormat.PORTRAIT);
}
else if(orientation.getValue()==OrientationRequested.REVERSE_PORTRAIT.getValue())
{
//doesnt exist??
//pf.setOrientation(PageFormat.REVERSE_PORTRAIT);
//then just do the next best thing
pf.setOrientation(PageFormat.PORTRAIT);
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ErrorListDialog.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/print/BufferPrinter1_4.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: PageFormat getPageFormat()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if(evt.getSource() == ok)↵ | | 1 | if(orientation.getValue()==↵
|
2 | dispose(↵ | | 2 | OrientationRequested.PORTRAIT.getValue())↵
|
| | | 3 | {↵
|
3 | );↵ | | 4 | pf.setOrientation(PageFormat.PORTRAIT);↵
|
4 | ↵ | | 5 | }↵
|
5 | else if(evt.getSource() == pluginMgr)↵ | | 6 | else if(orientation.getValue()==↵
|
6 | {↵ | | |
|
7 | org.gjt.sp.jedit.pluginmgr.PluginManager↵ | | |
|
8 | .showPluginManager(JOp↵ | | 7 | OrientationRequested.REVERSE_PORTRAIT.getValue())↵
|
| | | 8 | {↵
|
| | | 9 | //doesnt exist??↵
|
9 | tionPane↵ | | 10 | //pf.setOrientation(Pa↵
|
10 | .getFrameForComponent(↵ | | |
|
11 | ErrorListDialog.this)↵ | | 11 | geFormat.REVERSE_PORTRAIT);↵
|
| | | 12 | //then just do the next best thing↵
|
12 | );↵ | | 13 | pf.setOrientation(PageFormat.PORTRAIT);↵
|
13 | } | | 14 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |