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 up in the sequence diagram view within a
27 public class MoveSDUp
extends Action
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
35 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDUp"; //$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 MoveSDUp(SDView view
) {
63 setActionDefinitionId(ID
);
64 fView
= ((SDView
) view
);
67 // ------------------------------------------------------------------------
69 // ------------------------------------------------------------------------
72 * @see org.eclipse.jface.action.Action#run()
79 SDWidget viewer
= ((SDView
) fView
).getSDWidget();
82 viewer
.scrollBy(0, -viewer
.getVisibleHeight());
87 * Sets the active SD view.
88 * @param view The SD view.
90 public void setView(SDView view
) {
This page took 0.032259 seconds and 5 git commands to generate.