Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
43 | 4 | 6 | 0.965 | class_body |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 43 | 40 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindDeclarationsInProjectAction.java |
2 | 43 | 39 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInProjectAction.java |
3 | 43 | 39 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindReadReferencesInProjectAction.java |
4 | 43 | 39 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindWriteReferencesInProjectAction.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); } } |
| ||||
{ /** * 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); } } |
| ||||
{ /** * 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); } } |
| ||||
{ /** * 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); } } |
| |||
{ /** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb636e80]] | FindWriteReferencesInProjectAction |
1 | 2 | [[#bb636e80]] | FindReadReferencesInProjectAction |
1 | 3 | [[#bb636e80]] | FindImplementorsInProjectAction |
1 | 4 | [[#bb636e80]] | FindDeclarationsInProjectAction |
2 | 1 | [[#bb636de0]] | Search_FindWriteReferencesInProjectAction_label |
2 | 2 | [[#bb636de0]] | Search_FindReadReferencesInProjectAction_label |
2 | 3 | [[#bb636de0]] | Search_FindImplementorsInProjectAction_label |
2 | 4 | [[#bb636de0]] | Search_FindDeclarationsInProjectAction_label |
3 | 1 | [[#bb636d20]] | Search_FindWriteReferencesInProjectAction_tooltip |
3 | 2 | [[#bb636d20]] | Search_FindReadReferencesInProjectAction_tooltip |
3 | 3 | [[#bb636d20]] | Search_FindImplementorsInProjectAction_tooltip |
3 | 4 | [[#bb636d20]] | Search_FindDeclarationsInProjectAction_tooltip |
4 | 1 | [[#bb636cc0]] | DESC_OBJS_SEARCH_REF |
4 | 2 | [[#bb636cc0]] | DESC_OBJS_SEARCH_REF |
4 | 3 | [[#bb636cc0]] | DESC_OBJS_SEARCH_DECL |
4 | 4 | [[#bb636cc0]] | DESC_OBJS_SEARCH_DECL |
5 | 1 | [[#bb636c60]] | FIND_WRITE_REFERENCES_IN_PROJECT_ACTION |
5 | 2 | [[#bb636c60]] | FIND_READ_REFERENCES_IN_PROJECT_ACTION |
5 | 3 | [[#bb636c60]] | FIND_IMPLEMENTORS_IN_PROJECT_ACTION |
5 | 4 | [[#bb636c60]] | FIND_DECLARATIONS_IN_PROJECT_ACTION |
6 | 1 | [[#bb636bc0]] | factory.isInsideJRE(element) |
6 | 2 | [[#bb636bc0]] | factory.isInsideJRE(element) |
6 | 3 | [[#bb636bc0]] | factory.isInsideJRE(element) |
6 | 4 | [[#bb636bc0]] | true |