Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.977 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 601 | plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java |
2 | 11 | 308 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java |
| ||||
/** * TODO: this method is a workaround for Bugzilla 111144 and 106111. When * 111144 is fixed, remove this method and call hasProjectSpecificOptions() * instead. The difference is that this one does not cause project prefs nodes * to be cached in the WorkingCopyManager. * @return true if the project has project-specific options. */ public boolean hasProjectSpecificOptionsNoCache(IProject project) { if (project != null) { IScopeContext projectContext = new ProjectScope(project); Key[] allKeys = fAllKeys; for (int i = 0; i < allKeys.length; i++) { if (allKeys[i].getStoredValue(projectContext, null) != null) { return true; } } } return false; } |
| ||||
public final boolean hasProjectSpecificOptions(IProject project) { if (project != null) { IScopeContext projectContext = new ProjectScope(project); Key[] allKeys = fAllKeys; for (int i = 0; i < allKeys.length; i++) { if (allKeys[i].getStoredValue(projectContext, fManager) != null) { return true; } } } return false; } |
| |||
[[#variable58f1fec0]]boolean [[#variable58f1fe60]](IProject project) { if (project != null) { IScopeContext projectContext = new ProjectScope(project); Key[] allKeys = fAllKeys; for (int i = 0; i < allKeys.length; i++) { if (allKeys[i].getStoredValue(projectContext, [[#variable58f1fd60]]) != null) { return true; } } } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58f1fec0]] | public final |
1 | 2 | [[#58f1fec0]] | /** * TODO: this method is a workaround for Bugzilla 111144 and 106111. When * 111144 is fixed, remove this method and call hasProjectSpecificOptions() * instead. The difference is that this one does not cause project prefs nodes * to be cached in the WorkingCopyManager. * @return true if the project has project-specific options. */ public |
2 | 1 | [[#58f1fe60]] | hasProjectSpecificOptions |
2 | 2 | [[#58f1fe60]] | hasProjectSpecificOptionsNoCache |
3 | 1 | [[#58f1fd60]] | fManager |
3 | 2 | [[#58f1fd60]] | null |