use of com.amalto.workbench.widgets.composites.ElementFKInfoFormatViewer in project tmdm-studio-se by Talend.
the class AnnotationOrderedListsDialog method createFKInfoFormatComp.
private void createFKInfoFormatComp(Composite parent) {
initializeDefaultPreferences();
Group formatGroup = new Group(parent, SWT.NONE);
GridData glayoutData = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);
formatGroup.setLayoutData(glayoutData);
GridLayout layout = new GridLayout();
layout.marginLeft = 0;
layout.marginRight = 0;
layout.marginTop = 0;
layout.marginBottom = 0;
formatGroup.setLayout(layout);
formatGroup.setText(Messages.FormatFKInfoComp_format);
IVerticalRuler verticalRuler = ElementFKInfoFormatHelper.createVerticalRuler();
IOverviewRuler overviewRuler = ElementFKInfoFormatHelper.createOverviewRuler();
formatEditor = new ElementFKInfoFormatViewer(formatGroup, verticalRuler, overviewRuler, true, SWT.V_SCROLL | SWT.H_SCROLL);
formatEditor.addPropertyChangeListener(this);
formatEditor.configure(new ElementFKInfoConfiguration());
formatEditor.initilize();
GridData layoutData = new GridData(GridData.FILL_BOTH);
layoutData.heightHint = 150;
formatEditor.getControl().setLayoutData(layoutData);
formatEditor.setFkinfos(getXPaths());
formatEditor.setFormatFKInfo(formatFKInfo);
}
Aggregations