13b1efe389c0e5ca3d90f62658b9ad0ca4cb2bd6
[public/netxms.git] / src / java / netxms-eclipse / library / src / org / netxms / ui / eclipse / shared / SharedIcons.java
1 /**
2 * NetXMS - open source network management system
3 * Copyright (C) 2003-2009 Victor Kirhenshtein
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 2 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, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 package org.netxms.ui.eclipse.shared;
20
21 import org.eclipse.jface.resource.ImageDescriptor;
22 import org.netxms.ui.eclipse.library.Activator;
23
24 /**
25 * @author Victor
26 *
27 */
28 public class SharedIcons
29 {
30 public static ImageDescriptor ALARM;
31 public static ImageDescriptor CHECKBOX_OFF;
32 public static ImageDescriptor CHECKBOX_ON;
33 public static ImageDescriptor REFRESH;
34 public static ImageDescriptor ZOOM_IN;
35 public static ImageDescriptor ZOOM_OUT;
36
37 /**
38 * Initialize static members. Intended to be called once by library activator.
39 */
40 public static void init()
41 {
42 ALARM = Activator.getImageDescriptor("icons/alarm.png");
43 CHECKBOX_OFF = Activator.getImageDescriptor("icons/checkbox_off.png");
44 CHECKBOX_ON = Activator.getImageDescriptor("icons/checkbox_on.png");
45 REFRESH = Activator.getImageDescriptor("icons/refresh.gif");
46 ZOOM_IN = Activator.getImageDescriptor("icons/zoom_in.png");
47 ZOOM_OUT = Activator.getImageDescriptor("icons/zoom_out.png");
48 }
49 }