CloneSet2041


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10360.957statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110152
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java
210163
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java
310174
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java
Clone Instance
1
Line Count
10
Source Line
152
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java

                fRestoreDefaults = new FoldingAction(FoldingMessages.getResourceBundle(), "Projection.Restore.") { //$NON-NLS-1$
                         public void run() {
                                 if (editor instanceof JavaEditor) {
                                         JavaEditor javaEditor = (JavaEditor) editor;
                                         javaEditor.resetProjection();
                                 }
                         }
                                   };
                fRestoreDefaults.setActionDefinitionId(IFoldingCommandIds.FOLDING_RESTORE);
                editor.setAction("FoldingRestore", fRestoreDefaults); //$NON-NLS-1$


Clone Instance
2
Line Count
10
Source Line
163
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java

                fCollapseMembers = new FoldingAction(FoldingMessages.getResourceBundle(), "Projection.CollapseMembers.") { //$NON-NLS-1$
                         public void run() {
                                 if (editor instanceof JavaEditor) {
                                         JavaEditor javaEditor = (JavaEditor) editor;
                                         javaEditor.collapseMembers();
                                 }
                         }
                                   };
                fCollapseMembers.setActionDefinitionId(IJavaEditorActionDefinitionIds.FOLDING_COLLAPSE_MEMBERS);
                editor.setAction("FoldingCollapseMembers", fCollapseMembers); //$NON-NLS-1$


Clone Instance
3
Line Count
10
Source Line
174
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FoldingActionGroup.java

                fCollapseComments = new FoldingAction(FoldingMessages.getResourceBundle(), "Projection.CollapseComments.") { //$NON-NLS-1$
                         public void run() {
                                 if (editor instanceof JavaEditor) {
                                         JavaEditor javaEditor = (JavaEditor) editor;
                                         javaEditor.collapseComments();
                                 }
                         }
                                    };
                fCollapseComments.setActionDefinitionId(IJavaEditorActionDefinitionIds.FOLDING_COLLAPSE_COMMENTS);
                editor.setAction("FoldingCollapseComments", fCollapseComments); //$NON-NLS-1$


Clone AbstractionParameter Count: 6Parameter Bindings

 [[#variable6012f260]]= new FoldingAction(FoldingMessages.getResourceBundle(),  [[#variable6012f1a0]]) { //$NON-NLS-1$
                          public void run() {
                            if (editor instanceof JavaEditor) {
                              JavaEditor javaEditor = (JavaEditor) editor;
                              javaEditor. [[#variablea431a280]]();
                            }
                          }
                        };
 [[#variable6012f260]].setActionDefinitionId( [[#variable5ae0d9a0]]. [[#variable56eedfa0]]);
editor.setAction( [[#variable6012f1c0]],  [[#variable6012f260]]); //$NON-NLS-1$
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6012f260]]
fCollapseComments 
12[[#6012f260]]
fCollapseMembers 
13[[#6012f260]]
fRestoreDefaults 
21[[#6012f1a0]]
"Projection.CollapseComments." 
22[[#6012f1a0]]
"Projection.CollapseMembers." 
23[[#6012f1a0]]
"Projection.Restore." 
31[[#a431a280]]
collapseComments 
32[[#a431a280]]
collapseMembers 
33[[#a431a280]]
resetProjection 
41[[#5ae0d9a0]]
IJavaEditorActionDefinitionIds 
42[[#5ae0d9a0]]
IJavaEditorActionDefinitionIds 
43[[#5ae0d9a0]]
IFoldingCommandIds 
51[[#56eedfa0]]
FOLDING_COLLAPSE_COMMENTS 
52[[#56eedfa0]]
FOLDING_COLLAPSE_MEMBERS 
53[[#56eedfa0]]
FOLDING_RESTORE 
61[[#6012f1c0]]
"FoldingCollapseComments" 
62[[#6012f1c0]]
"FoldingCollapseMembers" 
63[[#6012f1c0]]
"FoldingRestore"