Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.CompositeChange


  }

  @Override
  public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    if(!_changes.isEmpty()){
      CompositeChange change = new CompositeChange("WGA resource changes");   
      change.addAll(_changes.toArray(new Change[0]));   
      return change;
    }   
    return null;
  }
View Full Code Here


      change.setEdit(edit);
      return change;
      }else if (info.getArguments() instanceof DeleteArguments) {
        // check if resource to delete will still exists after parent deletion is performed - otherwise we can skip any change here
        if (!info.getElement().getFullPath().isPrefixOf(info.getFile().getParent().getFullPath())) {
          CompositeChange delChange = new CompositeChange("Deletions");
          delChange.add(new DeleteWGAResourceChange(info.getFile().getParent().getFullPath(),false));
         
         
          for(RefactoringInfo currentInfo : getAffectedResources(info.getFile().getParent(), new DeleteArguments())){
            delChange.add(createChange(currentInfo));
          }     
       
          return delChange; 
          }
      }
View Full Code Here

    return _refactoringStatus;
  }

  @Override
  public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    CompositeChange change = new CompositeChange("WGA resource changes");
    change.addAll(_changes.toArray(new Change[0]));
    return change;
  }
View Full Code Here

    return _refactoringStatus;
  }

  @Override
  public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    CompositeChange change = new CompositeChange("WGA resource changes");
    change.addAll(_changes.toArray(new Change[0]));
    return change;
  }
View Full Code Here

            /* no changes at all */
            return null;
        }

        /* build a composite change with all changes */
        CompositeChange cs = new CompositeChange(changeTitle);
        for (TextChange fileChange : fileChanges.values()) {
            cs.add(fileChange);
        }

        return cs;
    }
View Full Code Here

        {
            return new NullChange();
        }
        else
        {
            CompositeChange ret = new CompositeChange("Export-Package update");

            ret.addAll(changes.toArray(new Change[changes.size()]));

            return ret;
        }
    }
View Full Code Here

        {
            return new NullChange();
        }
        else
        {
            CompositeChange ret = new CompositeChange("Export-Package update");

            ret.addAll(changes.toArray(new Change[changes.size()]));

            return ret;
        }
    }
View Full Code Here

        {
            return new NullChange();
        }
        else
        {
            CompositeChange ret = new CompositeChange("Export-Package update");

            ret.addAll(changes.toArray(new Change[changes.size()]));

            return ret;
        }
    }
View Full Code Here

        {
            return new NullChange();
        }
        else
        {
            CompositeChange ret = new CompositeChange("Export-Package update");

            ret.addAll(changes.toArray(new Change[changes.size()]));

            return ret;
        }
    }
View Full Code Here

        {
            return new NullChange();
        }
        else
        {
            CompositeChange ret = new CompositeChange("Export-Package update");

            ret.addAll(changes.toArray(new Change[changes.size()]));

            return ret;
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ltk.core.refactoring.CompositeChange

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.