내 남자의 아내도 좋아 (Vicky Cristina Barcelona, 2008) [내 남자의 아내도 좋아,멜로,액션,애정,로맨스,상콤한영화,Vicky Cristina Barcelona]

이미지출처 : blog.newsok.com

흥겨운 음악도,

즐거워 보이는 일상도,



좋았다.



기억에 남는 대사라면.



‘사랑에도 균형이 필요해. 몸처럼. 수분이나 염분 이런게 빠지면 죽는다고.’ 뭐 대충 이런 말이 나왔는데.



맘에 들었다.




We were both sure that our relation was perfect, but there was something missing.

Like, love requires such a perfect balance.

It’s like the human body.

It may turn out that you have all the vitamins and minerals,

but if there is a single, tiny ingredient missing, like,

like salt, for example one dies.




by


Tags : , , , , ,

  • 재미있게 읽으셨나요?
    광고를 클릭해주시면,
    블로그 운영에 큰 도움이 됩니다!

EclipseRCP 체크박스에서 재귀선택 이벤트 (EclipseRCP recursive selection event in checkbox viewer)[checkbox viewer,체크박스,selection event,선택 이벤트,이클립스 RCP,eclipse RCP]

이미지출처 : www.mobilefish.com

EclipseRCP 체크박스에서 재귀선택 이벤트 (EclipseRCP recursive selection event in checkbox viewer)







It’s Tips for CheckboxViewer.



I found bug that throw selection event three times in CheckboxViewer(CheckboxTreeViewer,CheckboxTableViewer).



This bug appear when user click checkbox on selected object.



Then I disable selection as well as “viewer.setSelection(null);";



And I need the checkbox behave likes the radio button.



I implemented it through history clear.





Code:


boolean isHistory;
Object currentObject;
 
public void selectionChanged(SelectionChangedEvent event) {
    if(isHistory) {
      isHistory = false;
      return;
    }
  if (!event.getSelection().isEmpty()) {

      if (event.getSelection() instanceof IStructuredSelection) {

          if(currentObject!= null) {

            if(! currentObject.equals((IStructuredSelection)event.getSelection()).getFirstElement())) {

              isHistory = true;

            viewer.setChecked(currentObject, false);

              viewer.setSelection(new StructuredSelection(currentObject);

              isHistory = false;

              viewer.setSelection(null);

            }

          }

        currentObject = (IStructuredSelection)event.getSelection()).getFirstElement();

            viewer.setChecked(currentObject , !viewer.getChecked(currentObject ));

            viewer.getTable().setSelection(currentObject.index);

          viewer.setSelection(null);

      }

    }

  }



by


Tags : , , , , , ,

  • 재미있게 읽으셨나요?
    광고를 클릭해주시면,
    블로그 운영에 큰 도움이 됩니다!