CloneSet2302


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12310.994class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112141
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java
21263
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertLocalToFieldAction.java
312114
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/IntroduceFactoryAction.java
Clone Instance
1
Line Count
12
Source Line
141
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java

        /* (non-Javadoc)
         * Method declared on SelectionDispatchAction
         */
        public void selectionChanged(ITextSelection selection) {
                setEnabled(fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
        }

        /**
         * Note: This method is for internal use only. Clients should not call this method.
         */
        public void selectionChanged(JavaTextSelection selection) {
                try {
                        setEnabled(RefactoringAvailabilityTester.isConvertAnonymousAvailable(selection));
                } catch (JavaModelException e) {
                        setEnabled(false);
                  }
        }


Clone Instance
2
Line Count
12
Source Line
63
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertLocalToFieldAction.java

        /* (non-Javadoc)
         * Method declared on SelectionDispatchAction
         */
        public void selectionChanged(ITextSelection selection) {
                setEnabled(fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
        }

        /**
         * Note: This method is for internal use only. Clients should not call this method.
         */
        public void selectionChanged(JavaTextSelection selection) {
                try {
                        setEnabled(RefactoringAvailabilityTester.isPromoteTempAvailable(selection));
                } catch (JavaModelException e) {
                        setEnabled(false);
                  }
        }


Clone Instance
3
Line Count
12
Source Line
114
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/IntroduceFactoryAction.java

        /* (non-Javadoc)
         * Method declared on SelectionDispatchAction
         */
        public void selectionChanged(ITextSelection selection) {
                setEnabled(fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
        }

        /**
         * Note: This method is for internal use only. Clients should not call this method.
         */
        public void selectionChanged(JavaTextSelection selection) {
                try {
                        setEnabled(RefactoringAvailabilityTester.isIntroduceFactoryAvailable(selection));
                } catch (JavaModelException e) {
                        setEnabled(false);
                  }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/* (non-Javadoc)
         * Method declared on SelectionDispatchAction
         */
public void selectionChanged(ITextSelection selection) {
  setEnabled(fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
}

/**
         * Note: This method is for internal use only. Clients should not call this method.
         */
public void selectionChanged(JavaTextSelection selection) {
  try {
    setEnabled(RefactoringAvailabilityTester. [[#variable9908c500]](selection));
  }
  catch (JavaModelException e) {
    setEnabled(false);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9908c500]]
isConvertAnonymousAvailable 
12[[#9908c500]]
isPromoteTempAvailable 
13[[#9908c500]]
isIntroduceFactoryAvailable