1436190 - Test additions & refactoring
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin
4    id="net.sourceforge.phpeclipse.quantum.sql"
5    name="%quantum.name"
6    version="2.4.4"
7    provider-name="The QuantumDB Development Team"
8    class="com.quantum.QuantumPlugin">
9
10    <runtime>
11       <library name="quantum.jar">
12          <export name="*"/>
13       </library>
14    </runtime>
15    <requires>
16       <import plugin="org.eclipse.core.boot"/>
17       <import plugin="org.eclipse.core.runtime"/>
18       <import plugin="org.eclipse.core.resources"/>
19       <import plugin="org.eclipse.swt"/>
20       <import plugin="org.eclipse.ui"/>
21       <import plugin="org.eclipse.ui.ide"/>
22       <import plugin="org.eclipse.jface.text"/>
23       <import plugin="org.eclipse.ui.editors"/>
24       <import plugin="org.eclipse.ui.workbench.texteditor"/>
25       <import plugin="org.eclipse.ui.views"/>
26    </requires>
27
28
29    <extension-point id="metadata" name="Metadata" schema="schema/metadata.exsd"/>
30    <extension-point id="data" name="Data" schema="schema/data.exsd"/>
31
32 <!-- Pop-up Menus -->
33    <extension
34          point="org.eclipse.ui.popupMenus">
35       <objectContribution
36             objectClass="org.eclipse.core.resources.IFile"
37             nameFilter="*.sql"
38             id="com.quantum">
39          <menu
40                label="Quantum"
41                path="additions"
42                id="com.quantum.menu1">
43             <separator
44                   name="group1">
45             </separator>
46          </menu>
47          <action
48                label="Execute Against..."
49                class="com.quantum.actions.ExecuteAgainstAction"
50                menubarPath="com.quantum.menu1/group1"
51                enablesFor="1"
52                id="com.quantum.actions.ExecuteAgainstAction">
53          </action>
54       </objectContribution>
55    </extension>
56 <!--   <extension
57          point="org.eclipse.ui.actionSets">
58       <actionSet
59             label="Execute Query"
60             visible="true"
61             id="com.quantum.actionssets">
62          <action
63                label="Execute Query"
64                icon="icons/play.gif"
65                class="com.quantum.actions.ExecuteAction"
66                tooltip="Execute Query"
67                toolbarPath="quantumGroup"
68                id="com.quantum.actions.ExecuteAction">
69          </action>
70       </actionSet>
71    </extension> -->
72    <extension
73          point="org.eclipse.ui.commands">
74       <category
75             name="%category.name"
76             description="%category.description"
77             id="com.quantum.category">
78       </category>
79       <command
80             name="%command.execute.name"
81             description="%command.execute.description"
82             category="com.quantum.category"
83             id="com.quantum.actions.ExecuteAction">
84       </command>
85       <keyBinding
86             string="Ctrl+Shift+Q"
87             scope="com.quantum.view.sql"
88             command="com.quantum.actions.ExecuteAction"
89             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
90       </keyBinding>
91       <scope
92             name="%scope.name"
93             description="%scope.description"
94             id="com.quantum.view.sql">
95       </scope>
96    </extension>
97 <!-- Perspective -->
98    <extension
99          point="org.eclipse.ui.perspectives">
100       <perspective
101             name="%perspective.name"
102             icon="icons/quantum-ng.gif"
103             class="com.quantum.perspective.DBPerspective"
104             id="com.quantum.dbperspective">
105       </perspective>
106    </extension>
107 <!-- Views -->
108    <extension
109          point="org.eclipse.ui.views">
110       <category
111             name="%category.name"
112             id="com.quantum.views">
113       </category>
114       <view
115             name="%sqllogview.name"
116             icon="icons/log.gif"
117             category="com.quantum.views"
118             class="com.quantum.view.SQLLogView"
119             id="com.quantum.view.logview">
120       </view>
121       <view name="%driverview.name" 
122             icon="icons/driver.gif" 
123             category="com.quantum.views" 
124             class="com.quantum.view.driver.JDBCDriverView" 
125             id="com.quantum.view.JDBCDriverView">
126       </view> 
127       <view
128             name="%tableview.name"
129             icon="icons/table.gif" 
130             category="com.quantum.views"
131             class="com.quantum.view.tableview.TableView"
132             id="com.quantum.view.tableview.TableView">
133       </view>
134       <view
135             name="%bookmarkview.name"
136             icon="icons/bookmarks.gif"
137             category="com.quantum.views"
138             class="com.quantum.view.bookmark.BookmarkView"
139             id="com.quantum.view.bookmarkview">
140       </view>
141       <view
142             name="%subsetview.name"
143             icon="icons/subset.gif"
144             category="com.quantum.views"
145             class="com.quantum.view.subset.SubsetView"
146             id="com.quantum.view.subsetview">
147       </view>
148       <view
149             name="%sqlqueryview.name"
150             icon="icons/script.gif"
151             category="com.quantum.views"
152             class="com.quantum.view.SQLQueryView"
153             id="com.quantum.view.sqlqueryview">
154       </view>
155    </extension>
156 <!-- Editors -->
157    <extension
158          point="org.eclipse.ui.editors">
159       <editor
160             name="Quantum SQL Editor"
161             icon="icons/script.gif"
162             extensions="sql,ddl"
163             contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
164             class="com.quantum.editors.SQLEditor"
165             id="com.quantum.editors.SQLEditor">
166       </editor>
167    <!--   <editor
168             name="Table Data Editor"
169             icon="icons/greentable.gif"
170             class="com.quantum.editors.dataeditor.DataEditor"
171             id="com.quantum.editors.dataeditor.DataEditor">
172       </editor> -->
173    </extension>
174 <!-- Preferences -->
175    <extension
176          point="org.eclipse.ui.preferencePages">
177       <page
178             name="SQL (Quantum DB)"
179             category="net.sourceforge.phpeclipse.ui.preferencePage"
180             class="com.quantum.preferences.GlobalPreferences"
181             id="com.quantum.preferences">
182       </page>
183       <page
184             name="SQL Editor"
185             category="com.quantum.preferences"
186             class="com.quantum.preferences.SQLEditorPreferences"
187             id="com.quantum.preferences.editor">
188       </page>
189    <!--   <page
190             name="Copy"
191             category="com.quantum.preferences"
192             class="com.quantum.preferences.CopyPreferences"
193             id="com.quantum.preferences.copy">
194       </page>
195       <page
196             name="Custom Copy 1"
197             category="com.quantum.preferences.copy"
198             class="com.quantum.preferences.CustomCopyPreferences"
199             id="com.quantum.preferences.customcopy">
200       </page>
201       <page
202             name="Custom Copy 2"
203             category="com.quantum.preferences.copy"
204             class="com.quantum.preferences.CustomCopyPreferences2"
205             id="com.quantum.preferences.customcopy2">
206       </page>
207       <page
208             name="Custom Copy 3"
209             category="com.quantum.preferences.copy"
210             class="com.quantum.preferences.CustomCopyPreferences3"
211             id="com.quantum.preferences.customcopy3">
212       </page> 
213       <page
214             name="PHP Connecting"
215             category="com.quantum.preferences"
216             class="com.quantum.php.preferences.PHPSQLConnectionPreferencePage"
217             id="com.quantum.php.preferences.PHPSQLConnectionPreferencePage">
218       </page> -->
219       <page
220             name="PHP SQL Templates"
221             category="com.quantum.preferences"
222             class="com.quantum.php.preferences.PHPSQLTemplatesPreferencePage"
223             id="com.quantum.php.preferences.PHPSQLTemplatesPreferencePage">
224       </page>
225    </extension>
226 <!-- Menu for Bookmark View -->
227    <extension
228          point="org.eclipse.ui.viewActions">
229       <viewContribution
230             targetID="com.quantum.view.bookmarkview"
231             id="com.quantum.view.bookmarkview.menu">
232 <!-- Export Bookmarks -->
233          <action
234                label="%bookmarkview.exportbookmarks"
235                icon="icons/export.gif"
236                tooltip="Exports bookmarks to a file"
237                class="com.quantum.actions.ExportBookmarksAction"
238                menubarPath="additions"
239                id="com.quantum.action.importbookmarks">
240          </action>
241 <!-- Import Bookmarks -->
242          <action
243                label="%bookmarkview.importboomarks "
244                icon="icons/import.gif"
245                tooltip="Imports bookmarks from a file"
246                class="com.quantum.actions.ImportBookmarksAction"
247                menubarPath="additions"
248                id="com.quantum.action.importbookmarks">
249          </action>
250       </viewContribution>
251    </extension>
252    <extension
253          point="org.eclipse.ui.perspectiveExtensions">
254       <perspectiveExtension
255             targetID="org.eclipse.ui.resourcePerspective">
256       </perspectiveExtension>
257    </extension>
258 <!-- Property Pages -->
259    <extension
260          point="org.eclipse.ui.propertyPages">
261       <page
262             objectClass="com.quantum.view.bookmark.TreeNode"
263             name="Database"
264             nameFilter="*"
265             class="com.quantum.properties.DatabaseInformationPropertyPage"
266             id="com.quantum.properties.DatabaseInformationPropertyPage">
267       </page>
268       <page
269             objectClass="com.quantum.view.bookmark.TreeNode"
270             name="Data Types"
271             nameFilter="*"
272             class="com.quantum.properties.DataTypesPropertyPage"
273             id="com.quantum.properties.DataTypesPropertyPage">
274       </page>
275       <page
276             objectClass="com.quantum.view.bookmark.BookmarkNode"
277             name="Bookmark"
278             nameFilter="*"
279             class="com.quantum.properties.BookmarkPropertyPage"
280             id="com.quantum.properties.BookmarkPropertyPage">
281       </page>
282       <page
283             objectClass="com.quantum.view.bookmark.BookmarkNode"
284             name="Schemas"
285             nameFilter="*"
286             class="com.quantum.properties.SchemaPropertyPage"
287             id="com.quantum.properties.SchemaPropertyPage">
288       </page>
289       <page
290             objectClass="com.quantum.model.EntityHolder"
291             name="Columns"
292             nameFilter="*"
293             class="com.quantum.properties.ColumnPropertyPage"
294             id="com.quantum.properties.ColumnPropertyPage">
295       </page>
296       <page
297             objectClass="com.quantum.model.EntityHolder"
298             name="Indices"
299             nameFilter="*"
300             class="com.quantum.properties.IndexPropertyPage"
301             id="com.quantum.properties.IndexPropertyPage">
302       </page>
303       <page
304             objectClass="com.quantum.model.EntityHolder"
305             name="References"
306             nameFilter="*"
307             class="com.quantum.properties.ReferencesPropertyPage"
308             id="com.quantum.properties.ReferencesPropertyPage">
309       </page>
310    </extension>
311    <extension
312          point="org.eclipse.ui.exportWizards">
313       <wizard
314             name="Export to Quantum Bookmark File"
315             icon="./icons/bookmarkfile.gif"
316             class="com.quantum.wizards.ExportBookmarkWizard"
317             id="com.quantum.wizards.ExportBookmarkWizard">
318          <description>
319             A wizard that exports the list of database bookmarks to a Quantum bookmark file.
320          </description>
321       </wizard>
322  <!--     <wizard
323             name="Export to Torque Configuration File"
324             icon="./icons/torque.gif"
325             class="com.quantum.wizards.ExportTorqueWizard"
326             id="com.quantum.wizards.ExportTorqueWizard">
327          <description>
328             A wizard that exports the database structure to a Torque-compatible XML file.
329          </description>
330          <selection
331                class="com.quantum.view.bookmark.BookmarkNode">
332          </selection>
333       </wizard> -->
334    </extension>
335    <extension
336          point="org.eclipse.help.toc">
337       <toc
338             file="doc/toc.xml"
339             primary="true">
340       </toc>
341    </extension>
342
343 </plugin>