<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to you under the Apache License, Version | |
2.0 (the "License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 Unless required by | |
applicable law or agreed to in writing, software distributed under the | |
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
CONDITIONS OF ANY KIND, either express or implied. See the License for | |
the specific language governing permissions and limitations under the | |
License. | |
--> | |
<?eclipse version="3.4"?> | |
<plugin id="empire-db-eclipse-plugin" version="1.0.0" name="Empire-db Eclipse Plugin"> | |
<extension | |
point="org.eclipse.ui.handlers"> | |
<handler | |
class="org.apache.empire.db.eclipse.handler.ConfigDialogHandler" | |
commandId="codegen.commands.configDialogHandler"> | |
</handler> | |
</extension> | |
<extension | |
point="org.eclipse.ui.menus"> | |
<menuContribution | |
locationURI="popup:org.eclipse.jdt.ui.PackageExplorer"> | |
<command | |
commandId="codegen.commands.configDialogHandler" | |
icon="src/main/resources/icons/empire_db_icon.png" | |
id="org.empire.codegen.menus.packageExplorer.configCommand" | |
label="EmpireDB Tool" | |
tooltip=""> | |
<visibleWhen | |
checkEnabled="false"> | |
<with | |
variable="selection"> | |
<iterate | |
ifEmpty="false" | |
operator="or"> | |
<instanceof | |
value="org.eclipse.core.resources.IProject"> | |
</instanceof> | |
</iterate> | |
</with> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
<menuContribution | |
locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu"> | |
<command | |
commandId="codegen.commands.configDialogHandler" | |
icon="src/main/resources/icons/empire_db_icon.png" | |
id="org.empire.codegen.menus.projectExplorer.configCommand" | |
label="EmpireDB Tool" | |
tooltip=""> | |
<visibleWhen | |
checkEnabled="false"> | |
<with | |
variable="selection"> | |
<iterate | |
ifEmpty="false" | |
operator="or"> | |
<instanceof | |
value="org.eclipse.core.resources.IProject"> | |
</instanceof> | |
</iterate> | |
</with> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
</extension> | |
</plugin> |