Project

General

Profile

« Previous | Next » 

Revision ac70dabe

Added by Andreas Müller almost 3 years ago

cleanup and set cancelable to true SetXXXForSubtreeOperations

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/DatabaseRepairUpdateCachesWizard.java
28 28
/**
29 29
 * @author k.luther
30 30
 * @since 05.03.2019
31
 *
32 31
 */
33 32
public class DatabaseRepairUpdateCachesWizard extends Wizard implements IPostMoniteredOperationEnabled {
34 33

  
......
44 43
        page = new CacheUpdaterWizardPage("Update Caches", cacheUpdaterConfig);
45 44
    }
46 45

  
47
    /**
48
     * {@inheritDoc}
49
     */
50 46
    @Override
51 47
    public void postOperation(IRemotingProgressMonitor monitor) {
52 48
        // TODO Auto-generated method stub
53

  
54 49
    }
55 50

  
56 51
    @Override
......
58 53
        addPage(page);
59 54
    }
60 55

  
61
    /**
62
     * {@inheritDoc}
63
     */
64 56
    @Override
65 57
    public boolean performFinish() {
66 58
        if (page.updateAgentBase){
......
80 72
        }
81 73
        if (!cacheUpdaterConfig.getClassList().isEmpty()){
82 74

  
83

  
84 75
             final UUID uuid = longRunningTaskService.monitLongRunningTask(cacheUpdaterConfig);
85
             Display.getDefault().asyncExec(new Runnable() {
86
                 @Override
87
                 public void run() {
76
             Display.getDefault().asyncExec(()->{
88 77
                     AbstractUtility.executeMoniteredOperation("Update Caches",
89 78
                             uuid,
90 79
                             1000,
......
92 81
                             DatabaseRepairUpdateCachesWizard.this,
93 82
                             null,
94 83
                             true, true);
95

  
96
                 }
97

  
98 84
             });
99 85
        }
100

  
101

  
102

  
103
    return true;
86
        return true;
104 87
    }
105

  
106
}
88
}

Also available in: Unified diff