| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2018 CEA. |
| 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: |
| CEA - initial API and implementation and/or initial documentation |
| |
| --> |
| <?eclipse version="3.0"?> |
| |
| <plugin> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.sensinact.studio.view.projectexplorer.handler.SnaDeployHandler" |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.GenerationCommand"> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.sensinact.studio.view.projectexplorer.handler.SnaRemoveHandler" |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.StopCommand"> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.sensinact.studio.language.sensinact.ui.handler.GenerationCommand" |
| name="Deploy IoT application"> |
| </command> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.sensinact.studio.language.sensinact.ui.handler.StopCommand" |
| name="Remove IoT application"> |
| </command> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu"> |
| <command |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.GenerationCommand"> |
| <visibleWhen> |
| <with variable="activeMenuSelection"> |
| <iterate |
| ifEmpty="false"> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <test property="org.eclipse.core.resources.name" value="*.sna" /> |
| </adapt> |
| </iterate> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu"> |
| <command |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.StopCommand"> |
| <visibleWhen> |
| <with variable="activeMenuSelection"> |
| <iterate |
| ifEmpty="false"> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <test property="org.eclipse.core.resources.name" value="*.sna" /> |
| </adapt> |
| </iterate> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:#TextEditorContext?after=group.edit"> |
| <command |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.GenerationCommand" |
| style="push"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.sensinact.studio.language.Sensinact.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:#TextEditorContext?after=group.edit"> |
| <command |
| commandId="org.eclipse.sensinact.studio.language.sensinact.ui.handler.StopCommand" |
| style="push"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.sensinact.studio.language.Sensinact.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| </plugin> |