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