Package org.locationtech.udig.project.internal.commands

Examples of org.locationtech.udig.project.internal.commands.NullCommand


            }

            public UndoableMapCommand getCommand( EditToolHandler handler, MapMouseEvent e,
                    EventType eventType ) {
                run = true;
                return new NullCommand();
            }

            public void handleError( EditToolHandler handler, Throwable error, UndoableMapCommand command ) {
            }

        }
        class FalseMode implements EventBehaviour {

            boolean run = false;

            public boolean isValid( EditToolHandler handler, MapMouseEvent e, EventType eventType ) {
                return false;
            }

            public UndoableMapCommand getCommand( EditToolHandler handler, MapMouseEvent e,
                    EventType eventType ) {
                run = true;
                return new NullCommand();
            }

            public void handleError( EditToolHandler handler, Throwable error, UndoableMapCommand command ) {
            }
        }
View Full Code Here


            }

            public UndoableMapCommand getCommand( EditToolHandler handler, MapMouseEvent e,
                    EventType eventType ) {
                run = true;
                return new NullCommand();
            }
View Full Code Here

            }

            public UndoableMapCommand getCommand( EditToolHandler handler, MapMouseEvent e,
                    EventType eventType ) {
                run = true;
                return new NullCommand();
            }
View Full Code Here

        List<Project> projects = ProjectPlugin.getPlugin().getProjectRegistry().getProjects();
        List<Resource> resources=new ArrayList<Resource>();
        for( Project project : projects ) {
          // make sure there are no commands executing on the project stack
      project.eSetDeliver(false);
          project.sendSync(new NullCommand());
      project.eSetDeliver(true);

           
      List<IProjectElement> elements = project.getElements();
          for (IProjectElement element : elements) {
        if( element instanceof Map){
          Map map=(Map) element;
          map.eSetDeliver(false);
          map.sendCommandSync(new NullCommand());
          map.eSetDeliver(true);
        }
      }
           
            project.getElementsInternal().clear();
          // Map commands could have put another command on the project stack so
          // make sure there are no commands executing on the project stack
          project.eSetDeliver(false);
          project.sendSync(new NullCommand());
      project.eSetDeliver(true);

      Resource resource = project.eResource();
            resources.add(resource);
            if( resource!=null)
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.NullCommand

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.