]> gerrit.simantics Code Review - simantics/platform.git/commit
Issues-view menu improvements & Variable-based issue context resolution 78/278/3
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 19 Jan 2017 23:06:09 +0000 (01:06 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 20 Jan 2017 10:28:02 +0000 (12:28 +0200)
commit8ec310714002ecf514ee520448bb4c7595241455
treebb8e39071c33a03bdc1fef264bb4b552aaa70b24
parentca6fcd858a0b82eb1b5a8f12c4d5df30e84393e0
Issues-view menu improvements & Variable-based issue context resolution

This adds a new [Resource] valued property for Issue instances that is
by default defined to just read the old Issue.HasContexts L0.List
property. The property allows for more specific domains to override the
issue context resource calculations.

To support this calculation a noteworthy change needed to be made to
org.simantics.db.layer0.function.All.getStandardChildDomainPropertyVariable.
It now performs a new final fallback step that resembles how the
standard procedural variables work. If the parent variable has a solver
variable node defined, it will use NodeManager.getClassifications as an
attempt to read the type Resource of the variable. If this is
successful, the asserted properties of the type are searched to find a
property matching name of the the requested property. To support this a
new request was added: UnescapedAssertedPropertyMapOfResource. This
request is also used to optimize the implementation of
All.standardGetValue[12].

These changes also add a Help action for Issues view context menu that
looks for the "contextHelpId" String property from the Variable
describing the issue.

refs #6948

Change-Id: I9655ea3647851fa04fb2420686cb13dd0c6719b6
16 files changed:
bundles/org.simantics.db.layer0/META-INF/MANIFEST.MF
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/function/All.java
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/UnescapedAssertedPropertyMapOfResource.java [new file with mode: 0644]
bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java
bundles/org.simantics.issues.ontology/graph.tg
bundles/org.simantics.issues.ontology/graph/Issue.pgraph
bundles/org.simantics.issues.ontology/src/org/simantics/issues/ontology/IssueResource.java
bundles/org.simantics.issues.ui.ontology/graph.tg
bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph
bundles/org.simantics.issues.ui.ontology/src/org/simantics/issues/ui/ontology/IssueUIResource.java
bundles/org.simantics.issues.ui/adapters.xml
bundles/org.simantics.issues.ui/plugin.xml
bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/IssueView2.java
bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/Help.java [new file with mode: 0644]
bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/MenuActions.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromIssue.java