ECLIPSE RCP 应用程序:打开另一个窗口后视图消失
我在一个窗口中有 3 个视图。第一个视图包含来自树查看器的内容。第二个视图的内容位于 FillLayout 中。两个视图都从数据库获取数据。 一旦我点击第二个视图中的链接,就会弹出新窗口。但这个窗口失去了第一和第二视图。我不知道我在这里缺少什么。 任何见解都受到高度赞赏。
I have 3 views in a window. The first view has content from a tree viewer. The second view has content in FillLayout. Both views get the data from the DB.
Once I click on a link from the second view, I get the new window popping out. But this window looses both first and second views. I don't know what I am missing here.
Any insight is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您打开的窗口仅显示其他窗口中未打开的视图,这就是为什么您只看到一个视图。您应该寻找其他打开新窗口的方法(据我所知有很多方法,openWorkbenchWindow只是其中之一)
看看这里寻求一些帮助,看起来相当不错与你的问题类似。
I think the window you are opening is showing just the views which are not opened in other windows, thats why you see just a single view. You should search for other ways of opening a new window (as far as I know there are many ways and openWorkbenchWindow is just one of them)
Have a look here for some help, looks quite similar to your problem.