Update only working tree message when creating a stash

git stash save only set the working tree message from user input, we
should too.

Change-Id: I83366ddbec8e6166dc410ffde33b4dc5b23ffe6c
Rename Rebase>Skip menu to Rebase->Skip commit and continue

Bug: 403240
Change-Id: I30f6ec704ee39f392bfcd2626d82b3bffce2b60c
NPE when right-clicking the synchronize view with no selection.

Change-Id: Ie883783016b66cf2c6ebe5110d5f35cc0f7d2e39
Signed-off-by: Robin Stocker <robin@nibor.org>
Fix potential NPE if .options doesn't exist

If .options does not exist, getResources will return null rather
than causing an IOException in openStream.

Change-Id: I082d102d5b219be710ec2299e2e552ae0fe8478a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[findbugs] Fix potential NPE in FileDiff

Not likely, but try to handle gracefully if it does happen

Change-Id: If2533df563171ba216f732a40a8ff912617bf8da
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Improve label of index version in compare editors

When opening the compare editor from the staging view for an unstaged
file, the right side shows the Index version.

The problem is that not many people discover that it is in fact editable
(and the way to do partial staging).

This change tries to help a bit by changing the label from

  file.txt Index ()

to

  Index: file.txt (editable)

Index is used as a prefix because the left side is "Local: file.txt".

"(editable)" is not appended in case of non-editable (stage != 0), see
bug 391856.

Bug: 398562
Change-Id: I9940d2f148393b1f4704664e379c5c863565a118
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Use ResourceUtil.getFileForLocation in StagingEntry.getFile

The util method now includes more logic for finding the right one, which
should also apply e.g. for Show In actions.

Additionally, selectionIncludesNonWorkspaceResources in StagingView now
uses StagingEntry.getFile instead of implementing similar but not quite
the same logic.

This fixes some strange behavior with nested projects.

Change-Id: Iff238b7e228044fe027538eefd81700bccef505e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[stagingView] Improve usability of "Replace with" on missing

Only provide one of the equivalent options for a file that has been
deleted. For this to work, we now distinguish between missing MISSING
and MISSING_AND_CHANGED (which has changes in the index). For the latter
we still have to provide both options.

See also I65601162f7ef506ea270933218601322fde1e929 where the same change
was done for modified files.

Change-Id: Id4ff449791e7a911809281bab63f9d3e3d17b5ed
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Move uitext.properties to internal package

I8439adce61515177d36227c844d6284de700964f moved the UIText class to the
internal package. As it's customary to have the .properties in the same
package, also move it there.

Change-Id: I62f77d64c72a4794e61303a60de9fc5b1fdff74a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Add missing @since 3.0 tags

Change-Id: Iad4dcb0ed26c60a947d8ba65b7afe26efd00b481
Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com>
"Remove repositories job" label should not contain "job"

Bug: 402624
Change-Id: Iaed77831231f5be89949a0655f7823d7d5370d57
Signed-off-by: Robin Stocker <robin@nibor.org>
Move CoreText to internal package

See I8439adce61515177d36227c844d6284de700964f where this was already
done for UIText. CoreText is also not API.

Change-Id: Ia15ce778a57f5b28bd7ac976d46658b4f402a718
@since in coretext is not worth it

Change-Id: Ifbf69470198b424944d983cbe8890ff6b0d900d1
Merge "Move CoreText to internal package"
Merge "@since in coretext is not worth it"
Text decorator: Use two spaces to separate it

The project text decorator should use two by default, for better
readability and to be aligned with CVS.

Bug: 359681
Change-Id: I2d538cbd93bf44012ef1fc300ed36322024e442b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Text decorator: Use two spaces to separate it"
pull up #getBranchesOfCommit and #getRepository 

These two methods can be pulled up to AbstractHistoryCommandHandler

Change-Id: I6ef71d0e800142d6b762e7b5b8814e7b716a37be
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
NPE when synchronizing with resources out of the workspace

Bug: 405772
Change-Id: I0b6fede76e74753f4bb19c2308ac6e6df0618077
Local files should remain editable when synchronizing.

We can't wrap WorkspaceFileRevisions within FileRevisionTypedElements
since those are not editable.

Bug: 403363
Change-Id: I2a18495e349b64128166a39533fda8b02109d4dd