/*******************************************************************************
* Copyright © 2012, 2013 IBM Corporation and others.
* 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package org.eclipse.edt.ide.eunit.ui.testresult;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.ScrolledForm;
public class TestResultViewerPageOne extends FormPage {
private ResultSummaryBlock block;
public TestResultViewerPageOne(FormEditor editor, String id, String title) {
super(editor, id, title);
block = new ResultSummaryBlock(this);
}
@Override
protected void createFormContent(IManagedForm managedForm) {
super.createFormContent(managedForm);
final ScrolledForm form = managedForm.getForm();
form.setText("Test Results");
GridLayout layout = new GridLayout();
layout.numColumns = 1;
form.getBody().setLayout(layout);
block.createContent(managedForm);
}
}