~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-addins/Samples/TextEditorSWF/TextEditorSWF/ExtensionModel/EditorExtension.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Linq;
 
4
using System.Text;
 
5
using System.Windows.Forms;
 
6
using Mono.Addins;
 
7
 
 
8
namespace TextEditorSWF.ExtensionModel
 
9
{
 
10
        /// <summary>
 
11
        /// Add-ins can create subclasses of EditorExtension to intercept some
 
12
        /// text editor events, such as saving a file, loading, etc.
 
13
        /// </summary>
 
14
        [TypeExtensionPoint]
 
15
        public class EditorExtension
 
16
        {
 
17
                /// <summary>
 
18
                /// Called when the text editor is initialized
 
19
                /// </summary>
 
20
                public virtual void Initialize ()
 
21
                {
 
22
                }
 
23
 
 
24
                /// <summary>
 
25
                /// Called when a file is loaded
 
26
                /// </summary>
 
27
                public virtual void OnLoadFile (string file)
 
28
                {
 
29
                }
 
30
 
 
31
                /// <summary>
 
32
                /// Called when the current file is saved
 
33
                /// </summary>
 
34
                public virtual void OnSaveFile (string file)
 
35
                {
 
36
                }
 
37
 
 
38
                /// <summary>
 
39
                /// Called when a new file is created
 
40
                /// </summary>
 
41
                public virtual void OnCreateFile ()
 
42
                {
 
43
                }
 
44
        }
 
45
}