Report generating have some doubt

Hi Guys,
I’m try to invoking a
https://doc.cuba-platform.com/reporting-latest/single_entity_report.html this in my event() but i am getting a java parse error.
I was attached here.java%20EOF%20Error
please give me some as a suggestions.

Hi guys,
1.I’m continue with a when i will be going for a set as bitton click event i’m getting java parse error.
2.When i will running inevent()%20Errorthis logic I’m getting same error.

public class PublicationEdit extends AbstractEditor {

public void onButtonClick() {
 @Inject
private Button button;
   @Override
public void init(Map<String, Object> params) {
    TablePrintFormAction action = new TablePrintFormAction("report", newRepExamplesTable);
   newRepExamplesTable.addAction(action);
    printDetails.setAction(action);
}


}