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