blob: 727d059d870a985c6fd46e61af16fdc6895d21e3 (
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
Copyright (c) 2015 Christian W. Damus and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Christian W. Damus - Initial API and implementation
-->
<plugin>
<extension
point="org.eclipse.papyrus.infra.core.service">
<service
classname="org.eclipse.papyrus.infra.editor.welcome.internal.WelcomePageService"
description="The Papyrus Editor's welcome page management service."
id="org.eclipse.papyrus.infra.editor.welcome.IWelcomePageService"
priority="50"
startKind="startup">
<dependsOn
serviceKeyRef="org.eclipse.papyrus.infra.core.resource.ModelSet">
</dependsOn>
<dependsOn
serviceKeyRef="org.eclipse.papyrus.infra.core.sashwindows.di.service.IPageManager">
</dependsOn>
<dependsOn
serviceKeyRef="org.eclipse.papyrus.infra.ui.services.EditorLifecycleManager">
</dependsOn>
</service>
</extension>
<extension
point="org.eclipse.papyrus.infra.ui.papyrusDiagram">
<editorDiagram
factoryClass="org.eclipse.papyrus.infra.editor.welcome.internal.WelcomePageFactory"
icon="icons/full/editor16/welcome16.gif"
order="50">
</editorDiagram>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="org.eclipse.papyrus.infra.editor.welcome.internal.commands.ShowWelcomePageHandler"
description="%cmd.showWelcome.desc"
id="org.eclipse.papyrus.infra.editor.welcome.showWelcomePage"
name="%cmd.showWelcome.name">
</command>
<command
defaultHandler="org.eclipse.papyrus.infra.editor.welcome.internal.commands.ResetWelcomePageHandler"
description="%cmd.resetWelcome.desc"
id="org.eclipse.papyrus.infra.editor.welcome.resetWelcomePage"
name="%cmd.resetWelcome.name">
</command>
<command
defaultHandler="org.eclipse.papyrus.infra.editor.welcome.internal.commands.SaveDefaultWelcomePageHandler"
description="%cmd.setDefaultWelcome.desc"
id="org.eclipse.papyrus.infra.editor.welcome.setAsDefaultWelcomePage"
name="%cmd.setDefaultWelcome.name">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.papyrus.infra.core.editor.ui.tabmenu?before=additions">
<separator
name="welcome-group"
visible="true">
</separator>
</menuContribution>
<menuContribution
locationURI="popup:org.eclipse.papyrus.infra.core.editor.ui.tabmenu?after=welcome-group">
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.showWelcomePage"
style="push"
tooltip="%cmd.showWelcome.tip">
<visibleWhen>
<with
variable="activeEditorId">
<equals
value="org.eclipse.papyrus.infra.core.papyrusEditor">
</equals>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.resetWelcomePage"
style="push"
tooltip="%cmd.resetWelcome.tip">
<visibleWhen checkEnabled="true"/>
</command>
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.setAsDefaultWelcomePage"
style="push"
tooltip="%cmd.setDefaultWelcome.tip">
<visibleWhen checkEnabled="true"/>
</command>
</menuContribution>
<menuContribution
locationURI="menu:org.eclipse.papyrus.infra.core.commands.dropdowncommand?before=additions">
<separator
name="welcome-group"
visible="true">
</separator>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.papyrus.infra.core.commands.dropdowncommand?after=welcome-group">
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.showWelcomePage"
style="push"
tooltip="%cmd.showWelcome.tip">
<visibleWhen>
<with
variable="activeEditorId">
<equals
value="org.eclipse.papyrus.infra.core.papyrusEditor">
</equals>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.resetWelcomePage"
style="push"
tooltip="%cmd.resetWelcome.tip">
<visibleWhen checkEnabled="true"/>
</command>
<command
commandId="org.eclipse.papyrus.infra.editor.welcome.setAsDefaultWelcomePage"
style="push"
tooltip="%cmd.setDefaultWelcome.tip">
<visibleWhen checkEnabled="true"/>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.eclipse.papyrus.infra.editor.welcome.Welcome"
class="org.eclipse.papyrus.infra.editor.welcome.internal.WelcomeAdapterFactory">
<adapter
type="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.IOpenable">
</adapter>
</factory>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory"
class="org.eclipse.papyrus.infra.editor.welcome.internal.preferences.WelcomeContentPreferencePage"
id="org.eclipse.papyrus.infra.editor.welcome.content"
name="%prefpage.welcome.name">
</page>
</extension>
<extension
point="org.eclipse.papyrus.views.properties.context">
<context
contextModel="model/general/general.ctx">
</context>
<preferencePageBinding
context="welcome-general"
page="org.eclipse.papyrus.infra.editor.welcome.content">
</preferencePageBinding>
</extension>
<extension
point="org.eclipse.papyrus.views.properties.environment">
<environment
environmentModel="model/environment.xmi">
</environment>
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated welcome -->
<package
uri="http://www.eclipse.org/Papyrus/2015/editor/welcome"
class="org.eclipse.papyrus.infra.editor.welcome.WelcomePackage"
genModel="model/welcome.genmodel"/>
</extension>
</plugin>
|