Examples of EOAttributesLabelProvider


Examples of org.objectstyle.wolips.eomodeler.editors.attributes.EOAttributesLabelProvider

    GridLayout layout = new GridLayout();
    setLayout(layout);

    _entityIndexListViewer = new ListViewer(this, SWT.BORDER | SWT.FLAT | SWT.MULTI);
    _entityIndexListViewer.setContentProvider(new EOEntityIndexAttributesContentProvider());
    _entityIndexListViewer.setLabelProvider(new EOAttributesLabelProvider(new String[] { AbstractEOArgument.NAME }));

    GridData attributeListLayoutData = new GridData(GridData.FILL_BOTH);
    attributeListLayoutData.heightHint = 100;
    _entityIndexListViewer.getList().setLayoutData(attributeListLayoutData);
    _entityIndexListViewer.addSelectionChangedListener(_buttonUpdateListener);

    Combo attributesCombo = new Combo(this, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);
    _attributesComboViewer = new ComboViewer(attributesCombo);
    _attributesComboViewer.setLabelProvider(new EOAttributesLabelProvider(new String[] { AbstractEOArgument.NAME }));
    _attributesComboViewer.setContentProvider(new EOAttributesContentProvider());
    GridData attributesComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);
    attributesCombo.setLayoutData(attributesComboLayoutData);

    _addRemoveButtonGroup = new AddRemoveButtonGroup(this, new AddAttributeHandler(), new RemoveAttributesHandler());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.