| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 23 | 6 | 5 | 0.983 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 24 | 52 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/AddSelectedLibraryOperation.java |
| 2 | 23 | 50 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ExcludeOperation.java |
| 3 | 23 | 50 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/IncludeOperation.java |
| 4 | 23 | 47 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ResetOperation.java |
| 5 | 23 | 52 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/UnexcludeOperation.java |
| 6 | 23 | 48 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/UnincludeOperation.java |
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the action
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public AddSelectedLibraryOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_AddSelLibToCP_tooltip, IClasspathInformationProvider.ADD_SEL_LIB_TO_BP);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation requires the following query from the provider:
* <li>IOutputFolderQuery</li>
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List elements = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = addLibraryEntries(elements, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public ExcludeOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Exclude_tooltip, IClasspathInformationProvider.EXCLUDE);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List javaElements = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = exclude(javaElements, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public IncludeOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Include_tooltip, IClasspathInformationProvider.INCLUDE);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List elements = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = include(elements, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public ResetOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Reset_tooltip, IClasspathInformationProvider.RESET);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List selection = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = reset(selection, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public UnexcludeOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Unexclude_tooltip, IClasspathInformationProvider.UNEXCLUDE);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List resources = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = unExclude(resources, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| ||||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer up-to-date information to the operation
*
* @see IClasspathModifierListener
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public UnincludeOperation(IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages.NewSourceContainerWorkbookPage_ToolBar_Uninclude_tooltip, IClasspathInformationProvider.UNINCLUDE);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List elements = getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = unInclude(elements, project, monitor);
} catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| |||
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer up-to-date information to the operation
*
* @see IClasspathModifierListener
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the operation
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
/**
* Constructor
*
* @param listener a <code>IClasspathModifierListener</code> that is notified about
* changes on classpath entries or <code>null</code> if no such notification is
* necessary.
* @param informationProvider a provider to offer information to the action
*
* @see IClasspathInformationProvider
* @see ClasspathModifier
*/
public [[#variablec07c20e0]](IClasspathModifierListener listener, IClasspathInformationProvider informationProvider) {
super(listener, informationProvider, NewWizardMessages. [[#variablec07c2000]], IClasspathInformationProvider. [[#variablec07c2080]]);
}
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation does not require any queries from the provider.
*
* @param monitor a progress monitor, can be <code>null</code>
*/
/**
* Method which runs the actions with a progress monitor.<br>
*
* This operation requires the following query from the provider:
* <li>IOutputFolderQuery</li>
*
* @param monitor a progress monitor, can be <code>null</code>
*/
public void run(IProgressMonitor monitor) throws InvocationTargetException {
List result = null;
fException = null;
try {
List [[#variable5148dfc0]]= getSelectedElements();
IJavaProject project = fInformationProvider.getJavaProject();
result = [[#variable5148df60]]( [[#variable5148dfc0]], project, monitor);
}
catch (CoreException e) {
fException = e;
result = null;
}
super.handleResult(result, monitor);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#c07c20e0]] | UnincludeOperation |
| 1 | 2 | [[#c07c20e0]] | UnexcludeOperation |
| 1 | 3 | [[#c07c20e0]] | ResetOperation |
| 1 | 4 | [[#c07c20e0]] | IncludeOperation |
| 1 | 5 | [[#c07c20e0]] | ExcludeOperation |
| 1 | 6 | [[#c07c20e0]] | AddSelectedLibraryOperation |
| 2 | 1 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_Uninclude_tooltip |
| 2 | 2 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_Unexclude_tooltip |
| 2 | 3 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_Reset_tooltip |
| 2 | 4 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_Include_tooltip |
| 2 | 5 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_Exclude_tooltip |
| 2 | 6 | [[#c07c2000]] | NewSourceContainerWorkbookPage_ToolBar_AddSelLibToCP_tooltip |
| 3 | 1 | [[#c07c2080]] | UNINCLUDE |
| 3 | 2 | [[#c07c2080]] | UNEXCLUDE |
| 3 | 3 | [[#c07c2080]] | RESET |
| 3 | 4 | [[#c07c2080]] | INCLUDE |
| 3 | 5 | [[#c07c2080]] | EXCLUDE |
| 3 | 6 | [[#c07c2080]] | ADD_SEL_LIB_TO_BP |
| 4 | 1 | [[#5148dfc0]] | elements |
| 4 | 2 | [[#5148dfc0]] | resources |
| 4 | 3 | [[#5148dfc0]] | selection |
| 4 | 4 | [[#5148dfc0]] | elements |
| 4 | 5 | [[#5148dfc0]] | javaElements |
| 4 | 6 | [[#5148dfc0]] | elements |
| 5 | 1 | [[#5148df60]] | unInclude |
| 5 | 2 | [[#5148df60]] | unExclude |
| 5 | 3 | [[#5148df60]] | reset |
| 5 | 4 | [[#5148df60]] | include |
| 5 | 5 | [[#5148df60]] | exclude |
| 5 | 6 | [[#5148df60]] | addLibraryEntries |