1 /**********************************************************************
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.handlers
;
16 import org
.eclipse
.jface
.action
.Action
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.SDView
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.dialogs
.MinMaxDialog
;
19 import org
.eclipse
.ui
.IViewPart
;
22 * Action class implementation to configure minimum and maximum time range values.
28 public class ConfigureMinMax
extends Action
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
34 * The corresponding sequence diagram view reference.
36 protected SDView fView
= null;
38 // ------------------------------------------------------------------------
40 // ------------------------------------------------------------------------
43 * Standard constructor.
45 * @param view The sequence diagram view for the action
47 public ConfigureMinMax(IViewPart view
) {
49 if (view
instanceof SDView
) {
50 fView
= (SDView
) view
;
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
60 * @see org.eclipse.jface.action.Action#run()
64 if ((fView
!= null) && (fView
.getSDWidget() != null)) {
65 MinMaxDialog minMax
= new MinMaxDialog(fView
.getSite().getShell(), fView
.getSDWidget());
This page took 0.034294 seconds and 6 git commands to generate.