Search in sources :

Example 1 with ElementFKInfoConfiguration

use of com.amalto.workbench.widgets.composites.ElementFKInfoConfiguration 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);
}
Also used : Group(org.eclipse.swt.widgets.Group) IOverviewRuler(org.eclipse.jface.text.source.IOverviewRuler) GridLayout(org.eclipse.swt.layout.GridLayout) ElementFKInfoFormatViewer(com.amalto.workbench.widgets.composites.ElementFKInfoFormatViewer) GridData(org.eclipse.swt.layout.GridData) IVerticalRuler(org.eclipse.jface.text.source.IVerticalRuler) ElementFKInfoConfiguration(com.amalto.workbench.widgets.composites.ElementFKInfoConfiguration)

Aggregations

ElementFKInfoConfiguration (com.amalto.workbench.widgets.composites.ElementFKInfoConfiguration)1 ElementFKInfoFormatViewer (com.amalto.workbench.widgets.composites.ElementFKInfoFormatViewer)1 IOverviewRuler (org.eclipse.jface.text.source.IOverviewRuler)1 IVerticalRuler (org.eclipse.jface.text.source.IVerticalRuler)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Group (org.eclipse.swt.widgets.Group)1