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