628d3a3aab2145c1e1906bdb3fdb2175ba84ecea
1 /**********************************************************************
2 * Copyright (c) 2005, 2006 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
.tmf
.ui
.views
.uml2sd
.SDView
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDWidget
;
21 * Action class implementation to move right in the sequence diagram view within a page.
28 public class MoveSDRight
extends Action
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
36 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDRight"; //$NON-NLS-1$
38 // ------------------------------------------------------------------------
40 // ------------------------------------------------------------------------
42 * The sequence diagram view reference.
44 protected SDView fView
= null;
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
52 public MoveSDRight() {
59 * @param view a sequence diagram view reference
61 public MoveSDRight(SDView view
) {
64 setActionDefinitionId(ID
);
68 // ------------------------------------------------------------------------
70 // ------------------------------------------------------------------------
73 * @see org.eclipse.jface.action.Action#run()
82 SDWidget viewer
= fView
.getSDWidget();
84 viewer
.scrollBy(+viewer
.getVisibleWidth(), 0);
89 * Sets the active SD view.
91 * @param view The SD view.
93 public void setView(SDView view
) {
This page took 0.031355 seconds and 5 git commands to generate.