1ccf3b027880f199a40dbc624621c0af14dc9beb
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 left in the sequence diagram view within a page.
27 public class MoveSDLeft
extends Action
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
35 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDLeft"; //$NON-NLS-1$
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
41 * The sequence diagram view reference.
43 protected SDView fView
= null;
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
58 * @param view a sequence diagram view reference
60 public MoveSDLeft(SDView view
) {
63 setActionDefinitionId(ID
);
67 // ------------------------------------------------------------------------
69 // ------------------------------------------------------------------------
72 * @see org.eclipse.jface.action.Action#run()
81 SDWidget viewer
= fView
.getSDWidget();
83 viewer
.scrollBy(-viewer
.getVisibleWidth(), 0);
88 * Sets the active SD view.
90 * @param view The SD view.
92 public void setView(SDView view
) {
This page took 0.03148 seconds and 5 git commands to generate.