X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.charts.ontology%2Fgraph%2FChartViewpoint.pgraph;h=5ad10fbff56617bdeef9663f872abc767f01e767;hp=8d668cc52524bf18fed486d348864f54f5bf47b8;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.charts.ontology/graph/ChartViewpoint.pgraph b/bundles/org.simantics.charts.ontology/graph/ChartViewpoint.pgraph index 8d668cc52..5ad10fbff 100644 --- a/bundles/org.simantics.charts.ontology/graph/ChartViewpoint.pgraph +++ b/bundles/org.simantics.charts.ontology/graph/ChartViewpoint.pgraph @@ -1,81 +1,81 @@ -L0 = -MOD = -IMAGE = -VP = -ACT = -CHART = -SIMU = - -CBC = CHART.ChartBrowseContext : VP.BrowseContext - VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext -CAC = CHART.ChartActionContext : VP.BrowseContext - VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext - -CBC.ChartsFolder : VP.ResourceNodeType - -// Library containing all viewpoint contributions -CHART.Contributions : L0.Library - -CHART.Contributions.Charts - @VP.defineRelationChildRule SIMU.Model L0.ConsistsOf CHART.Chart - -CBC - //@VP.relationChildRuleWithFolder MOD.StructuralModel L0.ConsistsOf CHART.Chart - // CBC.ChartsFolder : VP.ResourceNodeType - - VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution - VP.VisualsContribution.HasNodeType CHART.TimeSeriesChart - VP.VisualsContribution.HasRule CBC.ChartSorterRule - - @VP.relationChildRule CHART.Chart L0.ConsistsOf CHART.Chart.Item - @VP.relationChildRule CHART.ChartGroup L0.ConsistsOf CHART.Chart - - @VP.constantLabelRule CBC.ChartsFolder "Charts" - @VP.customLabelRule CHART.Chart.Item CBC.ChartItemLabelRule - @VP.customLabelRule CHART.Chart.Item CBC.ChartItemNameModifierRule - @VP.customLabelDecorationRule CHART.Chart.Item CBC.ChartItemLabelDecorationRule - - @VP.constantImageRule CBC.ChartsFolder IMAGES.ChartsFolder - @VP.constantImageRule CHART.ChartGroup IMAGES.ChartGroup - @VP.constantImageRule CHART.Chart IMAGES.Chart - @VP.customImageRule CHART.Chart.Item IMAGES.ChartItemImage - - @VP.dropActionContribution CBC.ChartsFolder ACTIONS.ChartGroupDropAction 1.0 - @VP.dropActionContribution CHART.ChartGroup ACTIONS.ChartGroupDropAction 1.0 - @VP.dropActionContribution CHART.TimeSeriesChart ACTIONS.ChartDropAction 1.0 - @VP.dropActionContribution CHART.Chart.Item ACTIONS.ChartItemDropAction 1.0 - -CAC - @VP.actionContribution "Chart Group" CHART.ChartGroup IMAGES.ChartGroup VP.NewActionCategory ACTIONS.NewChartGroup - @VP.actionContribution "Chart Group" CBC.ChartsFolder IMAGES.ChartGroup VP.NewActionCategory ACTIONS.NewChartGroup - @VP.actionContribution "Chart" CBC.ChartsFolder IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart - @VP.actionContribution "Chart" CHART.ChartGroup IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart - -CHART.Contributions.NewChart - @VP.defineActionContribution "Chart" SIMU.Model IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart - - -IMAGES = CBC.Images : L0.Library -IMAGES.ChartsFolder : IMAGE.PngImage - @L0.loadBytes "images/Charts.png" -IMAGES.Chart : IMAGE.PngImage - @L0.loadBytes "images/chart_line.png" -IMAGES.ChartGroup : IMAGE.PngImage - @L0.loadBytes "images/chart_group2.png" -IMAGES.Plot : IMAGE.PngImage - @L0.loadBytes "images/tag_orange.png" -IMAGES.ChartItemImage : VP.ImageRule - -CBC.ChartItemLabelRule : VP.LabelRule -CBC.ChartSorterRule : VP.SorterRule -CBC.ChartItemLabelDecorationRule : VP.LabelDecorationRule - -CBC.ChartItemNameModifierRule : VP.ModifierRule - L0.HasDescription """Modifier rule based on resource names.""" - -ACTIONS = CAC.Actions : L0.Library -ACTIONS.ChartDropAction : ACT.DropAction -ACTIONS.ChartGroupDropAction : ACT.DropAction -ACTIONS.ChartItemDropAction : ACT.DropAction -ACTIONS.NewChart : ACT.Action -ACTIONS.NewChartGroup : ACT.Action +L0 = +MOD = +IMAGE = +VP = +ACT = +CHART = +SIMU = + +CBC = CHART.ChartBrowseContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext +CAC = CHART.ChartActionContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext + +CBC.ChartsFolder : VP.ResourceNodeType + +// Library containing all viewpoint contributions +CHART.Contributions : L0.Library + +CHART.Contributions.Charts + @VP.defineRelationChildRule SIMU.Model L0.ConsistsOf CHART.Chart + +CBC + //@VP.relationChildRuleWithFolder MOD.StructuralModel L0.ConsistsOf CHART.Chart + // CBC.ChartsFolder : VP.ResourceNodeType + + VP.BrowseContext.HasVisualsContribution _ : VP.VisualsContribution + VP.VisualsContribution.HasNodeType CHART.TimeSeriesChart + VP.VisualsContribution.HasRule CBC.ChartSorterRule + + @VP.relationChildRule CHART.Chart L0.ConsistsOf CHART.Chart.Item + @VP.relationChildRule CHART.ChartGroup L0.ConsistsOf CHART.Chart + + @VP.constantLabelRule CBC.ChartsFolder "Charts" + @VP.customLabelRule CHART.Chart.Item CBC.ChartItemLabelRule + @VP.customLabelRule CHART.Chart.Item CBC.ChartItemNameModifierRule + @VP.customLabelDecorationRule CHART.Chart.Item CBC.ChartItemLabelDecorationRule + + @VP.constantImageRule CBC.ChartsFolder IMAGES.ChartsFolder + @VP.constantImageRule CHART.ChartGroup IMAGES.ChartGroup + @VP.constantImageRule CHART.Chart IMAGES.Chart + @VP.customImageRule CHART.Chart.Item IMAGES.ChartItemImage + + @VP.dropActionContribution CBC.ChartsFolder ACTIONS.ChartGroupDropAction 1.0 + @VP.dropActionContribution CHART.ChartGroup ACTIONS.ChartGroupDropAction 1.0 + @VP.dropActionContribution CHART.TimeSeriesChart ACTIONS.ChartDropAction 1.0 + @VP.dropActionContribution CHART.Chart.Item ACTIONS.ChartItemDropAction 1.0 + +CAC + @VP.actionContribution "Chart Group" CHART.ChartGroup IMAGES.ChartGroup VP.NewActionCategory ACTIONS.NewChartGroup + @VP.actionContribution "Chart Group" CBC.ChartsFolder IMAGES.ChartGroup VP.NewActionCategory ACTIONS.NewChartGroup + @VP.actionContribution "Chart" CBC.ChartsFolder IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart + @VP.actionContribution "Chart" CHART.ChartGroup IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart + +CHART.Contributions.NewChart + @VP.defineActionContribution "Chart" SIMU.Model IMAGES.Chart VP.NewActionCategory ACTIONS.NewChart + + +IMAGES = CBC.Images : L0.Library +IMAGES.ChartsFolder : IMAGE.PngImage + @L0.loadBytes "images/Charts.png" +IMAGES.Chart : IMAGE.PngImage + @L0.loadBytes "images/chart_line.png" +IMAGES.ChartGroup : IMAGE.PngImage + @L0.loadBytes "images/chart_group2.png" +IMAGES.Plot : IMAGE.PngImage + @L0.loadBytes "images/tag_orange.png" +IMAGES.ChartItemImage : VP.ImageRule + +CBC.ChartItemLabelRule : VP.LabelRule +CBC.ChartSorterRule : VP.SorterRule +CBC.ChartItemLabelDecorationRule : VP.LabelDecorationRule + +CBC.ChartItemNameModifierRule : VP.ModifierRule + L0.HasDescription """Modifier rule based on resource names.""" + +ACTIONS = CAC.Actions : L0.Library +ACTIONS.ChartDropAction : ACT.DropAction +ACTIONS.ChartGroupDropAction : ACT.DropAction +ACTIONS.ChartItemDropAction : ACT.DropAction +ACTIONS.NewChart : ACT.Action +ACTIONS.NewChartGroup : ACT.Action