Package org.locationtech.udig.project.command

Examples of org.locationtech.udig.project.command.UndoableCommand


  public void rollback( IProgressMonitor monitor ) throws Exception {
        final boolean previousDeliver = model.eDeliver();
        model.eSetDeliver(false);
        try{
        for (int i = finalizerCommands.size() - 1; i > -1; i--) {
            UndoableCommand command = (UndoableCommand) finalizerCommands.get(i);
            command.rollback(monitor);
        }

        for (int i = commands.size() - 1; i > -1; i--) {
            // reset the eSetDeliverState so that the last change will trigger a re-render
            if( i==0 ){
                model.eSetDeliver(previousDeliver);
            }
            UndoableCommand command = (UndoableCommand) commands.get(i);
            command.rollback(monitor);
       
       
        }finally{
            model.eSetDeliver(previousDeliver);
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.command.UndoableCommand

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.