Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 4 | 2 | 0.969 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 169 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java |
2 | 8 | 86 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java |
3 | 8 | 81 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java |
4 | 8 | 84 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.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 } } |
| ||||
{ 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 } } |
| ||||
{ 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 } } |
| ||||
{ 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 } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8bcf8e0]] | isExtractInterfaceAvailable |
1 | 2 | [[#b8bcf8e0]] | isExtractSupertypeAvailable |
1 | 3 | [[#b8bcf8e0]] | isMoveInnerAvailable |
1 | 4 | [[#b8bcf8e0]] | isUseSuperTypeAvailable |
2 | 1 | [[#b8bcf840]] | e |
2 | 2 | [[#b8bcf840]] | exception |
2 | 3 | [[#b8bcf840]] | e |
2 | 4 | [[#b8bcf840]] | e |