class ImportsFieldEditorWidget extends Composite implements HasValue<ImportsValue> {

    protected void setImportsCount(ImportsValue importsValue) {
        int defaultImportsCount = 0;
        int wsdlImportsCount = 0;

        if (importsValue != null) {
            defaultImportsCount = importsValue.getDefaultImports().size();
            wsdlImportsCount = importsValue.getWSDLImports().size();
        }

        String importsString = buildImportsCountString(defaultImportsCount, wsdlImportsCount);
        importsTextBox.setText(importsString);
    }

    public  ImportsFieldEditorWidget();
    public  ImportsFieldEditorWidget(final ImportsValue importsValue);

}