tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / handlers / MoveSDUp.java
index 85b0cbd218d2711314fff8a74718d1e612efc892..e8dbd45d32576b9098bbd38f4ca325883fb82e00 100755 (executable)
@@ -1,16 +1,15 @@
 /**********************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- * 
+ * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
  * All rights reserved.   This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
- * Contributors: 
- * IBM - Initial API and implementation
- * Bernd Hufmann - Updated for TMF
+ *
+ * Contributors:
+ *     IBM - Initial API and implementation
+ *     Bernd Hufmann - Updated for TMF
  **********************************************************************/
+
 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
 
 import org.eclipse.jface.action.Action;
@@ -18,8 +17,11 @@ import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDWidget;
 
 /**
+ * Action class implementation to move up in the sequence diagram view within a
+ * page.
+ *
+ * @version 1.0
  * @author sveyrier
- * 
  */
 public class MoveSDUp extends Action {
 
@@ -30,7 +32,7 @@ public class MoveSDUp extends Action {
      * The action ID.
      */
     public final static String ID = "org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.MoveSDUp"; //$NON-NLS-1$
-    
+
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
@@ -51,14 +53,14 @@ public class MoveSDUp extends Action {
 
     /**
      * Constructor
-     * 
+     *
      * @param view a sequence diagram view reference
      */
     public MoveSDUp(SDView view) {
         super();
         setId(ID);
         setActionDefinitionId(ID);
-        fView = ((SDView) view);
+        fView = view;
     }
 
     // ------------------------------------------------------------------------
@@ -73,7 +75,7 @@ public class MoveSDUp extends Action {
         if (fView == null) {
             return;
         }
-        SDWidget viewer = ((SDView) fView).getSDWidget();
+        SDWidget viewer = fView.getSDWidget();
 
         if (viewer != null) {
             viewer.scrollBy(0, -viewer.getVisibleHeight());
This page took 0.024317 seconds and 5 git commands to generate.