]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | package no.uio.ifi.refaktor.contributions; |
2 | ||
3 | import java.util.HashMap; | |
4 | import java.util.Map; | |
5 | ||
6 | import no.uio.ifi.refaktor.descriptors.TestRefactoringDescriptor; | |
7 | ||
8 | import org.eclipse.ltk.core.refactoring.RefactoringContribution; | |
9 | import org.eclipse.ltk.core.refactoring.RefactoringDescriptor; | |
10 | ||
11 | ||
12 | ||
13 | public class TestRefactoringContribution extends RefactoringContribution { | |
14 | ||
15 | public RefactoringDescriptor createDescriptor() { | |
16 | return createDescriptor( | |
17 | TestRefactoringDescriptor.REFACTORING_ID, | |
18 | "examples", | |
19 | "This is a description", | |
20 | "This is a comment", | |
21 | new HashMap<String, String>(), | |
22 | RefactoringDescriptor.STRUCTURAL_CHANGE | RefactoringDescriptor.MULTI_CHANGE | |
23 | ); | |
24 | } | |
25 | ||
26 | @Override | |
27 | public RefactoringDescriptor createDescriptor(String id, String project, | |
28 | String description, String comment, @SuppressWarnings("rawtypes") Map arguments, int flags) | |
29 | throws IllegalArgumentException { | |
30 | return new TestRefactoringDescriptor(id, project, description, comment, arguments, flags); | |
31 | } | |
32 | ||
33 | } |