Package org.uberfire.workbench.events

Examples of org.uberfire.workbench.events.ResourceChange


                        changes.get( result.getK1() ).add( result.getK2() );
                    }
                }
            }
            if ( changes.size() == 1 && changes.values().size() == 1 ) {
                final ResourceChange _event = changes.values().iterator().next().iterator().next();
                if ( _event instanceof ResourceUpdated ) {
                    resourceUpdatedEvent.fire( (ResourceUpdatedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
                } else if ( _event instanceof ResourceAdded ) {
                    resourceAddedEvent.fire( (ResourceAddedEvent) toEvent( changes.keySet().iterator().next(), _event, firstContext ) );
                } else if ( _event instanceof ResourceRenamed ) {
View Full Code Here


    private Pair<Path, ResourceChange> buildChange( final WatchEvent<?> event ) {
        final WatchContext context = (WatchContext) event.context();

        final Path _affectedPath;
        final ResourceChange result;
        if ( event.kind().equals( StandardWatchEventKind.ENTRY_MODIFY ) ) {
            _affectedPath = convert( context.getOldPath() );
            result = new ResourceUpdated();
        } else if ( event.kind().equals( StandardWatchEventKind.ENTRY_CREATE ) ) {
            _affectedPath = convert( context.getPath() );
View Full Code Here

TOP

Related Classes of org.uberfire.workbench.events.ResourceChange

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.