tmf: API clean-up of sequence diagram framework
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / handlers / Print.java
CommitLineData
73005152 1/**********************************************************************
11252342 2 * Copyright (c) 2005, 2013 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
c8422608
AM
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
73005152 11 **********************************************************************/
c8422608 12
73005152
BH
13package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
14
73005152
BH
15import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
16
df0b8ff4
BH
17/**
18 * Action class implementation for 'Printing'.
c8422608 19 *
df0b8ff4
BH
20 * @version 1.0
21 * @author sveyrier
22 */
cab6c8ff 23public class Print extends BaseSDAction {
73005152
BH
24
25 // ------------------------------------------------------------------------
df0b8ff4 26 // Constants
73005152 27 // ------------------------------------------------------------------------
11252342 28
df0b8ff4
BH
29 /**
30 * The action ID.
31 */
73005152 32 public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.print"; //$NON-NLS-1$
c8422608 33
73005152
BH
34 // ------------------------------------------------------------------------
35 // Constructors
36 // ------------------------------------------------------------------------
11252342 37
df0b8ff4 38 /**
c8422608
AM
39 * Constructor
40 *
df0b8ff4 41 * @param view The view reference
c8422608 42 */
73005152 43 public Print(SDView view) {
cab6c8ff 44 super(view);
73005152 45 setId(ID);
73005152
BH
46 }
47
48 // ------------------------------------------------------------------------
df0b8ff4 49 // Methods
73005152 50 // ------------------------------------------------------------------------
11252342 51
73005152
BH
52 @Override
53 public void run() {
cab6c8ff 54 if ((getView() == null) || getView().getSDWidget() == null){
73005152 55 return;
df0b8ff4
BH
56 }
57
cab6c8ff 58 getView().getSDWidget().print();
73005152
BH
59 }
60}
This page took 0.045487 seconds and 5 git commands to generate.