Indroduce GitAction class
commitf40d981911bdc3047dbab7090952a3442293bd14
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Fri, 19 Jan 2007 21:32:37 +0000 (19 22:32 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 20 Jan 2007 02:21:57 +0000 (19 21:21 -0500)
tree749956f371cb707839db5e2f16c879c98d6e44aa
parent74e05fc5fd45e3fab9bd74d288792515aba7c2e9
Indroduce GitAction class

I introduce GitAction as base class for all actions. It allows to
disable the action menu item if the selection does not live in a
Git controlled repository.

The current code is quite "gruik". It is mainly based on copy/paste
from other plugins.

A better solution could be to avoid inserting EGit actions in menus
if the selection does not live in a Git repo. (some plugin.xml hack)

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.core/META-INF/MANIFEST.MF
org.spearce.egit.ui/META-INF/MANIFEST.MF
org.spearce.egit.ui/src/org/spearce/egit/ui/Activator.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/AbstractOperationAction.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CompareWithRevisionAction.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/GitAction.java [new file with mode: 0644]
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/ShowResourceInHistoryAction.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/TeamAction.java [new file with mode: 0644]