CloneSet220


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23650.983class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12452
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/AddSelectedLibraryOperation.java
22350
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ExcludeOperation.java
32350
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/IncludeOperation.java
42347
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ResetOperation.java
52352
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/UnexcludeOperation.java
62348
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/UnincludeOperation.java
Clone Instance
1
Line Count
24
Source Line
52
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/AddSelectedLibraryOperation.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);
    }


Clone Instance
2
Line Count
23
Source Line
50
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ExcludeOperation.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 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);
    }


Clone Instance
3
Line Count
23
Source Line
50
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/IncludeOperation.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 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);
    }


Clone Instance
4
Line Count
23
Source Line
47
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/ResetOperation.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 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);
    }


Clone Instance
5
Line Count
23
Source Line
52
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/buildpath/UnexcludeOperation.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 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);
        }


Clone Instance
6
Line Count
23
Source Line
48
Source File
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 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);
    }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
     * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c07c20e0]]
UnincludeOperation 
12[[#c07c20e0]]
UnexcludeOperation 
13[[#c07c20e0]]
ResetOperation 
14[[#c07c20e0]]
IncludeOperation 
15[[#c07c20e0]]
ExcludeOperation 
16[[#c07c20e0]]
AddSelectedLibraryOperation 
21[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_Uninclude_tooltip 
22[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_Unexclude_tooltip 
23[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_Reset_tooltip 
24[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_Include_tooltip 
25[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_Exclude_tooltip 
26[[#c07c2000]]
NewSourceContainerWorkbookPage_ToolBar_AddSelLibToCP_tooltip 
31[[#c07c2080]]
UNINCLUDE 
32[[#c07c2080]]
UNEXCLUDE 
33[[#c07c2080]]
RESET 
34[[#c07c2080]]
INCLUDE 
35[[#c07c2080]]
EXCLUDE 
36[[#c07c2080]]
ADD_SEL_LIB_TO_BP 
41[[#5148dfc0]]
elements 
42[[#5148dfc0]]
resources 
43[[#5148dfc0]]
selection 
44[[#5148dfc0]]
elements 
45[[#5148dfc0]]
javaElements 
46[[#5148dfc0]]
elements 
51[[#5148df60]]
unInclude 
52[[#5148df60]]
unExclude 
53[[#5148df60]]
reset 
54[[#5148df60]]
include 
55[[#5148df60]]
exclude 
56[[#5148df60]]
addLibraryEntries