Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 RCP 应用程序中,我有两个视图,view1 包含一个按钮 此按钮应在鼠标单击时将我从 view1 切换到 view2 我该如何进行此切换?
在按钮单击处理程序中,您需要执行以下操作:
getSite().getWorkbenchWindow().getActivePage().findView("ViewID").setFocus()