Skip to content

Commit

Permalink
Make "add route entry" quick fix compatible to statistics tracker
Browse files Browse the repository at this point in the history
With the merge of the statistics tracker in Scala IDE, the quick fix
interface has changed and therefore produced a compilation error in the
play-ide.
  • Loading branch information
kiritsuku committed Nov 17, 2015
1 parent 40bc8a9 commit 9c76e6f
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package org.scalaide.play2.quickassist

import org.eclipse.jdt.ui.text.java.IJavaCompletionProposal
import org.eclipse.swt.graphics.Image
import org.eclipse.jface.text.IDocument

import org.eclipse.swt.graphics.Image
import org.scalaide.core.internal.statistics.Features.Feature
import org.scalaide.core.internal.statistics.Groups.Editing
import org.scalaide.core.quickassist.BasicCompletionProposal

case class AddRouteEntryProposal(display: String, image: Image = null)(f: IDocument => Unit) extends BasicCompletionProposal(100, display, image) {
override def apply(doc: IDocument) = f(doc)
}
object AddRouteEntry extends Feature("AddRouteEntry")("Add entry to route file", Editing)

case class AddRouteEntryProposal(display: String, image: Image = null)(f: IDocument => Unit) extends BasicCompletionProposal(AddRouteEntry, 100, display, image) {
override def applyProposal(doc: IDocument) = f(doc)
}

0 comments on commit 9c76e6f

Please sign in to comment.