]> gerrit.simantics Code Review - simantics/platform.git/commit
Added alternatives taking RequestProcessor to WorkbenchSelectionUtils. 16/416/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Apr 2017 08:56:01 +0000 (11:56 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Apr 2017 09:23:04 +0000 (12:23 +0300)
commit310006198fc46900667a2f39c97b874c27bfd2c1
tree79f61dcff139b1827c1532aea9d0ca0d5d090e1b
parent13798386471e68e750568edd823a9c3f1bda7378
Added alternatives taking RequestProcessor to WorkbenchSelectionUtils.

Fixed several places which were found to use a method from
WorkbenchSelectionUtils that could potentially try to initiate a new
read transaction through org.simantics.db.Session to pass the current
ReadGraph over to WorkbenchSelectionUtils instead. This fixes the very
same problem from OpenWithMenuContribution that was introduced in
6d3ad788 change I45cfa3940df8e1f4abe016b215843dc083227b2b.

Also, ComponentTypeViewerData.editValue now prevents committing new
entered value if the value does not pass input validation.

refs #7077
refs #7142

Change-Id: I542bd24e24ebc46c7da790c847ffafc5b8d18053
(cherry picked from commit e6c0bd9436ccc79e7dca17809dfa28f46967257a)
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeViewerData.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/PopulateElementMonitorDropParticipant.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/property/svg/SVGElementComposite.java
bundles/org.simantics.ui/src/org/simantics/ui/contribution/OpenWithMenuContribution.java
bundles/org.simantics.ui/src/org/simantics/ui/contribution/OperationsMenuContribution.java
bundles/org.simantics.ui/src/org/simantics/ui/selection/WorkbenchSelectionUtils.java
bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/ISelectionUtils.java