Fix NPE in GitResourceVariantTreeSubscriber.roots()

Bug: 451476
Change-Id: Iaf5e020a2762cb818eece8133b374d0158737465
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[rebaseView] Prevent SWTException if tree is disposed

Bug: 451754
Change-Id: I41792361688dbad31d0b68021724e0909aa3615e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Change feature name of mylyn feature to simplify finding it

If "Group itemy by category" is unchecked in the p2 installation and
update UI this makes it easier to spot the EGit related features since
they will be shown close to each other in this view which is sorted
alphabetically by default.

See: https://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg11275.html
Change-Id: I9c87f122d199871bb44fab2cc068003fcb613346
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix broken link to squash icon used in commandImages extension

We have a new png squash icon so use it to fix broken link to the old
gif icon which was deleted.

Change-Id: I1b0c626094ac4df1de4a14605dc74a059d7922d1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Fix broken link to squash icon used in commandImages extension"
Merge "Fix NPE in GitResourceVariantTreeSubscriber.roots()"
Merge "[rebaseView] Prevent SWTException if tree is disposed"
Merge "Change feature name of mylyn feature to simplify finding it"
[repoView] Fix ClassCastException on add to index on folder

The following steps lead to a ClassCastException
- select a folder in git repositories view which contains some dirty
  file
- click "Add to index" on this folder in the repositories view

Bug: 447611
Change-Id: Ic902775b12c65177131e7f5d10291bb6a5cd83f8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[historyView] Fix cancel with Modify > Edit and uncommitted changes

When the user pressed "Cancel" on the uncommitted changes dialog, the
history EditHandler would still open the staging and interactive rebase
views.

Bug: 451817
Change-Id: I349e8a05cfaa4926916159ad6861f22807f5da71
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix missing trailing newline with "Create Patch"

The resulting patches didn't work with "git apply" because the trailing
newline was missing. Adding it makes it work, and it also still works
with Eclipse's "Apply Patch".

Just removing the line with "trim newline" at the end wasn't enough,
because the ByteArrayOutputStream was only overriding one of the write
methods (not the one with just one char). So the last newline was never
added to the StringBuilder. Replace it with a more straightforward
implementation.

Bug: 406134
Change-Id: If736ab3bc5972908a464212a29de8311b32e2718
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix icon representing commit object in "Push Branch..." wizard

The COMMIT icon is for the action, whereas in the dialog we want the
object. In other places, CHANGESET is used for that.

Change-Id: I6137f60c7c33592b7202e2d84388e749bb63e3ca
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Storages should override equals

The use of storages in sets does not work since the equals has not been
overriden.

Change-Id: I25fa8a318bcd28dd8484f1386d7a33e57cffd3fd
Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
Delete .eclipse_iplog

We don't use this file anymore since a long time since IP log
generation has been automated at the Eclipse foundation.

Change-Id: Ifcf708f4a22b55ed8146caa73c4822ce1803e2b7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Update Tycho to 0.21

Change-Id: I2232142ee84a4fa75bab08fe3b5fac7a6b66e823
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Storages should override equals"
Introduce context menu "import changed projects"

The context menu action "import changed projects" analyzes the files of
the commit and is importing the matching projects. This is a handy
feature for very large repositories with lots of projects where it is
impossible to import all projects. Import only the relevant projects
needed for the selected change/commit.

Change-Id: I55aac6258659d61088e9abdafe95f5a4a6a6fe63
Signed-off-by: Tobias Melcher <tobias.melcher@sap.com>
Signed-off-by: Felix Otto <felix.otto@sap.com>
Signed-off-by: Thomas Schulze zur Wiesch <thomas.schulze.zur.wiesch@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix target platform names

The target names of the 4.5 target definitions seem to not have been
adapted when copying the target files from 4.4 initially.

This can be very confusing when using the PDE option to show the target
name in the status bar.

Change-Id: Iaca415419ec091904e894613ed011d29e2967d10
Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
Use baseline instead of centerline in PlotRenderer

If the text extent height of a to be rendered plot line is odd, then the
SWTPlotRenderer cannot calculate the correct Y position for drawing the
label and draws the label with a 1 pixel offset. SWT text drawing uses
the baseline as Y coordinate. Due to the given centerline API in the
AbstractPlotRenderer the overall calculation of the baseline for SWT is
effectively (height / 2) * 2, thereby rounding all odd heights downward
to the next even number.

This change pushes the division by 2 from the caller into the
implementations of drawText.

In addition, enabling antialiasing has been moved from the
SWTPlotRenderer to the CommitGraphTable itself. Otherwise the cell label
heights are calculated different (1 pixel more height with antialiasing
enabled) in the middle of painting a row. This issue seems to be
specific to Windows.

Changes have been tested on Ubuntu14.10/GTK and Windows 7.

Bug: 450813
JGit-Dependency: I66f4e71873bb8e6f936fde573bbe4c35fe23a022
Change-Id: Iae782a8554bde6f812b0d8b374e70dc80cb46db6
Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Have current link in "What's New" of Welcome Page

The What's new section of Git was still pointing to the 0.10 release
news. By having it point to the what's new wiki page without a version
number, it will not get stale anymore.

Change-Id: I2efa7caf09cbca16ca0b7a56196cad684463224a
Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>