1 /* 2 * Argeo Connect - Data management and communications 3 * Copyright (C) 2012 Argeo GmbH 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/> 17 * 18 * Additional permission under GNU GPL version 3 section 7 19 * 20 * If you modify this Program, or any covered work, by linking or combining it 21 * with software covered by the terms of the Eclipse Public License, the 22 * licensors of this Program grant you additional permission to convey the 23 * resulting work. Corresponding Source for a non-source form of such a 24 * combination shall include the source code for the parts of such software 25 * which are used as well as that of the covered work. 26 */ 27 package org.argeo.cms.ui.workbench.internal.useradmin; 28 29 import static org.argeo.cms.ui.workbench.WorkbenchUiPlugin.getImageDescriptor; 30 31 import org.eclipse.jface.resource.ImageDescriptor; 32 import org.eclipse.swt.graphics.Image; 33 34 /** Shared icons that must be declared programmatically . */ 35 public class SecurityAdminImages { 36 private final static String PREFIX = "icons/"; 37 38 public final static ImageDescriptor ICON_REMOVE_DESC = getImageDescriptor(PREFIX + "delete.png"); 39 public final static ImageDescriptor ICON_USER_DESC = getImageDescriptor(PREFIX + "person.png"); 40 41 public final static Image ICON_USER = ICON_USER_DESC.createImage(); 42 public final static Image ICON_GROUP = getImageDescriptor(PREFIX + "group.png").createImage(); 43 public final static Image ICON_WORKGROUP = getImageDescriptor(PREFIX + "workgroup.png").createImage(); 44 public final static Image ICON_ROLE = getImageDescriptor(PREFIX + "role.gif").createImage(); 45 46 }