blob: aafb2df26159448e40b3097c28aee8c791c74c79 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2012, 2021 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.emf.ecore.EClass;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.statet.ecommons.emf.core.databinding.IEMFEditContext;
import org.eclipse.statet.ecommons.emf.ui.forms.EFFormSection;
import org.eclipse.statet.ecommons.emf.ui.forms.EFPropertySet;
import org.eclipse.statet.ecommons.emf.ui.forms.IEFFormPage;
import org.eclipse.statet.rtm.ftable.FTablePackage.Literals;
public class TableDataSection extends EFFormSection {
private final EFPropertySet properties;
public TableDataSection(final IEFFormPage page, final Composite parent) {
super(page, parent,
"Global Data",
"Specify the data used to create the plot." );
final EClass eClass= Literals.FTABLE;
this.properties= new EFPropertySet();
this.properties.add(FTableProperties.createProperty(
eClass, Literals.FTABLE__DATA,
"Data:", "The data source" ));
this.properties.add(FTableProperties.createProperty(
eClass, Literals.FTABLE__DATA_FILTER,
"Filter:", "A filter expression defining a subset of the data source" ));
createClient();
}
@Override
protected void createContent(final Composite composite) {
final IEFFormPage page= getPage();
this.properties.createControls(composite, page);
}
@Override
public void addBindings(final IEMFEditContext context) {
this.properties.bind(context);
}
}