Example #1
0
 /// <summary>
 /// Is called when the plugin is loaded. This happens every time when a repository is opened.
 /// </summary>
 public override void Register(IGitUICommands gitUiCommands)
 {
     //OAuth2Handler.RegisterURIHandler();
     currentGitUiCommands = gitUiCommands;;
     currentGitUiCommands.PostSettings       += CurrentGitUiCommands_PostSettings;
     currentGitUiCommands.PostRegisterPlugin += GitUiCommands_PostRegisterPlugin;
     InitializeConfiguredParameters(gitUiCommands.GitModule);
     if (IsGitLabRepo(gitUiCommands))
     {
         base.Register(gitUiCommands);
         GitLabPluginScriptManager.Initialize();
         ForceRefreshGE(gitUiCommands);
     }
     else
     {
         GitLabPluginScriptManager.Clean();
         ForceRefreshGE(gitUiCommands);
     }
 }
Example #2
0
 private void GitUiCommands_PostRegisterPlugin(object sender, GitUIEventArgs e)
 {
     GitLabPluginScriptManager.CleanPluginToolstripMenuItems(e.OwnerForm);
 }
Example #3
0
 public override void Unregister(IGitUICommands gitUiCommands)
 {
     GitLabPluginScriptManager.Clean();
     repoType = null;
 }