<?xml version="1.0" encoding="UTF-8"?> | |
<?eclipse version="3.4"?> | |
<!-- | |
Copyright (c) 2009, 2010 Mia-Software. | |
All rights reserved. This program and the accompanying materials | |
are made available under the terms of the Eclipse Public License v1.0 | |
which accompanies this distribution, and is available at | |
http://www.eclipse.org/legal/epl-v10.html | |
Contributors: | |
Gregoire DUPE (Mia-Software) - initial API and implementation | |
Nicolas Bros (Mia-Software) | |
--> | |
<plugin> | |
<extension-point id="queryResultDisplay" name="%extension-point.name" schema="schema/queryResultDisplay.exsd"/> | |
<extension | |
point="org.eclipse.ui.views"> | |
<category | |
id="org.eclipse.gmt.modisco" | |
name="%category.name"> | |
</category> | |
<view | |
category="org.eclipse.gmt.modisco" | |
class="org.eclipse.gmt.modisco.infra.query.ui.views.ModelQueryView" | |
icon="icons/ModelQuerySet.gif" | |
id="org.eclipse.gmt.modisco.infra.query.ui.catalogView" | |
name="%catalogView.name" | |
restorable="true"> | |
</view> | |
<view | |
category="org.eclipse.gmt.modisco" | |
class="org.eclipse.gmt.modisco.infra.query.ui.views.queryExecution.internal.QueryExecutionView" | |
icon="icons/queryRun.png" | |
id="org.eclipse.gmt.modisco.infra.query.ui.queryExecutionView" | |
name="%queryExecutionView.name" | |
restorable="true"> | |
</view> | |
</extension> | |
<extension | |
point="org.eclipse.ui.commands"> | |
<command | |
description="%executeQuery.command.description" | |
id="org.eclipse.gmt.modisco.infra.query.ui.commands.executeQueryCommand" | |
name="%executeQuery.command.name"> | |
</command> | |
</extension> | |
<extension | |
point="org.eclipse.ui.handlers"> | |
<handler | |
class="org.eclipse.gmt.modisco.infra.query.ui.handlers.ExecuteQueryHandler" | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.executeQueryCommand"> | |
<enabledWhen> | |
<with | |
variable="selection"> | |
<iterate | |
ifEmpty="false" | |
operator="and"> | |
<instanceof | |
value="org.eclipse.emf.ecore.EObject"> | |
</instanceof> | |
<test | |
forcePluginActivation="true" | |
property="org.eclipse.gmt.modisco.infra.query.core.isMoDiscoQuery" | |
value="false"> | |
</test> | |
<test | |
forcePluginActivation="true" | |
property="org.eclipse.gmt.modisco.infra.query.core.isMoDiscoQuerySet" | |
value="false"> | |
</test> | |
</iterate> | |
</with> | |
</enabledWhen> | |
</handler> | |
</extension> | |
<extension | |
point="org.eclipse.ui.menus"> | |
<menuContribution | |
allPopups="true" | |
locationURI="popup:org.eclipse.ui.popup.any"> | |
<command | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.executeQueryCommand" | |
label="%executeQuery.command.label" | |
style="push"> | |
<visibleWhen | |
checkEnabled="true"> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
</extension> | |
<extension | |
point="org.eclipse.ui.commands"> | |
<command | |
description="%createJavaQueryClass.command.description" | |
id="org.eclipse.gmt.modisco.infra.query.ui.commands.createJavaQueryClassCommand" | |
name="%createJavaQueryClass.command.name"> | |
</command> | |
</extension> | |
<extension | |
point="org.eclipse.ui.handlers"> | |
<handler | |
class="org.eclipse.gmt.modisco.infra.query.ui.handlers.CreateJavaQueryClassHandler" | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.createJavaQueryClassCommand"> | |
<enabledWhen> | |
<with | |
variable="selection"> | |
<iterate | |
ifEmpty="false" | |
operator="and"> | |
<instanceof | |
value="org.eclipse.gmt.modisco.infra.query.JavaModelQuery"> | |
</instanceof> | |
<test | |
forcePluginActivation="true" | |
property="org.eclipse.gmt.modisco.infra.query.core.isWorkspaceQuery" | |
value="true"> | |
</test> | |
</iterate> | |
</with> | |
</enabledWhen> | |
</handler> | |
</extension> | |
<extension | |
point="org.eclipse.ui.menus"> | |
<menuContribution | |
allPopups="false" | |
locationURI="popup:org.eclipse.ui.popup.any"> | |
<command | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.createJavaQueryClassCommand" | |
label="%createJavaQueryClass.command.label" | |
style="push"> | |
<visibleWhen | |
checkEnabled="true"> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
</extension> | |
<extension | |
point="org.eclipse.ui.commands"> | |
<command | |
description="%createQuery.command.description" | |
id="org.eclipse.gmt.modisco.infra.query.ui.commands.createQueryCommand" | |
name="%createQuery.command.name"> | |
</command> | |
</extension> | |
<extension | |
point="org.eclipse.ui.handlers"> | |
<handler | |
class="org.eclipse.gmt.modisco.infra.query.ui.handlers.CreateQueryHandler" | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.createQueryCommand"> | |
<enabledWhen> | |
<with | |
variable="selection"> | |
<iterate | |
ifEmpty="false" | |
operator="and"> | |
<instanceof | |
value="org.eclipse.emf.ecore.EObject"> | |
</instanceof> | |
<test | |
forcePluginActivation="true" | |
property="org.eclipse.gmt.modisco.infra.query.core.isMoDiscoQuery" | |
value="false"> | |
</test> | |
<test | |
forcePluginActivation="true" | |
property="org.eclipse.gmt.modisco.infra.query.core.isWorkspaceQuerySet" | |
value="true"> | |
</test> | |
</iterate> | |
</with> | |
</enabledWhen> | |
</handler> | |
</extension> | |
<extension | |
point="org.eclipse.ui.menus"> | |
<menuContribution | |
allPopups="false" | |
locationURI="popup:org.eclipse.ui.popup.any"> | |
<command | |
commandId="org.eclipse.gmt.modisco.infra.query.ui.commands.createQueryCommand" | |
label="%createQuery.command.label" | |
style="push"> | |
<visibleWhen | |
checkEnabled="true"> | |
</visibleWhen> | |
</command> | |
</menuContribution> | |
</extension> | |
</plugin> |