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: MoveSDLeft.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
;
23 public class MoveSDLeft
extends Action
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
28 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDLeft"; //$NON-NLS-1$
30 protected SDView fView
= null;
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
39 public MoveSDLeft(SDView view
) {
42 setActionDefinitionId(ID
);
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
51 * @see org.eclipse.jface.action.Action#run()
59 SDWidget viewer
= fView
.getSDWidget();
61 viewer
.scrollBy(-viewer
.getVisibleWidth(), 0);
66 * Sets the active SD view.
67 * @param view The SD view.
69 public void setView(SDView view
) {
This page took 0.031737 seconds and 5 git commands to generate.