如何将编辑器连接到位置光标图标?

时间:2022-03-15 22:24:52

I have built a graphical editor as an Eclipse plugin. Users may zoom into and pan about the graphical image.

我已经构建了一个图形编辑器作为Eclipse插件。用户可以放大并平移图形图像。

I would like to employ the Back and Forward arrow icons in the Eclipse icon bar to step back and forth through the graphical image, in a similar manner to what is already possible in textual editors. All of my references go quiet on this subject

我想在Eclipse图标栏中使用后退和前进箭头图标,以类似于文本编辑器中已有的方式在图形图像中来回切换。我的所有参考文献都在这个问题上保持沉默

All clues or better references are most welcome.

所有线索或更好的参考资料都是最受欢迎的。

M.

1 个解决方案

#1


I think you need to define a RetargetAction

我认为你需要定义一个RetargetAction

See an example at http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/rcp_actions.htm

请参阅http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/rcp_actions.htm上的示例

(I haven't done this myself, but it sounds right...)

(我自己没有这样做,但听起来不错......)

See also http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/wrkAdv_retarget.htm

另见http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/wrkAdv_retarget.htm

#1


I think you need to define a RetargetAction

我认为你需要定义一个RetargetAction

See an example at http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/rcp_actions.htm

请参阅http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/rcp_actions.htm上的示例

(I haven't done this myself, but it sounds right...)

(我自己没有这样做,但听起来不错......)

See also http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/wrkAdv_retarget.htm

另见http://help.eclipse.org/ganymede/topic/org.eclipse.platform.doc.isv/guide/wrkAdv_retarget.htm