Commit | Line | Data |
---|---|---|
73005152 | 1 | /********************************************************************** |
11252342 | 2 | * Copyright (c) 2005, 2013 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 |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers; |
14 | ||
73005152 | 15 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView; |
df0b8ff4 | 16 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs.MinMaxDialog; |
73005152 BH |
17 | |
18 | /** | |
df0b8ff4 | 19 | * Action class implementation to configure minimum and maximum time range values. |
c8422608 | 20 | * |
df0b8ff4 | 21 | * @version 1.0 |
73005152 | 22 | * @author sveyrier |
c8422608 | 23 | * |
73005152 | 24 | */ |
cab6c8ff | 25 | public class ConfigureMinMax extends BaseSDAction { |
73005152 | 26 | |
df0b8ff4 | 27 | /** |
cab6c8ff BH |
28 | * Constructor |
29 | * @param view | |
30 | * the sequence diagram view reference | |
31 | * @since 2.0 | |
df0b8ff4 | 32 | */ |
cab6c8ff BH |
33 | public ConfigureMinMax(SDView view) { |
34 | super(view); | |
73005152 | 35 | } |
df0b8ff4 BH |
36 | // ------------------------------------------------------------------------ |
37 | // Methods | |
38 | // ------------------------------------------------------------------------ | |
73005152 BH |
39 | @Override |
40 | public void run() { | |
cab6c8ff BH |
41 | if ((getView() != null) && (getView().getSDWidget() != null)) { |
42 | MinMaxDialog minMax = new MinMaxDialog(getView().getSite().getShell(), getView().getSDWidget()); | |
73005152 BH |
43 | minMax.open(); |
44 | } | |
45 | } | |
46 | } |