private void createPanels() { int size = pReporters.length; /* * Add the style bit for standalone if there is zero or 1 reporters */ if (size < 2) { style |= STANDALONE; } for (int i = 0; i < size; i++) { if (null != pReporters[i]) { /* * Add this reporter to the registry */ reportersRegistry.add(pReporters[i]); /* * Create the reporter panel; adding the style bit for BORDER */ final ProgressReporterPanel panel = new ProgressReporterPanel(scrollChild, pReporters[i], style | BORDER); panel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); panel.addTwistieListener(this); panel.addDisposeListener(this); pReporters[i].addListener(new AutoRemoveListener(panel)); } } formatLastPanel(null); }