Examples of ChangeType


Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.ChangeType

        StringBuilder sb = new StringBuilder();

        Ansi ansi = newAnsi(console.getTerminal(), sb);

        DiffEntry entry;
        ChangeType type;
        String path;
        int cnt = 0;
        if (limit > 0) {
            Iterator<DiffEntry> changesIterator = changes;
            while (changesIterator.hasNext() && cnt < limit) {
                ++cnt;

                entry = changesIterator.next();
                type = entry.changeType();
                path = formatPath(entry);

                sb.setLength(0);
                ansi.a("#      ").fg(color).a(type.toString().toLowerCase()).a("  ").a(path)
                        .reset();
                console.println(ansi.toString());
            }
        }
        sb.setLength(0);
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffEntry.ChangeType

                Iterator<DiffEntry> unstaged = geogig.command(DiffWorkTree.class).setFilter(null)
                        .call();
                cli.getConsole().println("Unstaged changes after reset:");
                while (unstaged.hasNext()) {
                    DiffEntry entry = unstaged.next();
                    ChangeType type = entry.changeType();
                    switch (type) {
                    case ADDED:
                        cli.getConsole().println("A\t" + entry.newPath());
                        break;
                    case MODIFIED:
View Full Code Here

Examples of org.locationtech.geogig.geotools.data.GeoGigDataStore.ChangeType

        dataStore.setHead(newRoot.toString());
        List<String> fids;
        SimpleFeatureCollection features;

        ChangeType changeType = ChangeType.ADDED;
        features = dataStore.getDiffFeatureSource(pointsName, oldRoot.toString(), changeType)
                .getFeatures();
        fids = toIdList(features);
        assertEquals(changeType + fids.toString(), expectedAdded, fids.size());
        assertEquals(changeType + fids.toString(), expectedAdded, features.size());
View Full Code Here

Examples of org.uberfire.workbench.events.ChangeType

        }

        //Add all changes to KieFileSystem before executing the build
        final List<String> changedFilesKieBuilderPaths = new ArrayList<String>();
        for ( ResourceChange change : changes ) {
            final ChangeType type = change.getType();
            final Path resource = paths.convert( change.getPath() );

            //Only files can be processed
            if ( !Files.isRegularFile( resource ) ) {
                continue;
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.