blob: a174b93a5345d2483ab00dd75f531edeecccda72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.papyrus.editor.category"
description="Import Registered Profile"
id="org.eclipse.papyrus.import.registered.profile"
name="Import Registered Profile">
</command>
<command
categoryId="org.eclipse.papyrus.editor.category"
description="Import Registered Package"
id="org.eclipse.papyrus.import.registered.package"
name="Import Registered Package">
</command>
<command
categoryId="org.eclipse.papyrus.editor.category"
description="Import Package From Workspace"
id="org.eclipse.papyrus.import.package.from.workspace"
name="Import Package From Workspace">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=tools">
<menu
icon="icons/import_wiz_16x16-papyrusColor.gif"
id="org.eclipse.papyrus.uml.import.menu"
label="&Import"
tooltip="Papyrus Import Menu">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<test
property="org.eclipse.papyrus.infra.emf.readonly.tester.canMakeWritable"
value="true">
</test>
</with>
</visibleWhen>
<command
commandId="org.eclipse.papyrus.import.registered.profile"
icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Profile.gif"
label="Import &Registered Profile"
style="push">
</command>
<command
commandId="org.eclipse.papyrus.import.registered.package"
icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
label="Import Registered &Package"
style="push">
</command>
<command
commandId="org.eclipse.papyrus.import.package.from.workspace"
icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
label="Import Package From &User Model"
style="push">
</command>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.papyrus.uml.importt.handlers.ImportRegisteredProfileHandler"
commandId="org.eclipse.papyrus.import.registered.profile">
<activeWhen>
<and>
<with
variable="selection">
<iterate>
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.uml2.uml.Package">
</instanceof>
</adapt>
</iterate>
</with>
<count
value="1">
</count>
</and>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.uml.importt.handlers.ImportRegisteredPackageHandler"
commandId="org.eclipse.papyrus.import.registered.package">
<activeWhen>
<and>
<with
variable="selection">
<iterate>
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.uml2.uml.Package">
</instanceof>
</adapt>
</iterate>
</with>
<count
value="1">
</count>
</and>
</activeWhen>
</handler>
<handler
class="org.eclipse.papyrus.uml.importt.handlers.ImportPackageFromUserModelHandler"
commandId="org.eclipse.papyrus.import.package.from.workspace">
<activeWhen>
<and>
<with
variable="selection">
<iterate>
<adapt
type="org.eclipse.emf.ecore.EObject">
<instanceof
value="org.eclipse.uml2.uml.Package">
</instanceof>
</adapt>
</iterate>
</with>
<count
value="1">
</count>
</and>
</activeWhen>
</handler>
</extension>
</plugin>
|