Harden asInstanceOfOpt to be robust for nulls or reflection crashes.
Reverts logic for unloading units in askLoadedType

The loagic for handling loading/unloading of units in `askLoadedType` was moved
in the compiler side. See https://github.com/scala/scala/pull/3209.  (Also,
mind that this commit should be merged together with the previously linked
scala PR).

This reverts most of the changes made in SHA:
43f8f2bdf4bd99cc85da7f54a0f374be737d4b2f

Re #1001388
Don't create a reconciler for non-editor source configurations.

In the Syntax Coloring preview pane we create a source viewer without an
editor. The reconciler needs an editor to get to the compilation unit, so
we don't attach a reconciler in this case (there won't be any editing).

We might need to revisit this if we ever want to use a source viewer outside
an editor (with reconciliation capabilities).
Merge pull request #594 from dotta/issue/ask-loaded-type

Reverts logic for unloading units in askLoadedType
Merge pull request #596 from dragos/issue/fix-quiescence-syntax-coloring-window-crash

Fix syntax coloring window crash
Unused member warning doesn't highlight whole definition anymore

This change can only be seen when the `-Xlint` setting is set. The
warning about unused members is introduced for SI-440.

Previously, the whole definition is highlighted by an unused member
warning, which was very annoying. The new behavior only highlights their
names.

The fix will also affect any other error message that highlights a whole
expression or definition.

No tests included because I have no idea on how to test the behavior.
Only some manual tests were done:

    class MyClass {
      private def hello(i: Int) = { // <--
        println(i)
        i
      }

      private val abc = { // <--
        0
      }

      def ghi = {
        val abc = { // <--
          0
        }
        5
      }

      private class Xros { // <--
        val xxx = 0
      }
    }

Fixes #1001983
Merge pull request #591 from sschaef/t1001983-fix-pos-of-unused-member-warning

Unused member warning doesn't highlight whole definition anymore
Lets the sdt.core pom.xml copy scala-reflect from the m2repo to the target folder

Fixes #1001987
Merge pull request #601 from huitseeker/issue/1001987

Lets the sdt.core pom.xml copy scala-reflect from the m2repo to the target folder
remove wildcard eol=lf from gitattributes
Catch up with Scala Library Modularization.

Split the dependencies along the scala-2.10.x and scala-2.11.x profiles.
The goal is to evolve the 2.11 module structure to get a leaner set of
dependencies on Scala Core, with a separate Scala Modules container.

Support the 2.11 swing/continuations modules:
Rename `continuations.jar` to `scala-continuations-plugin.jar`.
In 2.10 this was called `continuations.jar`,
in 2.11 it's `scala-continuations-plugin_2.11.jar`, and the library part
is distributed separately, so add that to the Scala container.

TODO: add scala-xml and scala-parser-combinators to the scala container and to the repl classpath

(These dependencies should move to the Scala Modules container eventually.)

Fix the outputDirectory-es of scala-(refactoring|swing)

Plugin goes to lib/. Long live XML copy-paste reuse.
Merge pull request #604 from adriaanm/modularize

Catch up with Scala Library Modularization.
Don't skip trees with transparent positions when looking for references

Trees with a transparent position may contain trees with range
positions, hence we should make sure to:

1) Traverse tree with a transparent position, and
2) Only call `report` on tree that have an opaque range position.

This is a bug that was made apparent by the changes needed to fix the
Scala compiler ticket SI-4287.
Merge pull request #606 from dotta/issue/si-4287

Don't skip trees with transparent positions when looking for references
Workaround for race condition during source indexing

Initialize the `TupleClass` symbol to prevent the presentation compiler
assertion that checks thread confinement to fail on parse trees, as
demonstrated by Re #1001986. This is a workaround for scalac ticket SI-8030.

Also, calling now `fullyInitializeSymbol` instead of `initialize`, because
the former takes care of initializing also module symbols.