ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / handlers / ConfigureMinMax.java
index ee0083339d7a386bcae3657eb70e70c510f2a3a7..a9e62c3af6d088e2a9251b2cbce3e0352aeb4487 100755 (executable)
 
 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
 
-import org.eclipse.jface.action.Action;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs.MinMaxDialog;
-import org.eclipse.ui.IViewPart;
 
 /**
  * Action class implementation to configure minimum and maximum time range values.
@@ -24,40 +22,24 @@ import org.eclipse.ui.IViewPart;
  * @author sveyrier
  *
  */
-public class ConfigureMinMax extends Action {
+public class ConfigureMinMax extends BaseSDAction {
 
-    // ------------------------------------------------------------------------
-    // Attributes
-    // ------------------------------------------------------------------------
     /**
-     * The corresponding sequence diagram view reference.
+     * Constructor
+     * @param view
+     *          the sequence diagram view reference
+     * @since 2.0
      */
-    protected SDView fView = null;
-
-    // ------------------------------------------------------------------------
-    // Constructors
-    // ------------------------------------------------------------------------
-
-    /**
-     * Standard constructor.
-     *
-     * @param view The sequence diagram view for the action
-     */
-    public ConfigureMinMax(IViewPart view) {
-        super();
-        if (view instanceof SDView) {
-            fView = (SDView) view;
-        }
+    public ConfigureMinMax(SDView view) {
+        super(view);
     }
-
     // ------------------------------------------------------------------------
     // Methods
     // ------------------------------------------------------------------------
-
     @Override
     public void run() {
-        if ((fView != null) && (fView.getSDWidget() != null)) {
-            MinMaxDialog minMax = new MinMaxDialog(fView.getSite().getShell(), fView.getSDWidget());
+        if ((getView() != null) && (getView().getSDWidget() != null)) {
+            MinMaxDialog minMax = new MinMaxDialog(getView().getSite().getShell(), getView().getSDWidget());
             minMax.open();
         }
     }
This page took 0.024598 seconds and 5 git commands to generate.