-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathIInitColumnizerMemory.cs
More file actions
37 lines (33 loc) · 1.48 KB
/
IInitColumnizerMemory.cs
File metadata and controls
37 lines (33 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace ColumnizerLib;
/// <summary>
/// Implement this interface in your columnizer if you need to do some initialization work
/// every time the columnizer is selected.
/// </summary>
/// <remarks>
/// <para>
/// The methods in this interface will be called in the GUI thread. So make sure that there's no
/// heavyweight work to do in your implementations.</para>
/// <para>
/// If a file is reloaded, the current Columnizer is set again. That means that the methods of this
/// interface will be called again. Generally you should do no assumptions about how often the
/// methods will be called. The file is already loaded when the columnizer is set. So
/// you can use the methods in the given callbacks to get informations about the file or to
/// retrieve specific lines.
/// </para>
/// </remarks>
public interface IInitColumnizerMemory
{
#region Public methods
/// <summary>
/// This method is called when the Columnizer is selected as the current columnizer.
/// </summary>
/// <param name="callback">Callback that can be used to retrieve some informations, if needed.</param>
void Selected (ILogLineMemoryColumnizerCallback callback);
/// <summary>
/// This method is called when the Columnizer is de-selected (i.e. when another Columnizer is
/// selected).
/// </summary>
/// <param name="callback">Callback that can be used to retrieve some informations, if needed.</param>
void DeSelected (ILogLineMemoryColumnizerCallback callback);
#endregion
}