Examples of ICampaignStorageManagerRegistryEntry


Examples of org.criticalfailure.torchlight.core.campaign.services.ICampaignStorageManagerRegistryEntry

    private void updateContents() {

        logger.debug("udpate contents: " + campaign);

        ICampaignStorageManagerRegistryEntry entry = campaignStorageManagerRegistry.getEntryForType(campaign
                .getStorageType());
        logger.trace("entry: " + entry);

        // update status actions
        populateStatusActions();
        // populateCampaignIcons(campaign);
        // updateCampaignIcons(iconsToolbar, campaign);
        statusActionsToolbarManager.update(true);

        // update version/setting toolbar
        vsToolbarManager.update(true);

        // update counts
        populateCampaignCounts();
        countsToolbarManager.update(true);

        // update storage provider information
        if(entry != null) {
            logger.debug("setting storage provider information");
            provider.setText(entry.getLabel() + ": " + campaign.getStorageUri());
            provider.setToolTipText(entry.getLabel() + ": " + entry.getDescription());
        }
        else {
            logger.debug("setting storage provider unavailable");
            provider.setText(Messages.getString("campaign.manager.ui.view.provider.unavailable"));
        }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.campaign.services.ICampaignStorageManagerRegistryEntry

        logger.debug("selection changed: " + event);

        if(!event.getSelection().isEmpty()) {
            logger.debug("selection is not empty");
            ICampaignStorageManagerRegistryEntry entry = (ICampaignStorageManagerRegistryEntry)((IStructuredSelection)event
                    .getSelection()).iterator().next();
            logger.trace("entry: " + entry);

            handleEntrySelection(entry);
        }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.campaign.services.ICampaignStorageManagerRegistryEntry

        try {
            if(CampaignStorageConstants.STORAGE_TYPE_REGISTERED_EVENT.equals(event.getTopic())) {
                String type = (String)event.getProperty(CampaignStorageConstants.STORAGE_EVENT_STORAGE_TYPE_PROPERTY);
                logger.info("Storage manager registered: " + type);

                ICampaignStorageManagerRegistryEntry entry = (ICampaignStorageManagerRegistryEntry)event
                        .getProperty(CampaignStorageConstants.STORAGE_EVENT_REGISTRY_ENTRY_PROPERTY);
                logger.trace("entry: " + entry);

                registry.add(entry);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.