Examples of PolicyTypeComposition


Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

                            new StringBuffer(EclipseDeviceRepository.
                            getCustomPolicyNamePrefix());
                    buffer.append(policyName);
                    policyName = buffer.toString();
                }
                PolicyTypeComposition composition =
                        wizard.getPolicyTypeComposition();
                PolicyType type = wizard.getPolicyType();
                if (policyName != null && composition != null && type != null) {
                    // we don't allow policy creation to
                    // be undoable
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

        Element typeElement = deviceRAM.getTypeDefinitionElement(policyName);
        if (typeElement == null) {
            throw new IllegalStateException("The type element for " +
                                            policyName + " is null.");
        }
        PolicyTypeComposition composition =
                PolicyTypeComposition.getComposition(typeElement);

        if (composition == null) {
            throw new IllegalStateException(
                        "There is no policy type composition for the policy " +
                    "named " + policyName);
        }

        return composition.createPolicyValueModifier(parent,
                                                    style,
                                                    policyName,
                                                    deviceRAM);
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

                        context.getDeviceRepositoryAccessorManager().
                getTypeDefinitionElement(policyName);

        PolicyType policyType = PolicyType.getType(typeElement);

        PolicyTypeComposition composition =
                    PolicyTypeComposition.getComposition(typeElement);


        // Assume no label is required.
        Label policyLabel = null;
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

        Iterator it = LOCALIZED_COMPOSITIONS.keySet().iterator();

        int count = 0;
        while (it.hasNext()) {
            String localizedName = (String) it.next();
            PolicyTypeComposition ptc = (PolicyTypeComposition)
                    LOCALIZED_COMPOSITIONS.get(localizedName);
            PresentableItem item = new PresentableItem(ptc, localizedName);
            items[count++] = item;
        }
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

        DeviceRepositoryAccessorManager dram =
                    context.getDeviceRepositoryAccessorManager();

        Element typeElement = dram.getTypeDefinitionElement(getPolicyName());

        PolicyTypeComposition composition =
                    PolicyTypeComposition.getComposition(typeElement);
        String localizedComposition =
                    DevicesMessages.getLocalizedCompositionName(composition);
        if (!localizedComposition.equals(compositionLabel.getText())) {
            compositionLabel.setText(localizedComposition);
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

        DeviceRepositoryAccessorManager dram =
                    context.getDeviceRepositoryAccessorManager();

        Element typeElement = dram.getTypeDefinitionElement(getPolicyName());

        PolicyTypeComposition composition =
                    PolicyTypeComposition.getComposition(typeElement);

        PolicyType policyType = (PolicyType) typeCombo.getValue();
        PolicyType currentType =
                    PolicyTypeComposition.getPolicyType(typeElement);

        if (currentType != policyType) {
            policyDefinition.removeChangeListener(odomChangeListener);
            try {
                // detatch type element from the policy definition element
                typeElement.detach();
                // add the new type element
                composition.addTypeElement(policyDefinition,
                                           policyType,
                                           context.getODOMFactory());
                // update the optional controls that may be required if the
                // new type requires optional controls.
                updateOptionalTypeControls();
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.devices.types.PolicyTypeComposition

            Element typeElement = context.getDeviceRepositoryAccessorManager().
                    getTypeDefinitionElement(policyName);

            PolicyType policyType = PolicyType.getType(typeElement);

            PolicyTypeComposition composition =
                    PolicyTypeComposition.getComposition(typeElement);

            // Assume no label is required. {@See #policyTypesWithoutLabels}.
            Label policyLabel = null;
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.