222cedfb9b48207c5325bfa93322a3b88082b429
1 /**********************************************************************
2 * Copyright (c) 2011, 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
14 import org
.eclipse
.jface
.action
.Action
;
15 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
16 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.Activator
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
21 * Action class implementation to move the focus to the last page of the whole sequence diagram.
24 * @author Bernd Hufmann
26 public class LastPage
extends Action
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
35 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.lastpage"; //$NON-NLS-1$
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
42 * The sequence diagram view reference
44 protected SDView fView
= null;
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
51 * Standard constructor
53 * @param view the view reference
55 public LastPage(SDView view
) {
58 setText(SDMessages
._141
);
59 setToolTipText(SDMessages
._142
);
61 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_LAST_PAGE
));
64 // ------------------------------------------------------------------------
66 // ------------------------------------------------------------------------
70 if ((fView
== null) || (fView
.getSDWidget()) == null) {
73 if (fView
.getSDPagingProvider() != null) {
74 fView
.getSDPagingProvider().lastPage();
76 fView
.updateCoolBar();
77 fView
.getSDWidget().redraw();
This page took 0.032241 seconds and 5 git commands to generate.