Examples of NullCommand


Examples of org.apache.sling.crankstart.core.commands.NullCommand

        builtinCommands.add(new Exit());
       
        // Need a null "classpath" command as our launcher uses it
        // outside of the usual command mechanism - it shouldn't cause
        // an error in the normal processing
        builtinCommands.add(new NullCommand("classpath", "set the classpath used by the Crankstart launcher"));
       
        log.info("{} ready, built-in commands: {}", getClass().getSimpleName(), getDescriptions(builtinCommands));
    }
View Full Code Here

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

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

            }

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

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

            }

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

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

        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

Examples of org.thechiselgroup.choosel.core.client.command.NullCommand

  @Before
  public void setUp() throws Exception {
    MockitoGWTBridge.setUp();
    MockitoAnnotations.initMocks(this);

    action = spy(new Action("", new NullCommand()));
    commandManager = spy(new DefaultCommandManager());
    underTest = new UndoActionStateController(commandManager, action);

    when(
        resolver.resolve(any(VisualItem.class),
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.command.NullCommand

  @Before
  public void setUp() throws Exception {
    MockitoGWTBridge.setUp();
    MockitoAnnotations.initMocks(this);

    action = spy(new Action("", new NullCommand()));
    commandManager = spy(new DefaultCommandManager());
    underTest = new RedoActionStateController(commandManager, action);

    when(
        resolver.resolve(any(VisualItem.class),
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.