View Javadoc
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.e4.users;
28  
29  import org.argeo.cms.ui.theme.CmsImages;
30  import org.eclipse.jface.resource.ImageDescriptor;
31  import org.eclipse.swt.graphics.Image;
32  
33  /** Shared icons that must be declared programmatically . */
34  public class SecurityAdminImages extends CmsImages {
35  	private final static String PREFIX = "icons/";
36  
37  	public final static ImageDescriptor ICON_REMOVE_DESC = createDesc(PREFIX + "delete.png");
38  	public final static ImageDescriptor ICON_USER_DESC = createDesc(PREFIX + "person.png");
39  
40  	public final static Image ICON_USER = ICON_USER_DESC.createImage();
41  	public final static Image ICON_GROUP = createImg(PREFIX + "group.png");
42  	public final static Image ICON_WORKGROUP = createImg(PREFIX + "workgroup.png");
43  	public final static Image ICON_ROLE = createImg(PREFIX + "role.gif");
44  
45  }