Examples of block()


Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.block()

            if (ep.isValueList()) {
                return new Tree.Term() {
                    protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
                        TypeRef<T,C> t = ep.getTypes().get(0);
                        LocalElement e = parent.element();
                        e.block(); // we will write occurs later
                        QName tn = t.getTagName();
                        e.name(tn.getLocalPart());
                        List lst = e.simpleType().list();
                        writeTypeRef(lst,t, "itemType");
                        elementFormDefault.writeForm(e,tn);
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.SimpleExtension.block()

                    writeName(c,ct);
                    if(c.isFinal())
                        ct._final("extension restriction");

                    SimpleExtension se = ct.simpleContent().extension();
                    se.block(); // because we might have attribute before value
                    for (PropertyInfo<T,C> p : c.getProperties()) {
                        switch (p.kind()) {
                        case ATTRIBUTE:
                            handleAttributeProp((AttributePropertyInfo<T,C>)p,se);
                            break;
View Full Code Here

Examples of forestry.core.config.ForestryBlock.block()

    if (block instanceof BlockLog) {
      IAlleleBoolean fireproof = (IAlleleBoolean) tree.getGenome().getActiveAllele(EnumTreeChromosome.FIREPROOF.ordinal());
      if (fireproof.getValue()) {
        BlockLog blockLog = (BlockLog) block;
        ForestryBlock fireproofLogBlock = BlockFireproofLog.getFireproofLog(blockLog);
        return new BlockType(fireproofLogBlock.block(), meta);
      }
    }

    return new BlockType(block, meta);
  }
View Full Code Here

Examples of hudson.util.OneShotEvent.block()

                throw new AssertionError();
            }
        });

        Future<FreeStyleBuild> r = p.scheduleBuild2(0);
        e.block()// wait until we are safe to interrupt
        assertTrue(p.getLastBuild().isBuilding());
        User johnny = User.get("Johnny");
        p.getLastBuild().getExecutor().interrupt(Result.FAILURE,
                new UserInterruption(johnny),   // test the merge semantics
                new UserInterruption(johnny));
View Full Code Here

Examples of hudson.util.OneShotEvent.block()

        p.setScm(new NullSCM() {
            @Override
            public boolean pollChanges(AbstractProject project, Launcher launcher, FilePath workspace, TaskListener listener) {
                try {
                    sync.block();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                return true;
            }
View Full Code Here

Examples of hudson.util.OneShotEvent.block()

        FreeStyleProject project = createFreeStyleProject();
        // Make build sleep a while so it blocks new builds
        project.getBuildersList().add(new TestBuilder() {
            public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
                buildStarted.signal();
                buildShouldComplete.block();
                return true;
            }
        });

        // Start one build to block others
View Full Code Here

Examples of hudson.util.OneShotEvent.block()

        final OneShotEvent checkoutStarted = new OneShotEvent();

        p.setScm(new TestSCM(checkoutStarted));

        Future<FreeStyleBuild> build = p.scheduleBuild2(0, new Cause.UserCause());
        checkoutStarted.block();
        assertFalse("SCM-poll after build has started should wait until that build finishes SCM-update", p.pollSCMChanges(StreamTaskListener.fromStdout()));
        build.get()// let mock build finish
    }

    private static class TestSCM extends NullSCM {
View Full Code Here

Examples of hudson.util.OneShotEvent.block()

        FreeStyleProject p = createFreeStyleProject();
        // Make build sleep a while so it blocks new builds
        p.getBuildersList().add(new TestBuilder() {
            public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
                buildStarted.signal();
                buildShouldComplete.block();
                return true;
            }
        });

        SCMTrigger t = new SCMTrigger("@daily");
View Full Code Here

Examples of l2p.gameserver.model.L2Player.block()

    L2Player player = (L2Player) getSelf();
    if(player == null)
    {
      return;
    }
    player.block();
    player.setFlying(true); // хак позволяющий сделать логаут
    show(Files.read("data/scripts/services/activation.htm", player), player);
  }

  public void activation(String[] args)
View Full Code Here

Examples of lineage2.gameserver.model.Player.block()

              if (activeChar.isInStoreMode())
              {
                activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
              }
              target.sitDown(null);
              target.block();
              target.sendMessage("You moved to jail, time to escape - " + period + " minutes, reason - " + reason + " .");
              activeChar.sendMessage("You jailed " + player + ".");
            }
            else
            {
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.