Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f0b67d6b3adbc315b6593756e898993e820f1fc8 (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
/*
 * Copyright (c) 2007, 2009 Borland Software Corporation
 * 
 * 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:
 *    Dmitry Stadnik (Borland) - initial API and implementation
 */

«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»

«DEFINE extensions FOR gmfgen::GenPropertySheet-»

   <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor" id="prop-contrib">
      «EXPAND xpt::Common::xmlGeneratedTag»
      <propertyContributor
            contributorId="«editorGen.plugin.iD»"«IF needsCaption»
            labelProvider="«getLabelProviderQualifiedClassName()»"«ENDIF»>
         <propertyCategory category="domain"/>
         <propertyCategory category="visual"/>
         <propertyCategory category="extra"/>
      </propertyContributor>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs" id="proptabs">
      «EXPAND xpt::Common::xmlGeneratedTag»   
      <propertyTabs contributorId="«editorGen.plugin.iD»">
«EXPAND tab FOREACH tabs-»
      </propertyTabs>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertySections" id="propsections">
      «EXPAND xpt::Common::xmlGeneratedTag»   
      <propertySections contributorId="«editorGen.plugin.iD»">
«EXPAND section FOREACH tabs-»
      </propertySections>
   </extension>
«ENDDEFINE»

«DEFINE tab FOR gmfgen::GenPropertyTab-»
«ERROR 'Unknown property tab: ' + self.repr()»
«ENDDEFINE»

«DEFINE tab FOR gmfgen::GenStandardPropertyTab-»
«IF iD = 'appearance'-»
         <propertyTab
             category="visual"
             id="property.tab.AppearancePropertySection"
             label="%tab.appearance"/>
«ELSEIF iD = 'diagram'-»
          <propertyTab
             category="visual"
             id="property.tab.DiagramPropertySection"
             label="%tab.diagram"/>
«ELSEIF iD = 'advanced'-»
          <propertyTab
             category="extra"
             id="property.tab.AdvancedPropertySection"
             label="%tab.advanced"/>           
«ENDIF-»
«ENDDEFINE»

«DEFINE tab FOR gmfgen::GenCustomPropertyTab-»
          <propertyTab
«IF iD = 'domain'-»
             category="domain"
«ELSE-»
             category="extra"
«ENDIF-»
             id="property.tab.«iD»"
             label="%tab.«iD»"/>
«ENDDEFINE»

«DEFINE section FOR gmfgen::GenPropertyTab-»
«ERROR 'Unknown property tab: ' + self.repr()»
«ENDDEFINE»

«DEFINE section FOR gmfgen::GenStandardPropertyTab-»
«IF iD = 'appearance'-»
         <propertySection id="property.section.ConnectorAppearancePropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ConnectionEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ConnectionAppearancePropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection>
         <propertySection id="property.section.ShapeColorAndFontPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ShapeColorsAndFontsPropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection> 
         <propertySection id="property.section.DiagramColorsAndFontsPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.DiagramColorsAndFontsPropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection>     
«ELSEIF iD = 'diagram'-»
         <propertySection id="property.section.RulerGridPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection" 
            tab="property.tab.DiagramPropertySection">
         </propertySection>     
«ELSEIF iD = 'advanced'-»
         <propertySection id="property.section.AdvancedPropertySection"
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.AdvancedPropertySection"
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.EditPartPropertySectionFilter"
            tab="property.tab.AdvancedPropertySection">
         </propertySection>            
«ENDIF-»
«ENDDEFINE»

«DEFINE section FOR gmfgen::GenCustomPropertyTab-»
         <propertySection
            id="property.section.«iD»" 
            tab="property.tab.«iD»"
«EXPAND filter FOR filter-»
            class="«getQualifiedClassName()»">
«EXPAND input FOR filter-»
         </propertySection>
«ENDDEFINE»

«DEFINE filter FOR gmfgen::GenPropertyTabFilter»«ENDDEFINE»

«DEFINE filter FOR gmfgen::CustomTabFilter-»
            filter="«getQualifiedClassName()»"
«ENDDEFINE»

«DEFINE input FOR gmfgen::GenPropertyTabFilter»«ENDDEFINE»

«DEFINE input FOR gmfgen::TypeTabFilter-»
«FOREACH getAllTypes()->asSequence() AS type-»
            <input type="«type»"/>
«ENDFOREACH-»
«ENDDEFINE»

«DEFINE i18n FOR gmfgen::GenPropertySheet-»

# Property Sheet
«FOREACH tabs->asSequence() AS tab-»
tab.«tab.iD»=«tab.label»
«ENDFOREACH-»
«ENDDEFINE»

Back to the top