Search in sources :

Example 1 with UpdateCPIJob

use of name.abuchen.portfolio.ui.UpdateCPIJob in project portfolio by buchen.

the class UpdateCPIHandler method execute.

@Execute
public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart part, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) {
    Client client = MenuHelper.getActiveClient(part);
    if (client == null)
        return;
    new UpdateCPIJob(client).schedule();
}
Also used : Client(name.abuchen.portfolio.model.Client) UpdateCPIJob(name.abuchen.portfolio.ui.UpdateCPIJob) CanExecute(org.eclipse.e4.core.di.annotations.CanExecute) Execute(org.eclipse.e4.core.di.annotations.Execute)

Aggregations

Client (name.abuchen.portfolio.model.Client)1 UpdateCPIJob (name.abuchen.portfolio.ui.UpdateCPIJob)1 CanExecute (org.eclipse.e4.core.di.annotations.CanExecute)1 Execute (org.eclipse.e4.core.di.annotations.Execute)1