Package net.sourceforge.torchlight.data.campaign

Examples of net.sourceforge.torchlight.data.campaign.Campaign


                    case 0:
                        return ImageLoader.getImage(Activator.class, IApplicationConstants.CAMPAIGN_ICON_PATH);
                       
                    case 1:
                        // TODO: aggregate some icons to reflect the campaign's status
                        Campaign c = (Campaign)element;
                        Image img = null;
                       
                        if(c.isExternal())
                        {
                            img = ImageLoader.getImage(Activator.class, IApplicationConstants.CAMPAIGN_EXTERNAL_ICON_PATH);
                           
                            if(!c.isConnected())
                            {
                                img = new Image(Display.getCurrent(), img, SWT.IMAGE_DISABLE);
                            }
                        }
                        else
                        {
                            if(c.isHostable())
                            {
                                img = ImageLoader.getImage(Activator.class, IApplicationConstants.CAMPAIGN_LOCAL_ICON_PATH);

                                if(!c.isHosting())
                                {
                                    img = new Image(Display.getCurrent(), img, SWT.IMAGE_DISABLE);
                                }
                            }
                            else
View Full Code Here


        {
            logger.debug("get font");

            if(element instanceof Campaign)
            {
                Campaign c = (Campaign)element;
               
                if(c.isExternal() && !c.isConnected())
                {
                    return JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT);
                }
            }
            else if(element instanceof Participant)
View Full Code Here

        {
            logger.debug("get foreground color");
           
            if(element instanceof Campaign)
            {
                Campaign c = (Campaign)element;
               
                if(c.isExternal() && !c.isConnected())
                {
                    // TODO
                }
            }
           
View Full Code Here

TOP

Related Classes of net.sourceforge.torchlight.data.campaign.Campaign

Copyright © 2018 www.massapicom. 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.