d218683dfbe79f09bf8358d300c827c972a188f0
1 /**********************************************************************
2 * Copyright (c) 2005, 2008 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
16 import org
.eclipse
.jface
.action
.Action
;
17 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
18 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.Activator
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
20 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.SDMessages
;
23 * Action class implementation to move the focus to the previous page of the whole sequence diagram.
29 public class PrevPage
extends Action
{
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
38 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.prevpage"; //$NON-NLS-1$
40 // ------------------------------------------------------------------------
42 // ------------------------------------------------------------------------
45 * The sequence diagram view reference.
47 protected SDView fView
= null;
49 // ------------------------------------------------------------------------
51 // ------------------------------------------------------------------------
56 * @param view the view reference
58 public PrevPage(SDView view
) {
61 setText(SDMessages
._35
);
62 setToolTipText(SDMessages
._37
);
64 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_PREV_PAGE
));
67 // ------------------------------------------------------------------------
69 // ------------------------------------------------------------------------
72 * @see org.eclipse.jface.action.Action#run()
76 if ((fView
== null) || (fView
.getSDWidget()) == null) {
79 if (fView
.getSDPagingProvider() != null) {
80 fView
.getSDPagingProvider().prevPage();
82 fView
.updateCoolBar();
83 fView
.getSDWidget().redraw();
This page took 0.031747 seconds and 5 git commands to generate.