tmf/lttng: Remove unneeded (non-Javadoc) comments
[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
15import org.eclipse.jface.action.Action;
16import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
17
df0b8ff4
BH
18/**
19 * Action class implementation for 'Printing'.
c8422608 20 *
df0b8ff4
BH
21 * @version 1.0
22 * @author sveyrier
23 */
73005152
BH
24public class Print extends Action {
25
26 // ------------------------------------------------------------------------
df0b8ff4 27 // Constants
73005152 28 // ------------------------------------------------------------------------
11252342 29
df0b8ff4
BH
30 /**
31 * The action ID.
32 */
73005152 33 public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.print"; //$NON-NLS-1$
c8422608 34
df0b8ff4
BH
35 // ------------------------------------------------------------------------
36 // Attributes
37 // ------------------------------------------------------------------------
11252342 38
df0b8ff4
BH
39 /**
40 * The sequence diagram view reference
41 */
42 private SDView fView;
c8422608 43
73005152
BH
44 // ------------------------------------------------------------------------
45 // Constructors
46 // ------------------------------------------------------------------------
11252342 47
df0b8ff4 48 /**
c8422608
AM
49 * Constructor
50 *
df0b8ff4 51 * @param view The view reference
c8422608 52 */
73005152
BH
53 public Print(SDView view) {
54 super();
55 setId(ID);
56 fView = view;
57 }
58
59 // ------------------------------------------------------------------------
df0b8ff4 60 // Methods
73005152 61 // ------------------------------------------------------------------------
11252342 62
73005152
BH
63 @Override
64 public void run() {
df0b8ff4 65 if ((fView == null) || fView.getSDWidget() == null){
73005152 66 return;
df0b8ff4
BH
67 }
68
73005152
BH
69 fView.getSDWidget().print();
70 }
71}
This page took 0.036309 seconds and 5 git commands to generate.