Skip to content

Adding a new preference

mdr edited this page Aug 29, 2011 · 4 revisions

Adding a new preference

Add new preference descriptor

Edit PreferenceDescriptor.scala:

case object PlaceScaladocAsterisksBeneathSecondAsterisk extends BooleanPreferenceDescriptor {
  val key = "placeScaladocAsterisksBeneathSecondAsterisk"
  val description = "Place Scaladoc asterisks beneath the second asterisk in the opening '/**', as opposed to the first"
  val defaultValue = false
}

Also add to AllPreferences list in same file.

Add to Maven plug-in

MojoFormatter.scala and ScalariformMojo.java

Update Eclipse

After pushing to master and nightly has been built, can change FormatterPreferencePage.scala to add preference to appropriate tab.

Clone this wiki locally