]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph
74296d8bc035f939c8b1c6e0613a7ac57960f93d
[simantics/platform.git] / bundles / org.simantics.issues.ui.ontology / graph / IssueUI.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 ISSUE = <http://www.simantics.org/Issue-1.2>
3 VP = <http://www.simantics.org/Viewpoint-1.2>
4 PROJECT = <http://www.simantics.org/Project-1.2>
5 SIMU = <http://www.simantics.org/Simulation-1.1>
6 ACT = <http://www.simantics.org/Action-1.1>
7 SG = <http://www.simantics.org/Scenegraph-1.1>
8 VIEWS = <http://www.simantics.org/Views-1.2>
9 SILK = <http://www.simantics.org/Silk-1.1>
10 MOD = <http://www.simantics.org/Modeling-1.2>
11
12 UI = <http://www.simantics.org/IssueUI-1.1> : L0.Ontology
13     @L0.new
14     L0.HasResourceClass "org.simantics.issues.ui.ontology.IssueUIResource"
15
16 //--------------------------------------------------------------------------
17 // Functions
18 UI.Functions : L0.Library
19
20
21 //--------------------------------------------------------------------------
22 // Preferences
23
24 UI.ShowHiddenIssues <R L0.HasProperty : L0.FunctionalRelation
25     L0.HasRange L0.Boolean
26
27 UI.ShowNormalIssues <R L0.HasProperty : L0.FunctionalRelation
28     L0.HasRange L0.Boolean
29
30 UI.ShowUserIssues <R L0.HasProperty : L0.FunctionalRelation
31     L0.HasRange L0.Boolean
32
33 //--------------------------------------------------------------------------
34 // Issue Browse context
35
36 IBC = UI.IssueBrowseContext : VP.BrowseContext
37
38 // Rules
39 IBC.IssueLabelDecorationRule : VP.LabelDecorationRule
40 IBC.IssueImageDecorationRule : VP.ImageDecorationRule
41 IBC.IssueContextDropAction : ACT.DropAction
42 IBC.UserIssueTest : VP.Test
43
44 // UIpoint
45 IBC
46     @VP.customLabelDecorationRule ISSUE.Issue IBC.IssueLabelDecorationRule
47     @VP.dropActionContribution ISSUE.Issue IBC.IssueContextDropAction 1.0
48
49 //--------------------------------------------------------------------------
50 // Batch Issue Source Browse context
51
52 BISBC = UI.BatchIssueSourceBrowseContext : VP.BrowseContext
53
54 // Rules
55 BISBC.IssueSourceRule : VP.ChildRule
56 BISBC.IssueSourceLabelRule : VP.LabelRule
57 BISBC.IssueSourceCheckRule : VP.CheckedStateRule
58
59 // UIpoint
60 BISBC
61     @VP.relationChildRule         SIMU.Model   L0.ConsistsOf ISSUE.IssueSource
62     @VP.customLabelRule           ISSUE.IssueSource VP.ResourceLabelLabelRule
63     @VP.customCheckedStateRule    ISSUE.IssueSource BISBC.IssueSourceCheckRule
64
65 IBC.FatalFolder : VP.ResourceNodeType
66 IBC.ErrorFolder : VP.ResourceNodeType
67 IBC.WarningFolder : VP.ResourceNodeType
68 IBC.InfoFolder : VP.ResourceNodeType
69 IBC.NoteFolder : VP.ResourceNodeType
70 IBC.UnknownFolder : VP.ResourceNodeType
71
72 IBC.Issue : VP.NodeType
73     VP.HasContentType "Variable"
74
75 IBC.SeverityFolderRule <T VP.ChildRule
76     >-- IBC.SeverityFolderRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
77
78 IBC.SeverityChildRule <T VP.ChildRule
79     >-- IBC.SeverityChildRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
80
81 IBC.SeverityFolderLabelRule <T VP.LabelRule
82     >-- IBC.SeverityFolderLabelRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
83
84 IBC
85     // Structure
86     @VP.customChildRule PROJECT.Project 
87         _ : IBC.SeverityFolderRule
88             IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Fatal
89         IBC.FatalFolder
90     @VP.customChildRule PROJECT.Project 
91         _ : IBC.SeverityFolderRule
92             IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Error
93         IBC.ErrorFolder
94     @VP.customChildRule PROJECT.Project 
95         _ : IBC.SeverityFolderRule
96             IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Warning
97         IBC.WarningFolder
98     @VP.customChildRule PROJECT.Project 
99         _ : IBC.SeverityFolderRule
100             IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Info
101         IBC.InfoFolder
102     @VP.customChildRule PROJECT.Project 
103         _ : IBC.SeverityFolderRule
104             IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Note
105         IBC.NoteFolder
106         
107     // Content
108     @VP.customChildRule IBC.FatalFolder 
109         _ : IBC.SeverityChildRule
110             IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Fatal
111         IBC.Issue
112     @VP.customChildRule IBC.ErrorFolder 
113         _ : IBC.SeverityChildRule
114             IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Error
115         IBC.Issue
116     @VP.customChildRule IBC.WarningFolder 
117         _ : IBC.SeverityChildRule
118             IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Warning
119         IBC.Issue
120     @VP.customChildRule IBC.InfoFolder 
121         _ : IBC.SeverityChildRule
122             IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Info
123         IBC.Issue
124     @VP.customChildRule IBC.NoteFolder 
125         _ : IBC.SeverityChildRule
126             IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Note
127         IBC.Issue
128         
129     // Labels
130     @VP.customLabelRule IBC.FatalFolder 
131         _ : IBC.SeverityFolderLabelRule
132             IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Fatal
133     @VP.customLabelRule IBC.ErrorFolder 
134         _ : IBC.SeverityFolderLabelRule
135             IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Error
136     @VP.customLabelRule IBC.WarningFolder 
137         _ : IBC.SeverityFolderLabelRule
138             IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Warning
139     @VP.customLabelRule IBC.InfoFolder 
140         _ : IBC.SeverityFolderLabelRule
141             IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Info
142     @VP.customLabelRule IBC.NoteFolder 
143         _ : IBC.SeverityFolderLabelRule
144             IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Note
145     @VP.customLabelRule IBC.Issue 
146         IBC.IssueLabelRule : VP.ChildRule
147     @VP.customVisualsRuleWithPriorityAndTest IBC.Issue VP.VariableLabelModifierRule  1.0 IBC.UserIssueTest
148     
149     // Images
150     @VP.constantImageRule IBC.FatalFolder SILK.bomb
151     @VP.constantImageRule IBC.ErrorFolder SILK.exclamation
152     @VP.constantImageRule IBC.WarningFolder SILK.error
153     @VP.constantImageRule IBC.InfoFolder SILK.information
154     @VP.constantImageRule IBC.NoteFolder SILK.note
155     @VP.constantImageRule IBC.UnknownFolder SILK.help
156     @VP.customLabelRule IBC.Issue 
157         IBC.IssueImageRule : VP.ImageRule
158
159 // ACTIONS
160
161 ACTIONS = UI.Actions : L0.Library
162
163 ACTIONS.SeverityActionCategory : VP.ActionCategory
164     L0.HasLabel "Set Severity"
165     VP.ActionCategory.IsSubmenu L0.True
166
167 ACTIONS.SetSeverityAction <T ACT.Action
168     >-- ACTIONS.SetSeverityAction.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
169
170 IAC = UI.ActionContext : VP.BrowseContext
171     // Set severity
172     @VP.actionContribution "Fatal" IBC.Issue SILK.bomb ACTIONS.SeverityActionCategory 
173         _ : ACTIONS.SetSeverityAction
174             ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Fatal
175     @VP.actionContribution "Error" IBC.Issue SILK.exclamation ACTIONS.SeverityActionCategory 
176         _ : ACTIONS.SetSeverityAction
177             ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Error
178     @VP.actionContribution "Warning" IBC.Issue SILK.error ACTIONS.SeverityActionCategory 
179         _ : ACTIONS.SetSeverityAction
180             ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Warning
181     @VP.actionContribution "Info" IBC.Issue SILK.information ACTIONS.SeverityActionCategory 
182         _ : ACTIONS.SetSeverityAction
183             ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Info
184     @VP.actionContribution "Note" IBC.Issue SILK.note ACTIONS.SeverityActionCategory 
185         _ : ACTIONS.SetSeverityAction
186             ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Note
187     @VP.actionContribution "Resolve" IBC.Issue SILK.tick VP.EditActionCategory 
188         ACTIONS.Resolve : ACT.Action
189     @VP.actionContribution "Unresolve" IBC.Issue SILK.lightbulb_off VP.EditActionCategory 
190         ACTIONS.Unresolve : ACT.Action
191     @VP.actionContribution "Hide" IBC.Issue SILK.shading VP.EditActionCategory 
192         ACTIONS.Hide : ACT.Action
193     @VP.actionContribution "Unhide" IBC.Issue SILK.shading VP.EditActionCategory 
194         ACTIONS.Unhide : ACT.Action
195
196 UI.IssueView.Description 
197     @VIEWS.Explorer.Column.full "single" "Description" "LEFT" 150 "Description" true 1
198 UI.IssueView.Resource 
199     @VIEWS.Explorer.Column.full "Resource" "Resource" "LEFT" 60 "Resource" false 1
200 UI.IssueView.Path 
201     @VIEWS.Explorer.Column.full "Path" "Path" "LEFT" 150 "Path" false 1
202
203 UI.IssueView.BatchColumn
204     @VIEWS.Explorer.Column.full "single" "Validations" "LEFT" 150 "Validations" true 1
205
206 UI.IssueView : VIEWS.TabFolder
207     VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
208         VIEWS.GridLayout.GridData.horizontalGrab true
209         VIEWS.GridLayout.GridData.verticalGrab true
210     SG.Node.children _ : L0.List
211         @L0.list
212             UI.IssueView.Active : VIEWS.Composite
213                 SG.Node.children _ : L0.List
214                     @L0.list
215                         UI.IssueView.Active.Explorer : VIEWS.Explorer
216                             @VIEWS.Control.style2 VIEWS.Control.Style.Constant.FullSelection VIEWS.Control.Style.Constant.Multi 
217                             VIEWS.Explorer.input VIEWS.Functions.singleResourceSelection
218                             VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
219                                 VIEWS.GridLayout.GridData.horizontalGrab true
220                                 VIEWS.GridLayout.GridData.verticalGrab true
221                             VIEWS.Explorer.columns _ : VIEWS.Explorer.ColumnList
222                                 @L0.list
223                                     UI.IssueView.Description
224                                     UI.IssueView.Resource
225                                     UI.IssueView.Path
226                             VIEWS.Explorer.persistor MOD.Functions.standardPersistor
227                             VIEWS.Explorer.browseContext _ : VIEWS.ResourceURI
228                               VIEWS.ResourceURI.HasResource IBC
229             UI.IssueView.Batch : VIEWS.Composite            
230                 SG.Node.children _ : L0.List
231                     @L0.list
232                         UI.IssueView.Batch.Explorer : VIEWS.Explorer
233                             @VIEWS.Control.style2 VIEWS.Control.Style.Constant.FullSelection VIEWS.Control.Style.Constant.Check
234                             VIEWS.Explorer.input UI.Functions.activeModel : L0.Function
235                               L0.HasValueType "a"
236                             VIEWS.Explorer.selectionListener UI.Functions.issueSourceSelected : L0.Function
237                               L0.HasValueType "a -> Boolean"
238                             VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
239                                 VIEWS.GridLayout.GridData.horizontalGrab true
240                                 VIEWS.GridLayout.GridData.verticalGrab true
241                             VIEWS.Explorer.columns _ : VIEWS.Explorer.ColumnList
242                                 @L0.list
243                                     UI.IssueView.BatchColumn
244                             VIEWS.Explorer.browseContext _ : VIEWS.ResourceURI
245                               VIEWS.ResourceURI.HasResource BISBC