scala-ide / scala-refactoring

A library providing automated refactoring support for Scala.
http://scala-refactoring.org/
Other
69 stars 47 forks source link

Make renaming packages work #181

Closed mlangc closed 7 years ago

mlangc commented 7 years ago

This PR is dedicated to package renames, that are special for two reasons:

  1. Associated package objects must be renamed together with their packages
  2. Although not strictly required, package renames typically should be accompanied by associated directory renames

This PR takes care of both issues. Note that up until now there was no scala.tools.refactoring.common.Change that models moving files from one directory to another. scala.tools.refactoring.common.MoveToDirChange takes care of this. An associated PR for ScalaIDE, that takes advantage of the new API, can be found here.

Fixes #1002769.

ghprb-bot commented 7 years ago

Test PASSed.

ghprb-bot commented 7 years ago

Test PASSed.