Package com.volantis.mcs.eclipse.common.odom.undo

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().setDeviceTACs(
                    getSelectedDeviceName(), patterns);
View Full Code Here


                    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

     * @param vocabulary the new value for the vocabulary.
     */
    private void updateVocabulary(String vocabulary) {
        selectedElement.removeChangeListener(selectedElementListener);
        UndoRedoManager undoRedoManager = context.getUndoRedoManager();
        undoRedoManager.demarcateUOW();
        try {
            if (vocabulary != null && vocabulary.length() > 0) {
                selectedElement.setAttribute(
                        DeviceRepositorySchemaConstants.VOCABULARY_ATTRIBUTE_NAME,
                        vocabulary);
View Full Code Here

                        DeviceRepositorySchemaConstants.VOCABULARY_ATTRIBUTE_NAME);
                updateUAProfName(null);
            }
        } finally {
            selectedElement.removeChangeListener(selectedElementListener);
            undoRedoManager.demarcateUOW();
        }
    }

    /**
     * Update the element with the new value(s)
View Full Code Here

     */
    private void updateUAProfName(String uaProfName) {
        selectedElement.removeChangeListener(selectedElementListener);

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

        try {
            Element uaProfElement = getUAProfElement();
            if ((uaProfName == null) || (uaProfName.trim().length() == 0)) {
                if (uaProfElement != null) {
View Full Code Here

                        DeviceRepositorySchemaConstants.UAPROF_ATTRIBUTE_NAME,
                        uaProfName);
            }
        } finally {
            selectedElement.addChangeListener(selectedElementListener);
            undoRedoManager.demarcateUOW();
        }
    }

    /**
     * Update the control with the specified value.
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.