ExpansionListener
Classes that wish to deal with ExpansionEvents can extend this class and override only the methods which they are interested in.
ExpansionEvent
186187188189190191192193194195196
GridData gd = new GridData(); gd.horizontalSpan = 4; detailsComposite.setLayoutData(gd); /* Expand: Click on caret */ timeEntryComposite.addExpansionListener(new ExpansionAdapter() { @Override public void expansionStateChanged(ExpansionEvent event) { expandTimeEntry(toolkit, detailsComposite, event.getState()); } });