Examples of apply()


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

    IBeansConfigSet configSet = beanProject.getConfigSet("AddConfigSetTest");
    assertNull("Expects no config set", configSet);

    AddConfigSetQuickFixProposal proposal = new AddConfigSetQuickFixProposal(offset, length, false, importBean,
        file, "AddConfigSetTest");
    proposal.apply(document);

    configSet = beanProject.getConfigSet("AddConfigSetTest");
    assertNotNull("Expects config set to be created", configSet);
    assertTrue("Expects config-set-proposal-test.xml to be added to config set",
        configSet.getConfigs().contains(beanProject.getConfig(file)));
View Full Code Here

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

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

    AddConstructorArgQuickFixProposal proposal = new AddConstructorArgQuickFixProposal(offset, length, false,
        addition, beanNode, "");
    proposal.apply(document);

    return beanNode;
  }

  private int getNumConstructorArgs(IDOMNode beanNode) {
View Full Code Here

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

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

    return type;
  }

  @Override
View Full Code Here

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

    assertFalse("Expects config file to not be in config set", configSet.getConfigs().contains(config));

    AddToConfigSetQuickFixProposal proposal = new AddToConfigSetQuickFixProposal(offset, length, false, file,
        configSet, beanProject);
    proposal.apply(document);

    configSet = beanProject.getConfigSet("AddToConfigSetTest");
    config = beanProject.getConfig(file);
    assertTrue("Expects config file to be added into config set", configSet.getConfigs().contains(config));
  }
View Full Code Here

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

    IJavaProject javaProject = JavaCore.create(project);

    CreateConstructorQuickFixProposal proposal = new CreateConstructorQuickFixProposal(offset, length, className,
        false, javaProject, constructorParamClassNames);
    proposal.apply(document);
  }

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

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

    IBeansProject beanProject = BeansCorePlugin.getModel().getProject(project);

    CreateImportQuickFixProposal proposal = new CreateImportQuickFixProposal(offset, length, false, importBean,
        beanNode, beanProject, file);
    proposal.apply(document);
  }

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

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

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

    CreateNewBeanQuickFixProposal proposal = new CreateNewBeanQuickFixProposal(offset, length, false, beanName,
        beanNode);
    proposal.apply(document);
  }

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

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

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

    CreateNewClassQuickFixProposal proposal = new CreateNewClassQuickFixProposal(offset, length, className, false,
        javaProject, properties, constructorArgCount, false);
    proposal.apply(document);
  }

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

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

    for (int i = 0; i < argCount; i++) {
      paramTypes[i] = "Object";
    }
    CreateNewMethodQuickFixProposal proposal = QuickfixUtils.getNewMethodQuickFixProposal(methodName, null,
        paramTypes, javaProject, className, offset, length, methodName, false, false, "property");
    proposal.apply(document);
  }

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

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

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

    RemoveConstructorArgQuickFixProposal proposal = new RemoveConstructorArgQuickFixProposal(offset, length, false,
        removal, beanNode, "");
    proposal.apply(document);

    return beanNode;
  }

  private int getNumConstructorArgs(IDOMNode beanNode) {
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.