Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d3f645f0e371da5836012168812f398d5df3545c (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
    Copyright (c) 2018 Remain Software

    This program and the accompanying materials
    are made available under the terms of the Eclipse Public License 2.0
    which accompanies this distribution, and is available at
    https://www.eclipse.org/legal/epl-2.0/

    SPDX-License-Identifier: EPL-2.0
   
    Contributors:
        wim.jongman@remainsoftware.com - initial API and implementation
 -->

<plugin>
   <extension
         point="org.eclipse.ui.startup">
      <startup
            class="org.eclipse.tips.ide.internal.Startup">
      </startup>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.tips.ide.internal.TipsHandler"
            id="org.eclipse.tips.ide.command.open"
            name="%command.name">
      </command>
      <command
            id="org.eclipse.tips.ide.command.trim.open"
            name="%command.name.0">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="menu:help?before=tipsAndTricks">
         <command
               commandId="org.eclipse.tips.ide.command.open"
               icon="platform:/plugin/org.eclipse.tips.ui/icons/lightbulb.png"
               id="org.eclipse.tips.ide.tip.menu"
               label="%command.label"
               style="push"> variable="newtips">
         </command>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.ui.trim.status">
         <toolbar
               id="org.eclipse.tips.ide.toolbar.status"
               label="%toolbar.label">
            <command
                  commandId="org.eclipse.tips.ide.command.trim.open"
                  icon="platform:/plugin/org.eclipse.tips.ui/icons/lightbulb.png"
                  id="org.eclipse.tips.ide.tip.tool"
                  label="%command.label.0"
                  style="push">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="newtips">
                     <equals
                           value="true">
                     </equals>
                  </with>
               </visibleWhen>
            </command>
         </toolbar>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.tips.ide.internal.TipsHandler"
            commandId="org.eclipse.tips.ide.command.trim.open">
         <activeWhen>
            <with
                  variable="newtips">
               <equals
                     value="true">
               </equals>
            </with>
         </activeWhen>
      </handler>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.eclipse.tips.ide.internal.TipsPreferences">
      </initializer>
   </extension>
   <extension
         point="org.eclipse.tips.core.tips">
      <provider
            class="org.eclipse.tips.ide.internal.provider.TipsTipProvider"
            description="Tips about Tips"
            id="org.eclipse.tips.ide.internal.provider.TipsTipProvider">
      </provider>
            <provider
            class="org.eclipse.tips.ide.internal.provider.TwitterTipProvider"
            description="Eclipse IDE Twitter Tip Collection"
            id="org.eclipse.tips.ide.internal.provider.TwitterTipProvider">
            <enablement>
            <with
                  variable="activeWorkbenchWindow.activePerspective">
               <equals
                     value="org.eclipse.jdt.ui.JavaPerspective">
               </equals>
            </with>
         </enablement>
      </provider>
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <e4view
            category="org.eclipse.help.ui"
            class="org.eclipse.tips.ide.internal.TipPart"
            icon="platform:/plugin/org.eclipse.tips.ui/icons/lightbulb.png"
            id="org.eclipse.tips.ide.tipPart"
            name="%e4view.name"
            restorable="true">
      </e4view>
   </extension>
</plugin>

Back to the top