1 /**********************************************************************
2 * Copyright (c) 2005, 2006, 2011 IBM Corporation and others.
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
7 * $Id: MoveSDRight.java,v 1.2 2006/09/20 20:56:26 ewchan Exp $
10 * IBM - Initial API and implementation
11 * Bernd Hufmann - Updated for TMF
12 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
15 import org
.eclipse
.jface
.action
.Action
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDWidget
;
24 public class MoveSDRight
extends Action
{
26 // ------------------------------------------------------------------------
28 // ------------------------------------------------------------------------
29 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDRight"; //$NON-NLS-1$
31 protected SDView fView
= null;
33 // ------------------------------------------------------------------------
35 // ------------------------------------------------------------------------
36 public MoveSDRight() {
40 public MoveSDRight(SDView view
) {
43 setActionDefinitionId(ID
);
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
52 * @see org.eclipse.jface.action.Action#run()
61 SDWidget viewer
= fView
.getSDWidget();
63 viewer
.scrollBy(+viewer
.getVisibleWidth(), 0);
67 * Sets the active SD view.
68 * @param view The SD view.
70 public void setView(SDView view
) {
This page took 0.03417 seconds and 6 git commands to generate.