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
.Activator
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
20 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.dialogs
.PagesDialog
;
21 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
.provider
.ISDAdvancedPagingProvider
;
22 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
25 * Action class implementation for paging.
27 public class OpenSDPagesDialog
extends Action
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
35 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdPaging"; //$NON-NLS-1$
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
41 * The sequence diagram view reference
43 protected SDView fView
;
45 * The advanced paging provider reference.
47 protected ISDAdvancedPagingProvider fProvider
;
49 // ------------------------------------------------------------------------
51 // ------------------------------------------------------------------------
55 * @param view The view reference
57 public OpenSDPagesDialog(SDView view
, ISDAdvancedPagingProvider provider
) {
58 super(SDMessages
._44
);
59 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_GOTO_PAGE
));
65 // ------------------------------------------------------------------------
67 // ------------------------------------------------------------------------
70 * @see org.eclipse.jface.action.Action#run()
77 PagesDialog dialog
= new PagesDialog(fView
, fProvider
);