methodInsertionComb = createComboViewer(comboComp);
methodInsertionComb.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
IStructuredSelection sel = (IStructuredSelection) event.getSelection();
if (!sel.isEmpty()) {
OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
getRequestProcsseor().setMethodDestination(elem.getStrategy());
}
}
});
getRequestProcsseor().setMethodDestination(strategyProvider.get(0).getStrategy());
methodInsertionComb.getCombo().select(0);
propertyInsertionLbl = new CLabel(comboComp, SWT.NONE);
propertyInsertionLbl.setText(offsetStrategyInsertionPointProperty);
propertyInsertionComb = createComboViewer(comboComp);
propertyInsertionComb.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
IStructuredSelection sel = (IStructuredSelection) event.getSelection();
if (!sel.isEmpty()) {
OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
getRequestProcsseor().setPropertyDestination(elem.getStrategy());
}
}
});
getRequestProcsseor().setPropertyDestination(strategyProvider.get(2).getStrategy());