Search in sources :

Example 1 with PopupListWidget

use of org.drools.workbench.screens.dtablexls.client.widgets.PopupListWidget in project drools-wb by kiegroup.

the class DecisionTableXLSEditorPresenter method convert.

private void convert() {
    busyIndicatorView.showBusyIndicator(DecisionTableXLSEditorConstants.INSTANCE.Converting());
    decisionTableXLSService.call(new RemoteCallback<ConversionResult>() {

        @Override
        public void callback(final ConversionResult response) {
            busyIndicatorView.hideBusyIndicator();
            if (response.getMessages().size() > 0) {
                final PopupListWidget popup = new PopupListWidget();
                for (ConversionMessage message : response.getMessages()) {
                    popup.addListItem(new ConversionMessageWidget(message));
                }
                popup.show();
            }
        }
    }).convert(versionRecordManager.getCurrentPath());
}
Also used : ConversionMessage(org.drools.workbench.models.guided.dtable.shared.conversion.ConversionMessage) ConversionResult(org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult) ConversionMessageWidget(org.drools.workbench.screens.dtablexls.client.widgets.ConversionMessageWidget) PopupListWidget(org.drools.workbench.screens.dtablexls.client.widgets.PopupListWidget) RemoteCallback(org.jboss.errai.common.client.api.RemoteCallback)

Aggregations

ConversionMessage (org.drools.workbench.models.guided.dtable.shared.conversion.ConversionMessage)1 ConversionResult (org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult)1 ConversionMessageWidget (org.drools.workbench.screens.dtablexls.client.widgets.ConversionMessageWidget)1 PopupListWidget (org.drools.workbench.screens.dtablexls.client.widgets.PopupListWidget)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1