Examples of demarcateUOW()


Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

        for (int i = 0; i < items.length; i++) {
            patterns[i] = (String) items[i];
        }

        UndoRedoManager undoRedoManager = context.getUndoRedoManager();
        undoRedoManager.demarcateUOW();

        selectedDeviceIdentification.removeChangeListener(odomChangeListener);
        try {
            context.getDeviceRepositoryAccessorManager().setUserAgentPatterns(
                    getSelectedDeviceName(), patterns);
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

                    getSelectedDeviceName(), patterns);
        } catch (RepositoryException e) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
        } finally {
            selectedDeviceIdentification.addChangeListener(odomChangeListener);
            undoRedoManager.demarcateUOW();
        }
    }

    /**
     * Returns the name of the currently selected device or null if no device
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

        for (int i = 0; i < items.length; i++) {
            patterns[i] = (DeviceHeaderPattern) items[i];
        }

        UndoRedoManager undoRedoManager = context.getUndoRedoManager();
        undoRedoManager.demarcateUOW();

        selectedDeviceIdentification.removeChangeListener(odomChangeListener);
        try {
            context.getDeviceRepositoryAccessorManager().
                    setHeaderPatterns(getSelectedDeviceName(), patterns);
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

        } catch (RepositoryException e) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
        } finally {
            selectedDeviceIdentification.addChangeListener(odomChangeListener);
            undoRedoManager.demarcateUOW();
        }
    }

    /**
     * Returns the name of the currently selected device.
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

                (DeviceODOMElement) context.
                getDeviceRepositoryAccessorManager().
                retrievePolicy(deviceName, policyName);

        UndoRedoManager undoRedoManager = context.getUndoRedoManager();
        undoRedoManager.demarcateUOW();
        try {
            // It may be the case that the user has chosen to override when
            // override was previously selected in which case the resolved policy
            // will come from the current device and we must do some special
            // processing to handle the standard element that should be present
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

                // This is an override. Where there is no existing policy so nothing to
                // remove, only something to add.
                policies.addContent(policy);
            }
        } finally {
            undoRedoManager.demarcateUOW();
        }
        // Enable the controls to allow the user to modify the override value.
        enableModifierControls(true);

        modifier.setPolicy(policy);
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

        ODOMElement policy = (ODOMElement)
                context.getDeviceRepositoryAccessorManager().
                resolvePolicy(deviceName, policyName).policy;

        UndoRedoManager undoRedoManager = context.getUndoRedoManager();
        undoRedoManager.demarcateUOW();
        try {
            // Remove all value or field content from the policy.
            if (policy.getAttributeValue(
                    DeviceRepositorySchemaConstants.
                    POLICY_VALUE_ATTRIBUTE) != null) {
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

            // Disable the PolicyValueModifier controls since the device now
            // inherits the value rather than providing it directly.
            enableModifierControls(false);
        } finally {
            undoRedoManager.demarcateUOW();
        }
    }

    /**
     * Handles changing to the restore policy origin by restoring the old
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

        Element policy = context.getDeviceRepositoryAccessorManager().
                retrievePolicy(deviceName, policyName);
        if (policy != null) {

            UndoRedoManager undoRedoManager = context.getUndoRedoManager();
            undoRedoManager.demarcateUOW();
            try {
                // If we are here then there is something to restore.
                ((DeviceODOMElement) policy).restore();

                // We need to do the resolve again in case the restore
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.undo.UndoRedoManager.demarcateUOW()

                policy = context.getDeviceRepositoryAccessorManager().
                        resolvePolicy(deviceName, policyName).policy;

                modifier.setPolicy(policy);
            } finally {
                undoRedoManager.demarcateUOW();
            }
        }
        updateOriginSelector();
    }
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.