[이클립스RCP(ECLIPSE RCP)] EclipseRCP 문제해결 (EclipseRCP Trouble Shooting)

EclipseRCP 문제해결 (EclipseRCP Trouble Shooting)[Trouble shooting,이클립스 RCP,eclipse RCP]

이미지출처 : www.mobilefish.com

EclipseRCP 문제해결 (EclipseRCP Trouble Shooting)







Product export errors



Q. I did product exported. But it can not run properly. Why?!



A. I recommend you to confirm ‘Build Configuration’ for missing any folders and files to include in the binary build.



Q. How can I ignore check event in CheckedTableViewer or CheckedTreeViewer?



A. You can use this trick.


Code:



//// ignore Check Event  //

    table = viewer.getTable();

    table.addListener(SWT.Selection,new Listener() {

         public void handleEvent(Event event) {

             if( event.detail == SWT.CHECK ) {

                    event.detail = SWT.NONE;

                    event.type   = SWT.None;

                    event.doit   = false;

                    try {

                      table.setRedraw(false);

                       TableItem item = (TableItem)table.getItem(0);

                       item.setChecked(! item.getChecked() );

                    } finally {

                      table.setRedraw(true);

                    }

             }

         }

      });



by


Tags : , , , , , ,

  • 재미있게 읽으셨나요?
    방랑자의 이야기.
    월풍도원에선 기부를 받습니다.