I try setup Workbench and Perspective with Java Configuration of Spring.
I find that the Perspectives Property of Workbench not be initialized.
for example.
@Bean // name will be Method Name
public DietWorkbench dietWorkbench() {
DietWorkbench wb=new DietWorkbench();
List<IPerspective<EventHandler<Event>, Event, Object>> list=new ArrayList<>();
list.add(creditCardPerspective());
wb.setPerspectives(list);
return wb;
}
if Perspectives is initialized by List then the code can easy to read.
@Bean // name will be Method Name
public DietWorkbench dietWorkbench() {
DietWorkbench wb=new DietWorkbench();
wb.getPerpectives().add(creditCardPerspective());
return wb;
}
The same problem for SubComponents Property of Perspective.
Original issue reported on code.google.com by markench...@gmail.com on 21 Apr 2012 at 11:38
Original issue reported on code.google.com by
markench...@gmail.com
on 21 Apr 2012 at 11:38