KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > corext > refactoring > IInternalRefactoringProcessorIds


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11  package org.eclipse.jdt.internal.corext.refactoring;
12
13 import org.eclipse.core.runtime.IProgressMonitor;
14
15 import org.eclipse.core.resources.IResourceVisitor;
16 import org.eclipse.core.resources.mapping.ResourceMapping;
17 import org.eclipse.core.resources.mapping.ResourceMappingContext;
18
19 public interface IInternalRefactoringProcessorIds {
20     
21     /**
22      * Processor ID of the copy processor (value <code>"org.eclipse.jdt.ui.CopyProcessor"</code>).
23      *
24      * The copy processor is used when copying elements via drag and drop or when pasting
25      * elements from the clipboard. The copy processor loads the following participants,
26      * depending on the type of the element that gets copied:
27      * <ul>
28      * <li><code>IJavaProject</code>: no participants are loaded.</li>
29      * <li><code>IPackageFragmentRoot</code>: participants registered for copying
30      * <code>IPackageFragmentRoot</code> and <code>ResourceMapping</code>.</li>
31      * <li><code>IPackageFragment</code>: participants registered for copying
32      * <code>IPackageFragment</code> and <code>ResourceMapping</code>.</li>
33      * <li><code>ICompilationUnit</code>: participants registered for copying
34      * <code>ICompilationUnit</code> and <code>ResourceMapping</code>.</li>
35      * <li><code>IType</code>: like ICompilationUnit if the primary top level type is copied.
36      * Otherwise no participants are loaded.</li>
37      * <li><code>IMember</code>: no participants are loaded.</li>
38      * <li><code>IFolder</code>: participants registered for copying folders.</li>
39      * <li><code>IFile</code>: participants registered for copying files.</li>
40      * </ul>
41      * <p>
42      * Use the method {@link ResourceMapping#accept(ResourceMappingContext context, IResourceVisitor visitor, IProgressMonitor monitor)}
43      * to enumerate the resources which form the Java element. <code>ResourceMappingContext.LOCAL_CONTEXT</code>
44      * should be use as the <code>ResourceMappingContext</code> passed to the accept method.
45      * </p>
46      * @see org.eclipse.core.resources.mapping.ResourceMapping
47      * @since 3.1
48      */

49     public static String JavaDoc COPY_PROCESSOR= "org.eclipse.jdt.ui.CopyProcessor"; //$NON-NLS-1$
50

51 }
52
Popular Tags