]> gerrit.simantics Code Review - simantics/platform.git/commit
Added support for JSON PlainTextTransferable to charts and subscriptions 86/186/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 30 Nov 2016 13:48:51 +0000 (15:48 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 30 Nov 2016 13:57:21 +0000 (16:57 +0300)
commit777f66ad0fc587dd8d313705442dd2338c65ad30
tree6bc3c643b61af41f43db9c2642f2b838ac6d02fb
parent8a847992137e9da5922f12d9f70273e65d77fe8d
Added support for JSON PlainTextTransferable to charts and subscriptions

With these changes dragging JSON text using
org.simantics.ui.dnd.PlainTextTransfer on top of model browser charts
and subscriptions and also on a chart editor is now supported.

The dragged JSON data must be in the following format:
<pre>
{
    "type" : "variable",
    "uri" : "variable space URI to dragged entity",
    "defaultPropertyUri" : "variable space URI to default referenced
property variable of the dragged entity"
}
</pre>

Only "type" and "defaultPropertyUri" keys are required.

refs #6844

Change-Id: I3684a879a6c80bbff812166d14aa28eac5244663
bundles/org.simantics.charts/META-INF/MANIFEST.MF
bundles/org.simantics.charts/src/org/simantics/charts/editor/SubscriptionDropParticipant.java
bundles/org.simantics.charts/src/org/simantics/charts/internal/JsonUtils.java [new file with mode: 0644]
bundles/org.simantics.charts/src/org/simantics/charts/ui/AddVariableToChartAction.java
bundles/org.simantics.charts/src/org/simantics/charts/ui/ChartDropActionFactory.java
bundles/org.simantics.charts/src/org/simantics/charts/ui/SubscriptionDropActionFactory.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewerSelectionProvider.java
features/org.simantics.charts.feature/feature.xml