1 /**********************************************************************
2 * Copyright (c) 2005, 2012 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
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
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
.Activator
;
17 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.dialogs
.PagesDialog
;
20 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
.provider
.ISDAdvancedPagingProvider
;
21 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
24 * Action class implementation for paging.
27 * @author Bernd Hufmann
29 public class OpenSDPagesDialog
extends Action
{
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
37 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdPaging"; //$NON-NLS-1$
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
43 * The sequence diagram view reference
45 protected SDView fView
;
47 * The advanced paging provider reference.
49 protected ISDAdvancedPagingProvider fProvider
;
51 // ------------------------------------------------------------------------
53 // ------------------------------------------------------------------------
62 public OpenSDPagesDialog(SDView view
, ISDAdvancedPagingProvider provider
) {
63 super(SDMessages
._44
);
64 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_GOTO_PAGE
));
70 // ------------------------------------------------------------------------
72 // ------------------------------------------------------------------------
75 * @see org.eclipse.jface.action.Action#run()
82 PagesDialog dialog
= new PagesDialog(fView
, fProvider
);