public function generateUrl(RequestTarget $target)
 {
     $file = $target->getResource()->getFile();
     $identifier = $target->getResource()->getIdentifier();
     $fqName = $identifier->getFullyQualifiedName();
     $fqName = str_replace('\\', '.', $fqName);
     return RequestCycle::get()->getRequest()->getRootPath() . '/picon-resource/?res=' . $fqName . ':' . $file;
 }
 public function onEvent()
 {
     $property = RequestCycle::get()->getRequest()->getParameter('property');
     if ($property != null) {
         $callbackOption = $this->getOptions()->getOption($property);
         if ($callbackOption != null && $callbackOption instanceof AbstractCallableOption) {
             $target = new AjaxRequestTarget();
             $this->getComponent()->getRequestCycle()->addTarget($target);
             $callbackOption->call($target);
         }
     }
 }