Support Mylyn links in History View, Staging View and Commit Dialog

In the history view, staging view and commit dialog commit message
viewers, hook in to registered hyperlink detectors (such as Mylyn task
link detector).

Bug: 399398
Change-Id: Ia315def21fb8d66ed124034a2cb5102069eaf17d
Signed-off-by: Stephen Elsemore <selsemore@collab.net>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Use SWTBot 2.1.0 until hamcrest 1.3 is available in Orbit

Change-Id: I4f729bb7a5e5027b394eab77dded3b7554d41115
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge branch 'stable-3.0'

* stable-3.0:
  Use SWTBot 2.1.0 until hamcrest 1.3 is available in Orbit

Change-Id: I3b8b0cee9434774829019120df7b8483e57efcb4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Update target platform to use Jetty 7.6.11

JGit-Dependency: I76d32444c9cf9f086a013e410a88d37a359272fd
Change-Id: I3f7d43d04dae2b8f7e5d42f25486937646af8732
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Update build to use Tycho 0.18

Change-Id: I4033051e9ffd22b7f6d4b144b4ea85a11037eada
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[stagingView] Fix deletion of files when dragging from Navigator view

In NavigatorDragAdapter, used by the Navigator view, dragFinished
deletes the dragged resources when the operation was DND.DROP_MOVE.

This resulted in the dragged files being deleted when dropping onto the
"Unstaged Changes" or "Staged Changes" in the Staging view.

This was the case even before bug 385412 introduced the possibility to
stage via drag and drop from Package Explorer.

The reason that this bug didn't occur with the Package Explorer is
because it doesn't delete files after DND.DROP_MOVE (which seems like a
more sane behavior).

Bug: 411466
Change-Id: Ibe7891677257d5ff66b7718b728f529134fa5266
Signed-off-by: Robin Stocker <robin@nibor.org>
Ambiguous parameter naming

What GitFileRevision really expects is a path, not a file name. Most
usages of the constructors already passed in a file path... but the
parameter naming led to a number of clients to use a file name, which
creates FileRevisions with no resolvable path. This fixes all
ambiguous parameter names and usages.

Change-Id: Id597d427555f71a6b4f422acb06a1faf26c796bd
Change "Auto" to "Automatically" in preference page

"Auto" itself is not really an adverb.

Change-Id: I2608e602eaf2e6335cb7f9e19a84b8f95e75f52d
Signed-off-by: Robin Stocker <robin@nibor.org>
Remove no longer needed copy of ScmUrlImportDescription

It was only needed for supporting Eclipse older than 3.6.

Change-Id: I147e558652178dee4b00ce8898f50a02851a0544
Signed-off-by: Robin Stocker <robin@nibor.org>
Fix TODO for when we no longer support Eclipse 3.4

Change-Id: I4b4b5637baf2b7074bcb29ecc0737d718c15660a
Signed-off-by: Robin Stocker <robin@nibor.org>
Add comment about replacing own copy when we depend on Eclipse 4.3

Change-Id: I22e6c77922243b9bd63f12235d4bcb13f72d32aa
Signed-off-by: Robin Stocker <robin@nibor.org>
Merge "Fix TODO for when we no longer support Eclipse 3.4"
Fix TODO about IWorkbenchAdapter3 (available in Eclipse 3.7)

Change-Id: Ibf67db31e5c557c83e7bca446c53365d2e2e7c8f
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Remove copy of DialogSettings.getOrCreateSection

We no longer have to support Eclipse 3.5.

Change-Id: Id514cea0614b97b0c910d739d004cd880a2abd1a
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix scheduling rule error when ignoring resources in nested projects

The problem was that IgnoreOperation#calcSchedulingRule and
IgnoreOperation#addIgnore used different methods to get an IContainer
from the IPath. In case of nested projects, this could result in them
getting different IContainers, which lead to an error like "Attempted to
beginRule: /container1, does not match outer scope rule /container2".

To make the test case check the rule, it had to be wrapped in a job.

Bug: 410011
Change-Id: Id03daa1db356b8dbd0b4ad1b07173760b3e1bc75
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Extend labels of sources in Import Projects from Git

"Local" and "URI" are not very clear. E.g. when the user wants to clone
a local repository, the right choice would be "URI", not "Local". So use
"Existing local repository" and "Clone URI" instead.

Change-Id: I7fccffead439c91665d38bde6f49db96d9fe91e6
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Rename ResultDialog_* message keys to PushResultDialog_*

The practice is to name them the same as the class, which helps with
finding them e.g. in test code.

Change-Id: If74c9b2d9d37cd6a20d27c26678269303d02c264
Signed-off-by: Robin Stocker <robin@nibor.org>
[historyView] Follow renames by default

With incremental loading of history and showing the renames in file
diffs, I don't know why we shouldn't turn this on by default. I haven't
had a problem with it.

If it really is bad for performance for some users, they can still turn
it off. But the default should be nice.

Change-Id: Id02ca4329d920dc49bf2fedff4ac474c462cb6c1
Signed-off-by: Robin Stocker <robin@nibor.org>
Fix IllegalArgumentException in CommitMessageViewer

Bug: 412923
Change-Id: Ic920b5c72990c20628d7fa8bf59f8d8444e5b7f6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
EGit v3.0.1.201307141637-r

Change-Id: I5ce25010116e08aad6ae7a0d173f5546c19592ba
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>