Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 2 | 0.992 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 382 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java |
2 | 24 | 415 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java |
| ||||
/** * Notifies the described extension of a proposal computation session start. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionStarted() { if ( !isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer = getComputer(); if (computer == null) // not active yet return; PerformanceStats stats = startMeter(SESSION_STARTED, computer); computer.sessionStarted(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status = createExceptionStatus(x); } catch (CoreException x) { status = createExceptionStatus(x); } catch (RuntimeException x) { status = createExceptionStatus(x); } fRegistry.informUser(this, status); } |
| ||||
/** * Notifies the described extension of a proposal computation session end. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionEnded() { if ( !isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer = getComputer(); if (computer == null) // not active yet return; PerformanceStats stats = startMeter(SESSION_ENDED, computer); computer.sessionEnded(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status = createExceptionStatus(x); } catch (CoreException x) { status = createExceptionStatus(x); } catch (RuntimeException x) { status = createExceptionStatus(x); } fRegistry.informUser(this, status); } |
| |||
/** * Notifies the described extension of a proposal computation session start. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ /** * Notifies the described extension of a proposal computation session end. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void [[#variable9687ec80]]() { if ( !isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer = getComputer(); if (computer == null) // not active yet return; PerformanceStats stats = startMeter( [[#variable9687ec20]], computer); computer. [[#variable9687ec80]](); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status = createExceptionStatus(x); } catch (CoreException x) { status = createExceptionStatus(x); } catch (RuntimeException x) { status = createExceptionStatus(x); } fRegistry.informUser(this, status); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9687ec80]] | sessionStarted |
1 | 2 | [[#9687ec80]] | sessionEnded |
2 | 1 | [[#9687ec20]] | SESSION_STARTED |
2 | 2 | [[#9687ec20]] | SESSION_ENDED |