diff options
author | François Rey | 2013-05-01 22:33:39 +0000 |
---|---|---|
committer | Robin Stocker | 2013-05-03 14:10:55 +0000 |
commit | dadf0386a08feff68b62bf1a1b506611ec7fce6b (patch) | |
tree | 4c014390e8ee5d92662dfe6494d711725d1c5009 /org.eclipse.egit.mylyn.ui/src/org | |
parent | 0a93dc5de1c889d388a1c9eb5a0b6702ae6c5daf (diff) | |
download | egit-dadf0386a08feff68b62bf1a1b506611ec7fce6b.tar.gz egit-dadf0386a08feff68b62bf1a1b506611ec7fce6b.tar.xz egit-dadf0386a08feff68b62bf1a1b506611ec7fce6b.zip |
Check target of linked resources in action handler isEnabled
The fix provides stronger checks on selected linked resources before
enabling menu items. In particular, linked resources that point to a
file that is part of a project shared with egit are allowed to be
operated on. Otherwise team actions are disabled if the selection
contains a linked resource pointing to a file outside any project and
repository. A default isEnabled() implementation is provided for this
behavior. After adding a test case a couple more handlers have been
amended and made compliant.
Bug: 406922
Change-Id: Id9fd5ea0c31a78b84796638570d214d14cc3c4fd
Signed-off-by: François Rey <eclipse.org@francois.rey.name>
Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.egit.mylyn.ui/src/org')
0 files changed, 0 insertions, 0 deletions