0c5e9b803461c9f38f2680d6255ca44e21d9c421
[public/netxms.git] / src / java / netxms-eclipse / EventManager / src / org / netxms / ui / eclipse / eventmanager / views / EventMonitor.java
1 /**
2 * NetXMS - open source network management system
3 * Copyright (C) 2003-2013 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.eventmanager.views;
20
21 import org.eclipse.jface.action.IMenuManager;
22 import org.eclipse.jface.action.Separator;
23 import org.eclipse.swt.SWT;
24 import org.eclipse.swt.widgets.Composite;
25 import org.netxms.ui.eclipse.eventmanager.widgets.EventTraceWidget;
26 import org.netxms.ui.eclipse.views.AbstractTraceView;
27 import org.netxms.ui.eclipse.widgets.AbstractTraceWidget;
28
29 /**
30 * Event monitor
31 */
32 public class EventMonitor extends AbstractTraceView
33 {
34 public static final String ID = "org.netxms.ui.eclipse.eventmanager.views.EventMonitor"; //$NON-NLS-1$
35
36 /* (non-Javadoc)
37 * @see org.netxms.ui.eclipse.views.AbstractTraceView#fillLocalPullDown(org.eclipse.jface.action.IMenuManager)
38 */
39 @Override
40 protected void fillLocalPullDown(IMenuManager manager)
41 {
42 super.fillLocalPullDown(manager);
43 manager.add(new Separator());
44 manager.add(((EventTraceWidget)getTraceWidget()).getActionShowColor());
45 manager.add(((EventTraceWidget)getTraceWidget()).getActionShowIcons());
46 }
47
48 /* (non-Javadoc)
49 * @see org.netxms.ui.eclipse.views.AbstractTraceView#createTraceWidget(org.eclipse.swt.widgets.Composite)
50 */
51 @Override
52 protected AbstractTraceWidget createTraceWidget(Composite parent)
53 {
54 return new EventTraceWidget(parent, SWT.NONE, this);
55 }
56 }