public static View newView(View view, Buffer buffer, boolean plainView)
{
View.ViewConfig config;
if(view != null && (plainView == view.isPlainView()))
config = view.getViewConfig();
else
config = new View.ViewConfig(plainView);
return newView(view,buffer,config);
private GrabKeyDialog.KeyBinding createBinding(String name,
String label, String shortcut)
{
if(shortcut != null && shortcut.length() == 0)
shortcut = null;
GrabKeyDialog.KeyBinding binding
= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);
allBindings.addElement(binding);
return binding;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ShortcutsOptionPane.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public static View newView(View view, Buffer buffer, boolean plainView)↵ | | 1 | p↵
|
2 | {↵ | | |
|
3 | View.ViewConfig config;↵ | | |
|
4 | if(view != null && (plainView == view.isPlainView()))↵ | | |
|
5 | config = view.getViewConfig();↵ | | |
|
6 | else↵ | | |
|
7 | config = new View.ViewConfig(plainView);↵ | | |
|
8 | return newView(view,buffer,config)↵ | | 2 | rivate GrabKeyDialog.KeyBinding createBinding(String name,↵
|
| | | 3 | String label, String shortcut)↵
|
| | | 4 | {↵
|
| | | 5 | if(shortcut != null && shortcut.length() == 0)↵
|
| | | 6 | shortcut = null;↵
|
|
| | | 7 | GrabKeyDialog.KeyBinding binding↵
|
| | | 8 | = new GrabKeyDialog.KeyBinding(name,label,shortcut,false);↵
|
|
| | | 9 | allBindings.addElement(binding);↵
|
9 | ;↵ | | 10 | return binding;↵
|
10 | | | 11 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |