1 /**********************************************************************
2 * Copyright (c) 2005, 2012 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
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
15 import org
.eclipse
.jface
.action
.Action
;
16 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
17 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.Activator
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
22 * Action class implementation to move the focus to the previous page of the whole sequence diagram.
28 public class PrevPage
extends Action
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
37 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.prevpage"; //$NON-NLS-1$
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
44 * The sequence diagram view reference.
46 protected SDView fView
= null;
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
55 * @param view the view reference
57 public PrevPage(SDView view
) {
60 setText(SDMessages
._35
);
61 setToolTipText(SDMessages
._37
);
63 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_PREV_PAGE
));
66 // ------------------------------------------------------------------------
68 // ------------------------------------------------------------------------
71 * @see org.eclipse.jface.action.Action#run()
75 if ((fView
== null) || (fView
.getSDWidget()) == null) {
78 if (fView
.getSDPagingProvider() != null) {
79 fView
.getSDPagingProvider().prevPage();
81 fView
.updateCoolBar();
82 fView
.getSDWidget().redraw();
This page took 0.032918 seconds and 6 git commands to generate.