Package com.volantis.mcs.eclipse.builder.editors.policies

Examples of com.volantis.mcs.eclipse.builder.editors.policies.PolicyModelSet


     * asset content section, and set up a series of flags indicating whether
     * the policy supports each possible type of content.
     */
    private void checkContentTypes() {
        PolicyType policyType = context.getPolicyType();
        PolicyModelSet modelSet = PolicyModelSet.getModelSet(policyType);

        Class[] contentTypes = modelSet.getContentClasses();
        if (contentTypes != null) {
            for (int i = 0; i < contentTypes.length; i++) {
                Class contentType = contentTypes[i];
                if (contentType == null) {
                    providesNull = true;
View Full Code Here


        GridLayout layout = new GridLayout(1, false);
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        displayArea.setLayout(layout);

        PolicyModelSet modelSet = PolicyModelSet.getModelSet(context.getPolicyType());
        BeanClassDescriptor typeDescriptor = (BeanClassDescriptor)
                PolicyModel.MODEL_DESCRIPTOR.
                getTypeDescriptorStrict(modelSet.getMetaDataClass());

        List propertyList = typeDescriptor.getPropertyDescriptors();
        PropertyDescriptor[] properties = new PropertyDescriptor[propertyList.size()];
        for (int i = 0; i < properties.length; i++) {
            properties[i] = (PropertyDescriptor) propertyList.get(i);
View Full Code Here

     * Add the GUI components for specifying fallback selectors.
     *
     * @param parent The parent component (must be a two-column grid)
     */
    private void addFallbackSelectors(final Composite parent) {
        PolicyModelSet policyModelSet =
                PolicyModelSet.getModelSet(context.getPolicyType());
        final PolicyType[] types = policyModelSet.getFallBackTypes();
        Map typesToTextComponents = new HashMap();

        if (types != null && types.length > 0) {
            for (int i = 0; i < types.length; i++) {
                final PolicyType type = types[i];
View Full Code Here

    public AssetSelectionCriteriaSection(Composite parent, int style,
                                         EditorContext context) {
        super(parent, style, RESOURCE_PREFIX);
        this.context = (PolicyEditorContext) context;

        PolicyModelSet modelSet = PolicyModelSet.getModelSet(this.context.getPolicyType());
        supportedSelectionTypes = modelSet.getSelectionClasses();
        supportsTargetedSelection = false;
        supportsGenericImageSelection = false;
        for (int i = 0; i < supportedSelectionTypes.length; i++) {
            if (TargetedSelectionBuilder.class == supportedSelectionTypes[i]) {
                supportsTargetedSelection = true;
View Full Code Here

       
        criteriaCombo.setContentProvider(new ArrayContentProvider());

        criteriaCombo.setLabelProvider(SELECTION_LABEL_PROVIDER);

        PolicyModelSet modelSet = PolicyModelSet.getModelSet(context.getPolicyType());
        Class[] selectionClasses = modelSet.getSelectionClasses();
        criteriaCombo.setInput(selectionClasses);
        criteriaCombo.setSelection(StructuredSelection.EMPTY);

        criteriaCombo.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.builder.editors.policies.PolicyModelSet

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.