use of org.openlca.app.editors.projects.ProjectResultData in project olca-app by GreenDelta.
the class ProjectResultEditor method init.
@Override
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
super.init(site, input);
var simpleInput = (SimpleEditorInput) input;
var obj = Cache.getAppCache().remove(simpleInput.id);
if (!(obj instanceof ProjectResultData))
throw new PartInitException("editor input must be a project result");
data = (ProjectResultData) obj;
setPartName("Result of: " + Labels.name(data.project()));
}
Aggregations