Search in sources :

Example 6 with SecurityPerformanceRecord

use of name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord in project portfolio by buchen.

the class SecuritiesPerformanceView method createCommonColumns.

private void createCommonColumns() {
    // shares held
    // $NON-NLS-1$
    Column column = new Column("shares", Messages.ColumnSharesOwned, SWT.RIGHT, 80);
    column.setLabelProvider(new // NOSONAR
    SharesLabelProvider() {

        @Override
        public Long getValue(Object e) {
            return ((SecurityPerformanceRecord) e).getSharesHeld();
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "sharesHeld"));
    recordColumns.addColumn(column);
    // security name
    column = new NameColumn();
    recordColumns.addColumn(column);
    // cost value - fifo
    // $NON-NLS-1$
    column = new Column("pv", Messages.ColumnPurchaseValue, SWT.RIGHT, 75);
    column.setDescription(Messages.ColumnPurchaseValue_Description);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Money.format(((SecurityPerformanceRecord) r).getFifoCost(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "fifoCost"));
    recordColumns.addColumn(column);
    // cost value - moving average
    // $NON-NLS-1$
    column = new Column("pvmvavg", Messages.ColumnPurchaseValueMovingAverage, SWT.RIGHT, 75);
    column.setMenuLabel(Messages.ColumnPurchaseValueMovingAverage_MenuLabel);
    column.setDescription(Messages.ColumnPurchaseValueMovingAverage_Description);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Money.format(((SecurityPerformanceRecord) r).getMovingAverageCost(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "movingAverageCost"));
    column.setVisible(false);
    recordColumns.addColumn(column);
    // cost value per share - fifo
    // $NON-NLS-1$
    column = new Column("pp", Messages.ColumnPurchasePrice, SWT.RIGHT, 75);
    column.setDescription(Messages.ColumnPurchasePrice_Description);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Quote.format(((SecurityPerformanceRecord) r).getFifoCostPerSharesHeld(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "fifoCostPerSharesHeld"));
    recordColumns.addColumn(column);
    // cost value per share - moving average
    // $NON-NLS-1$
    column = new Column("ppmvavg", Messages.ColumnPurchasePriceMovingAverage, SWT.RIGHT, 75);
    column.setMenuLabel(Messages.ColumnPurchasePriceMovingAverage_MenuLabel);
    column.setDescription(Messages.ColumnPurchasePriceMovingAverage_Description);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Quote.format(((SecurityPerformanceRecord) r).getMovingAverageCostPerSharesHeld(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "movingAverageCostPerSharesHeld"));
    column.setVisible(false);
    recordColumns.addColumn(column);
    // latest / current quote
    // $NON-NLS-1$
    column = new Column("quote", Messages.ColumnQuote, SWT.RIGHT, 75);
    column.setDescription(Messages.ColumnQuote_DescriptionEndOfReportingPeriod);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object element) {
            SecurityPerformanceRecord record = (SecurityPerformanceRecord) element;
            return Values.Quote.format(record.getQuote(), getClient().getBaseCurrency());
        }

        @Override
        public String getToolTipText(Object element) {
            SecurityPerformanceRecord record = (SecurityPerformanceRecord) element;
            return MessageFormat.format(Messages.TooltipQuoteAtDate, getText(element), Values.Date.format(record.getLatestSecurityPrice().getDate()));
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "fifoCostPerSharesHeld"));
    recordColumns.addColumn(column);
    // market value
    // $NON-NLS-1$
    column = new Column("mv", Messages.ColumnMarketValue, SWT.RIGHT, 75);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Money.format(((SecurityPerformanceRecord) r).getMarketValue(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "marketValue"));
    recordColumns.addColumn(column);
    // fees paid
    // $NON-NLS-1$
    column = new Column("fees", Messages.ColumnFees, SWT.RIGHT, 80);
    column.setDescription(Messages.ColumnFees_Description);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Money.format(((SecurityPerformanceRecord) r).getFees(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "fees"));
    column.setVisible(false);
    recordColumns.addColumn(column);
    // taxes paid
    // $NON-NLS-1$
    column = new Column("taxes", Messages.ColumnTaxes, SWT.RIGHT, 80);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Money.format(((SecurityPerformanceRecord) r).getTaxes(), getClient().getBaseCurrency());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "taxes"));
    column.setVisible(false);
    recordColumns.addColumn(column);
    // isin
    column = new IsinColumn();
    column.getEditingSupport().addListener(new MarkDirtyListener(this));
    column.setVisible(false);
    recordColumns.addColumn(column);
    // note
    column = new NoteColumn();
    column.getEditingSupport().addListener(new MarkDirtyListener(this));
    column.setVisible(false);
    recordColumns.addColumn(column);
}
Also used : ColumnLabelProvider(org.eclipse.jface.viewers.ColumnLabelProvider) NameColumn(name.abuchen.portfolio.ui.views.columns.NameColumn) TaxonomyColumn(name.abuchen.portfolio.ui.views.columns.TaxonomyColumn) AttributeColumn(name.abuchen.portfolio.ui.views.columns.AttributeColumn) NoteColumn(name.abuchen.portfolio.ui.views.columns.NoteColumn) IsinColumn(name.abuchen.portfolio.ui.views.columns.IsinColumn) Column(name.abuchen.portfolio.ui.util.viewers.Column) NameColumn(name.abuchen.portfolio.ui.views.columns.NameColumn) NoteColumn(name.abuchen.portfolio.ui.views.columns.NoteColumn) MarkDirtyListener(name.abuchen.portfolio.ui.util.viewers.ColumnEditingSupport.MarkDirtyListener) SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord) IsinColumn(name.abuchen.portfolio.ui.views.columns.IsinColumn)

Example 7 with SecurityPerformanceRecord

use of name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord in project portfolio by buchen.

the class SecuritiesPerformanceView method createRiskColumns.

private void createRiskColumns() {
    // $NON-NLS-1$
    Column column = new Column("mdd", Messages.ColumnMaxDrawdown, SWT.RIGHT, 60);
    column.setMenuLabel(Messages.LabelMaxDrawdown);
    column.setGroupLabel(Messages.LabelRiskIndicators);
    column.setVisible(false);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Percent2.formatNonZero(((SecurityPerformanceRecord) r).getMaxDrawdown());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "maxDrawdown"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("mddduration", Messages.ColumnMaxDrawdownDuration, SWT.RIGHT, 60);
    column.setMenuLabel(Messages.LabelMaxDrawdownDuration);
    column.setGroupLabel(Messages.LabelRiskIndicators);
    column.setVisible(false);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return String.valueOf(((SecurityPerformanceRecord) r).getMaxDrawdownDuration());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "maxDrawdownDuration"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("vola", Messages.LabelVolatility, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.LabelRiskIndicators);
    column.setVisible(false);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Percent2.format(((SecurityPerformanceRecord) r).getVolatility());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "volatility"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("semivola", Messages.LabelSemiVolatility, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.LabelRiskIndicators);
    column.setVisible(false);
    column.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public String getText(Object r) {
            return Values.Percent2.format(((SecurityPerformanceRecord) r).getSemiVolatility());
        }
    });
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "semiVolatility"));
    recordColumns.addColumn(column);
}
Also used : ColumnLabelProvider(org.eclipse.jface.viewers.ColumnLabelProvider) NameColumn(name.abuchen.portfolio.ui.views.columns.NameColumn) TaxonomyColumn(name.abuchen.portfolio.ui.views.columns.TaxonomyColumn) AttributeColumn(name.abuchen.portfolio.ui.views.columns.AttributeColumn) NoteColumn(name.abuchen.portfolio.ui.views.columns.NoteColumn) IsinColumn(name.abuchen.portfolio.ui.views.columns.IsinColumn) Column(name.abuchen.portfolio.ui.util.viewers.Column) SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord)

Example 8 with SecurityPerformanceRecord

use of name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord in project portfolio by buchen.

the class SecuritiesPerformanceView method createTopTable.

@Override
protected void createTopTable(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    TableColumnLayout layout = new TableColumnLayout();
    container.setLayout(layout);
    records = new TableViewer(container, SWT.FULL_SELECTION);
    recordColumns = new ShowHideColumnHelper(SecuritiesPerformanceView.class.getName(), getClient(), getPreferenceStore(), records, layout);
    updateTitle(getDefaultTitle());
    recordColumns.addListener(() -> updateTitle(getDefaultTitle()));
    ColumnViewerToolTipSupport.enableFor(records, ToolTip.NO_RECREATE);
    ColumnEditingSupport.prepare(records);
    createCommonColumns();
    createDividendColumns();
    addPerformanceColumns();
    createRiskColumns();
    createAdditionalColumns();
    recordColumns.createColumns();
    records.getTable().setHeaderVisible(true);
    records.getTable().setLinesVisible(true);
    records.setContentProvider(ArrayContentProvider.getInstance());
    // 
    records.addDragSupport(// 
    DND.DROP_MOVE, // 
    new Transfer[] { SecurityTransfer.getTransfer() }, new SecurityDragListener(records));
    hookContextMenu(records.getTable(), this::fillContextMenu);
    records.addSelectionChangedListener(new // NOSONAR
    ISelectionChangedListener() {

        @Override
        public void selectionChanged(SelectionChangedEvent event) {
            SecurityPerformanceRecord record = (SecurityPerformanceRecord) ((IStructuredSelection) event.getSelection()).getFirstElement();
            Security security = null;
            List<Transaction> transactionList = null;
            if (record != null) {
                transactionList = record.getTransactions();
                security = record.getSecurity();
            }
            transactions.setInput(transactionList);
            transactions.refresh();
            chart.updateChart(security);
            latest.setInput(security);
        }
    });
    records.addSelectionChangedListener(event -> {
        SecurityPerformanceRecord record = (SecurityPerformanceRecord) ((IStructuredSelection) event.getSelection()).getFirstElement();
        if (record != null)
            selectionService.setSelection(new SecuritySelection(getClient(), record.getSecurity()));
    });
    records.addFilter(new ViewerFilter() {

        @Override
        public boolean select(Viewer viewer, Object parentElement, Object element) {
            if (recordFilter.isEmpty())
                return true;
            for (Predicate<SecurityPerformanceRecord> predicate : recordFilter) {
                if (!predicate.test((SecurityPerformanceRecord) element))
                    return false;
            }
            return true;
        }
    });
    reportingPeriodUpdated();
}
Also used : SecuritySelection(name.abuchen.portfolio.ui.selection.SecuritySelection) Composite(org.eclipse.swt.widgets.Composite) ViewerFilter(org.eclipse.jface.viewers.ViewerFilter) SelectionChangedEvent(org.eclipse.jface.viewers.SelectionChangedEvent) SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord) TableViewer(org.eclipse.jface.viewers.TableViewer) Viewer(org.eclipse.jface.viewers.Viewer) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) Security(name.abuchen.portfolio.model.Security) Predicate(java.util.function.Predicate) SecurityDragListener(name.abuchen.portfolio.ui.dnd.SecurityDragListener) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) ShowHideColumnHelper(name.abuchen.portfolio.ui.util.viewers.ShowHideColumnHelper) List(java.util.List) ArrayList(java.util.ArrayList) TableViewer(org.eclipse.jface.viewers.TableViewer)

Example 9 with SecurityPerformanceRecord

use of name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord in project portfolio by buchen.

the class SecuritiesPerformanceView method fillContextMenu.

private // NOSONAR
void fillContextMenu(// NOSONAR
IMenuManager manager) {
    Object selection = ((IStructuredSelection) records.getSelection()).getFirstElement();
    if (!(selection instanceof SecurityPerformanceRecord))
        return;
    Security security = ((SecurityPerformanceRecord) selection).getSecurity();
    new SecurityContextMenu(this).menuAboutToShow(manager, security);
}
Also used : SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) Security(name.abuchen.portfolio.model.Security)

Example 10 with SecurityPerformanceRecord

use of name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord in project portfolio by buchen.

the class SecuritiesPerformanceView method addPerformanceColumns.

private void addPerformanceColumns() {
    // $NON-NLS-1$
    Column column = new Column("twror", Messages.ColumnTWROR, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setMenuLabel(Messages.ColumnTWROR_Description);
    column.setLabelProvider(new NumberColorLabelProvider<>(Values.Percent2, r -> ((SecurityPerformanceRecord) r).getTrueTimeWeightedRateOfReturn()));
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "trueTimeWeightedRateOfReturn"));
    recordColumns.addColumn(column);
    // internal rate of return
    // $NON-NLS-1$
    column = new Column("izf", Messages.ColumnIRR, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setMenuLabel(Messages.ColumnIRR_MenuLabel);
    column.setLabelProvider(new NumberColorLabelProvider<>(Values.Percent2, r -> ((SecurityPerformanceRecord) r).getIrr()));
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "irr"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("capitalgains", Messages.ColumnCapitalGains, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setDescription(Messages.ColumnCapitalGains_Description);
    column.setLabelProvider(new MoneyColorLabelProvider(element -> ((SecurityPerformanceRecord) element).getCapitalGainsOnHoldings(), getClient().getBaseCurrency()));
    column.setVisible(false);
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "capitalGainsOnHoldings"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("capitalgains%", Messages.ColumnCapitalGainsPercent, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setDescription(Messages.ColumnCapitalGainsPercent_Description);
    column.setLabelProvider(new NumberColorLabelProvider<>(Values.Percent2, r -> ((SecurityPerformanceRecord) r).getCapitalGainsOnHoldingsPercent()));
    column.setVisible(false);
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "capitalGainsOnHoldingsPercent"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("capitalgainsmvavg", Messages.ColumnCapitalGainsMovingAverage, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setMenuLabel(Messages.ColumnCapitalGainsMovingAverage_MenuLabel);
    column.setDescription(Messages.ColumnCapitalGainsMovingAverage_Description);
    column.setLabelProvider(new MoneyColorLabelProvider(element -> ((SecurityPerformanceRecord) element).getCapitalGainsOnHoldingsMovingAverage(), getClient().getBaseCurrency()));
    column.setVisible(false);
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "capitalGainsOnHoldingsMovingAverage"));
    recordColumns.addColumn(column);
    // $NON-NLS-1$
    column = new Column("capitalgainsmvavg%", Messages.ColumnCapitalGainsMovingAveragePercent, SWT.RIGHT, 80);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setMenuLabel(Messages.ColumnCapitalGainsMovingAveragePercent_MenuLabel);
    column.setDescription(Messages.ColumnCapitalGainsMovingAveragePercent_Description);
    column.setLabelProvider(new NumberColorLabelProvider<>(Values.Percent2, r -> ((SecurityPerformanceRecord) r).getCapitalGainsOnHoldingsMovingAveragePercent()));
    column.setVisible(false);
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "capitalGainsOnHoldingsMovingAveragePercent"));
    recordColumns.addColumn(column);
    // delta
    // $NON-NLS-1$
    column = new Column("delta", Messages.ColumnAbsolutePerformance, SWT.RIGHT, 80);
    column.setDescription(Messages.ColumnAbsolutePerformance_Description);
    column.setMenuLabel(Messages.ColumnAbsolutePerformance_MenuLabel);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setLabelProvider(new MoneyColorLabelProvider(element -> ((SecurityPerformanceRecord) element).getDelta(), getClient().getBaseCurrency()));
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "delta"));
    recordColumns.addColumn(column);
    // delta percent
    // $NON-NLS-1$
    column = new Column("delta%", Messages.ColumnAbsolutePerformancePercent, SWT.RIGHT, 80);
    column.setDescription(Messages.ColumnAbsolutePerformancePercent_Description);
    column.setMenuLabel(Messages.ColumnAbsolutePerformancePercent_MenuLabel);
    column.setGroupLabel(Messages.GroupLabelPerformance);
    column.setLabelProvider(new NumberColorLabelProvider<>(Values.Percent2, r -> ((SecurityPerformanceRecord) r).getDeltaPercent()));
    // $NON-NLS-1$
    column.setSorter(ColumnViewerSorter.create(SecurityPerformanceRecord.class, "deltaPercent"));
    column.setVisible(false);
    recordColumns.addColumn(column);
}
Also used : NameColumn(name.abuchen.portfolio.ui.views.columns.NameColumn) IPreferenceStore(org.eclipse.jface.preference.IPreferenceStore) Client(name.abuchen.portfolio.model.Client) Transaction(name.abuchen.portfolio.model.Transaction) TableViewer(org.eclipse.jface.viewers.TableViewer) CurrencyConverterImpl(name.abuchen.portfolio.money.CurrencyConverterImpl) ActionContributionItem(org.eclipse.jface.action.ActionContributionItem) DND(org.eclipse.swt.dnd.DND) ToolBar(org.eclipse.swt.widgets.ToolBar) ReportingPeriodListener(name.abuchen.portfolio.ui.util.ReportingPeriodDropDown.ReportingPeriodListener) SecurityDragListener(name.abuchen.portfolio.ui.dnd.SecurityDragListener) ESelectionService(org.eclipse.e4.ui.workbench.modeling.ESelectionService) Composite(org.eclipse.swt.widgets.Composite) ColumnViewerToolTipSupport(org.eclipse.jface.viewers.ColumnViewerToolTipSupport) ReportingPeriod(name.abuchen.portfolio.snapshot.ReportingPeriod) Separator(org.eclipse.jface.action.Separator) ClientFilter(name.abuchen.portfolio.snapshot.filter.ClientFilter) CTabFolder(org.eclipse.swt.custom.CTabFolder) ExchangeRateProviderFactory(name.abuchen.portfolio.money.ExchangeRateProviderFactory) Predicate(java.util.function.Predicate) SashLayout(name.abuchen.portfolio.ui.util.swt.SashLayout) Set(java.util.Set) Security(name.abuchen.portfolio.model.Security) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) ColumnLabelProvider(org.eclipse.jface.viewers.ColumnLabelProvider) SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord) Collectors(java.util.stream.Collectors) ColumnEditingSupport(name.abuchen.portfolio.ui.util.viewers.ColumnEditingSupport) GridLayoutFactory(org.eclipse.jface.layout.GridLayoutFactory) DividendInitialTransaction(name.abuchen.portfolio.snapshot.security.DividendInitialTransaction) Transfer(org.eclipse.swt.dnd.Transfer) ShowHideColumnHelper(name.abuchen.portfolio.ui.util.viewers.ShowHideColumnHelper) List(java.util.List) TaxonomyColumn(name.abuchen.portfolio.ui.views.columns.TaxonomyColumn) CurrencyConverter(name.abuchen.portfolio.money.CurrencyConverter) AttributeColumn(name.abuchen.portfolio.ui.views.columns.AttributeColumn) LocalDate(java.time.LocalDate) SWT(org.eclipse.swt.SWT) SecurityTransfer(name.abuchen.portfolio.ui.dnd.SecurityTransfer) SecuritySelection(name.abuchen.portfolio.ui.selection.SecuritySelection) LabelOnly(name.abuchen.portfolio.ui.util.LabelOnly) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) ISelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener) PortfolioTransaction(name.abuchen.portfolio.model.PortfolioTransaction) Values(name.abuchen.portfolio.money.Values) NoteColumn(name.abuchen.portfolio.ui.views.columns.NoteColumn) SelectionChangedEvent(org.eclipse.jface.viewers.SelectionChangedEvent) ClientFilterMenu(name.abuchen.portfolio.ui.util.ClientFilterMenu) Images(name.abuchen.portfolio.ui.Images) Image(org.eclipse.swt.graphics.Image) TableColumnLayout(org.eclipse.jface.layout.TableColumnLayout) StructuredSelection(org.eclipse.jface.viewers.StructuredSelection) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Inject(javax.inject.Inject) IsinColumn(name.abuchen.portfolio.ui.views.columns.IsinColumn) SecurityPerformanceSnapshot(name.abuchen.portfolio.snapshot.security.SecurityPerformanceSnapshot) MessageFormat(com.ibm.icu.text.MessageFormat) Messages(name.abuchen.portfolio.ui.Messages) ReportingPeriodDropDown(name.abuchen.portfolio.ui.util.ReportingPeriodDropDown) MarkDirtyListener(name.abuchen.portfolio.ui.util.viewers.ColumnEditingSupport.MarkDirtyListener) Taxonomy(name.abuchen.portfolio.model.Taxonomy) DividendTransaction(name.abuchen.portfolio.snapshot.security.DividendTransaction) MoneyColorLabelProvider(name.abuchen.portfolio.ui.util.viewers.MoneyColorLabelProvider) NumberColorLabelProvider(name.abuchen.portfolio.ui.util.viewers.NumberColorLabelProvider) ViewerFilter(org.eclipse.jface.viewers.ViewerFilter) SashLayoutData(name.abuchen.portfolio.ui.util.swt.SashLayoutData) Iterator(java.util.Iterator) Viewer(org.eclipse.jface.viewers.Viewer) AccountTransaction(name.abuchen.portfolio.model.AccountTransaction) Column(name.abuchen.portfolio.ui.util.viewers.Column) ColumnViewerSorter(name.abuchen.portfolio.ui.util.viewers.ColumnViewerSorter) Action(org.eclipse.jface.action.Action) DividendFinalTransaction(name.abuchen.portfolio.snapshot.security.DividendFinalTransaction) AbstractDropDown(name.abuchen.portfolio.ui.util.AbstractDropDown) TableViewerCSVExporter(name.abuchen.portfolio.ui.util.TableViewerCSVExporter) CTabItem(org.eclipse.swt.custom.CTabItem) SharesLabelProvider(name.abuchen.portfolio.ui.util.viewers.SharesLabelProvider) IMenuManager(org.eclipse.jface.action.IMenuManager) ToolTip(org.eclipse.jface.window.ToolTip) SWTHelper(name.abuchen.portfolio.ui.util.SWTHelper) MoneyColorLabelProvider(name.abuchen.portfolio.ui.util.viewers.MoneyColorLabelProvider) NameColumn(name.abuchen.portfolio.ui.views.columns.NameColumn) TaxonomyColumn(name.abuchen.portfolio.ui.views.columns.TaxonomyColumn) AttributeColumn(name.abuchen.portfolio.ui.views.columns.AttributeColumn) NoteColumn(name.abuchen.portfolio.ui.views.columns.NoteColumn) IsinColumn(name.abuchen.portfolio.ui.views.columns.IsinColumn) Column(name.abuchen.portfolio.ui.util.viewers.Column) SecurityPerformanceRecord(name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord)

Aggregations

SecurityPerformanceRecord (name.abuchen.portfolio.snapshot.security.SecurityPerformanceRecord)17 SecurityPerformanceSnapshot (name.abuchen.portfolio.snapshot.security.SecurityPerformanceSnapshot)12 Client (name.abuchen.portfolio.model.Client)11 Security (name.abuchen.portfolio.model.Security)11 ReportingPeriod (name.abuchen.portfolio.snapshot.ReportingPeriod)11 ArrayList (java.util.ArrayList)8 Test (org.junit.Test)8 LocalDate (java.time.LocalDate)7 TestCurrencyConverter (name.abuchen.portfolio.TestCurrencyConverter)7 PortfolioTransaction (name.abuchen.portfolio.model.PortfolioTransaction)7 CurrencyConverter (name.abuchen.portfolio.money.CurrencyConverter)7 Column (name.abuchen.portfolio.ui.util.viewers.Column)7 AttributeColumn (name.abuchen.portfolio.ui.views.columns.AttributeColumn)7 IsinColumn (name.abuchen.portfolio.ui.views.columns.IsinColumn)7 NameColumn (name.abuchen.portfolio.ui.views.columns.NameColumn)7 NoteColumn (name.abuchen.portfolio.ui.views.columns.NoteColumn)7 TaxonomyColumn (name.abuchen.portfolio.ui.views.columns.TaxonomyColumn)7 ColumnLabelProvider (org.eclipse.jface.viewers.ColumnLabelProvider)7 List (java.util.List)6 Portfolio (name.abuchen.portfolio.model.Portfolio)6