Package org.springframework.ide.eclipse.quickfix.proposals

Examples of org.springframework.ide.eclipse.quickfix.proposals.AddToConfigSetQuickFixProposal


          Set<IBeansConfigSet> configSets = project.getConfigSets();

          for (IBeansConfigSet configSet : configSets) {
            if (configSet.hasConfig((IFile) bean.getElementResource())) {
              addToConfigSetProposals.add(new AddToConfigSetQuickFixProposal(offset, length,
                  missingEndQuote, file, configSet, project));
            }
          }
          addConfigSetProposals.add(new AddConfigSetQuickFixProposal(offset, length, missingEndQuote, bean,
              file));
View Full Code Here


    IBeansConfigSet configSet = beanProject.getConfigSet("AddToConfigSetTest");
    IBeansConfig config = beanProject.getConfig(file);

    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

TOP

Related Classes of org.springframework.ide.eclipse.quickfix.proposals.AddToConfigSetQuickFixProposal

Copyright © 2018 www.massapicom. 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.