analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / uml2sd / SDWidget.java
index 089ebc0e498b50f3610d9bc927e66534705164a4..1a1fb04b2c1e83b5be974359b537d35b78d78844 100755 (executable)
@@ -1,5 +1,5 @@
 /**********************************************************************
- * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
+ * Copyright (c) 2005, 2014 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
@@ -545,7 +545,8 @@ public class SDWidget extends ScrollView implements SelectionListener,
     public void setSite(ViewPart viewSite) {
         fSite = viewSite;
         fSite.getSite().setSelectionProvider(fSelProvider);
-        IContextService service = (IContextService) fSite.getSite().getWorkbenchWindow().getService(IContextService.class);
+        Object serviceObject = fSite.getSite().getWorkbenchWindow().getService(IContextService.class);
+        IContextService service = (IContextService) serviceObject;
         service.activateContext("org.eclipse.linuxtools.tmf.ui.view.uml2sd.context"); //$NON-NLS-1$
         service.activateContext(IContextIds.CONTEXT_ID_WINDOW);
     }
@@ -590,7 +591,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
      *
      * @param zoomValue
      *          The current zoom value
-     * @since 2.0
      */
     public void setZoomValue(float zoomValue) {
         fZoomValue = zoomValue;
@@ -670,7 +670,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
      * Returns the current graph node.
      *
      * @return the current graph node
-     * @since 2.0
      */
     public GraphNode getCurrentGraphNode() {
         return fCurrentGraphNode;
@@ -680,7 +679,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
      * Returns the current zoom value.
      *
      * @return the current zoom value
-     * @since 2.0
      */
     public float getZoomValue() {
         return fZoomValue;
@@ -690,7 +688,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
      * Gets the zoom in mode.
      *
      * @return the mode value to set.
-     * @since 2.0
      */
     public boolean getZoomInMode() {
         return fZoomInMode;
@@ -701,7 +698,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
      * Gets the zoom out mode.
      *
      * @return the mode value to set.
-     * @since 2.0
      */
     public boolean getZoomOutMode() {
         return fZoomOutMode;
@@ -710,7 +706,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
     /**
      * Returns if ctrl selection
      * @return true if ctrl selection else false
-     * @since 2.0
      */
     public boolean isCtrlSelection() {
         return fCtrlSelection;
@@ -719,7 +714,6 @@ public class SDWidget extends ScrollView implements SelectionListener,
     /**
      * Returns if shift selection
      * @return true if shift Selection else false
-     * @since 2.0
      */
     public boolean isShiftSelection() {
         return fCtrlSelection;
@@ -1260,7 +1254,7 @@ public class SDWidget extends ScrollView implements SelectionListener,
                 ITmfTimestamp lastTime = ((ITimeRange) fToolTipNode).getEndTime();
 
                 if (firstTime != null) {
-                    if (lastTime != null && firstTime.compareTo(lastTime, true) != 0) {
+                    if (lastTime != null && firstTime.compareTo(lastTime) != 0) {
                         postfix.append("start: "); //$NON-NLS-1$
                         postfix.append(firstTime.toString());
                         postfix.append("\n"); //$NON-NLS-1$
This page took 0.0269 seconds and 5 git commands to generate.