Skip to content

GitPluginBase

Martin Steinisch edited this page Jun 11, 2019 · 4 revisions

GitPluginBase

Properties

public string Description { get; protected set; }

Name of the plugin, as it appears in Git Extensions' Plugins menu.


public string Name { get; protected set; }

Name of the plugin, as it is used in gitextensions.settings file.


public Image Icon { get; protected set; }

Icon of the plugin, as it appears in Git Extensions' Plugins menu.


public ISettingsSource Settings { get; }

TO DO


public IGitPluginSettingsContainer SettingsContainer { get; set; }

TO DO


Methods

public virtual void AddTranslationItems(ITranslation translation);

TO DO


public abstract bool Execute(GitUIEventArgs args);

Is called when the plugin's name is clicked in Git Extensions' Plugins menu.


public virtual IEnumerable<ISetting> GetSettings();

TO DO


public virtual void Register(IGitUICommands gitUiCommands);

Is called when the plugin is loaded. This happens every time when a repository is opened.


public virtual void TranslateItems(ITranslation translation);

TO DO


public virtual void Unregister(IGitUICommands gitUiCommands);

Is called when the plugin is unloaded. This happens every time when a repository is closed through one of the following events:

  1. opening another repository
  2. returning to Dashboard (Repository > Close (go to Dashboard))
  3. closing Git Extensions

protected void SetNameAndDescription(string name);

Sets both the properties name and description to name.


protected void Translate();

TO DO


Clone this wiki locally