Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactoring: Reduced visibility of class HyperlinksResolver

HyperlinksResolver is only used by the HyperlinksDetector, hence
it does not need to be publicly visible.
  • Loading branch information...
commit 09972c22dee2287f4ae04daacc7a3f29388af8ce 1 parent d8ebcde
@dotta dotta authored
View
2  org.scala-ide.sdt.core.tests/src/scala/tools/eclipse/TestsSuite.java
@@ -4,7 +4,7 @@
import scala.tools.eclipse.compiler.settings.CompilerSettingsTest;
import scala.tools.eclipse.completion.CompletionTests;
-import scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests;
+import scala.tools.eclipse.hyperlink.HyperlinkDetectorTests;
import scala.tools.eclipse.jcompiler.AbstractMethodVerifierTest;
import scala.tools.eclipse.lexical.ScalaDocumentPartitionerTest;
import scala.tools.eclipse.lexical.ScalaPartitionTokeniserTest;
View
3  ...s/eclipse/hyperlinks/HyperlinkDetectorTests.scala → ...ls/eclipse/hyperlink/HyperlinkDetectorTests.scala
@@ -1,8 +1,7 @@
-package scala.tools.eclipse.hyperlinks
+package scala.tools.eclipse.hyperlink
import scala.tools.eclipse.testsetup.SDTTestUtils
import scala.tools.eclipse.testsetup.TestProjectSetup
-import scala.tools.eclipse.hyperlink.HyperlinksResolver
import scala.tools.eclipse.ScalaWordFinder
import org.eclipse.core.resources.IMarker
View
2  ...la/tools/eclipse/hyperlinks/HyperlinkTester.scala → ...ala/tools/eclipse/hyperlink/HyperlinkTester.scala
@@ -1,4 +1,4 @@
-package scala.tools.eclipse.hyperlinks
+package scala.tools.eclipse.hyperlink
import scala.tools.eclipse.testsetup.TestProjectSetup
import scala.tools.eclipse.hyperlink.HyperlinksResolver
View
2  org.scala-ide.sdt.core.tests/src/scala/tools/eclipse/pc/PresentationCompilerTest.scala
@@ -11,7 +11,7 @@ import org.junit.Assert._
import org.junit._
import org.mockito.Matchers._
import org.mockito.Mockito._
-import scala.tools.eclipse.hyperlinks.HyperlinkTester
+import scala.tools.eclipse.hyperlink.HyperlinkTester
import scala.tools.eclipse.testsetup.CustomAssertion
object PresentationCompilerTest extends testsetup.TestProjectSetup("pc") with CustomAssertion with HyperlinkTester
View
2  org.scala-ide.sdt.core/src/scala/tools/eclipse/hyperlink/HyperlinksResolver.scala
@@ -9,7 +9,7 @@ import scala.tools.eclipse.{ScalaPresentationCompiler => compiler}
import org.eclipse.jface.text.hyperlink.IHyperlink
import org.eclipse.jface.text.IRegion
-class HyperlinksResolver extends HasLogger {
+private[hyperlink] class HyperlinksResolver extends HasLogger {
def findHyperlinks(scu: ScalaCompilationUnit, wordRegion: IRegion): Option[List[IHyperlink]] = {
scu.withSourceFile({ (sourceFile, compiler) =>
if (wordRegion == null || wordRegion.getLength == 0)
Please sign in to comment.
Something went wrong with that request. Please try again.