Package name.abuchen.portfolio.ui.util

Examples of name.abuchen.portfolio.ui.util.AbstractCSVExporter


            manager.add(new Action(MessageFormat.format(Messages.LabelExport, label))
            {
                @Override
                public void run()
                {
                    AbstractCSVExporter exporter = new AbstractCSVExporter()
                    {
                        @Override
                        protected void writeToFile(File file) throws IOException
                        {
                            PerformanceIndex index = (PerformanceIndex) dataCache.get(instance);
                            if (aggregationPeriod != null)
                                index = Aggregation.aggregate(index, aggregationPeriod);
                            index.exportTo(file);
                        }

                        @Override
                        protected Control getControl()
                        {
                            return ExportDropDown.this.getToolBar();
                        }
                    };
                    exporter.export(getTitle() + "_" + label + ".csv"); //$NON-NLS-1$ //$NON-NLS-2$
                }
            });
        }
View Full Code Here

TOP

Related Classes of name.abuchen.portfolio.ui.util.AbstractCSVExporter

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.