1 /**********************************************************************
2 * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
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
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
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
.dialogs
.MinMaxDialog
;
18 import org
.eclipse
.ui
.IViewPart
;
21 * Action class implementation to configure minimum and maximum time range values.
27 public class ConfigureMinMax
extends Action
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
33 * The corresponding sequence diagram view reference.
35 protected SDView fView
= null;
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
42 * Standard constructor.
44 * @param view The sequence diagram view for the action
46 public ConfigureMinMax(IViewPart view
) {
48 if (view
instanceof SDView
) {
49 fView
= (SDView
) view
;
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
59 * @see org.eclipse.jface.action.Action#run()
63 if ((fView
!= null) && (fView
.getSDWidget() != null)) {
64 MinMaxDialog minMax
= new MinMaxDialog(fView
.getSite().getShell(), fView
.getSDWidget());
This page took 0.035259 seconds and 5 git commands to generate.