1
1
/**********************************************************************
2
* Copyright (c) 2005, 2006 IBM Corporation and others.
3
* Copyright (c) 2011, 2012 Ericsson.
2
* Copyright (c) 2005, 2013 IBM Corporation, Ericsson
5
3
* All rights reserved. This program and the accompanying materials
6
4
* are made available under the terms of the Eclipse Public License v1.0
7
5
* which accompanies this distribution, and is available at
8
6
* http://www.eclipse.org/legal/epl-v10.html
11
* IBM - Initial API and implementation
12
* Bernd Hufmann - Updated for TMF
9
* IBM - Initial API and implementation
10
* Bernd Hufmann - Updated for TMF
13
11
**********************************************************************/
14
13
package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
16
import org.eclipse.jface.action.Action;
17
15
import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
20
18
* Action class implementation for 'Printing'.
25
public class Print extends Action {
23
public class Print extends BaseSDAction {
27
25
// ------------------------------------------------------------------------
29
27
// ------------------------------------------------------------------------
33
32
public static final String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.print"; //$NON-NLS-1$
35
// ------------------------------------------------------------------------
37
// ------------------------------------------------------------------------
39
* The sequence diagram view reference
43
34
// ------------------------------------------------------------------------
45
36
// ------------------------------------------------------------------------
49
41
* @param view The view reference
51
43
public Print(SDView view) {
57
48
// ------------------------------------------------------------------------
59
50
// ------------------------------------------------------------------------
62
* @see org.eclipse.jface.action.Action#run()
65
53
public void run() {
66
if ((fView == null) || fView.getSDWidget() == null){
54
if ((getView() == null) || getView().getSDWidget() == null){
70
fView.getSDWidget().print();
58
getView().getSDWidget().print();