KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > refactoring > descriptors > JavaRefactoringContribution


1 /*******************************************************************************
2  * Copyright (c) 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.core.refactoring.descriptors;
12
13 import java.util.Map JavaDoc;
14
15 import org.eclipse.core.runtime.Assert;
16
17 import org.eclipse.ltk.core.refactoring.RefactoringContribution;
18 import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
19
20 /**
21  * Partial implementation of a Java refactoring contribution.
22  * <p>
23  * Note: this class is not intended to be extended outside the refactoring
24  * framework.
25  * </p>
26  *
27  * @since 3.3
28  */

29 public abstract class JavaRefactoringContribution extends RefactoringContribution {
30
31     /**
32      * {@inheritDoc}
33      */

34     public final Map JavaDoc retrieveArgumentMap(final RefactoringDescriptor descriptor) {
35         Assert.isNotNull(descriptor);
36         if (descriptor instanceof JavaRefactoringDescriptor)
37             return ((JavaRefactoringDescriptor) descriptor).getArguments();
38         return super.retrieveArgumentMap(descriptor);
39     }
40 }
Popular Tags