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.
を使用して SWT アプリケーションを作成しようとしていますCTabFolder。これCTabFolderには複数が含まれCTabItem、それぞれCTabItemにツリービューアーが含まれています。私の要件は、特定の を選択するときです。CTabItemこの選択したツリービューアーの最初のノードをCTabFolderデフォルトで選択する必要があります。誰でもこれについて助けてください。ありがとう、トール
CTabFolder
CTabItem
まず、 に a を追加SelectionListenerしますCTabFolder。
SelectionListener
リスナーのメソッドでは、受け取った引数の属性を使用して、selected にwidgetSelectedアクセスできます。CTabItemitem
widgetSelected
item