I have split this post into two parts since I think any follow up will
form two distinct threads.
As I am developing using Roassal, I find it useful to Explore the
graphic elements from a context menu. To demonstrate I have adapted
ROExample>>linesOn:
"-------------"
"-------------"
menu := (ROMenuActivable new)
item: 'Explore graphic element' action: [ :model | (rawView
elementFromModel: model) explore ].
node1 := ROLabel elementOn: 'node1'.
node2 := ROLabel elementOn: 'node2'.
node1 @ RODraggable @ menu.
node2 @ RODraggable @ menu.
"uncomment next three lines for Part Two
edge := ROEdge lineFrom: node1 to: node2.
edge + (ROLine red).
rawView add: edge.
"
rawView add: node1; add: node2.
ROHorizontalLineLayout on: (Array with: node1 with: node2).
"-------------"
"-------------"
Is there (or can there be added) a way to access the graphic element
more directly? Something like one of the following two lines...
item: 'Explore graphic element' action: [ :model :element | element
explore ].
item: 'Explore graphic element' rawAction: [ :element | element
explore ].