Keep a clean separation between EditPart and figure.
保持EditPart和图形之间“彻底”的分离。
They should avoid referencing an EditPart or figure.
它们应当避免引用EditPart或图形。
Don't reference the model or EditPart from the figure.
不要从图形引用模型或EditPart。
The figure should not have access to the EditPart or model.
图形不应该具有对EditPart或模型的访问权。
This happens when a request for a command is sent to the EditPart.
当命令的请求被发送给EditPart时就会发生这种情况。
Next, we'll bridge the model and view with the controller, or EditPart.
接下来,我们将用控制器或EditPart在模型与视图之间架起桥梁。
It turns out, this is basically all you do in the EditPart class itself.
结果表明,这基本上是您在editpart类自身中所做的所有工作。
Once you implement this method, you are pretty much done with your EditPart.
一旦您实现该方法,您就几乎已经完成了您的EditPart。
It is possible (but not a good idea) to have the EditPart build everything itself.
让EditPart自己构建所有东西是可能的(但不是个好主意)。
It is possible (but not a good idea) to have the EditPart build everything itself.
让EditPart自己构建所有东西是可能的(但不是个好主意)。
应用推荐