Examples of reset()


Examples of org.tmatesoft.hg.internal.DataAccess.reset()

        if (signature[4] != 'U' || signature[5] != 'N') {
          throw new HgInvalidStateException(String.format("Bad bundle signature: %s",  String.valueOf(signature)));
        }
        // "...UN", fall-through
      } else {
        da.reset();
      }
    }
    return da;
  }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.delta.SVNDeltaAlgorithm.reset()

        // use x or v algorithm depending on sourceLength
        SVNDeltaAlgorithm algorithm = sourceLength == 0 ? myVDelta : myXDelta;
        algorithm.computeDelta(source, sourceLength, target, targetLength);
        // send single diff window to the editor.
        if (consumer == null) {
            algorithm.reset();
            return;
        }
        int instructionsLength = algorithm.getInstructionsLength();
        int newDataLength = algorithm.getNewDataLength();
        SVNDiffWindow window = new SVNDiffWindow(sourceOffset, sourceLength, targetLength, instructionsLength, newDataLength);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.delta.SVNDeltaReader.reset()

                        if (chunkItem.getKind() != SVNItem.BYTES) {
                            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_SVN_MALFORMED_DATA, "Text delta chunk not a string");
                            SVNErrorManager.error(err, SVNLogType.NETWORK);
                        }
                    }
                    deltaReader.reset(name == null ? path : name, handler);
                    if (handler != null) {
                        handler.textDeltaEnd(name == null ? path : name);
                    }

                }
View Full Code Here

Examples of org.uberfire.java.nio.file.WatchKey.reset()

                    if ( markerFileModified ) {
                        wsExecutor.execute( wk, localLastModifiedValue.get(), ConfigurationServiceImpl.this );
                    }

                    boolean valid = wk.reset();
                    if ( !valid ) {
                        break;
                    }
                } catch ( final Exception ignored ) {
                }
View Full Code Here

Examples of org.usb4java.mocks.PollfdListenerMock.reset()

        assertSame(fd, listener.addedFd);
        assertSame("test", listener.addedUserData);
        assertNull(listener.removedFd);
        assertNull(listener.removedUserData);

        listener.reset();

        fd = new FileDescriptor();
        LibUsb.triggerPollfdRemoved(fd, context.getPointer());
        assertEquals(0, listener.addedEvents);
        assertNull(listener.addedFd);
View Full Code Here

Examples of org.uscxml.Interpreter.reset()

     
      Interpreter interpreter = Interpreter.fromXML(xml);
      if (interpreter.getState() != InterpreterState.USCXML_INSTANTIATED) throw new RuntimeException("");
      if (interpreter.step() != InterpreterState.USCXML_MICROSTEPPED) throw new RuntimeException("");
      if (interpreter.step() != InterpreterState.USCXML_FINISHED) throw new RuntimeException("");
      interpreter.reset();

      if (interpreter.getState() != InterpreterState.USCXML_INSTANTIATED) throw new RuntimeException("");
      if (interpreter.step() != InterpreterState.USCXML_MICROSTEPPED) throw new RuntimeException("");
      if (interpreter.step() != InterpreterState.USCXML_FINISHED) throw new RuntimeException("");
View Full Code Here

Examples of org.vaadin.console.Console.reset()

        console.setPs("}> ");
        console.setCols(80);
        console.setRows(24);
        console.setMaxBufferSize(24);
        console.setGreeting("Welcome to Vaadin console demo.");
        console.reset();
        console.focus();

        // Publish the methods in the Console class itself for testing purposes.
        console.addCommandProvider(inspector = new ObjectInspector(console));
View Full Code Here

Examples of org.vfny.geoserver.form.data.DataDataStoresSelectForm.reset()

            return mapping.findForward("config.data.store.editor");
        } else if (deleteLabel.equals(buttonAction)) {
            dataConfig.removeDataStore(form.getSelectedDataStoreId());
            getUserContainer(request).setDataStoreConfig(null);

            form.reset(mapping, request);

            return mapping.findForward("config.data.store");
        }
       
        throw new ServletException(
View Full Code Here

Examples of org.vfny.geoserver.form.data.DataNamespacesSelectForm.reset()

          }
            dataConfig.removeNameSpace(nsSelected);
            getApplicationState().notifyConfigChanged();
           
            getUserContainer(request).setNamespaceConfig(null);
            namespacesForm.reset(mapping, request);
            return mapping.findForward("config.data.namespace");
        }
        if (action.equals(_default)) {
          if(!nsSelected
              .equals(dataConfig.getDefaultNameSpace().getPrefix())){
View Full Code Here

Examples of org.vfny.geoserver.form.data.StylesSelectForm.reset()

        //
        if (action.equals(DELETE)) {
            config.removeStyle( styleId );
            getApplicationState().notifyConfigChanged();
            selectForm.setSelectedStyle(null);
            selectForm.reset(mapping, request);
            return mapping.findForward("config.data.style");
        }
        if (action.equals(DEFAULT)) {
          Map m = config.getStyles();
          Iterator i = m.values().iterator();
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.