1 /**********************************************************************
2 * Copyright (c) 2005, 2008, 2011 IBM Corporation and others.
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 * $Id: OpenSDPagesDialog.java,v 1.4 2008/01/24 02:28:52 apnan Exp $
10 * IBM - Initial API and implementation
11 * Bernd Hufmann - Updated for TMF
12 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
15 import org
.eclipse
.jface
.action
.Action
;
16 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
17 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.TmfUiPlugin
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
.provider
.ISDAdvancedPagingProvider
;
20 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
.widgets
.PagesDialog
;
21 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
24 * Action delegate for 'Filter' on a message
26 public class OpenSDPagesDialog
extends Action
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
31 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdPaging"; //$NON-NLS-1$
33 protected SDView fView
;
34 protected ISDAdvancedPagingProvider fProvider
;
36 // ------------------------------------------------------------------------
38 // ------------------------------------------------------------------------
42 public OpenSDPagesDialog(SDView view_
, ISDAdvancedPagingProvider provider_
) {
43 super(SDMessages
._44
);
44 setImageDescriptor(TmfUiPlugin
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_GOTO_PAGE
));
47 fProvider
= provider_
;
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
55 * @see org.eclipse.jface.action.Action#run()
62 PagesDialog dialog
= new PagesDialog(fView
, fProvider
);