tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / handlers / ConfigureMinMax.java
CommitLineData
73005152 1/**********************************************************************
c8422608 2 * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
73005152
BH
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
c8422608
AM
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
73005152 11 **********************************************************************/
c8422608 12
73005152
BH
13package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers;
14
15import org.eclipse.jface.action.Action;
16import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView;
df0b8ff4 17import org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs.MinMaxDialog;
73005152
BH
18import org.eclipse.ui.IViewPart;
19
20/**
df0b8ff4 21 * Action class implementation to configure minimum and maximum time range values.
c8422608 22 *
df0b8ff4 23 * @version 1.0
73005152 24 * @author sveyrier
c8422608 25 *
73005152
BH
26 */
27public class ConfigureMinMax extends Action {
28
df0b8ff4
BH
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32 /**
33 * The corresponding sequence diagram view reference.
34 */
eb63f5ff 35 protected SDView fView = null;
73005152 36
df0b8ff4
BH
37 // ------------------------------------------------------------------------
38 // Constructors
39 // ------------------------------------------------------------------------
c8422608 40
df0b8ff4
BH
41 /**
42 * Standard constructor.
c8422608
AM
43 *
44 * @param view The sequence diagram view for the action
df0b8ff4 45 */
eb63f5ff 46 public ConfigureMinMax(IViewPart view) {
73005152 47 super();
eb63f5ff
BH
48 if (view instanceof SDView) {
49 fView = (SDView) view;
73005152
BH
50 }
51 }
52
df0b8ff4
BH
53 // ------------------------------------------------------------------------
54 // Methods
55 // ------------------------------------------------------------------------
56
57 /*
58 * (non-Javadoc)
59 * @see org.eclipse.jface.action.Action#run()
60 */
73005152
BH
61 @Override
62 public void run() {
eb63f5ff
BH
63 if ((fView != null) && (fView.getSDWidget() != null)) {
64 MinMaxDialog minMax = new MinMaxDialog(fView.getSite().getShell(), fView.getSDWidget());
73005152
BH
65 minMax.open();
66 }
67 }
68}
This page took 0.046485 seconds and 5 git commands to generate.