Package org.eclipse.m2e.core.ui.internal.editing.PomEdits

Examples of org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation


  @Override
  public void addMavenDependency(final MavenCoordinates dep, final boolean preferManagedVersion) throws CoreException {
    try {
      IFile file = getPomFile();
      performOnDOMDocument(new OperationTuple(file, new Operation() {
        public void process(Document document) {
          Element depsEl = getChild(
              document.getDocumentElement(), DEPENDENCIES);
          if (depsEl==null) {
            //TODO: handle this case
View Full Code Here


      for (SpringBootStarter s : _starters) {
        starters.add(s.getId());
      }
     
      IFile file = getPomFile();
      performOnDOMDocument(new OperationTuple(file, new Operation() {
        public void process(Document document) {
          Element depsEl = getChild(
              document.getDocumentElement(), DEPENDENCIES);
          List<Element> children = findChilds(depsEl, DEPENDENCY);
          for (Element c : children) {
View Full Code Here

TOP

Related Classes of org.eclipse.m2e.core.ui.internal.editing.PomEdits.Operation

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.