Buggy code:
public final class WSDL2JavaWidgetFactory { private static final String XJC_DV_ARG = "-Xdv" ; private static final String XJC_TS_ARG = "-Xts" ; private static final String XJC_TS_MULTI_ARG = "-Xts:style:multiline" ; private static final String XJC_TS_SIMPLE = "-Xts:style:simple" ; private static final String XJC_LOCATOR_ARG = "-Xlocator" ; private static final String XJC_SYNC_METHODS_ARG = "-Xsync-methods" ; private static final String XJC_MARK_GENERATED_ARG = "-mark-generated" ; private static final String XJC_EPISODE_FILE_ARG = "-episode" ; private WSDL2JavaWidgetFactory ( ) { } public static Button createGenerateClientButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createGenerateServerButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createGenerateImplementationButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createProcessSOAPHeadersButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createNamespacePackageMappingButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createExcludesNamespaceMappingButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createNoAddressBindingButton ( Composite parent , final WSDL2JavaContext model ) { } public static Button createAutoNameResolutionButton ( Composite parent , final WSDL2JavaContext model ) { } public static TableItem createXJCDefaultValuesTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCToStringTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCToStringMultiLineTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCToStringSimpleTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCLocatorTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCSyncMethodsTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCMarkGeneratedTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static TableItem createXJCEpisodeFileTableItem ( Table xjcArgsTable , final WSDL2JavaContext model ) { } public static Table createXJCArgTable ( Composite parent , final WSDL2JavaContext model ) { } public static Label createFrontendLabel ( Composite parent ) { } public static Combo createFrontendCombo ( Composite parent , final WSDL2JavaContext model ) { } public static Label createDatabindingLabel ( Composite parent ) { } public static Combo createDatabindingCombo ( Composite parent , final WSDL2JavaContext model ) { } public static Label createWSDLVersionLabel ( Composite parent ) { } public static Combo createWSDLVersionCombo ( Composite parent , final WSDL2JavaContext model ) { } public static Button createDefaultValuesButton ( Composite parent , final WSDL2JavaContext model ) { } public static Label createOutputDirectoryLabel ( Composite parent ) { } public static Combo createOutputDirectoryCombo ( Composite parent , final WSDL2JavaDataModel model ) { } public static void populateOutputDirectoryCombo ( Combo outputDirCombo , String projectName ) { } public static Label createPackageNameLabel ( Composite parent ) { } public static Text createPackageNameText ( Composite parent , final WSDL2JavaDataModel model ) { } public static Button createNamespacePackageMappingButton ( Composite parent ) { } public static TableViewerColumn createWSDLNamespaceViewerColumn ( TableViewer tableViewer ) { } public static TableViewerColumn createPackageNameColumn ( TableViewer tableViewer , WSDL2JavaDataModel model ) { } public static Label createServiceNameLabel ( Composite parent ) { } public static Combo createServiceNameCombo ( Composite parent , final WSDL2JavaDataModel model ) { } @ SuppressWarnings ( "unchecked" ) public static void populateServiceNameCombo ( Combo serviceNameCombo , WSDL2JavaDataModel model ) { serviceNameCombo . removeAll ( ) ; Definition definition = model . getWsdlDefinition ( ) ; if ( definition != null ) { Map servicesMap = definition . getServices ( ) ; if ( servicesMap != null ) { Set servicesEntrySet = servicesMap . entrySet ( ) ; Iterator servicesIterator = servicesEntrySet . iterator ( ) ; while ( servicesIterator . hasNext ( ) ) { Map . Entry serviceEntry = ( ( Map . Entry ) ( servicesIterator . next ( ) ) ) ; Service service = ( ( Service ) ( serviceEntry . getValue ( ) ) ) ; QName qName = service . getQName ( ) ; serviceNameCombo . add ( qName . getLocalPart ( ) ) ; } <START_BUG> serviceNameCombo . select ( ( - 1 ) ) ; <END_BUG> } } } public static Label createBindingFilesLabel ( Composite parent ) { } public static List createBindingFilesList ( Composite parent ) { } public static Button createAddBindingFileButton ( final Composite parent , final WSDL2JavaDataModel model , final List bindingFilesList ) { } public static Button createRemoveBindingFileButton ( Composite parent , final WSDL2JavaDataModel model , final List bindingFilesList ) { } public static Label createPaddingLabel ( Composite parent ) { } public static Label createXMLCatalogLabel ( Composite parent ) { } public static Text createXMLCatalogText ( Composite parent , final WSDL2JavaDataModel model ) { } public static Button createXMLCatalogBrowseButton ( Composite parent ) { } }

Fix:
serviceNameCombo . deselectAll ( ) ;