Package com.volantis.mcs.interaction

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


    private void registerChangeListeners(Proxy oldSelection, Proxy selection) {
        if (oldSelection != null && oldSelection instanceof BeanProxy) {
            Proxy type = ((BeanProxy)
                    oldSelection).getPropertyProxy(PolicyModel.CONTENT);
            type.removeListener(changeListener);
        }

        if (selection != null && selection instanceof BeanProxy) {
            Proxy type = ((BeanProxy)
                    selection).getPropertyProxy(PolicyModel.CONTENT);
View Full Code Here


        }

        Object oldInput = ruleTable.getInput();
        if (oldInput != null && oldInput instanceof Proxy) {
            Proxy oldRules = (Proxy) oldInput;
            oldRules.removeListener(tableRefresher);
            oldRules.removeDiagnosticListener(tableRefresher);
        }
        ruleTable.setInput(null);

        if (!nullType && deviceTheme != null) {
View Full Code Here

    };

    private void setInput(Proxy newInput) {
        if (treeViewer.getInput() != null) {
            Proxy input = (Proxy) treeViewer.getInput();
            input.removeListener(modelChangeListener);
            input.removeDiagnosticListener(modelChangeListener);
        }
        treeViewer.setInput(newInput);

        if (newInput != null && newInput.getModelObject() instanceof VariantBuilder) {
View Full Code Here

        Proxy oldType = null;
        if (oldVariant != null) {
            oldVariant.removeListener(readOnlyListener);

            oldType = oldVariant.getPropertyProxy(PolicyModel.VARIANT_TYPE);
            oldType.removeListener(typeListener);
        }

        if (newVariant == null) {
            composite.clear();
            setEnabled(false);
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.