CloneSet803


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30240.951class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130233
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java
230109
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java
Clone Instance
1
Line Count
30
Source Line
233
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java

                private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT|  JavaElementLabelProvider.SHOW_SMALL_ICONS);

                public void dispose() {
                        super.dispose();
                        fLabelProvider.dispose();
                }

                public Image getColumnImage( final Object element, final int columnIndex) {
                        final MemberActionInfo info = (MemberActionInfo) element;
                        switch (columnIndex) {
                                case MEMBER_COLUMN:
                                        return fLabelProvider.getImage(info.getMember());
                                case ACTION_COLUMN:
                                        return null;
                                default:
                                        Assert.isTrue(false);
                                        return null;
                              }
                }

                public String getColumnText( final Object element, final int columnIndex) {
                        final MemberActionInfo info = (MemberActionInfo) element;
                        switch (columnIndex) {
                                case MEMBER_COLUMN:
                                        return fLabelProvider.getText(info.getMember());
                                case ACTION_COLUMN:
                                        return info.getActionLabel();
                                default:
                                        Assert.isTrue(false);
                                        return null;
                              }
                }


Clone Instance
2
Line Count
30
Source Line
109
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java

                        private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT|  JavaElementLabelProvider.SHOW_SMALL_ICONS);

                        public void dispose() {
                                fLabelProvider.dispose();
                                super.dispose();
                        }

                        public Image getColumnImage( final Object element, final int index) {
                                final MemberActionInfo info = (MemberActionInfo) element;
                                switch (index) {
                                        case MEMBER_COLUMN:
                                                return fLabelProvider.getImage(info.getMember());
                                        case ACTION_COLUMN:
                                                return null;
                                        default:
                                                Assert.isTrue(false);
                                                return null;
                                      }
                        }

                        public String getColumnText( final Object element, final int index) {
                                final MemberActionInfo info = (MemberActionInfo) element;
                                switch (index) {
                                        case MEMBER_COLUMN:
                                                return fLabelProvider.getText(info.getMember());
                                        case ACTION_COLUMN:
                                                return getActionLabel(info.getAction());
                                        default:
                                                Assert.isTrue(false);
                                                return null;
                                      }
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT|JavaElementLabelProvider.SHOW_SMALL_ICONS);

public void dispose() {
   [[#variable525dac80]].dispose();
   [[#variable538ead80]].dispose();
}

public Image getColumnImage( final Object element, final int  [[#variable64096b60]]) {
  final MemberActionInfo info = (MemberActionInfo) element;
  switch ( [[#variable64096b60]]) {
    case MEMBER_COLUMN:
      return fLabelProvider.getImage(info.getMember());
    case ACTION_COLUMN:
      return null;
    default:
      Assert.isTrue(false);
      return null;
  }
}

public String getColumnText( final Object element, final int  [[#variable64096b60]]) {
  final MemberActionInfo info = (MemberActionInfo) element;
  switch ( [[#variable64096b60]]) {
    case MEMBER_COLUMN:
      return fLabelProvider.getText(info.getMember());
    case ACTION_COLUMN:
      return [[#variable538eae80]];
    default:
      Assert.isTrue(false);
      return null;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#525dac80]]
super 
12[[#525dac80]]
fLabelProvider 
21[[#538ead80]]
fLabelProvider 
22[[#538ead80]]
super 
31[[#64096b60]]
columnIndex 
32[[#64096b60]]
index 
41[[#538eae80]]
info.getActionLabel() 
42[[#538eae80]]
getActionLabel(info.getAction())