-
-
Notifications
You must be signed in to change notification settings - Fork 9
GitPluginBase
Name of the plugin, as it appears in Git Extensions' Plugins
menu.
Name of the plugin, as it is used in gitextensions.settings
file.
Icon of the plugin, as it appears in Git Extensions' Plugins
menu.
Setting source that is used to read the values stored.
It must be passed to the ValueOrDefault()
method of a ISetting
instance to get the value of the setting.
ex: var isEnabled = _enabledSettings.ValueOrDefault(Settings);
For internal use. Should normally not be used.
For internal use. Should normally not be used.
Is called when the plugin's name is clicked in Git Extensions' Plugins
menu.
Must return true
if the revision grid should be refreshed after the execution of the plugin. false
, otherwise.
Help: You could call args.GitUICommands.StartSettingsDialog(this);
in this method to open the setting page of the plugin.
This is where you define the plugin setting page displayed in Git Extensions settings and that allows the user to configure the plugin settings.
You should return a collection of ISetting
instances that could be of types:
-
BoolSetting
to store a boolean (display a Checkbox control), -
StringSetting
to store a string (display a TextBox control), -
NumberSetting
to store a number (display a TextBox control), -
ChoiceSetting
to propose choices and store a string (display a ComboBox control), -
PasswordSetting
to store a password (display a password TextBox control), -
CredentialsSetting
to store a login and a password (display a login and a password fields),
See an example
Is called when the plugin is loaded. This happens every time when a repository is opened.
For internal use. Should normally not be used.
Is called when the plugin is unloaded. This happens every time when a repository is closed through one of the following events:
- opening another repository
- returning to Dashboard (
Repository
>Close (go to Dashboard)
) - closing Git Extensions
Sets both the properties name and description to name
.
Translate the plugin strings. Should be called in the constructor of the plugin.