CloneSet154


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
43460.965class_body
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14340
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInProjectAction.java
24339
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInProjectAction.java
34339
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindReadReferencesInProjectAction.java
44339
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindWriteReferencesInProjectAction.java
Clone Instance
1
Line Count
43
Source Line
40
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInProjectAction.java

                                                                            {

        /**
         * Creates a new <code>FindDeclarationsInProjectAction</code>. The action 
         * requires that the selection provided by the site's selection provider is of type 
         * <code>IStructuredSelection</code>.
         * 
         * @param site the site providing context information for this action
         */
        public FindDeclarationsInProjectAction(IWorkbenchSite site) {
                super(site);
        }

        /**
         * Note: This constructor is for internal use only. Clients should not call this constructor.
         * @param editor the Java editor
         */
        public FindDeclarationsInProjectAction(JavaEditor editor) {
                super(editor);
        }

        void init() {
                setText(SearchMessages.Search_FindDeclarationsInProjectAction_label);
                setToolTipText(SearchMessages.Search_FindDeclarationsInProjectAction_tooltip);
                setImageDescriptor(JavaPluginImages.DESC_OBJS_SEARCH_DECL);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.FIND_DECLARATIONS_IN_PROJECT_ACTION);
        }

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
                JavaEditor editor = getEditor();

                IJavaSearchScope scope;
                String description;
                boolean isInsideJRE = true;
                if (editor != null) {
                        scope = factory.createJavaProjectSearchScope(editor.getEditorInput(), isInsideJRE);
                        description = factory.getProjectScopeDescription(editor.getEditorInput(), isInsideJRE);
                }
                else   {
                        scope = factory.createJavaProjectSearchScope(element.getJavaProject(), isInsideJRE);
                        description = factory.getProjectScopeDescription(element.getJavaProject(), isInsideJRE);
                }
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }
                                                                            }


Clone Instance
2
Line Count
43
Source Line
39
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInProjectAction.java

                                                                            {

        /**
         * Creates a new <code>FindImplementorsInProjectAction</code>. The action 
         * requires that the selection provided by the site's selection provider is of type 
         * <code>IStructuredSelection</code>.
         * 
         * @param site the site providing context information for this action
         */
        public FindImplementorsInProjectAction(IWorkbenchSite site) {
                super(site);
        }

        /**
         * Note: This constructor is for internal use only. Clients should not call this constructor.
         * @param editor the Java editor
         */
        public FindImplementorsInProjectAction(JavaEditor editor) {
                super(editor);
        }

        void init() {
                setText(SearchMessages.Search_FindImplementorsInProjectAction_label);
                setToolTipText(SearchMessages.Search_FindImplementorsInProjectAction_tooltip);
                setImageDescriptor(JavaPluginImages.DESC_OBJS_SEARCH_DECL);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.FIND_IMPLEMENTORS_IN_PROJECT_ACTION);
        }

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
                JavaEditor editor = getEditor();

                IJavaSearchScope scope;
                String description;
                boolean isInsideJRE = factory.isInsideJRE(element);
                if (editor != null) {
                        scope = factory.createJavaProjectSearchScope(editor.getEditorInput(), isInsideJRE);
                        description = factory.getProjectScopeDescription(editor.getEditorInput(), isInsideJRE);
                }
                else   {
                        scope = factory.createJavaProjectSearchScope(element.getJavaProject(), isInsideJRE);
                        description = factory.getProjectScopeDescription(element.getJavaProject(), isInsideJRE);
                }
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }
                                                                            }


Clone Instance
3
Line Count
43
Source Line
39
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindReadReferencesInProjectAction.java

                                                                                {

        /**
         * Creates a new <code>FindReadReferencesInProjectAction</code>. The action 
         * requires that the selection provided by the site's selection provider is of type 
         * <code>IStructuredSelection</code>.
         * 
         * @param site the site providing context information for this action
         */
        public FindReadReferencesInProjectAction(IWorkbenchSite site) {
                super(site);
        }

        /**
         * Note: This constructor is for internal use only. Clients should not call this constructor.
         * @param editor the Java editor
         */
        public FindReadReferencesInProjectAction(JavaEditor editor) {
                super(editor);
        }

        void init() {
                setText(SearchMessages.Search_FindReadReferencesInProjectAction_label);
                setToolTipText(SearchMessages.Search_FindReadReferencesInProjectAction_tooltip);
                setImageDescriptor(JavaPluginImages.DESC_OBJS_SEARCH_REF);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.FIND_READ_REFERENCES_IN_PROJECT_ACTION);
        }

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
                JavaEditor editor = getEditor();

                IJavaSearchScope scope;
                String description;
                boolean isInsideJRE = factory.isInsideJRE(element);
                if (editor != null) {
                        scope = factory.createJavaProjectSearchScope(editor.getEditorInput(), isInsideJRE);
                        description = factory.getProjectScopeDescription(editor.getEditorInput(), isInsideJRE);
                }
                else   {
                        scope = factory.createJavaProjectSearchScope(element.getJavaProject(), isInsideJRE);
                        description = factory.getProjectScopeDescription(element.getJavaProject(), isInsideJRE);
                }
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }
                                                                                }


Clone Instance
4
Line Count
43
Source Line
39
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindWriteReferencesInProjectAction.java

                                                                                  {

        /**
         * Creates a new <code>FindWriteReferencesInProjectAction</code>. The action 
         * requires that the selection provided by the site's selection provider is of type 
         * <code>IStructuredSelection</code>.
         * 
         * @param site the site providing context information for this action
         */
        public FindWriteReferencesInProjectAction(IWorkbenchSite site) {
                super(site);
        }

        /**
         * Note: This constructor is for internal use only. Clients should not call this constructor.
         * @param editor the Java editor
         */
        public FindWriteReferencesInProjectAction(JavaEditor editor) {
                super(editor);
        }

        void init() {
                setText(SearchMessages.Search_FindWriteReferencesInProjectAction_label);
                setToolTipText(SearchMessages.Search_FindWriteReferencesInProjectAction_tooltip);
                setImageDescriptor(JavaPluginImages.DESC_OBJS_SEARCH_REF);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.FIND_WRITE_REFERENCES_IN_PROJECT_ACTION);
        }

        QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
                JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
                JavaEditor editor = getEditor();

                IJavaSearchScope scope;
                String description;
                boolean isInsideJRE = factory.isInsideJRE(element);
                if (editor != null) {
                        scope = factory.createJavaProjectSearchScope(editor.getEditorInput(), isInsideJRE);
                        description = factory.getProjectScopeDescription(editor.getEditorInput(), isInsideJRE);
                }
                else   {
                        scope = factory.createJavaProjectSearchScope(element.getJavaProject(), isInsideJRE);
                        description = factory.getProjectScopeDescription(element.getJavaProject(), isInsideJRE);
                }
                return new ElementQuerySpecification(element, getLimitTo(), scope, description);
        }
                                                                                  }


Clone AbstractionParameter Count: 6Parameter Bindings

{
  /**
           * Creates a new <code>FindWriteReferencesInProjectAction</code>. The action 
           * requires that the selection provided by the site's selection provider is of type 
           * <code>IStructuredSelection</code>.
           * 
           * @param site the site providing context information for this action
           */
  /**
           * Creates a new <code>FindReadReferencesInProjectAction</code>. The action 
           * requires that the selection provided by the site's selection provider is of type 
           * <code>IStructuredSelection</code>.
           * 
           * @param site the site providing context information for this action
           */
  /**
           * Creates a new <code>FindImplementorsInProjectAction</code>. The action 
           * requires that the selection provided by the site's selection provider is of type 
           * <code>IStructuredSelection</code>.
           * 
           * @param site the site providing context information for this action
           */
  /**
           * Creates a new <code>FindDeclarationsInProjectAction</code>. The action 
           * requires that the selection provided by the site's selection provider is of type 
           * <code>IStructuredSelection</code>.
           * 
           * @param site the site providing context information for this action
           */
  public [[#variablebb636e80]](IWorkbenchSite site) {
    super(site);
  }

  /**
           * Note: This constructor is for internal use only. Clients should not call this constructor.
           * @param editor the Java editor
           */
  public [[#variablebb636e80]](JavaEditor editor) {
    super(editor);
  }

  void init() {
    setText(SearchMessages. [[#variablebb636de0]]);
    setToolTipText(SearchMessages. [[#variablebb636d20]]);
    setImageDescriptor(JavaPluginImages. [[#variablebb636cc0]]);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds. [[#variablebb636c60]]);
  }

  QuerySpecification createQuery(IJavaElement element) throws JavaModelException {
    JavaSearchScopeFactory factory = JavaSearchScopeFactory.getInstance();
    JavaEditor editor = getEditor();
    IJavaSearchScope scope;
    String description;
    boolean isInsideJRE = [[#variablebb636bc0]];
    if (editor != null) {
      scope = factory.createJavaProjectSearchScope(editor.getEditorInput(), isInsideJRE);
      description = factory.getProjectScopeDescription(editor.getEditorInput(), isInsideJRE);
    }
    else {
      scope = factory.createJavaProjectSearchScope(element.getJavaProject(), isInsideJRE);
      description = factory.getProjectScopeDescription(element.getJavaProject(), isInsideJRE);
    }
    return new ElementQuerySpecification(element, getLimitTo(), scope, description);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb636e80]]
FindWriteReferencesInProjectAction 
12[[#bb636e80]]
FindReadReferencesInProjectAction 
13[[#bb636e80]]
FindImplementorsInProjectAction 
14[[#bb636e80]]
FindDeclarationsInProjectAction 
21[[#bb636de0]]
Search_FindWriteReferencesInProjectAction_label 
22[[#bb636de0]]
Search_FindReadReferencesInProjectAction_label 
23[[#bb636de0]]
Search_FindImplementorsInProjectAction_label 
24[[#bb636de0]]
Search_FindDeclarationsInProjectAction_label 
31[[#bb636d20]]
Search_FindWriteReferencesInProjectAction_tooltip 
32[[#bb636d20]]
Search_FindReadReferencesInProjectAction_tooltip 
33[[#bb636d20]]
Search_FindImplementorsInProjectAction_tooltip 
34[[#bb636d20]]
Search_FindDeclarationsInProjectAction_tooltip 
41[[#bb636cc0]]
DESC_OBJS_SEARCH_REF 
42[[#bb636cc0]]
DESC_OBJS_SEARCH_REF 
43[[#bb636cc0]]
DESC_OBJS_SEARCH_DECL 
44[[#bb636cc0]]
DESC_OBJS_SEARCH_DECL 
51[[#bb636c60]]
FIND_WRITE_REFERENCES_IN_PROJECT_ACTION 
52[[#bb636c60]]
FIND_READ_REFERENCES_IN_PROJECT_ACTION 
53[[#bb636c60]]
FIND_IMPLEMENTORS_IN_PROJECT_ACTION 
54[[#bb636c60]]
FIND_DECLARATIONS_IN_PROJECT_ACTION 
61[[#bb636bc0]]
factory.isInsideJRE(element) 
62[[#bb636bc0]]
factory.isInsideJRE(element) 
63[[#bb636bc0]]
factory.isInsideJRE(element) 
64[[#bb636bc0]]
true