]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/plugins/org.argeo.security.ui.admin/src/main/java/org/argeo/security/ui/admin/views/RolesView.java
Update and session management pattern for view and editor to remove old deprecated...
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.ui.admin / src / main / java / org / argeo / security / ui / admin / views / RolesView.java
index 491647a8ddbcbdd5d5bc7a74cd6b16c2ed0d121f..fbe7dd5704b2e02d8f3fa552fddb86ec6a333c0e 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.security.ui.admin.views;
 
 import org.argeo.ArgeoException;
@@ -24,7 +39,8 @@ import org.eclipse.ui.part.ViewPart;
 
 /** List all roles. */
 public class RolesView extends ViewPart {
-       public final static String ID = "org.argeo.security.ui.admin.adminRolesView";
+       public final static String ID = SecurityAdminPlugin.PLUGIN_ID
+                       + ".adminRolesView";
 
        private Text newRole;
 
@@ -70,6 +86,7 @@ public class RolesView extends ViewPart {
                viewer = new TableViewer(table);
                viewer.setContentProvider(new RolesContentProvider());
                viewer.setLabelProvider(new UsersLabelProvider());
+               getViewSite().setSelectionProvider(viewer);
                viewer.setInput(getViewSite());
        }