Commit | Line | Data |
---|---|---|
73005152 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2005, 2006, 2011 IBM Corporation and others. | |
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 | |
7 | * $Id: ConfigureMinMax.java,v 1.1 2006/08/16 21:15:28 amehregani Exp $ | |
8 | * | |
9 | * Contributors: | |
10 | * IBM - Initial API and implementation | |
11 | * Bernd Hufmann - Updated for TMF | |
12 | **********************************************************************/ | |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers; | |
14 | ||
15 | import org.eclipse.jface.action.Action; | |
16 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDView; | |
17 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.SDWidget; | |
18 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.util.MinMaxDialog; | |
19 | import org.eclipse.ui.IViewPart; | |
20 | ||
21 | /** | |
22 | * @author sveyrier | |
23 | * | |
24 | */ | |
25 | public class ConfigureMinMax extends Action { | |
26 | ||
27 | protected SDWidget viewer = null; | |
28 | protected SDView view = null; | |
29 | ||
30 | public ConfigureMinMax(IViewPart _view) { | |
31 | super(); | |
32 | if (_view instanceof SDView) { | |
33 | view = (SDView) _view; | |
34 | } | |
35 | } | |
36 | ||
37 | @Override | |
38 | public void run() { | |
39 | if (view != null && view.getSDWidget() != null) { | |
40 | MinMaxDialog minMax = new MinMaxDialog(view.getSite().getShell(), view.getSDWidget()); | |
41 | minMax.open(); | |
42 | } | |
43 | } | |
44 | } |