Package com.volantis.mcs.interaction

Examples of com.volantis.mcs.interaction.Proxy.addListener()


            final Proxy proxy = policyFileAccessor.wrapPolicy(policy,
                    getModelDescriptor(), getProject());

            // Revalidate the model on all changes
            proxy.validate();
            proxy.addListener(
                new InteractionEventListenerAdapter() {
                    protected void interactionEvent(InteractionEvent event) {
                        if (event.isOriginator ()) {
                            proxy.validate();
                        }
View Full Code Here


        }

        if (selection != null && selection instanceof BeanProxy) {
            Proxy type = ((BeanProxy)
                    selection).getPropertyProxy(PolicyModel.CONTENT);
            type.addListener(changeListener, false);
        }
    }

    public void createPartControl(Composite composite) {
        displayArea = new Composite(composite, SWT.NONE);
View Full Code Here

            SelectionPolicyType policyType =
                    (SelectionPolicyType) descriptor.getPolicyType();
            context.setCategoryValues(policyType.getKeywords());
        }

        categorisationScheme.addListener(new InteractionEventListenerAdapter() {
            protected void interactionEvent(InteractionEvent event) {
                String selectedPolicy =
                        (String) categorisationScheme.getModelObject();
                if (selectedPolicy != null) {
                    combo.setSelection(new StructuredSelection(selectedPolicy));
View Full Code Here

            if (concreteContent != null) {
                BeanProxy styleSheet = (BeanProxy) concreteContent.
                        getPropertyProxy(ThemeModel.STYLE_SHEET);
                Proxy rules = styleSheet.getPropertyProxy(ThemeModel.RULES);
                ruleTable.setInput(rules);
                rules.addListener(tableRefresher, true);
                rules.addDiagnosticListener(tableRefresher);
            }
        }
    }
View Full Code Here

                BeanProxy themeContent = (BeanProxy) concreteContent;
                BeanProxy styleSheet = (BeanProxy) themeContent.
                        getPropertyProxy(ThemeModel.STYLE_SHEET);
                Proxy rules = styleSheet.getPropertyProxy(ThemeModel.RULES);
                ruleTable.setInput(rules);
                rules.addListener(tableRefresher, true);
                rules.addDiagnosticListener(tableRefresher);
            }
        }
        ruleTable.refresh();
    }
View Full Code Here

            if (newVariant.isReadOnly()) {
                setEnabled(false);
            }

            newVariant.addListener(readOnlyListener, false);
            newType.addListener(typeListener, false);
        }

        handlingPropertyChanges = true;
    }
View Full Code Here

                        context.setDirty(true);
                    }
                }
            };
            Proxy proxy = context.getInteractionModel();
            proxy.addListener(listener, true);
        } catch (PolicyFileAccessException pfae) {
            String errorMessage = file.exists() ? LOAD_ERROR_MESSAGE :
                    MISSING_FILE_MESSAGE;
            throw new PartInitException(errorMessage);
        } catch (NullPointerException npe) {
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.