1 | |
package org.argouml.ui.explorer.rules; |
2 | |
|
3 | |
import java.util.Collection; |
4 | |
import java.util.Collections; |
5 | |
import java.util.HashSet; |
6 | |
import java.util.Set; |
7 | |
|
8 | |
import org.argouml.i18n.Translator; |
9 | |
import org.argouml.model.Model; |
10 | |
|
11 | 2726 | public class GoModelElementToTemplateParameter extends AbstractPerspectiveRule { |
12 | |
|
13 | |
@Override |
14 | |
public Collection getChildren(Object parent) { |
15 | 11981 | if (Model.getFacade().isAClassifier(parent)) { |
16 | 0 | return Model.getFacade().getTemplateParameters(parent); |
17 | |
} |
18 | 11981 | return Collections.emptyList(); |
19 | |
} |
20 | |
|
21 | |
@Override |
22 | |
public String getRuleName() { |
23 | 504 | return Translator.localize("misc.model-element.template-parameter"); |
24 | |
} |
25 | |
|
26 | |
public Set getDependencies(Object parent) { |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 11981 | return Collections.emptySet(); |
33 | |
} |
34 | |
|
35 | |
|
36 | |
} |