04f859fcda6fb0f6b56aad45f81cd2c11e71b69e
1 /**********************************************************************
2 * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
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
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
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
;
20 * Action class implementation to move down in the sequence diagram view within a page.
26 public class MoveSDDown
extends Action
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
34 public final static String ID
= "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDDown"; //$NON-NLS-1$
36 // ------------------------------------------------------------------------
38 // ------------------------------------------------------------------------
40 * The sequence diagram view reference.
42 protected SDView fView
= null;
44 // ------------------------------------------------------------------------
46 // ------------------------------------------------------------------------
57 * @param view a sequence diagram view reference
59 public MoveSDDown(SDView view
) {
62 setActionDefinitionId(ID
);
66 // ------------------------------------------------------------------------
68 // ------------------------------------------------------------------------
76 SDWidget viewer
= fView
.getSDWidget();
78 viewer
.scrollBy(0, +viewer
.getVisibleHeight());
83 * Sets the active SD view.
85 * @param view The SD view.
87 public void setView(SDView view
) {
This page took 0.033084 seconds and 5 git commands to generate.