Eclipse 以编程方式设置编辑器位置
我有一个 Eclipse RCP 应用程序,在其中编写一个编辑器,该编辑器打开一个调色板以让用户绘制流程。编辑器本身一切正常。
但是,我对其透视布局中的默认打开位置有疑问。 尽管其他基于文本的编辑器(如 java、xml 编辑器)在预期的位置打开。我的新编辑器通过关闭位于顶部的其他视图在顶部位置打开。我希望它在编辑器区域中打开,而不关闭其他视图。 我的 FLowEditor 正在扩展 org.eclipse.ui.part.EditorPart。
有谁知道我怎样才能改变它的打开行为并使其类似于java编辑器?
谢谢。
I have an Eclipse RCP application in which I'm writing an editor which opens a palette to let user draw flows. Everything is working fine with editor itself.
However I have problem with its default opening location in perspective layout.
Although other text based editors (like java, xml editors) opening in the expected places. My new editor is opening in the top position by closing my other views positioned at top alreeady.I want it to be opened in the editor area without closing other views.
my FLowEditor is extending org.eclipse.ui.part.EditorPart.
Does anybody know how can i manage to change its opening behaviour and make it similar to java editor?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Martti 是正确的......编辑器必须位于一个位置,它是预先定义的。您可以在透视图中隐藏该区域,从而使视图全屏显示,但您无法移动编辑器显示的位置(除非将其分离,使其成为独立的)。
Martti is correct....the editor must be in the one location, it is pre-defined. You can hide this area in a perspective, allowing your views to be full screen, but you cannot move where the editor is displayed (unless perhaps by detaching it so it is standalone).