Package com.volantis.mcs.model.property

Examples of com.volantis.mcs.model.property.PropertyIdentifier


        // Create an editor for the pairType.
        if (pairType == null) {
            throw new IllegalStateException("Can't make pair editor for " +
                    "non-pair type");
        } else {
            PropertyIdentifier identifier = descriptor.getIdentifier();
            String firstName = EditorMessages.getString(RESOURCE_PREFIX +
                    identifier.getName() + ".first.label");
            String secondName = EditorMessages.getString(RESOURCE_PREFIX +
                    identifier.getName() + ".second.label");

            final StylePairEditor styleEditor = new StylePairEditor(this,
                    SWT.NONE, styleProperty, pairType, true, context,
                    firstName, secondName);
View Full Code Here


        // Create the editor for this fraction type.
        if (fractionType == null) {
            throw new IllegalStateException("Can't make fraction editor for " +
                    "non-fraction type");
        } else {
            PropertyIdentifier identifier = descriptor.getIdentifier();

            // We pass the fraction type in as the second type (rather than the
            // denominator type) to guarantee that we are editing a fraction.
            final StylePairEditor styleEditor = new StylePairEditor(this,
                    SWT.NONE, styleProperty, type, fractionType, true, context);
View Full Code Here

                .get(synchronizationGroup);
            Object value = synchAccessor.getPropertyValue();
            PropertyDescriptor[] controlledProperties = synchronizationGroup
                .getControlledDescriptors();
            for (int i = 0; i < controlledProperties.length; i++) {
              PropertyIdentifier identifier = controlledProperties[i]
                  .getIdentifier();
              PropertyAccessor accessor = (PropertyAccessor) accessors
                  .get(identifier);
              accessor.setPropertyValue(value);
              propertyChanged(controlledProperties[i], value);
View Full Code Here

     * @param proxy The proxy from which the properties will be copied
     */
    public void updateFromProxy(BeanProxy proxy) {
        Iterator properties = getSupportedPropertyIdentifiers().iterator();
        while (properties.hasNext()) {
            PropertyIdentifier property = (PropertyIdentifier) properties.next();
            Proxy propertyProxy = proxy.getPropertyProxy(property);
            Object propertyValue;
            if (propertyProxy == null) {
                propertyValue = null;
            } else {
View Full Code Here

                            PolicyModel.MODEL_DESCRIPTOR.
                            getTypeDescriptorStrict(StyleProperties.class);

                    while (it.hasNext()) {
                        StyleProperty details = (StyleProperty) it.next();
                        PropertyIdentifier identifier = ThemeModel.
                                getPropertyIdentifierForStyleProperty(details);
                        PropertyDescriptor descriptor =
                                typeDescriptor.getPropertyDescriptor(identifier);
                        propertyDescriptors.add(descriptor);
                    }
View Full Code Here

            StyleCategory category = (StyleCategory) it.next();
            PropertiesComposite composite = (PropertiesComposite) categoryComposites.get(category);
            Set styleProperties = composite.getSupportedPropertyIdentifiers();
            Iterator propertiesIterator = styleProperties.iterator();
            while (propertiesIterator.hasNext()) {
                PropertyIdentifier identifier = (PropertyIdentifier) propertiesIterator.next();
                if (identifier.getName().equals(propertyName)) {
                    seekingProperty = false;
                    styleCategoriesComposite.selectCategory(category);
                    composite.selectProperty(identifier);
                }
            }
View Full Code Here

        private String getColumnTextProperty(Proxy property, int i) {
            String stringValue = "";

            if (i == COLUMN_PROPERTY) {
                BeanProxy parent = (BeanProxy) property.getParentProxy();
                PropertyIdentifier identifier = parent.getPropertyForProxy(property);
                StyleProperty styleProperty = ThemeModel.getStylePropertyForPropertyIdentifier(identifier);
                stringValue = styleProperty.getName();
                stringValue = EclipseCommonMessages.getString("PolicyName." + stringValue);
            } else if (i == COLUMN_VALUE) {
                PropertyValue propertyValue = (PropertyValue) property.getModelObject();
View Full Code Here

     */
    private void metadataPropertyChanged(PropertyDescriptor descriptor, Object newValue) {
        if (handlingPropertyChanges) {
            BeanProxy metadataProxy = getMetadataProxy();
            if (metadataProxy != null) {
                PropertyIdentifier identifier = descriptor.getIdentifier();
                if (identifier == PolicyModel.CONVERSION_MODE) {
                    updateImagePreserveControlState((ImageConversionMode) newValue);
                }

                Proxy propertyProxy = metadataProxy.getPropertyProxy(descriptor.getIdentifier());
View Full Code Here

    private void focusMetadata(String propertyName) {
        boolean seekingProperty = true;
        Set styleProperties = composite.getSupportedPropertyIdentifiers();
        Iterator propertiesIterator = styleProperties.iterator();
        while (seekingProperty && propertiesIterator.hasNext()) {
            PropertyIdentifier identifier = (PropertyIdentifier) propertiesIterator.next();
            if (identifier.getName().equals(propertyName)) {
                seekingProperty = false;
                composite.selectProperty(identifier);
            }
        }
    }
View Full Code Here

     * @param newValue The new value of the property
     */
    private void selectionPropertyChanged(PropertyDescriptor descriptor,
                                          Object newValue) {
        if (handlingEvents) {
            PropertyIdentifier identifier = descriptor.getIdentifier();
            Proxy selectionProxy = getSelectionProxy();
            if (selectionProxy instanceof BeanProxy) {
                BeanProxy selectionBeanProxy = (BeanProxy) selectionProxy;
                if (selectionBeanProxy != null &&
                        selectionBeanProxy.getBeanClassDescriptor().
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.property.PropertyIdentifier

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.