private void addPinClickListener(final ClickEvent event){
  eventBus.publish(this,DragEvent.HIDE_DROP_HINT);
  checkifAlreadyPinned(event.getButton());
  if (isTargetPinned) {
    pinTarget(event.getButton());
  }
 else {
    unPinTarget(event.getButton());
  }
}

private void addPinClickListener ( final ClickEvent event ) { eventBus . publish ( this , DragEvent . HIDE_DROP_HINT ) ; checkifAlreadyPinned ( event . getButton ( ) ) ; if ( isTargetPinned ) { pinTarget ( event . getButton ( ) ) ; } else { unPinTarget ( event . getButton ( ) ) ; } }
add listener to pin .
