}
extendedDisplay =
CoffeaEditorsPlugin.getDefault().isSelectionDetailed();
packageService = pck;
ToolbarLayout layout = new ToolbarLayout();
/*
layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
layout.setStretchMinorAxis(false);
layout.setSpacing(2);
*/
layout.setSpacing(6);
setLayoutManager(layout);
setBorder(new LineBorder(ColorConstants.black,1));
backgroundColor = new Color(null,255,255,206);
setBackgroundColor(backgroundColor);
setOpaque(true);
String name = packageService.getSimpleName();
Label nameLabel = new Label(name, createPackageIcon());
add(nameLabel);
List<ITypeService<?, ?>> typeServices =
packageService.getTypesServices();
ToolbarLayout membersLayout = new ToolbarLayout();
membersLayout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
membersLayout.setStretchMinorAxis(false);
membersLayout.setSpacing(4);
Figure membersFigure = new Figure();
membersFigure.setLayoutManager(membersLayout);
membersFigure.setBorder(new CompartmentFigureBorder());
for(ITypeService<?, ?> typeSrv : typeServices) {