Permalink
Browse files

Removed dummy files

  • Loading branch information...
mads-hartmann committed Feb 13, 2013
1 parent 9f9ec24 commit 23972c0a22af52a607482ac2ff348a17a68a9288
View
@@ -1,2 +1,3 @@
.cache
target/
+.DS_Store
@@ -1,17 +0,0 @@
-package org.scala.tools.eclipse.search
-
-import org.junit.Test
-import org.junit.Assert._
-import scala.tools.eclipse.testsetup.TestProjectSetup
-
-class SomeInterestingCodeTest extends TestProjectSetup("aProject", bundleName= "org.scala.tools.eclipse.search.tests") {
-
- @Test
- def numberOfTypes() {
- val compilationUnit= scalaCompilationUnit("org/example/ScalaClass.scala")
-
- assertEquals("Wrong number of types", 2, SomeInterestingCode.numberOfTypes(compilationUnit))
-
- }
-
-}
Deleted file not rendered
@@ -1,49 +0,0 @@
-package org.scala.tools.eclipse.search
-
-import org.eclipse.ui.IWorkbenchWindowActionDelegate
-import org.eclipse.jface.action.IAction
-import org.eclipse.jface.viewers.ISelection
-import org.eclipse.ui.IWorkbenchWindow
-import org.eclipse.ui.IFileEditorInput
-import scala.tools.eclipse.ScalaPlugin
-import org.eclipse.core.resources.IFile
-import org.eclipse.jface.dialogs.MessageDialog
-
-class SampleAction extends IWorkbenchWindowActionDelegate {
-
- private var window: IWorkbenchWindow = _
-
- def dispose() {
- }
-
- def init(w: IWorkbenchWindow) {
- window = w
- }
-
- def run(action: IAction) {
- val activeEditor = window.getActivePage.getActiveEditor
- if (activeEditor != null) {
- activeEditor.getEditorInput match {
- case fei: IFileEditorInput =>
- display(fei.getFile)
- }
- }
- }
-
- def selectionChanged(action: IAction, selection: ISelection) {
- }
-
- def display(file: IFile) {
- MessageDialog.openInformation(
- window.getShell(),
- "TestPDE",
- getProjectName(file)
- .map("The Scala project for the current editor is %s".format(_))
- .getOrElse("The current editor is not part of a Scala project"))
- }
-
- def getProjectName(file: IFile): Option[String] = {
- ScalaPlugin.plugin.asScalaProject(file.getProject).map(_.underlying.getName)
- }
-
-}
@@ -1,11 +0,0 @@
-package org.scala.tools.eclipse.search
-
-import scala.tools.eclipse.javaelements.ScalaCompilationUnit
-
-object SomeInterestingCode {
-
- def numberOfTypes(scalaCompilationUnit: ScalaCompilationUnit): Int = {
- scalaCompilationUnit.getCompilationUnit.getAllTypes.length
- }
-
-}

0 comments on commit 23972c0

Please sign in to comment.