Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-12 08:11:00 +0000
committerEike Stepper2012-06-12 08:11:00 +0000
commitf4eaa3f082a083a51e59dbfbdc3bd683143099c4 (patch)
tree4503563af16c62ce6157174cd6be209db1a7ba65 /plugins/org.eclipse.emf.cdo.security.edit/src
parentff20a871fcccd2f60569a1e77044d64e06b58703 (diff)
downloadcdo-f4eaa3f082a083a51e59dbfbdc3bd683143099c4.tar.gz
cdo-f4eaa3f082a083a51e59dbfbdc3bd683143099c4.tar.xz
cdo-f4eaa3f082a083a51e59dbfbdc3bd683143099c4.zip
[382278] Provide Net4j example installers
https://bugs.eclipse.org/bugs/show_bug.cgi?id=382278
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.security.edit/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/CheckItemProvider.java20
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ClassCheckItemProvider.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/PackageCheckItemProvider.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java16
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ResourceCheckItemProvider.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java34
6 files changed, 50 insertions, 32 deletions
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/CheckItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/CheckItemProvider.java
index e48ff137b6..902eb8e391 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/CheckItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/CheckItemProvider.java
@@ -3,7 +3,7 @@
package org.eclipse.emf.cdo.security.provider;
import org.eclipse.emf.cdo.security.Check;
-import org.eclipse.emf.cdo.security.Permission;
+import org.eclipse.emf.cdo.security.Access;
import org.eclipse.emf.cdo.security.SecurityPackage;
import org.eclipse.emf.common.notify.AdapterFactory;
@@ -63,26 +63,26 @@ public class CheckItemProvider extends ItemProviderAdapter implements IEditingDo
{
super.getPropertyDescriptors(object);
- addPermissionPropertyDescriptor(object);
+ addAccessPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
- * This adds a property descriptor for the Permission feature.
+ * This adds a property descriptor for the Access feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addPermissionPropertyDescriptor(Object object)
+ protected void addAccessPropertyDescriptor(Object object)
{
itemPropertyDescriptors.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_Check_permission_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Check_permission_feature", "_UI_Check_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.CHECK__PERMISSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null, null));
+ getString("_UI_Check_access_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_Check_access_feature", "_UI_Check_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ SecurityPackage.Literals.CHECK__ACCESS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null,
+ null));
}
/**
@@ -116,7 +116,7 @@ public class CheckItemProvider extends ItemProviderAdapter implements IEditingDo
@Override
public String getText(Object object)
{
- Permission labelValue = ((Check)object).getPermission();
+ Access labelValue = ((Check)object).getAccess();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ? getString("_UI_Check_type") : //$NON-NLS-1$
getString("_UI_Check_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
@@ -136,7 +136,7 @@ public class CheckItemProvider extends ItemProviderAdapter implements IEditingDo
switch (notification.getFeatureID(Check.class))
{
- case SecurityPackage.CHECK__PERMISSION:
+ case SecurityPackage.CHECK__ACCESS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ClassCheckItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ClassCheckItemProvider.java
index e793a2a4fc..01791ad1cb 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ClassCheckItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ClassCheckItemProvider.java
@@ -2,8 +2,8 @@
*/
package org.eclipse.emf.cdo.security.provider;
+import org.eclipse.emf.cdo.security.Access;
import org.eclipse.emf.cdo.security.ClassCheck;
-import org.eclipse.emf.cdo.security.Permission;
import org.eclipse.emf.cdo.security.SecurityPackage;
import org.eclipse.emf.common.notify.AdapterFactory;
@@ -113,7 +113,7 @@ public class ClassCheckItemProvider extends CheckItemProvider implements IEditin
@Override
public String getText(Object object)
{
- Permission labelValue = ((ClassCheck)object).getPermission();
+ Access labelValue = ((ClassCheck)object).getAccess();
EClass applicableClass = ((ClassCheck)object).getApplicableClass();
String label = labelValue == null ? null : labelValue.toString();
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/PackageCheckItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/PackageCheckItemProvider.java
index 5d4848d765..8fa3740e86 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/PackageCheckItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/PackageCheckItemProvider.java
@@ -3,7 +3,7 @@
package org.eclipse.emf.cdo.security.provider;
import org.eclipse.emf.cdo.security.PackageCheck;
-import org.eclipse.emf.cdo.security.Permission;
+import org.eclipse.emf.cdo.security.Access;
import org.eclipse.emf.cdo.security.SecurityPackage;
import org.eclipse.emf.common.notify.AdapterFactory;
@@ -112,7 +112,7 @@ public class PackageCheckItemProvider extends CheckItemProvider implements IEdit
@Override
public String getText(Object object)
{
- Permission labelValue = ((PackageCheck)object).getPermission();
+ Access labelValue = ((PackageCheck)object).getAccess();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ? getString("_UI_PackageCheck_type") : //$NON-NLS-1$
getString("_UI_PackageCheck_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
index 50cb93d207..27d728c955 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/RealmItemProvider.java
@@ -70,7 +70,7 @@ public class RealmItemProvider extends SecurityElementItemProvider implements IE
super.getPropertyDescriptors(object);
addNamePropertyDescriptor(object);
- addDefaultPermissionPropertyDescriptor(object);
+ addDefaultAccessPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -93,20 +93,20 @@ public class RealmItemProvider extends SecurityElementItemProvider implements IE
}
/**
- * This adds a property descriptor for the Default Permission feature.
+ * This adds a property descriptor for the Default Access feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addDefaultPermissionPropertyDescriptor(Object object)
+ protected void addDefaultAccessPropertyDescriptor(Object object)
{
itemPropertyDescriptors.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_Realm_defaultPermission_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_Realm_defaultPermission_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.REALM__DEFAULT_PERMISSION, true, false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ getString("_UI_Realm_defaultAccess_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_Realm_defaultAccess_feature", "_UI_Realm_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ SecurityPackage.Literals.REALM__DEFAULT_ACCESS, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
}
/**
@@ -194,7 +194,7 @@ public class RealmItemProvider extends SecurityElementItemProvider implements IE
switch (notification.getFeatureID(Realm.class))
{
case SecurityPackage.REALM__NAME:
- case SecurityPackage.REALM__DEFAULT_PERMISSION:
+ case SecurityPackage.REALM__DEFAULT_ACCESS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case SecurityPackage.REALM__ITEMS:
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ResourceCheckItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ResourceCheckItemProvider.java
index 5650b1fd88..89b371b20f 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ResourceCheckItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/ResourceCheckItemProvider.java
@@ -2,7 +2,7 @@
*/
package org.eclipse.emf.cdo.security.provider;
-import org.eclipse.emf.cdo.security.Permission;
+import org.eclipse.emf.cdo.security.Access;
import org.eclipse.emf.cdo.security.ResourceCheck;
import org.eclipse.emf.cdo.security.SecurityPackage;
@@ -114,7 +114,7 @@ public class ResourceCheckItemProvider extends CheckItemProvider implements IEdi
@Override
public String getText(Object object)
{
- Permission labelValue = ((ResourceCheck)object).getPermission();
+ Access labelValue = ((ResourceCheck)object).getAccess();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ? getString("_UI_ResourceCheck_type") : //$NON-NLS-1$
getString("_UI_ResourceCheck_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
diff --git a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
index dc0ae34f19..f52a72ab16 100644
--- a/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.security.edit/src/org/eclipse/emf/cdo/security/provider/UserItemProvider.java
@@ -74,7 +74,8 @@ public class UserItemProvider extends AssigneeItemProvider implements IEditingDo
addFirstNamePropertyDescriptor(object);
addLastNamePropertyDescriptor(object);
addEmailPropertyDescriptor(object);
- addDefaultPermissionOverridePropertyDescriptor(object);
+ addDefaultAccessOverridePropertyDescriptor(object);
+ addDefaultAccessPropertyDescriptor(object);
addLockedPropertyDescriptor(object);
}
return itemPropertyDescriptors;
@@ -164,23 +165,40 @@ public class UserItemProvider extends AssigneeItemProvider implements IEditingDo
}
/**
- * This adds a property descriptor for the Default Permission Override feature.
+ * This adds a property descriptor for the Default Access Override feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- protected void addDefaultPermissionOverridePropertyDescriptor(Object object)
+ protected void addDefaultAccessOverridePropertyDescriptor(Object object)
{
itemPropertyDescriptors.add(createItemPropertyDescriptor(
((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_User_defaultPermissionOverride_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_User_defaultPermissionOverride_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- SecurityPackage.Literals.USER__DEFAULT_PERMISSION_OVERRIDE, true, false, false,
+ getString("_UI_User_defaultAccessOverride_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_User_defaultAccessOverride_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ SecurityPackage.Literals.USER__DEFAULT_ACCESS_OVERRIDE, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
+ * This adds a property descriptor for the Default Access feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDefaultAccessPropertyDescriptor(Object object)
+ {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_User_defaultAccess_feature"), //$NON-NLS-1$
+ getString("_UI_PropertyDescriptor_description", "_UI_User_defaultAccess_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ SecurityPackage.Literals.USER__DEFAULT_ACCESS, false, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null, null));
+ }
+
+ /**
* This adds a property descriptor for the Locked feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -299,8 +317,8 @@ public class UserItemProvider extends AssigneeItemProvider implements IEditingDo
case SecurityPackage.USER__FIRST_NAME:
case SecurityPackage.USER__LAST_NAME:
case SecurityPackage.USER__EMAIL:
- case SecurityPackage.USER__DEFAULT_PERMISSION_OVERRIDE:
- case SecurityPackage.USER__DEFAULT_PERMISSION:
+ case SecurityPackage.USER__DEFAULT_ACCESS_OVERRIDE:
+ case SecurityPackage.USER__DEFAULT_ACCESS:
case SecurityPackage.USER__LOCKED:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;

Back to the top