~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to samples/ICSharpCode.Core.Demo/AddInManager/AddInManager.addin

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<AddIn name        = "AddInManager"
 
2
       author      = "Daniel Grunwald"
 
3
       copyright   = "prj:///doc/copyright.txt"
 
4
       description = "Can install, enable, disable and uninstall AddIns">
 
5
        
 
6
        <Manifest>
 
7
                <Identity name = "ICSharpCode.AddInManager"/>
 
8
        </Manifest>
 
9
        
 
10
        <Runtime>
 
11
                <Import assembly = "ICSharpCode.AddInManager.dll">
 
12
                        <ConditionEvaluator name="AddInManagerAddInState" class="ICSharpCode.AddInManager.AddInManagerAddInStateConditionEvaluator"/>
 
13
                </Import>
 
14
        </Runtime>
 
15
        
 
16
        <Path name = "/Workspace/Tools">
 
17
                <MenuItem id = "ShowAddInManager"
 
18
                          label = "${res:AddInManager.Title}"
 
19
                          class = "ICSharpCode.AddInManager.ShowCommand"/>
 
20
        </Path>
 
21
        
 
22
        <Path name = "/SharpDevelop/Workbench/DisplayBindings">
 
23
                <DisplayBinding id    = "AddInManager"
 
24
                                class = "ICSharpCode.AddInManager.AddInInstallBinding"
 
25
                                insertbefore    = "Text"
 
26
                                fileNamePattern = "\.sdaddin$"
 
27
                                languagePattern = "^SDAddInPackageFiles$"/>
 
28
        </Path>
 
29
        
 
30
        <Path name = "/AddIns/AddInManager/ContextMenu">
 
31
                <Condition name="AddInManagerAddInState" states="Enable">
 
32
                        <MenuItem id="Disable"
 
33
                                  label="${res:AddInManager.ActionDisable}"
 
34
                                  class="ICSharpCode.AddInManager.DisableCommand"/>
 
35
                </Condition>
 
36
                <Condition name="AddInManagerAddInState" states="Disable">
 
37
                        <MenuItem id="Enable"
 
38
                                  label="${res:AddInManager.ActionEnable}"
 
39
                                  class="ICSharpCode.AddInManager.EnableCommand"/>
 
40
                </Condition>
 
41
                <Condition name="AddInManagerAddInState" states="Enable,Disable,InstalledTwice,DependencyError">
 
42
                        <MenuItem id="Uninstall"
 
43
                                  label="${res:AddInManager.ActionUninstall}"
 
44
                                  class="ICSharpCode.AddInManager.UninstallCommand"/>
 
45
                </Condition>
 
46
                <Condition name="AddInManagerAddInState" states="Install">
 
47
                        <MenuItem id="AbortInstall"
 
48
                                  label="${res:AddInManager.ActionCancelInstallation}"
 
49
                                  class="ICSharpCode.AddInManager.AbortInstallCommand"/>
 
50
                </Condition>
 
51
                <Condition name="AddInManagerAddInState" states="Uninstall">
 
52
                        <MenuItem id="AbortUninstall"
 
53
                                  label="${res:AddInManager.ActionCancelDeinstallation}"
 
54
                                  class="ICSharpCode.AddInManager.EnableCommand"/>
 
55
                </Condition>
 
56
                <Condition name="AddInManagerAddInState" states="Update">
 
57
                        <MenuItem id="AbortUpdate"
 
58
                                  label="${res:AddInManager.ActionCancelUpdate}"
 
59
                                  class="ICSharpCode.AddInManager.AbortUpdateCommand"/>
 
60
                </Condition>
 
61
                <MenuItem id="Separator1" type="Separator"/>
 
62
                <MenuItem id="GoToHomepage"
 
63
                          label="${res:AddInManager.OpenWebsite}"
 
64
                          class="ICSharpCode.AddInManager.OpenHomepageCommand"
 
65
                          loadclasslazy="false"/>
 
66
                <MenuItem id="Options"
 
67
                          label="${res:AddInManager.Options}"
 
68
                          class="ICSharpCode.AddInManager.OptionsCommand"
 
69
                          loadclasslazy="false"/>
 
70
                <MenuItem id="About"
 
71
                          label="${res:AddInManager.About}"
 
72
                          class="ICSharpCode.AddInManager.AboutCommand"/>
 
73
        </Path>
 
74
</AddIn>