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 next page of the whole sequence diagram.
29 public class NextPage
extends Action
{
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
37 public static final String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.nextpage"; //$NON-NLS-1$
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
43 * The sequence diagram view reference.
45 protected SDView fView
= null;
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
53 * @param view the view reference
55 public NextPage(SDView view
) {
58 setText(SDMessages
._36
);
59 setToolTipText(SDMessages
._38
);
61 setImageDescriptor(Activator
.getDefault().getImageDescripterFromPath(ITmfImageConstants
.IMG_UI_NEXT_PAGE
));
64 // ------------------------------------------------------------------------
66 // ------------------------------------------------------------------------
69 * @see org.eclipse.jface.action.Action#run()
73 if ((fView
== null) || (fView
.getSDWidget()) == null) {
76 if (fView
.getSDPagingProvider() != null) {
77 fView
.getSDPagingProvider().nextPage();
79 fView
.updateCoolBar();
80 fView
.getSDWidget().redraw();
This page took 0.032368 seconds and 5 git commands to generate.