Package name.abuchen.portfolio.model

Examples of name.abuchen.portfolio.model.TaxonomyTemplate


            }

            @Override
            public Image getImage(Object element)
            {
                TaxonomyTemplate t = (TaxonomyTemplate) element;

                if (taxonomiesAdded.contains(t.getId()))
                    return PortfolioPlugin.image(PortfolioPlugin.IMG_CHECK);
                else
                    return null;
            }
        });

        viewer.addDoubleClickListener(new IDoubleClickListener()
        {
            @Override
            public void doubleClick(DoubleClickEvent event)
            {
                TaxonomyTemplate template = (TaxonomyTemplate) ((IStructuredSelection) event.getSelection())
                                .getFirstElement();

                if (template != null && !taxonomiesAdded.contains(template.getId()))
                {
                    taxonomiesAdded.add(template.getId());
                    client.addTaxonomy(template.build());
                    viewer.refresh(template);
                }
            }
        });
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.model.TaxonomyTemplate

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.