Examples of apply()


Examples of org.springframework.ide.eclipse.quickfix.proposals.RemoveConstructorParamQuickFixProposal.apply()

        break;
      }
    }
    RemoveConstructorParamQuickFixProposal proposal = new RemoveConstructorParamQuickFixProposal(offset, length,
        false, removal, constructor, "", javaProject);
    proposal.apply(document);

  }

  @Override
  protected void setUp() throws Exception {
View Full Code Here

Examples of org.springframework.ide.eclipse.quickfix.proposals.RenameToSimilarNameQuickFixProposal.apply()

    int offset = getOffset(valueRegion, beanNode);
    int length = getLength(valueRegion, isMissingEndQuote);

    RenameToSimilarNameQuickFixProposal proposal = new RenameToSimilarNameQuickFixProposal(newClassName, offset,
        length, isMissingEndQuote);
    proposal.apply(document);

    beanNode = QuickfixTestUtil.getNode(BeansSchemaConstants.ELEM_BEAN, beanName, beansNode.getChildNodes());
    classAttr = (AttrImpl) beanNode.getAttributes().getNamedItem(BeansSchemaConstants.ATTR_CLASS);
    return classAttr;
  }
View Full Code Here

Examples of org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder.apply()

            return authenticationManager;
        }

        AuthenticationManagerBuilder authBuilder = authenticationManagerBuilder(objectPostProcessor);
        for(GlobalAuthenticationConfigurerAdapter config : globalAuthConfigures) {
            authBuilder.apply(config);
        }

        authenticationManager = authBuilder.build();

        if(authenticationManager == null) {
View Full Code Here

Examples of org.springframework.springfaces.template.ui.DecorateAllHandler.DecoratedChild.apply()

  @Test
  public void shouldApply() throws Exception {
    FaceletHandler handler = mock(ComponentHandler.class);
    List<FaceletHandler> variableDeclarationHandlers = new ArrayList<FaceletHandler>();
    DecoratedChild decorated = this.delegate.createdDecoratedChild(handler, variableDeclarationHandlers);
    decorated.apply(this.ctx, this.parent, "template");
    verify(this.ctx).pushClient(this.templateClient.capture());
    verify(this.ctx).includeFacelet(this.parent, "template");
    this.templateClient.getValue().apply(this.ctx, this.parent, null);
    verify(handler).apply(this.ctx, this.parent);
    verify(this.ctx).popClient(this.templateClient.getValue());
View Full Code Here

Examples of org.sqlite.SQLiteConfig.apply()

            db.shared_cache(config.isEnabledSharedCache());
        }
        db.enable_load_extension(config.isEnabledLoadExtension());

        // set pragmas
        config.apply((Connection)this);
    }

    /**
     * Opens a connection to the database using an SQLite library.
     * @param openModeFlags Flags for file open operations.
View Full Code Here

Examples of org.switchyard.transform.TransformSequence.apply()

        DefaultMessage message = new DefaultMessage().setContent(A);

        // Apply transform sequence ... no relevant transformers in the reg... nothing should
        // happen i.e. content should still be "a"...
        transSequence.apply(message, xformReg);
        Assert.assertEquals(A, message.getContent());

        // Add just th "a" to "b" transformer... run again... should transform to "b", but no further...
        xformReg.addTransformer(new MockTransformer(A, B));
        transSequence.apply(message, xformReg);
View Full Code Here

Examples of org.tmatesoft.hg.internal.Patch.apply()

            throw new HgInvalidStateException(m);
          }
        }
        //
        Patch patch = HgInternals.patchFromData(ge);
        byte[] content = patch.apply(prevRevContent, -1);
        Nodeid p1 = ge.firstParent();
        Nodeid p2 = ge.secondParent();
        byte[] calculated = dh.sha1(p1, p2, content).asBinary();
        final Nodeid node = ge.node();
        if (!node.equalsTo(calculated)) {
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.DocOp.apply()

      sb.append(collateTextForWavelet(wavelet));
    } else {
      DocOp docOp = newestBlip.getContent().asOperation();
      sb.append(collateTextForOps(Lists.newArrayList(docOp)));
      sb.append(" ");
      docOp.apply(InitializationCursorAdapter.adapt(new DocInitializationCursor() {
        @Override
        public void annotationBoundary(AnnotationBoundaryMap map) {
        }

        @Override
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.AddParticipant.apply()

    // We are making an delta which applies to version 1, however the robot only
    // knows about version 0.
    ParticipantId bob = ParticipantId.of("bob@exmaple.com");
    HashedVersion v2 = HashedVersion.unsigned(2);
    WaveletOperation addBob = new AddParticipant(new WaveletOperationContext(ALEX, 0L, 1, v2), bob);
    addBob.apply(waveletData);
    waveletData.setHashedVersion(v2);
    waveletData.setVersion(2);

    TransformedWaveletDelta delta = new TransformedWaveletDelta(ALEX, v2,
        0L, Collections.singletonList(addBob));
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.wave.WaveletOperation.apply()

    // We are making an delta which applies to version 1, however the robot only
    // knows about version 0.
    ParticipantId bob = ParticipantId.of("bob@exmaple.com");
    HashedVersion v2 = HashedVersion.unsigned(2);
    WaveletOperation addBob = new AddParticipant(new WaveletOperationContext(ALEX, 0L, 1, v2), bob);
    addBob.apply(waveletData);
    waveletData.setHashedVersion(v2);
    waveletData.setVersion(2);

    TransformedWaveletDelta delta = new TransformedWaveletDelta(ALEX, v2,
        0L, Collections.singletonList(addBob));
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.