KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > commands > actions > ToggleStepFiltersCommandActionDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.debug.internal.ui.commands.actions;
13
14 import org.eclipse.debug.ui.DebugUITools;
15 import org.eclipse.ui.IWorkbenchWindow;
16
17 /**
18  * Toggle step filters action delegate.
19  *
20  * @since 3.3
21  */

22 public class ToggleStepFiltersCommandActionDelegate extends DebugCommandActionDelegate {
23
24     /**
25      * Constructor
26      */

27     public ToggleStepFiltersCommandActionDelegate() {
28         super();
29         setAction(new ToggleStepFiltersAction());
30     }
31
32     /**
33      * @see org.eclipse.debug.internal.ui.commands.actions.DebugCommandActionDelegate#init(org.eclipse.ui.IWorkbenchWindow)
34      */

35     public void init(IWorkbenchWindow window) {
36         super.init(window);
37         setChecked(DebugUITools.isUseStepFilters());
38     }
39 }
40
Popular Tags