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
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
.linuxtools
.internal
.tmf
.ui
.Activator
;
16 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.ITmfImageConstants
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
.Messages
;
21 * Action class implementation to move the focus to the next page of the whole sequence diagram.
27 public class NextPage
extends BaseSDAction
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
35 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.nextpage"; //$NON-NLS-1$
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
43 * @param view the view reference
45 public NextPage(SDView view
) {
47 setText(Messages
.SequenceDiagram_NextPage
);
48 setToolTipText(Messages
.SequenceDiagram_GoToNextPage
);
50 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_NEXT_PAGE
));
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
59 if ((getView() == null) || (getView().getSDWidget()) == null) {
62 if (getView().getSDPagingProvider() != null) {
63 getView().getSDPagingProvider().nextPage();
65 getView().updateCoolBar();
66 getView().getSDWidget().redraw();