CloneSet1638


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8420.969block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18169
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java
2886
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java
3881
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java
4884
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java
Clone Instance
1
Line Count
8
Source Line
169
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java

                                                                           {
                try {
                        setEnabled(RefactoringAvailabilityTester.isExtractSupertypeAvailable(selection));
                } catch (JavaModelException exception) {
                        // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253
                        if ( !(exception.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(exception))
                                JavaPlugin.log(exception);
                        setEnabled(false); //no UI - happens on selection changes
                  }
                                                                           }


Clone Instance
2
Line Count
8
Source Line
86
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java

                                                                     {
                try {
                        setEnabled(RefactoringAvailabilityTester.isMoveInnerAvailable(selection));
                } catch (JavaModelException e) {
                        // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253
                        if ( !(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e))
                                JavaPlugin.log(e);
                        setEnabled(false); //no UI
                  }
                                                                     }


Clone Instance
3
Line Count
8
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java

                                                                     {
                try {
                        setEnabled(RefactoringAvailabilityTester.isExtractInterfaceAvailable(selection));
                } catch (JavaModelException e) {
                        // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253
                        if ( !(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e))
                                JavaPlugin.log(e);
                        setEnabled(false); //no UI - happens on selection changes
                  }
                                                                     }


Clone Instance
4
Line Count
8
Source Line
84
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java

                                                                     {
                try {
                        setEnabled(RefactoringAvailabilityTester.isUseSuperTypeAvailable(selection));
                } catch (JavaModelException e) {
                        // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253
                        if ( !(e.getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged(e))
                                JavaPlugin.log(e);
                        setEnabled(false); // no UI - happens on selection changes
                  }
                                                                     }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  try {
    setEnabled(RefactoringAvailabilityTester. [[#variableb8bcf8e0]](selection));
  }
  catch (JavaModelException  [[#variableb8bcf840]]) {
    // http://bugs.eclipse.org/bugs/show_bug.cgi?id=19253
    if ( !( [[#variableb8bcf840]].getException() instanceof CharConversionException) && JavaModelUtil.isExceptionToBeLogged( [[#variableb8bcf840]]))
      JavaPlugin.log( [[#variableb8bcf840]]);
    setEnabled(false); //no UI - happens on selection changes //no UI // no UI - happens on selection changes
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8bcf8e0]]
isExtractInterfaceAvailable 
12[[#b8bcf8e0]]
isExtractSupertypeAvailable 
13[[#b8bcf8e0]]
isMoveInnerAvailable 
14[[#b8bcf8e0]]
isUseSuperTypeAvailable 
21[[#b8bcf840]]
e 
22[[#b8bcf840]]
exception 
23[[#b8bcf840]]
e 
24[[#b8bcf840]]
e