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.
Eclipse RCP アプリケーションの実行中に多くのビューを開いています。ワークベンチで現在選択されているビューのビュー ID (セカンダリ ビュー ID ではない) を取得する方法を教えてください。
最後に、次のコード行として、アプリケーションのワークベンチで現在選択されている (開いている) ビューのビュー ID を取得する方法を取得しました。
IWorkbenchPage wbp = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); String id = wbp.getActivePartReference().getId();
そして、それは私が求めていたものでした。