blob: 09b257e6bbce812927eb76d47e65c31340a36cfa (
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
|
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>capabilities</title>
</head>
<body>
<h2 id="Definition">Definition</h2>
<p>EMF Facet currently defines an
<b>Activity</b> (aka
<b>Capability</b> in the UI) that allows enabling or disabling all of EMF Facet UI contributions:
</p>
<pre> <extension point="org.eclipse.ui.activities">
<activity
description="%activity.description"
id="org.eclipse.papyrus.emf.facet.capabilities.activity"
name="%activity.name">
</activity>
<category
description="%category.description"
id="org.eclipse.papyrus.emf.facet.capabilities.category"
name="%category.name">
</category>
<categoryActivityBinding
activityId="org.eclipse.papyrus.emf.facet.capabilities.activity"
categoryId="org.eclipse.papyrus.emf.facet.capabilities.category">
</categoryActivityBinding>
<activityPatternBinding
activityId="org.eclipse.papyrus.emf.facet.capabilities.activity"
isEqualityPattern="false"
pattern="org\.eclipse\.emf\.facet\..*/.*">
</activityPatternBinding>
<defaultEnablement id="org.eclipse.papyrus.emf.facet.capabilities.activity"/>
</extension>
</pre>
<p>(in plug-in
<a href="https://dev.eclipse.org/svnroot/modeling/org.eclipse.emft.facet/trunk/plugins/org.eclipse.papyrus.emf.facet.capabilities">https://dev.eclipse.org/svnroot/modeling/org.eclipse.emft.facet/trunk/plugins/org.eclipse.papyrus.emf.facet.capabilities</a>)
</p>
<p>Product maintainers can use this definition as a starting point for customizing their product.</p>
<h2 id="Selective_Capabilities">Selective Capabilities</h2>
<p>Capabilities can be as selective as you want. For example, you can choose to disable certain EMF Facet views. For example, this disables the "new project" wizard:</p>
<pre> <activityPatternBinding
activityId="com.example.myActivity"
isEqualityPattern="true"
pattern="org.eclipse.papyrus.emf.facet.infra.common.ui/org.eclipse.papyrus.emf.facet.NewProjectWizard">
</activityPatternBinding>
</pre>
<p><font size="-2">
Copyright © 2012 Mia-Software.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
<a href="https://www.eclipse.org/legal/epl-2.0/">https://www.eclipse.org/legal/epl-2.0/</a>.
</font>
</p>
</body>
</html>
|