Copyright header update, 2015 edition
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / uml2sd / handlers / OpenSDPagesDialog.java
CommitLineData
73005152 1/**********************************************************************
ed902a2b 2 * Copyright (c) 2005, 2014 IBM Corporation, Ericsson
73005152
BH
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
013a5f1c
AM
7 *
8 * Contributors:
c8422608
AM
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
73005152 11 **********************************************************************/
c8422608 12
2bdf0193
AM
13package org.eclipse.tracecompass.tmf.ui.views.uml2sd.handlers;
14
15import org.eclipse.tracecompass.internal.tmf.ui.Activator;
16import org.eclipse.tracecompass.internal.tmf.ui.ITmfImageConstants;
17import org.eclipse.tracecompass.tmf.ui.views.uml2sd.SDView;
18import org.eclipse.tracecompass.tmf.ui.views.uml2sd.dialogs.PagesDialog;
19import org.eclipse.tracecompass.tmf.ui.views.uml2sd.handlers.provider.ISDAdvancedPagingProvider;
20import org.eclipse.tracecompass.tmf.ui.views.uml2sd.util.Messages;
73005152
BH
21
22/**
df0b8ff4 23 * Action class implementation for paging.
013a5f1c
AM
24 *
25 * @version 1.0
26 * @author Bernd Hufmann
73005152 27 */
cab6c8ff 28public class OpenSDPagesDialog extends BaseSDAction {
73005152
BH
29
30 // ------------------------------------------------------------------------
df0b8ff4 31 // Constants
73005152 32 // ------------------------------------------------------------------------
11252342 33
df0b8ff4
BH
34 /**
35 * The action ID.
36 */
73005152 37 public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.sdPaging"; //$NON-NLS-1$
013a5f1c 38
df0b8ff4
BH
39 // ------------------------------------------------------------------------
40 // Attributes
41 // ------------------------------------------------------------------------
11252342 42
df0b8ff4
BH
43 /**
44 * The advanced paging provider reference.
45 */
cab6c8ff 46 private final ISDAdvancedPagingProvider fProvider;
73005152
BH
47
48 // ------------------------------------------------------------------------
49 // Constructors
50 // ------------------------------------------------------------------------
11252342 51
73005152 52 /**
013a5f1c
AM
53 * Constructor
54 *
a55887ca
AM
55 * @param view
56 * The view reference
57 * @param provider
58 * The provider
73005152 59 */
eb63f5ff 60 public OpenSDPagesDialog(SDView view, ISDAdvancedPagingProvider provider) {
cab6c8ff
BH
61 super(view);
62 setText(Messages.SequenceDiagram_Pages);
8fd82db5 63 setImageDescriptor(Activator.getDefault().getImageDescripterFromPath(ITmfImageConstants.IMG_UI_GOTO_PAGE));
73005152 64 setId(ID);
eb63f5ff 65 fProvider = provider;
73005152
BH
66 }
67
68 // ------------------------------------------------------------------------
69 // Operations
70 // ------------------------------------------------------------------------
11252342 71
73005152
BH
72 @Override
73 public void run() {
cab6c8ff 74 if (getView() == null) {
73005152
BH
75 return;
76 }
cab6c8ff 77 PagesDialog dialog = new PagesDialog(getView(), fProvider);
73005152
BH
78 dialog.open();
79 }
80}
This page took 0.066201 seconds and 5 git commands to generate.