]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.issues.ui.ontology / graph / IssueUI.pgraph
diff --git a/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph b/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph
new file mode 100644 (file)
index 0000000..74296d8
--- /dev/null
@@ -0,0 +1,245 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+ISSUE = <http://www.simantics.org/Issue-1.2>
+VP = <http://www.simantics.org/Viewpoint-1.2>
+PROJECT = <http://www.simantics.org/Project-1.2>
+SIMU = <http://www.simantics.org/Simulation-1.1>
+ACT = <http://www.simantics.org/Action-1.1>
+SG = <http://www.simantics.org/Scenegraph-1.1>
+VIEWS = <http://www.simantics.org/Views-1.2>
+SILK = <http://www.simantics.org/Silk-1.1>
+MOD = <http://www.simantics.org/Modeling-1.2>
+
+UI = <http://www.simantics.org/IssueUI-1.1> : L0.Ontology
+    @L0.new
+    L0.HasResourceClass "org.simantics.issues.ui.ontology.IssueUIResource"
+
+//--------------------------------------------------------------------------
+// Functions
+UI.Functions : L0.Library
+
+
+//--------------------------------------------------------------------------
+// Preferences
+
+UI.ShowHiddenIssues <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+UI.ShowNormalIssues <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+UI.ShowUserIssues <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasRange L0.Boolean
+
+//--------------------------------------------------------------------------
+// Issue Browse context
+
+IBC = UI.IssueBrowseContext : VP.BrowseContext
+
+// Rules
+IBC.IssueLabelDecorationRule : VP.LabelDecorationRule
+IBC.IssueImageDecorationRule : VP.ImageDecorationRule
+IBC.IssueContextDropAction : ACT.DropAction
+IBC.UserIssueTest : VP.Test
+
+// UIpoint
+IBC
+    @VP.customLabelDecorationRule ISSUE.Issue IBC.IssueLabelDecorationRule
+    @VP.dropActionContribution ISSUE.Issue IBC.IssueContextDropAction 1.0
+
+//--------------------------------------------------------------------------
+// Batch Issue Source Browse context
+
+BISBC = UI.BatchIssueSourceBrowseContext : VP.BrowseContext
+
+// Rules
+BISBC.IssueSourceRule : VP.ChildRule
+BISBC.IssueSourceLabelRule : VP.LabelRule
+BISBC.IssueSourceCheckRule : VP.CheckedStateRule
+
+// UIpoint
+BISBC
+    @VP.relationChildRule         SIMU.Model   L0.ConsistsOf ISSUE.IssueSource
+    @VP.customLabelRule           ISSUE.IssueSource VP.ResourceLabelLabelRule
+    @VP.customCheckedStateRule    ISSUE.IssueSource BISBC.IssueSourceCheckRule
+
+IBC.FatalFolder : VP.ResourceNodeType
+IBC.ErrorFolder : VP.ResourceNodeType
+IBC.WarningFolder : VP.ResourceNodeType
+IBC.InfoFolder : VP.ResourceNodeType
+IBC.NoteFolder : VP.ResourceNodeType
+IBC.UnknownFolder : VP.ResourceNodeType
+
+IBC.Issue : VP.NodeType
+    VP.HasContentType "Variable"
+
+IBC.SeverityFolderRule <T VP.ChildRule
+    >-- IBC.SeverityFolderRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
+
+IBC.SeverityChildRule <T VP.ChildRule
+    >-- IBC.SeverityChildRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
+
+IBC.SeverityFolderLabelRule <T VP.LabelRule
+    >-- IBC.SeverityFolderLabelRule.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
+
+IBC
+    // Structure
+    @VP.customChildRule PROJECT.Project 
+        _ : IBC.SeverityFolderRule
+            IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Fatal
+        IBC.FatalFolder
+    @VP.customChildRule PROJECT.Project 
+        _ : IBC.SeverityFolderRule
+            IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Error
+        IBC.ErrorFolder
+    @VP.customChildRule PROJECT.Project 
+        _ : IBC.SeverityFolderRule
+            IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Warning
+        IBC.WarningFolder
+    @VP.customChildRule PROJECT.Project 
+        _ : IBC.SeverityFolderRule
+            IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Info
+        IBC.InfoFolder
+    @VP.customChildRule PROJECT.Project 
+        _ : IBC.SeverityFolderRule
+            IBC.SeverityFolderRule.HasSeverity ISSUE.Severity.Note
+        IBC.NoteFolder
+        
+    // Content
+    @VP.customChildRule IBC.FatalFolder 
+        _ : IBC.SeverityChildRule
+            IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Fatal
+        IBC.Issue
+    @VP.customChildRule IBC.ErrorFolder 
+        _ : IBC.SeverityChildRule
+            IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Error
+        IBC.Issue
+    @VP.customChildRule IBC.WarningFolder 
+        _ : IBC.SeverityChildRule
+            IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Warning
+        IBC.Issue
+    @VP.customChildRule IBC.InfoFolder 
+        _ : IBC.SeverityChildRule
+            IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Info
+        IBC.Issue
+    @VP.customChildRule IBC.NoteFolder 
+        _ : IBC.SeverityChildRule
+            IBC.SeverityChildRule.HasSeverity ISSUE.Severity.Note
+        IBC.Issue
+        
+    // Labels
+    @VP.customLabelRule IBC.FatalFolder 
+        _ : IBC.SeverityFolderLabelRule
+            IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Fatal
+    @VP.customLabelRule IBC.ErrorFolder 
+        _ : IBC.SeverityFolderLabelRule
+            IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Error
+    @VP.customLabelRule IBC.WarningFolder 
+        _ : IBC.SeverityFolderLabelRule
+            IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Warning
+    @VP.customLabelRule IBC.InfoFolder 
+        _ : IBC.SeverityFolderLabelRule
+            IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Info
+    @VP.customLabelRule IBC.NoteFolder 
+        _ : IBC.SeverityFolderLabelRule
+            IBC.SeverityFolderLabelRule.HasSeverity ISSUE.Severity.Note
+    @VP.customLabelRule IBC.Issue 
+        IBC.IssueLabelRule : VP.ChildRule
+    @VP.customVisualsRuleWithPriorityAndTest IBC.Issue VP.VariableLabelModifierRule  1.0 IBC.UserIssueTest
+    
+    // Images
+    @VP.constantImageRule IBC.FatalFolder SILK.bomb
+    @VP.constantImageRule IBC.ErrorFolder SILK.exclamation
+    @VP.constantImageRule IBC.WarningFolder SILK.error
+    @VP.constantImageRule IBC.InfoFolder SILK.information
+    @VP.constantImageRule IBC.NoteFolder SILK.note
+    @VP.constantImageRule IBC.UnknownFolder SILK.help
+    @VP.customLabelRule IBC.Issue 
+        IBC.IssueImageRule : VP.ImageRule
+
+// ACTIONS
+
+ACTIONS = UI.Actions : L0.Library
+
+ACTIONS.SeverityActionCategory : VP.ActionCategory
+    L0.HasLabel "Set Severity"
+    VP.ActionCategory.IsSubmenu L0.True
+
+ACTIONS.SetSeverityAction <T ACT.Action
+    >-- ACTIONS.SetSeverityAction.HasSeverity --> ISSUE.Severity <R L0.DependsOn : L0.FunctionalRelation
+
+IAC = UI.ActionContext : VP.BrowseContext
+    // Set severity
+    @VP.actionContribution "Fatal" IBC.Issue SILK.bomb ACTIONS.SeverityActionCategory 
+        _ : ACTIONS.SetSeverityAction
+            ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Fatal
+    @VP.actionContribution "Error" IBC.Issue SILK.exclamation ACTIONS.SeverityActionCategory 
+        _ : ACTIONS.SetSeverityAction
+            ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Error
+    @VP.actionContribution "Warning" IBC.Issue SILK.error ACTIONS.SeverityActionCategory 
+        _ : ACTIONS.SetSeverityAction
+            ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Warning
+    @VP.actionContribution "Info" IBC.Issue SILK.information ACTIONS.SeverityActionCategory 
+        _ : ACTIONS.SetSeverityAction
+            ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Info
+    @VP.actionContribution "Note" IBC.Issue SILK.note ACTIONS.SeverityActionCategory 
+        _ : ACTIONS.SetSeverityAction
+            ACTIONS.SetSeverityAction.HasSeverity ISSUE.Severity.Note
+    @VP.actionContribution "Resolve" IBC.Issue SILK.tick VP.EditActionCategory 
+        ACTIONS.Resolve : ACT.Action
+    @VP.actionContribution "Unresolve" IBC.Issue SILK.lightbulb_off VP.EditActionCategory 
+        ACTIONS.Unresolve : ACT.Action
+    @VP.actionContribution "Hide" IBC.Issue SILK.shading VP.EditActionCategory 
+        ACTIONS.Hide : ACT.Action
+    @VP.actionContribution "Unhide" IBC.Issue SILK.shading VP.EditActionCategory 
+        ACTIONS.Unhide : ACT.Action
+
+UI.IssueView.Description 
+    @VIEWS.Explorer.Column.full "single" "Description" "LEFT" 150 "Description" true 1
+UI.IssueView.Resource 
+    @VIEWS.Explorer.Column.full "Resource" "Resource" "LEFT" 60 "Resource" false 1
+UI.IssueView.Path 
+    @VIEWS.Explorer.Column.full "Path" "Path" "LEFT" 150 "Path" false 1
+
+UI.IssueView.BatchColumn
+    @VIEWS.Explorer.Column.full "single" "Validations" "LEFT" 150 "Validations" true 1
+
+UI.IssueView : VIEWS.TabFolder
+    VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
+        VIEWS.GridLayout.GridData.horizontalGrab true
+        VIEWS.GridLayout.GridData.verticalGrab true
+    SG.Node.children _ : L0.List
+        @L0.list
+            UI.IssueView.Active : VIEWS.Composite
+                SG.Node.children _ : L0.List
+                    @L0.list
+                        UI.IssueView.Active.Explorer : VIEWS.Explorer
+                            @VIEWS.Control.style2 VIEWS.Control.Style.Constant.FullSelection VIEWS.Control.Style.Constant.Multi 
+                            VIEWS.Explorer.input VIEWS.Functions.singleResourceSelection
+                            VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
+                                VIEWS.GridLayout.GridData.horizontalGrab true
+                                VIEWS.GridLayout.GridData.verticalGrab true
+                            VIEWS.Explorer.columns _ : VIEWS.Explorer.ColumnList
+                                @L0.list
+                                    UI.IssueView.Description
+                                    UI.IssueView.Resource
+                                    UI.IssueView.Path
+                            VIEWS.Explorer.persistor MOD.Functions.standardPersistor
+                            VIEWS.Explorer.browseContext _ : VIEWS.ResourceURI
+                              VIEWS.ResourceURI.HasResource IBC
+            UI.IssueView.Batch : VIEWS.Composite            
+                SG.Node.children _ : L0.List
+                    @L0.list
+                        UI.IssueView.Batch.Explorer : VIEWS.Explorer
+                            @VIEWS.Control.style2 VIEWS.Control.Style.Constant.FullSelection VIEWS.Control.Style.Constant.Check
+                            VIEWS.Explorer.input UI.Functions.activeModel : L0.Function
+                              L0.HasValueType "a"
+                            VIEWS.Explorer.selectionListener UI.Functions.issueSourceSelected : L0.Function
+                              L0.HasValueType "a -> Boolean"
+                            VIEWS.Control.layoutData _ : VIEWS.GridLayout.GridData
+                                VIEWS.GridLayout.GridData.horizontalGrab true
+                                VIEWS.GridLayout.GridData.verticalGrab true
+                            VIEWS.Explorer.columns _ : VIEWS.Explorer.ColumnList
+                                @L0.list
+                                    UI.IssueView.BatchColumn
+                            VIEWS.Explorer.browseContext _ : VIEWS.ResourceURI
+                              VIEWS.ResourceURI.HasResource BISBC
\ No newline at end of file