blob: 80b78176724f91e82da136b6061299038f309792 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2012, 2019 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.internal.rtm.ftable.ui.editors;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.ColumnLayoutData;
import org.eclipse.ui.forms.widgets.TableWrapData;
import org.eclipse.statet.ecommons.emf.ui.forms.EFLayoutUtil;
import org.eclipse.statet.rtm.base.ui.editors.RTaskEditor;
import org.eclipse.statet.rtm.base.ui.editors.RTaskFormPage;
public class MainPage extends RTaskFormPage {
private TableDataSection mainDataSection;
private TableVarsSection varsSection;
public MainPage(final RTaskEditor editor) {
super(editor);
}
@Override
protected void createFormBodyContent(final Composite body) {
{ final Composite composite= addBodyComposite();
composite.setLayout(EFLayoutUtil.createMainColumnLayout());
this.mainDataSection= new TableDataSection(this, composite);
this.mainDataSection.getSection().setLayoutData(new ColumnLayoutData(300));
registerSection(this.mainDataSection);
}
{ this.varsSection= new TableVarsSection(this, body);
this.varsSection.getSection().setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB));
registerSection(this.varsSection);
}
}
}