-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed save disabled message keys, added OokiiMessageService, implemen…
…ted OnDocumentTabClosed (TODO save+notify)
- Loading branch information
1 parent
f9c3ec4
commit c7ea5f0
Showing
18 changed files
with
706 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Microsoft.Extensions.Logging; | ||
using Rubberduck.UI.Command.SharedHandlers; | ||
using System; | ||
|
||
namespace Rubberduck.UI.Shared.Message | ||
{ | ||
public interface IMessageService | ||
{ | ||
/// <summary> | ||
/// Displays a message to the user, requesting an action. | ||
/// </summary> | ||
/// <returns> | ||
/// <c>MessageActionResult.Disabled</c> if the model key is disabled. | ||
/// </returns> | ||
MessageActionResult ShowMessageRequest(MessageRequestModel model, Func<MessageActionsProvider, MessageActionCommand[]>? actions = null); | ||
|
||
/// <summary> | ||
/// Displays a message to the user. | ||
/// </summary> | ||
/// <returns> | ||
/// <c>MessageActionResult.Disabled</c> if the model key is disabled. | ||
/// </returns> | ||
MessageActionResult ShowMessage(MessageModel model, Func<MessageActionsProvider, MessageActionCommand[]>? actions = null); | ||
|
||
/// <summary> | ||
/// Displays user-facing exception error message, including the stack trace. | ||
/// </summary> | ||
/// <remarks> | ||
/// If the specified key does not exist in <c>RubberduckUI</c> resource strings, the <c>LogLevel</c> is used as a title. | ||
/// </remarks> | ||
/// <param name="key">The resource key for the message. Used for tracking whether or not this message should be shown.</param> | ||
/// <param name="exception">The exception to display details about.</param> | ||
/// <param name="level">Specify a 'level' that the implementation may use to display a corresponding icon.</param> | ||
void ShowError(string key, Exception exception, LogLevel level = LogLevel.Error); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.