/*-
 * Copyright 2017 Diamond Light Source Ltd.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.eclipse.dawnsci.analysis.api.processing;

import java.io.Serializable;

import org.eclipse.january.dataset.IDataset;

/**
 * Extension to the OperationData class, including extra datasets,
 * which will not be written to file, but can be used for display
 * with the output data
 */
public class OperationDataForDisplay extends OperationData {

	private IDataset[] displayData;
	
	public OperationDataForDisplay() {
		super();
	}
	
	public OperationDataForDisplay(IDataset data) {
		super(data);
	}
	
	public OperationDataForDisplay(IDataset data, Serializable... aux) {
		super(data, aux);
	}

	public IDataset[] getDisplayData() {
		return displayData;
	}

	public void setDisplayData(IDataset... displayData) {
		this.displayData = displayData;
	}
}

@@ -585,17 +585,18 @@
 put data
+.
 %0A
-
  */%0Apubl
@@ -686,17 +686,58 @@
 ayData;%0A
-%09
+%0A%09private boolean showSeparately = false;%0A
 %0A%09public
@@ -773,32 +773,296 @@
 %09%09super();%0A%09%7D%0A%09%0A
+%09public boolean isShowSeparately() %7B%0A%09%09return showSeparately;%0A%09%7D%0A%0A%09/**%0A%09 * @param showSeparately if true then show extra datasets separately from output data%0A%09 */%0A%09public void setShowSeparately(boolean showSeparately) %7B%0A%09%09this.showSeparately = showSeparately;%0A%09%7D%0A%0A
 %09public Operatio
@@ -1361,13 +1361,16 @@
 ayData;%0A
-
 %09%7D
+%0A%0A%09
 %0A%7D%0A

Add flag to send display to separate plot (#627)