blob: aac0298512d6b5edc5a59b67433600ad3188e1a8 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
Copyright (c) 2013, 2015 Eike Stepper (Loehne, Germany) and others.
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:
Christian W. Damus (CEA LIST) - initial API and implementation
-->
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="org.eclipse.emf.cdo.security.internal.ui.editor.CDOSecurityFormEditor"
contributorClass="org.eclipse.emf.cdo.security.internal.ui.editor.CDOSecurityFormActionBarContributor"
default="false"
icon="icons/full/obj16/SecurityRealmResource.png"
id="org.eclipse.emf.cdo.security.ui.CDOSecurityFormEditor"
name="%editor.name">
</editor>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
id="org.eclipse.emf.cdo.security.ui.ResetPasswordCommand"
commandId="org.eclipse.emf.cdo.security.ui.resetPassword"
label="%action.label"
tooltip="%action.tooltip"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeMenuSelection">
<count
value="1">
</count>
<iterate >
<adapt
type="org.eclipse.emf.cdo.security.User">
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="org.eclipse.emf.cdo.security.ui.openEditor"
icon="$nl$/icons/full/ctool16/ManageSecurity.png"
label="%action.label.1"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeMenuSelection">
<count
value="1">
</count>
<iterate >
<or>
<adapt
type="org.eclipse.emf.cdo.session.CDOSession">
<test property="org.eclipse.emf.cdo.session.userAuthenticated" />
</adapt>
<adapt
type="org.eclipse.emf.cdo.admin.CDOAdminClientRepository">
</adapt>
</or>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="org.eclipse.emf.cdo.security.ui.management"
name="%category.name">
</category>
<command
id="org.eclipse.emf.cdo.security.ui.resetPassword"
categoryId="org.eclipse.emf.cdo.security.ui.management"
name="%command.name"
description="%command.description"
defaultHandler="org.eclipse.emf.cdo.security.internal.ui.handlers.ResetPasswordHandler">
</command>
<command
id="org.eclipse.emf.cdo.security.ui.openEditor"
name="%action.label.1"
categoryId="org.eclipse.emf.cdo.security.ui.management"
defaultHandler="org.eclipse.emf.cdo.security.internal.ui.handlers.ManageSecurityHandler">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
commandId="org.eclipse.emf.cdo.security.ui.openEditor"
class="org.eclipse.emf.cdo.security.internal.ui.handlers.ManageSecurityHandler$Sessionless">
<activeWhen>
<with
variable="activeMenuSelection">
<iterate ifEmpty="false">
<adapt
type="org.eclipse.emf.cdo.admin.CDOAdminClientRepository">
</adapt>
</iterate>
</with>
</activeWhen>
</handler>
</extension>
</plugin>