Package com.volantis.mcs.eclipse.common

Examples of com.volantis.mcs.eclipse.common.AttributesDetails


     * name value pair object).
     *
     * @param controlDetails the AttributesComposite parent object.
     */
    private void createPolicySelectorControl(final ControlDetails controlDetails) {
        AttributesDetails attrDetails = controlDetails.attributesDetails;

        String attributeType =
                attrDetails.getAttributeType(controlDetails.attribute);

        if (attributeType == null) {
            throw new IllegalStateException("Expected an attributeType for " +
                    controlDetails.attribute + " but there was none.");
        }
View Full Code Here


     * @param editable     true if this combo should be editable, false
     *                     otherwise.
     */
    private void createComboControl(final ControlDetails controlDetails,
                                    boolean editable) {
        AttributesDetails attrDetails = controlDetails.attributesDetails;
        Object[] items =
                attrDetails.
                getAttributeValueSelection(controlDetails.attribute);

        int style = editable ? SWT.DROP_DOWN : (SWT.READ_ONLY | SWT.DROP_DOWN);
        final Combo combo = new Combo(controlDetails.attributesComposite, style);
        for (int i = 0; i < items.length; i++) {
View Full Code Here

     * @param editable true if this combo should be editable; false
     * otherwise.
     */
    private void createComboViewerControl(final ControlDetails controlDetails,
                                          boolean editable) {
        AttributesDetails attrDetails = controlDetails.attributesDetails;
        PresentableItem[] items =
                attrDetails.
                getAttributePresentableItems(controlDetails.attribute);

        // @todo there is a problem on windows that results in editable combo viewers behaving incorrectly.
        // @todo this will be fixed.
        //int style = editable ? SWT.DROP_DOWN : (SWT.READ_ONLY | SWT.DROP_DOWN);
View Full Code Here

    // javadoc inherited
    public void createControl(Composite composite) {
        AttributesCompositeBuilder builder =
                AttributesCompositeBuilder.getSingleton();

        AttributesDetails attributesDetails =
                new PolicyAttributesDetails(elementName, false);

        // No context available for to obtain the ActionableHandler. OK to pass
        // through a null value.
        attrsComposite =
View Full Code Here

     */
    public void testBuildingComposite() throws Exception {
        final Shell shell = new Shell(SWT.NONE);
        AttributesComposite parent = new AttributesComposite(shell, SWT.NONE);

        AttributesDetails attributesDetails =
                new PolicyAttributesDetails("assetGroup", false);

        AttributesComposite result = AttributesCompositeBuilder.getSingleton().
                buildAttributesComposite(parent, attributesDetails,
                        (IProject) null, null);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.common.AttributesDetails

Copyright © 2018 www.massapicom. 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.