Internalize some classes and fix a pile of warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / handlers / OpenSDFiltersDialog.java
CommitLineData
73005152 1/**********************************************************************
df0b8ff4
BH
2 * Copyright (c) 2005, 2008 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
4 *
73005152
BH
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
73005152
BH
9 *
10 * Contributors:
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
15
16import org.eclipse.jface.action.Action;
d34665f9 17import org.eclipse.linuxtools.internal.tmf.ui.ITmfImageConstants;
8fd82db5 18import org.eclipse.linuxtools.internal.tmf.ui.Activator;
73005152 19import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
df0b8ff4 20import org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs.FilterListDialog;
73005152 21import org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.provider.ISDFilterProvider;
73005152
BH
22import org.eclipse.linuxtools.tmf.ui.views.uml2sd.util.SDMessages;
23
24/**
df0b8ff4
BH
25 * Action class implementation for 'Filtering' of messages/lifelines.
26 *
27 * @version 1.0
28 * @author sveyrier
73005152
BH
29 */
30public class OpenSDFiltersDialog extends Action {
31
32 // ------------------------------------------------------------------------
df0b8ff4 33 // Constants
73005152 34 // ------------------------------------------------------------------------
df0b8ff4
BH
35 /**
36 * The action ID.
37 */
73005152 38 public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdFilters"; //$NON-NLS-1$
df0b8ff4
BH
39
40 // ------------------------------------------------------------------------
41 // Attributes
42 // ------------------------------------------------------------------------
43 /**
44 * The sequence diagram view reference
45 */
73005152 46 protected SDView fView;
df0b8ff4
BH
47
48 /**
49 * The filter provider reference
50 */
73005152
BH
51 protected ISDFilterProvider fProvider;
52
53 // ------------------------------------------------------------------------
54 // Constructors
55 // ------------------------------------------------------------------------
56 /**
df0b8ff4
BH
57 * Constructor
58 *
59 * @param theView The view reference
73005152 60 */
eb63f5ff 61 public OpenSDFiltersDialog(SDView view, ISDFilterProvider provider) {
73005152 62 super(SDMessages._43);
8fd82db5 63 setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_FILTERS));
73005152
BH
64 setId(ID);
65 setToolTipText(SDMessages._43);
eb63f5ff
BH
66 fView = view;
67 fProvider = provider;
73005152
BH
68 }
69
70 // ------------------------------------------------------------------------
df0b8ff4 71 // Methods
73005152
BH
72 // ------------------------------------------------------------------------
73 /*
74 * (non-Javadoc)
75 * @see org.eclipse.jface.action.Action#run()
76 */
77 @Override
78 public void run() {
79 if (fView == null) {
80 return;
81 }
82 FilterListDialog dialog = new FilterListDialog(fView, fProvider);
83 dialog.open();
84 }
85}
This page took 0.032711 seconds and 5 git commands to generate.