1 /**********************************************************************
2 * Copyright (c) 2005, 2008 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
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
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
16 import org
.eclipse
.jface
.action
.Action
;
17 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
18 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.TmfUiPlugin
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
20 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.dialogs
.FilterListDialog
;
21 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
.provider
.ISDFilterProvider
;
22 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
25 * Action class implementation for 'Filtering' of messages/lifelines.
30 public class OpenSDFiltersDialog
extends Action
{
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
38 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdFilters"; //$NON-NLS-1$
40 // ------------------------------------------------------------------------
42 // ------------------------------------------------------------------------
44 * The sequence diagram view reference
46 protected SDView fView
;
49 * The filter provider reference
51 protected ISDFilterProvider fProvider
;
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
59 * @param theView The view reference
61 public OpenSDFiltersDialog(SDView view
, ISDFilterProvider provider
) {
62 super(SDMessages
._43
);
63 setImageDescriptor(TmfUiPlugin
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_FILTERS
));
65 setToolTipText(SDMessages
._43
);
70 // ------------------------------------------------------------------------
72 // ------------------------------------------------------------------------
75 * @see org.eclipse.jface.action.Action#run()
82 FilterListDialog dialog
= new FilterListDialog(fView
, fProvider
);