Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java
index d44831ebde..6664b1a1c3 100644
--- a/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java
+++ b/plugins/org.eclipse.emf.cdo.security.ui/src/org/eclipse/emf/cdo/security/internal/ui/editor/RolesSection.java
@@ -4,7 +4,7 @@
* 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
*/
@@ -22,12 +22,11 @@ import org.eclipse.emf.edit.domain.EditingDomain;
/**
* The form section part presenting the {@link Role}s defined in the security realm.
- *
+ *
* @author Christian W. Damus (CEA LIST)
*/
public class RolesSection extends TableSection<Role>
{
-
public RolesSection(EditingDomain domain, AdapterFactory adapterFactory)
{
super(Role.class, SecurityPackage.Literals.ROLE, domain, adapterFactory);
@@ -42,13 +41,11 @@ public class RolesSection extends TableSection<Role>
@Override
protected EReference getDropReference(EObject target, EObject objectToDrop)
{
- EReference result = null;
-
if (objectToDrop instanceof Assignee)
{
- result = SecurityPackage.Literals.ROLE__ASSIGNEES;
+ return SecurityPackage.Literals.ROLE__ASSIGNEES;
}
- return result;
+ return null;
}
}

Back to the top