TableViewer
항목에 오른쪽 마우스 클릭 수신기를 추가하는 방법은 무엇입니까?Eclipse RCP 오른쪽 클릭 이벤트
1
A
답변
5
JFace TableViewer
을 언급하는 경우 viewer
이 TableViewer
이라고 가정하면 다음 접근 방식을 사용할 수 있습니다.
MenuManager manager = new MenuManager();
viewer.getControl().setMenu(manager.createContextMenu(viewer.getControl()));
manager.add(new Action("MENU ITEM TEXT", ImageDescriptor.createFromImage(YOUR_IMAGE)) {
@Override
public void run() {
// get the current selection of the tableviewer
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
// do something
}
});
그렇지 않은 경우 질문을 명확히하십시오.
2
당신은 TableViewer의 표를 얻을
public void addMouseListener (MouseListener listener)
가 MouseEvent가 마우스 버튼을
/**
* the button that was pressed or released; 1 for the
* first button, 2 for the second button, and 3 for the
* third button, etc.
*/
public int button;
관련 문제
- 1. 오른쪽 클릭 이벤트 추가 VTK
- 2. Eclipse RCP - 제품 종속성
- 3. IE에서 마우스 오른쪽 버튼으로 클릭 이벤트
- 4. 마우스 오른쪽 버튼 클릭 이벤트 버그
- 5. Eclipse-RCP :보기 풀다운 메뉴
- 6. Eclipse RCP 파일 탐색기
- 7. Eclipse RCP 문제
- 8. Eclipse RCP 커스텀 출시
- 9. Eclipse RCP 사례 연구
- 10. Eclipse RCP 멀티 스레딩
- 11. eclipse 웹용 RCP
- 12. eclipse rcp 진행 모니터
- 13. Eclipse RCP ListProvider 조정
- 14. Eclipse RCP Databinding
- 15. Eclipse RCP 내보내기 실패
- 16. eclipse rcp 팔레트 생성
- 17. Eclipse RCP AspectJ 설정
- 18. Eclipse RCP 프로그램으로 인쇄
- 19. Eclipse RCP - 원근감있는 편집기
- 20. Eclipse RCP XMLMultiPageEditorPart 오류
- 21. JBoss/Eclipse RCP 통합
- 22. Eclipse RCP 프로젝트의 팔레트에서 더블 클릭 사용 안 함
- 23. 오른쪽 클릭 : 메뉴 옵션
- 24. RichEditableText의 오른쪽 클릭 감지
- 25. 오른쪽 클릭으로 이벤트 바인딩
- 26. Eclipse Look이있는 Eclipse RCP 툴바 버튼
- 27. Eclipse 응용 프로그램에서 Eclipse rcp disable exit 버튼
- 28. Eclipse RCP | 위젯 측면에서 현재보기를 얻는 방법?
- 29. Google Windowbuilder 전문가 Eclipse RCP
- 30. Eclipse RCP - 컨텐츠 지원 문제
당신이 JFace는'TableViewer'을 의미합니까 눌러 진 당신을 말할 것이다 호출 할 수 있습니다? – Baz