Package org.eclipse.emf.ecore.change.util

Examples of org.eclipse.emf.ecore.change.util.ChangeRecorder


            EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
            EFeatureIterator it = eQuery.iterator();
            EObject eFeature = it.next();       
            Object v = 1200L;
            System.out.println("V: " + v);
            ChangeRecorder r = new ChangeRecorder(eFeature);
            Object o1 = eFeature.eGet(eAttribute);
            System.out.println("2: " + o1);
            Object o2 = eFeature.eGet(eAttribute);
            System.out.println("2: " + o2);
            eFeature.eSet(eAttribute, v);
            ChangeDescription c = r.endRecording();
            c.applyAndReverse();
            c.apply();
        } catch (Exception e) {
            LOGGER.log(Level.SEVERE, e.getMessage(), e);
            fail(e);
View Full Code Here


        //
        this.eDataStore = new WeakReference<EFeatureDataStore>(eDataStore);
        //
        // Create change recording capabilities
        //
        this.eRecorder = new ChangeRecorder();
        //
        // End current recording (initialize the stepwise write recording cycle)
        //
        this.eDescription = this.eRecorder.endRecording();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.change.util.ChangeRecorder

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.