FillLayout layout = new FillLayout();
composite.setLayout(layout);
editor = new ChartPreview(composite);
final IFileEditorInput fileInput = (IFileEditorInput)getEditorInput();
final Chart createLine = XmlResultsToChart.createLine(new XmlResults(getText(fileInput)));
if (createLine != null){
editor.renderModel(createLine);
}
}