[INTERNAL] cleaned up EditorAPI

Removed dead methods, changed thread access.

Change-Id: Ib2175bd2ff0d65353e766a3cbbe3a6cf7da7ed4d
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1827
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[BUILD|NOP] test ChangeMerged trigger

Change-Id: Ia2f7ebb469ea357e7ca8015e7dfcbe82453f591d
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1830
Tested-by: Jenkins CI
Reviewed-by: Arsenij Solovjev <xeper000@gmail.com>
Revert "[BUILD|NOP] test ChangeMerged trigger"

This reverts commit d0ed4ea99b71d4aa4234607473788e4cc67bf27f.

Change-Id: I24679e578eaa001a068d739ccaeb002101508a35
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1831
Tested-by: Jenkins CI
Reviewed-by: Franz Zieris <zieris@inf.fu-berlin.de>
Reviewed-by: Arsenij Solovjev <xeper000@gmail.com>
[API] Added EditorManager and associated classes

Change-Id: Ia87670c8d54fcb73b3020651b3be88389b8a6b16
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1817
Tested-by: Jenkins CI
Reviewed-by: Holger Schmeisky <google@schmeisky.com>
[INTERNAL] cleaned up EditorPool

Pulled methods from EditorAPI into the EditorPool. Changed
LOG statements. Removed unused methods. Completed TODOs and
removed the ISarosSession parameters as the checks are already done
in the EditorManager before the methods are called.

Change-Id: I9508ac4fe24aa28525f6fc00b0dd80e740502aa2
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1828
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] EditorManager init. is now executed in EDT

Most parts of the initialization logic was not executed in the EDT.
This patch ensured that the logic is executed in the EDT.

Change-Id: I315202aa7042bf996a68f0695e59a3afe669af36
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1847
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] cleaned up EditorPartListener

Made fields private and final, removed no needed null checks and
put the class Javadoc to the right place.

Change-Id: Icfd7f42a4fead23cedb2bb3b23260606703250d2
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1848
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] removed session reference from DirtyStateListener

The logic already keeps track when to install such a listener. There is
no need to check it again.

Change-Id: Id14f8f5209f88a97ec6eab9c42b40003fd19de1c
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1849
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] cleaned up SharedDocumentProvider

Made fields private, overworked class Javadoc, removed useless
method overrides and added instance of checks. In addition this class
should now be thread safe.


Change-Id: I6ee770aaa211629ffd0905e3e95e0de17b42a5b3
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1850
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] moved document listeners

Moved the document listeners from the EditorManager to
EditorPool class.

Change-Id: I1587deb3afafce021fc56ba642e722bf303e357e
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1851
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] moved static methods from EditorManager

Put those two methods into the IEditorAPI interface.

Change-Id: Ia542edaf5f4c4d533cde1424dfe4b75ae21f8dbc
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1853
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[LOG] updated log statements in EditorManager

Change-Id: Id373666343ea450dd2ef05d73ebe74e2b2e6eeb8
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1854
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] fixed NPE due to race condition

The EditorManager is initialized after the session components are
initialized. As a result the ConsistencyWatchdogServer was already
calling getRemoteOpenEditors() which lead to a NPE because the
remoteEditorManager variable was still null.

Change-Id: I9ca050090069cb6d935bb2c7fc46df616804ee40
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1855
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] removed watchdog check from SharedResourcesManager

This check does nothing. The reason is simple. The checksum activity
that is needed to perform the check is:

1. still in the execution queue
2. upon executing the checksum activity the perform check method is
triggered automatically

Change-Id: Idc5436a24a00ec46cfb6662e939b2412ada7e88e
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1856
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] cleaned up ConsistencyWatchdogClient

Made fields private and final, rearranged variable locations (put them
to the top) and removed a dead method. In addition added proper
synchronization.

Change-Id: I70f849c4716d436b39ffdc361d2dd0343bafa4c1
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1857
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[API] Added core.net.business package with CancelHandlers

Cleaned up InvitationHandler.java to not use SarosSessionObservable.

Change-Id: Idf6643885e402cdce1d511628d40d9197c68f4bc
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1846
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
Reviewed-by: Holger Schmeisky <google@schmeisky.com>
[INTERNAL] cleaned up EditorManager

Removed dead methods, removed useless this pointers, and deprecated
getRemoteManager method as it will be soon removed.

Change-Id: I412d9c96899eeb906c9f37f29036bb66f04d8e22
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1858
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[UI] display the session nickname in session chat

To be more consistent with the rest of the UI the session chat now
displays the session nicknames instead of the XMPP nicknames.

The behavior for 1-1 chats is not changed by this patch and will still
display the XMPP nicknames inside those chats.

Change-Id: Ia2577405c1c7626bd3de6369e87ee03cbe0e9f21
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1859
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[INTERNAL] cleaned up ConsistencyWatchdogHandler

Made fields and methods private and final. Removed dead variables,
renamed variables, and replaced SubMonitor class with IProgressMonitor
interface in method signatures.

Change-Id: Ib3f5f8a02abefaaa2915cf8a8d32e4c88c834816
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1880
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>
[API] Added IntelliJSynchronizer

Change-Id: I538f547654f767869919759f1c9a277cf8618816
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1883
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <srossbach@arcor.de>