Search in sources :

Example 1 with StringUtils.isNoneEmpty

use of org.apache.commons.lang3.StringUtils.isNoneEmpty in project Eidolons by IDemiurge.

the class UnitDataSource method getWeaponValueContainer.

private ValueContainer getWeaponValueContainer(DC_WeaponObj weapon) {
    TextureRegion image;
    if (weapon != null) {
        image = getOrCreateR(weapon.getImagePath());
    } else {
        image = getOrCreateR(CELL_TYPE.WEAPON_MAIN.getSlotImagePath());
    }
    ValueContainer valueContainer = new ValueContainer(image);
    if (weapon != null) {
        List<ValueContainer> list = new ArrayList<>();
        for (int i = 0; i < WEAPON_DC_INFO_PARAMS.length; i++) {
            PARAMS p = WEAPON_DC_INFO_PARAMS[i];
            String value = String.valueOf(weapon.getIntParam(p));
            String name = p.getName();
            final ValueContainer tooltipContainer = new ValueContainer(name, value);
            tooltipContainer.pad(10);
            list.add(tooltipContainer);
        }
        Tooltip tooltip = new WeaponTooltip();
        tooltip.setUserObject(new WeaponToolTipDataSource() {

            @Override
            public List<ValueContainer> getMainParams() {
                return list;
            }

            @Override
            public List<ValueContainer> getBuffs() {
                return weapon.getBuffs().stream().filter(obj -> StringUtils.isNoneEmpty(obj.getType().getProperty(G_PROPS.IMAGE))).map(AttackTooltipFactory.getObjValueContainerMapper()).collect(Collectors.toList());
            }
        });
        valueContainer.addListener(tooltip.getController());
    }
    return valueContainer;
}
Also used : DC_WeaponObj(eidolons.entity.item.DC_WeaponObj) WeaponTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponTooltip) UNIT_INFO_PARAMS(eidolons.content.UNIT_INFO_PARAMS) Arrays(java.util.Arrays) AttackTooltipFactory(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltipFactory) UiMaster(eidolons.libgdx.gui.UiMaster) PARAMS(eidolons.content.PARAMS) VerticalValueContainer(eidolons.libgdx.gui.generic.VerticalValueContainer) StringUtils(org.apache.commons.lang3.StringUtils) ArrayList(java.util.ArrayList) WeaponToolTipDataSource(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponToolTipDataSource) TextureCache.getOrCreateR(eidolons.libgdx.texture.TextureCache.getOrCreateR) Pair(org.apache.commons.lang3.tuple.Pair) TextureRegion(com.badlogic.gdx.graphics.g2d.TextureRegion) Tooltip(eidolons.libgdx.gui.tooltips.Tooltip) G_PROPS(main.content.values.properties.G_PROPS) DC_UnitAction(eidolons.entity.active.DC_UnitAction) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer) CELL_TYPE(eidolons.libgdx.gui.panels.dc.inventory.InventoryClickHandler.CELL_TYPE) AttackTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip) Collectors(java.util.stream.Collectors) ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) PARAMETER(main.content.values.parameters.PARAMETER) ImageManager(main.system.images.ImageManager) List(java.util.List) TextureCache(eidolons.libgdx.texture.TextureCache) ValuePages(eidolons.content.ValuePages) ValueTooltip(eidolons.libgdx.gui.tooltips.ValueTooltip) DC_ArmorObj(eidolons.entity.item.DC_ArmorObj) Unit(eidolons.entity.obj.unit.Unit) WeaponTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponTooltip) Tooltip(eidolons.libgdx.gui.tooltips.Tooltip) AttackTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip) ValueTooltip(eidolons.libgdx.gui.tooltips.ValueTooltip) ArrayList(java.util.ArrayList) TextureRegion(com.badlogic.gdx.graphics.g2d.TextureRegion) ArrayList(java.util.ArrayList) List(java.util.List) VerticalValueContainer(eidolons.libgdx.gui.generic.VerticalValueContainer) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer) UNIT_INFO_PARAMS(eidolons.content.UNIT_INFO_PARAMS) PARAMS(eidolons.content.PARAMS) WeaponTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponTooltip) WeaponToolTipDataSource(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponToolTipDataSource)

Example 2 with StringUtils.isNoneEmpty

use of org.apache.commons.lang3.StringUtils.isNoneEmpty in project cloudbreak by hortonworks.

the class AllHostPublicDnsEntryService method getComponentLocation.

@Override
protected Map<String, List<String>> getComponentLocation(Stack stack) {
    Map<String, List<String>> result = new HashMap<>();
    Optional<InstanceMetaData> gateway = Optional.ofNullable(stack.getPrimaryGatewayInstance());
    if (gateway.isEmpty()) {
        LOGGER.info("No running gateway or all node is terminated, we skip the dns entry deletion.");
    } else {
        InstanceMetaData primaryGatewayInstance = gateway.get();
        Map<String, List<String>> hostnamesByInstanceGroupName = stack.getNotTerminatedInstanceMetaDataSet().stream().filter(im -> StringUtils.isNoneEmpty(im.getDiscoveryFQDN()) && !im.getDiscoveryFQDN().equals(primaryGatewayInstance.getDiscoveryFQDN())).collect(groupingBy(InstanceMetaData::getInstanceGroupName, mapping(InstanceMetaData::getDiscoveryFQDN, toList())));
        result.putAll(hostnamesByInstanceGroupName);
    }
    return result;
}
Also used : InstanceMetaData(com.sequenceiq.cloudbreak.domain.stack.instance.InstanceMetaData) Stack(com.sequenceiq.cloudbreak.domain.stack.Stack) Logger(org.slf4j.Logger) Collectors.groupingBy(java.util.stream.Collectors.groupingBy) LoggerFactory(org.slf4j.LoggerFactory) HashMap(java.util.HashMap) StringUtils(org.apache.commons.lang3.StringUtils) Collectors.toList(java.util.stream.Collectors.toList) List(java.util.List) InstanceMetaData(com.sequenceiq.cloudbreak.domain.stack.instance.InstanceMetaData) Service(org.springframework.stereotype.Service) Collectors.mapping(java.util.stream.Collectors.mapping) Map(java.util.Map) Optional(java.util.Optional) HashMap(java.util.HashMap) Collectors.toList(java.util.stream.Collectors.toList) List(java.util.List)

Example 3 with StringUtils.isNoneEmpty

use of org.apache.commons.lang3.StringUtils.isNoneEmpty in project java-jotasync by trixon.

the class JobExecutor method run.

@Override
public void run() {
    mLastRun = System.currentTimeMillis();
    String dryRunIndicator = "";
    if (mDryRun) {
        dryRunIndicator = String.format(" (%s)", Dict.DRY_RUN.toString());
    }
    appendHistoryFile(getHistoryLine(mJob.getId(), Dict.STARTED.toString(), dryRunIndicator));
    String s = String.format("%s %s: '%s'='%s'", Jota.nowToDateTime(), Dict.START.toString(), Dict.JOB.toString(), mJob.getName());
    mOutBuffer.append(s).append("\n");
    send(ProcessEvent.OUT, s);
    JobExecuteSection jobExecute = mJob.getExecuteSection();
    try {
        String command;
        // run before first task
        command = jobExecute.getBeforeCommand();
        if (jobExecute.isBefore() && StringUtils.isNoneEmpty(command)) {
            run(command, jobExecute.isBeforeHaltOnError(), mJobExecBundle.getString("JobPanel.beforePanel.header"));
        }
        runTasks();
        if (mNumOfFailedTasks == 0) {
            // run after last task - if all ok
            command = jobExecute.getAfterSuccessCommand();
            if (jobExecute.isAfterSuccess() && StringUtils.isNoneEmpty(command)) {
                run(command, false, mJobExecBundle.getString("JobPanel.afterSuccessPanel.header"));
            }
        } else {
            s = String.format(Dict.TASKS_FAILED.toString(), mNumOfFailedTasks);
            mOutBuffer.append(s).append("\n");
            send(ProcessEvent.OUT, s);
            // run after last task - if any failed
            command = jobExecute.getAfterFailureCommand();
            if (jobExecute.isAfterFailure() && StringUtils.isNoneEmpty(command)) {
                run(command, false, mJobExecBundle.getString("JobPanel.afterFailurePanel.header"));
            }
        }
        // run after last task
        command = jobExecute.getAfterCommand();
        if (jobExecute.isAfter() && StringUtils.isNoneEmpty(command)) {
            run(command, false, mJobExecBundle.getString("JobPanel.afterPanel.header"));
        }
        Thread.sleep(500);
        appendHistoryFile(getHistoryLine(mJob.getId(), Dict.DONE.toString(), dryRunIndicator));
        s = String.format("%s %s: %s", Jota.nowToDateTime(), Dict.DONE.toString(), Dict.JOB.toString());
        mOutBuffer.append(s).append("\n");
        updateJobStatus(0);
        writelogs();
        send(ProcessEvent.FINISHED, s);
        Xlog.timedOut(String.format(Dict.JOB_FINISHED.toString(), mJob.getName()));
    } catch (InterruptedException ex) {
        mCurrentProcess.destroy();
        appendHistoryFile(getHistoryLine(mJob.getId(), Dict.CANCELED.toString(), dryRunIndicator));
        updateJobStatus(99);
        writelogs();
        mServer.getClientCallbacks().stream().forEach((clientCallback) -> {
            try {
                clientCallback.onProcessEvent(ProcessEvent.CANCELED, mJob, null, null);
            } catch (RemoteException ex1) {
            // nvm Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex1);
            }
        });
    } catch (IOException ex) {
        writelogs();
        Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);
    } catch (ExecutionFailedException ex) {
        // Logger.getLogger(JobExecutor.class.getName()).log(Level.SEVERE, null, ex);
        // send(ProcessEvent.OUT, "before failed and will not continue");
        appendHistoryFile(getHistoryLine(mJob.getId(), Dict.FAILED.toString(), dryRunIndicator));
        updateJobStatus(1);
        writelogs();
        send(ProcessEvent.FAILED, String.format("\n\n%s", Dict.JOB_FAILED.toString()));
    }
    mServer.getJobExecutors().remove(mJob.getId());
}
Also used : TaskExecuteSection(se.trixon.jota.shared.task.TaskExecuteSection) ProcessEvent(se.trixon.jota.shared.ProcessEvent) Task(se.trixon.jota.shared.task.Task) StringUtils(org.apache.commons.lang3.StringUtils) TaskExecutePanel(se.trixon.jota.client.ui_swing.editor.module.task.TaskExecutePanel) ArrayList(java.util.ArrayList) Level(java.util.logging.Level) Dict(se.trixon.almond.util.Dict) Charset(java.nio.charset.Charset) ResourceBundle(java.util.ResourceBundle) SystemHelper(se.trixon.almond.util.SystemHelper) JobExecuteSection(se.trixon.jota.shared.job.JobExecuteSection) Xlog(se.trixon.almond.util.Xlog) IOException(java.io.IOException) FileUtils(org.apache.commons.io.FileUtils) Logger(java.util.logging.Logger) InputStreamReader(java.io.InputStreamReader) FileHelper(se.trixon.almond.util.FileHelper) JobExecutePanel(se.trixon.jota.client.ui_swing.editor.module.job.JobExecutePanel) File(java.io.File) RemoteException(java.rmi.RemoteException) Job(se.trixon.jota.shared.job.Job) List(java.util.List) Jota(se.trixon.jota.shared.Jota) BufferedReader(java.io.BufferedReader) InputStream(java.io.InputStream) IOException(java.io.IOException) RemoteException(java.rmi.RemoteException) JobExecuteSection(se.trixon.jota.shared.job.JobExecuteSection)

Example 4 with StringUtils.isNoneEmpty

use of org.apache.commons.lang3.StringUtils.isNoneEmpty in project mes by qcadoo.

the class GenerateMaterialRequirementCoverageListeners method createDelivery.

/**
 * createOffer event handler
 *
 * @param view
 * @param state
 * @param args
 */
public void createDelivery(final ViewDefinitionState view, final ComponentState state, final String[] args) {
    init();
    GridComponent grid = (GridComponent) view.getComponentByReference(L_GRID);
    Entity parameter = parameterService.getParameter();
    Entity systemCurrency = parameter.getBelongsToField(ParameterFields.CURRENCY);
    DataDefinition companyDataDefinition = dataDefinitionService.get(BasicConstants.PLUGIN_IDENTIFIER, BasicConstants.MODEL_COMPANY);
    Map<Optional<Integer>, List<Entity>> groupedCoverageProducts = grid.getSelectedEntities().stream().collect(Collectors.groupingBy(e -> Optional.ofNullable(e.getIntegerField("companyId"))));
    StringBuilder deliveryNumbers = new StringBuilder();
    for (Map.Entry<Optional<Integer>, List<Entity>> entry : groupedCoverageProducts.entrySet()) {
        String number = numberGeneratorService.generateNumber(DeliveriesConstants.PLUGIN_IDENTIFIER, DeliveriesConstants.MODEL_DELIVERY);
        Entity delivery = deliveriesService.getDeliveryDD().create();
        delivery.setField(NUMBER, number);
        Entity currency = null;
        if (entry.getKey().isPresent()) {
            Entity supplier = companyDataDefinition.get(entry.getKey().get().longValue());
            delivery.setField(SUPPLIER, supplier);
            currency = supplier.getBelongsToField(CompanyFieldsD.CURRENCY);
        }
        if (currency == null) {
            currency = systemCurrency;
        }
        delivery.setField(CURRENCY, currency);
        delivery.setField(EXTERNAL_SYNCHRONIZED, true);
        Entity saved = deliveriesService.getDeliveryDD().save(delivery);
        if (saved.isValid()) {
            deliveryNumbers.append("<br/>").append(number);
            entry.getValue().forEach(coverageProduct -> {
                Integer product = coverageProduct.getIntegerField("productId");
                BigDecimal reserveMissingQuantity = coverageProduct.getDecimalField(CoverageProductFields.RESERVE_MISSING_QUANTITY);
                BigDecimal orderedQuantity = reserveMissingQuantity.min(BigDecimal.ZERO).abs();
                BigDecimal conversion = getConversion(product);
                Entity orderedProduct = orderedProductDataDefinition.create();
                orderedProduct.setField("delivery", saved);
                orderedProduct.setField("product", product.longValue());
                orderedProduct.setField("orderedQuantity", reserveMissingQuantity.min(BigDecimal.ZERO).abs());
                orderedProduct.setField(OrderedProductFields.CONVERSION, conversion);
                orderedProduct.setField(OrderedProductFields.ADDITIONAL_QUANTITY, orderedQuantity.multiply(conversion, numberService.getMathContext()));
                orderedProductDataDefinition.save(orderedProduct);
            });
        }
        if (parameter.getBooleanField(L_REQUIRE_SUPPLIER_IDENTIFICATION) && Objects.isNull(delivery.getBelongsToField(SUPPLIER))) {
            state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.requireSupplierIdentification", MessageType.INFO, false);
        }
    }
    if (StringUtils.isNoneEmpty(deliveryNumbers.toString())) {
        state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.created", MessageType.SUCCESS, false, deliveryNumbers.toString());
    } else {
        state.addMessage("orderSupplies.materialRequirementCoverage.deliveries.notCreated", MessageType.INFO, false);
    }
}
Also used : LocaleContextHolder(org.springframework.context.i18n.LocaleContextHolder) Date(java.util.Date) Autowired(org.springframework.beans.factory.annotation.Autowired) UnitConversionService(com.qcadoo.model.api.units.UnitConversionService) MaterialRequirementCoverageFields(com.qcadoo.mes.orderSupplies.constants.MaterialRequirementCoverageFields) StringUtils(org.apache.commons.lang3.StringUtils) ParameterFields(com.qcadoo.mes.basic.constants.ParameterFields) FileService(com.qcadoo.model.api.file.FileService) BigDecimal(java.math.BigDecimal) ReportService(com.qcadoo.report.api.ReportService) JSONException(org.json.JSONException) OrderSuppliesConstants(com.qcadoo.mes.orderSupplies.constants.OrderSuppliesConstants) JSONObject(org.json.JSONObject) Locale(java.util.Locale) BasicConstants(com.qcadoo.mes.basic.constants.BasicConstants) Map(java.util.Map) CoverageProductSelectedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductSelectedFields) SearchRestrictions(com.qcadoo.model.api.search.SearchRestrictions) DeliveriesConstants(com.qcadoo.mes.deliveries.constants.DeliveriesConstants) Collectors(java.util.stream.Collectors) DataDefinition(com.qcadoo.model.api.DataDefinition) Objects(java.util.Objects) List(java.util.List) Entity(com.qcadoo.model.api.Entity) CoverageAnalysisForOrderService(com.qcadoo.mes.orderSupplies.coverage.coverageAnalysis.CoverageAnalysisForOrderService) ParameterService(com.qcadoo.mes.basic.ParameterService) EXTERNAL_SYNCHRONIZED(com.qcadoo.mes.deliveries.constants.DeliveryFields.EXTERNAL_SYNCHRONIZED) CompanyFieldsD(com.qcadoo.mes.deliveries.constants.CompanyFieldsD) Optional(java.util.Optional) MessageType(com.qcadoo.view.api.ComponentState.MessageType) DataDefinitionService(com.qcadoo.model.api.DataDefinitionService) ComponentState(com.qcadoo.view.api.ComponentState) QcadooViewConstants(com.qcadoo.view.constants.QcadooViewConstants) SimpleDateFormat(java.text.SimpleDateFormat) NUMBER(com.qcadoo.mes.deliveries.constants.DeliveryFields.NUMBER) DateUtils(com.qcadoo.localization.api.utils.DateUtils) CURRENCY(com.qcadoo.mes.deliveries.constants.DeliveryFields.CURRENCY) DeliveriesService(com.qcadoo.mes.deliveries.DeliveriesService) ViewDefinitionState(com.qcadoo.view.api.ViewDefinitionState) Lists(com.google.common.collect.Lists) PossibleUnitConversions(com.qcadoo.model.api.units.PossibleUnitConversions) NumberGeneratorService(com.qcadoo.view.api.utils.NumberGeneratorService) OrderSuppliesService(com.qcadoo.mes.orderSupplies.OrderSuppliesService) Service(org.springframework.stereotype.Service) FormComponent(com.qcadoo.view.api.components.FormComponent) SecurityService(com.qcadoo.security.api.SecurityService) CoverageProductFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductFields) MaterialRequirementCoverageReportPdfService(com.qcadoo.mes.orderSupplies.print.MaterialRequirementCoverageReportPdfService) IOException(java.io.IOException) UnitConversionItemFieldsB(com.qcadoo.mes.basic.constants.UnitConversionItemFieldsB) DocumentException(com.lowagie.text.DocumentException) OrderedProductFields(com.qcadoo.mes.deliveries.constants.OrderedProductFields) GridComponent(com.qcadoo.view.api.components.GridComponent) CoverageLocationFields(com.qcadoo.mes.orderSupplies.constants.CoverageLocationFields) MaterialRequirementCoverageService(com.qcadoo.mes.orderSupplies.coverage.MaterialRequirementCoverageService) NumberService(com.qcadoo.model.api.NumberService) SUPPLIER(com.qcadoo.mes.deliveries.constants.DeliveryFields.SUPPLIER) ProductFields(com.qcadoo.mes.basic.constants.ProductFields) PageSize(com.lowagie.text.PageSize) CoverageProductGeneratedFields(com.qcadoo.mes.orderSupplies.constants.CoverageProductGeneratedFields) Transactional(org.springframework.transaction.annotation.Transactional) Entity(com.qcadoo.model.api.Entity) Optional(java.util.Optional) GridComponent(com.qcadoo.view.api.components.GridComponent) DataDefinition(com.qcadoo.model.api.DataDefinition) BigDecimal(java.math.BigDecimal) List(java.util.List) Map(java.util.Map)

Example 5 with StringUtils.isNoneEmpty

use of org.apache.commons.lang3.StringUtils.isNoneEmpty in project Eidolons by IDemiurge.

the class UnitDataSource method getArmorObj.

@Override
public ValueContainer getArmorObj() {
    final DC_ArmorObj armor = unit.getArmor();
    final ValueContainer container;
    if (armor != null) {
        container = new ValueContainer(getOrCreateR(armor.getImagePath()));
        WeaponTooltip tooltip = new WeaponTooltip();
        tooltip.setUserObject(new WeaponToolTipDataSource() {

            @Override
            public List<ValueContainer> getMainParams() {
                return Arrays.stream(ARMOR_TOOLTIP).map(el -> new ValueContainer(el.getName(), armor.getStrParam(el)).pad(10)).collect(Collectors.toList());
            }

            @Override
            public List<ValueContainer> getBuffs() {
                return armor.getBuffs().stream().filter(obj -> StringUtils.isNoneEmpty(obj.getType().getProperty(G_PROPS.IMAGE))).map(AttackTooltipFactory.getObjValueContainerMapper()).collect(Collectors.toList());
            }
        });
        container.addListener(tooltip.getController());
    } else {
        container = new ValueContainer(getOrCreateR(CELL_TYPE.ARMOR.getSlotImagePath()));
    }
    return container;
}
Also used : DC_WeaponObj(eidolons.entity.item.DC_WeaponObj) WeaponTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponTooltip) UNIT_INFO_PARAMS(eidolons.content.UNIT_INFO_PARAMS) Arrays(java.util.Arrays) AttackTooltipFactory(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltipFactory) UiMaster(eidolons.libgdx.gui.UiMaster) PARAMS(eidolons.content.PARAMS) VerticalValueContainer(eidolons.libgdx.gui.generic.VerticalValueContainer) StringUtils(org.apache.commons.lang3.StringUtils) ArrayList(java.util.ArrayList) WeaponToolTipDataSource(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponToolTipDataSource) TextureCache.getOrCreateR(eidolons.libgdx.texture.TextureCache.getOrCreateR) Pair(org.apache.commons.lang3.tuple.Pair) TextureRegion(com.badlogic.gdx.graphics.g2d.TextureRegion) Tooltip(eidolons.libgdx.gui.tooltips.Tooltip) G_PROPS(main.content.values.properties.G_PROPS) DC_UnitAction(eidolons.entity.active.DC_UnitAction) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer) CELL_TYPE(eidolons.libgdx.gui.panels.dc.inventory.InventoryClickHandler.CELL_TYPE) AttackTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip) Collectors(java.util.stream.Collectors) ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) PARAMETER(main.content.values.parameters.PARAMETER) ImageManager(main.system.images.ImageManager) List(java.util.List) TextureCache(eidolons.libgdx.texture.TextureCache) ValuePages(eidolons.content.ValuePages) ValueTooltip(eidolons.libgdx.gui.tooltips.ValueTooltip) DC_ArmorObj(eidolons.entity.item.DC_ArmorObj) Unit(eidolons.entity.obj.unit.Unit) DC_ArmorObj(eidolons.entity.item.DC_ArmorObj) ArrayList(java.util.ArrayList) List(java.util.List) VerticalValueContainer(eidolons.libgdx.gui.generic.VerticalValueContainer) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer) WeaponTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponTooltip) WeaponToolTipDataSource(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.WeaponToolTipDataSource)

Aggregations

StringUtils (org.apache.commons.lang3.StringUtils)8 List (java.util.List)7 Collectors (java.util.stream.Collectors)5 TextureRegion (com.badlogic.gdx.graphics.g2d.TextureRegion)2 Lists (com.google.common.collect.Lists)2 Maps (com.google.common.collect.Maps)2 ParameterService (com.qcadoo.mes.basic.ParameterService)2 ProductFields (com.qcadoo.mes.basic.constants.ProductFields)2 DataDefinition (com.qcadoo.model.api.DataDefinition)2 Entity (com.qcadoo.model.api.Entity)2 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Optional (java.util.Optional)2 Logger (org.slf4j.Logger)2 LoggerFactory (org.slf4j.LoggerFactory)2 Service (org.springframework.stereotype.Service)2 DocumentException (com.lowagie.text.DocumentException)1 PageSize (com.lowagie.text.PageSize)1 TranslationService (com.qcadoo.localization.api.TranslationService)1