1 /**********************************************************************
2 * Copyright (c) 2005, 2014 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
.tracecompass
.tmf
.ui
.views
.uml2sd
.handlers
;
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
.PagesDialog
;
19 import org
.eclipse
.tracecompass
.tmf
.ui
.views
.uml2sd
.handlers
.provider
.ISDAdvancedPagingProvider
;
20 import org
.eclipse
.tracecompass
.tmf
.ui
.views
.uml2sd
.util
.Messages
;
23 * Action class implementation for paging.
26 * @author Bernd Hufmann
28 public class OpenSDPagesDialog
extends BaseSDAction
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
37 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdPaging"; //$NON-NLS-1$
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
44 * The advanced paging provider reference.
46 private final ISDAdvancedPagingProvider fProvider
;
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
60 public OpenSDPagesDialog(SDView view
, ISDAdvancedPagingProvider provider
) {
62 setText(Messages
.SequenceDiagram_Pages
);
63 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_GOTO_PAGE
));
68 // ------------------------------------------------------------------------
70 // ------------------------------------------------------------------------
74 if (getView() == null) {
77 PagesDialog dialog
= new PagesDialog(getView(), fProvider
);