Package com.volantis.mcs.eclipse.common

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


     * device property changes
     * @return an ObservableProperties instance
     */
    public ObservableProperties getProperties() {
        if (properties == null) {
            properties = new ObservableProperties(accessor.getProperties());
        }
        return properties;
    }
View Full Code Here


        String policy = getPolicyName();
        // obtain the localized name from the control
        String localizedName = nameField.getText();
        if (!localizedName.equals(
                    dram.getLocalizedPolicyName(policy))) {
            ObservableProperties properties = dram.getProperties();
            // remove the listener that is registered
            properties.removePropertyChangeListener(propertyChangeListener);
            try {
                // update the properties
                dram.setLocalizedPolicyName(policy, localizedName);
            } finally {
                // re-register the property change listener
                properties.addPropertyChangeListener(propertyChangeListener);
            }

        }
    }
View Full Code Here

        String policy = getPolicyName();
        // obtain the help text in the control
        String helpText = helpTextArea.getText();
        if (!helpText.equals(
                    dram.getPolicyDescription(policy))) {
            ObservableProperties properties = dram.getProperties();
            // remove the listener that is registered
            properties.removePropertyChangeListener(propertyChangeListener);
            try {
                // update the properties
                dram.setPolicyDescription(policy, helpText);
            } finally {
                // re-register the property change listener
                properties.addPropertyChangeListener(propertyChangeListener);
            }

        }
    }
View Full Code Here

        }

        // We need to be notified of changes to the properties file associated
        // with the device repository so that we can refresh the viewer. So,
        // we use an ObservableProperties to provide this facility.
        ObservableProperties op = dram.getProperties();
        op.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent evt) {
                viewer.refresh();
            }
        });
View Full Code Here

        displayArea.layout();
        policiesSection.setFocus();

        // Add listener for changes to properties in device repository
        ObservableProperties properties =
                context.getDeviceRepositoryAccessorManager().getProperties();
        properties.addPropertyChangeListener(new PropertyChangeListener() {
            // Javadoc inherited
            public void propertyChange(PropertyChangeEvent evt) {
                setDirty(true);
            }
        });
View Full Code Here

TOP

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

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.