Project

General

Profile

Revision 864b7020

ID864b7020af0c89b68ef11ed93e82a882a9dab9cc
Parent b6609b9d
Child d12aec9d

Added by Patrick Plitzner 12 months ago

ref #8222 Fix potential NPE + cleanup

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java
24 24
import org.eclipse.core.commands.operations.IOperationHistory;
25 25
import org.eclipse.core.runtime.IAdaptable;
26 26
import org.eclipse.core.runtime.IStatus;
27
import org.eclipse.core.runtime.NullProgressMonitor;
27 28
import org.eclipse.core.runtime.Status;
28 29
import org.eclipse.e4.ui.di.UISynchronize;
29 30
import org.eclipse.ui.ide.undo.WorkspaceUndoUtil;
......
341 342
        return initiallySelectedTaxonBase;
342 343
    }
343 344

  
344
    public Set<AbstractPostOperation> getOperations() {
345
        return operations;
346
    }
347

  
348
    public void setOperations(Set<AbstractPostOperation> operations) {
349
        this.operations = operations;
350
    }
351

  
352 345
    public void addOperation(AbstractPostOperation operation) {
353 346
        this.operations.add(operation);
354 347
    }
......
382 375
            String operationlabel = entry.getLabel();
383 376
            try {
384 377
                entry.addContext(IOperationHistory.GLOBAL_UNDO_CONTEXT);
385
                status = entry.execute(null, uiInfoAdapter);
378
                status = entry.execute(new NullProgressMonitor(), uiInfoAdapter);
386 379
            } catch (ExecutionException e) {
387 380

  
388 381
                MessagingUtils.operationDialog(AbstractUtility.class, e, TaxeditorStorePlugin.PLUGIN_ID, operationlabel, null);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)