blob: 5690ab7ee02d6cff120b8a1eda993935d6ae414b [file] [log] [blame]
mwenzb5dc2f92010-06-16 13:24:52 +00001<?xml version="1.0" encoding="UTF-8"?>
Michael Wenz06fccde2014-04-16 16:35:18 +02002<?eclipse version="3.0"?>
3<!--
mwenzb5dc2f92010-06-16 13:24:52 +00004 <copyright>
5
6 Copyright (c) 2005, 2010 SAP AG.
7 All rights reserved. This program and the accompanying materials
8 are made available under the terms of the Eclipse Public License v1.0
9 which accompanies this distribution, and is available at
10 http://www.eclipse.org/legal/epl-v10.html
11
12 Contributors:
13 SAP AG - initial API, implementation and documentation
mwenzc82ab702012-02-21 12:37:35 +010014 mwenz - Bug 341898 - Support for AdvancedPropertySheet
mwenzb5dc2f92010-06-16 13:24:52 +000015
16 </copyright>
17
18 -->
19
20<plugin>
21
22 <extension
23 point="org.eclipse.graphiti.ui.diagramTypes">
24 <diagramType
25 description="This is the diagram type for the Graphiti tutorial"
26 id="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramType"
27 name="Graphiti Tutorial Diagram Type"
28 type="tutorial">
29 </diagramType>
30 </extension>
31
32 <extension
33 point="org.eclipse.graphiti.ui.diagramTypeProviders">
34 <diagramTypeProvider
35 class="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramTypeProvider"
36 description="This is the editor for the Graphiti tutorial"
37 id="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramTypeProvider"
38 name="Graphiti Tutorial Editor">
39 <diagramType
40 id="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramType">
41 </diagramType>
42 <imageProvider
43 id="org.eclipse.graphiti.examples.tutorial.TutorialImageProvider">
44 </imageProvider>
mwenz00466482010-09-08 08:32:57 +000045 <imageProvider
46 id="org.eclipse.graphiti.examples.common.ExampleImageProvider">
47 </imageProvider>
mwenzb5dc2f92010-06-16 13:24:52 +000048 </diagramTypeProvider>
49 </extension>
50
51 <extension
52 point="org.eclipse.graphiti.ui.imageProviders">
53 <imageProvider
54 class="org.eclipse.graphiti.examples.tutorial.TutorialImageProvider"
55 id="org.eclipse.graphiti.examples.tutorial.TutorialImageProvider">
56 </imageProvider>
57 </extension>
58
59 <extension
60 point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
61 <propertyContributor contributorId="tutorial.PropertyContributor">
62 <propertyCategory category="Graphiti">
63 </propertyCategory>
64 </propertyContributor>
65 </extension>
66
67 <extension
68 point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
69 <propertyTabs contributorId="tutorial.PropertyContributor">
70 <propertyTab label="Main" category="Graphiti"
71 id="graphiti.main.tab">
72 </propertyTab>
mwenzc82ab702012-02-21 12:37:35 +010073
74 <!--
75 Defines a property sheet tab for the Eclipse tabbed property sheet for EReferences.
76 -->
77 <propertyTab
78 category="Graphiti"
79 id="graphiti.table.tab"
80 label="Table">
81 </propertyTab>
mwenzb5dc2f92010-06-16 13:24:52 +000082 </propertyTabs>
83 </extension>
84
85 <extension
86 point="org.eclipse.ui.views.properties.tabbed.propertySections">
87 <propertySections contributorId="tutorial.PropertyContributor">
88 <propertySection tab="graphiti.main.tab"
89 class="org.eclipse.graphiti.examples.tutorial.property.TutorialEClassSection"
90 filter="org.eclipse.graphiti.examples.tutorial.property.TutorialEClassFilter"
91 id="graphiti.main.tab.emfclass">
92 </propertySection>
mwenzc82ab702012-02-21 12:37:35 +010093
94 <!--
95 Defines a standard (table format) property sheet section using the table property sheet
96 integration into the Eclipse tabbed property sheet for EReferences.
97 -->
98 <propertySection
99 class="org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection"
100 filter="org.eclipse.graphiti.examples.tutorial.property.TutorialEReferenceFilter"
101 id="graphiti.main.tab.emfreference.table"
102 tab="graphiti.table.tab">
103 </propertySection>
mwenzb5dc2f92010-06-16 13:24:52 +0000104 </propertySections>
105 </extension>
106
mwenzf9a4d792010-07-26 09:23:50 +0000107 <extension point="org.eclipse.ui.commands">
108 <command id="org.eclipse.graphiti.examples.tutorial.commands.createDiagramWithAllClasses" name="Create Diagram with all Classes" />
109 </extension>
110
111 <extension point="org.eclipse.ui.handlers">
112 <handler commandId="org.eclipse.graphiti.examples.tutorial.commands.createDiagramWithAllClasses" class="org.eclipse.graphiti.examples.tutorial.handlers.CreateDiagramWithAllClassesHandler">
113 <enabledWhen>
114 <reference definitionId="org.eclipse.graphiti.examples.tutorial.definitions.OneEClassesNodeSelected" />
115 </enabledWhen>
116 <activeWhen>
117 <reference definitionId="org.eclipse.graphiti.examples.tutorial.definitions.OneEClassesNodeSelected" />
118 </activeWhen>
119 </handler>
120 </extension>
121
122 <extension point="org.eclipse.ui.menus">
123 <menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">
124 <command commandId="org.eclipse.graphiti.examples.tutorial.commands.createDiagramWithAllClasses">
mwenzf9a4d792010-07-26 09:23:50 +0000125 <visibleWhen>
126 <reference definitionId="org.eclipse.graphiti.examples.tutorial.definitions.OneEClassesNodeSelected" />
127 </visibleWhen>
128 </command>
129 </menuContribution>
130 </extension>
131
132 <extension point="org.eclipse.core.expressions.definitions">
133 <definition id="org.eclipse.graphiti.examples.tutorial.definitions.OneEClassesNodeSelected">
134 <and>
135 <count value="1" />
136 <iterate ifEmpty="false" operator="and">
137 <instanceof value="org.eclipse.graphiti.examples.common.navigator.nodes.EClassesNode" />
138 </iterate>
139 </and>
140 </definition>
141 </extension>
mwenzc82ab702012-02-21 12:37:35 +0100142
143 <!--
144 Registers an Eclipse adapter factory to provide IPropertySource objects for the GraphitiConnectionEditPart
145 that gets selected in the DiagramEditor to provide a standard (table format) property sheet for EReference
146 objects.
147 -->
148 <extension
149 point="org.eclipse.core.runtime.adapters">
150 <factory
151 adaptableType="org.eclipse.graphiti.ui.platform.GraphitiConnectionEditPart"
152 class="org.eclipse.graphiti.examples.tutorial.property.GraphitiEditPartToIPropertySourceAdapterFactory">
153 <adapter
154 type="org.eclipse.ui.views.properties.IPropertySource">
155 </adapter>
156 </factory>
157 </extension>
mwenzb5dc2f92010-06-16 13:24:52 +0000158</plugin>
159