Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: dd2557510f7486bc800d4e56c924860ff44be571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************************
 * Copyright (c) 2009 Ericsson and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Ericsson - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.debug.core.model;

import org.eclipse.debug.core.commands.IDebugCommandHandler;

/**
 * Handler interface to toggle reverse debugging
 * @since 6.1
 */
public interface IReverseToggleHandler extends IDebugCommandHandler {
	/**
	 * Method to indicate if the IElementUpdate logic should be used
	 * to update the checked state of the corresponding command.
	 * {@link isReverseToggle} will only be used if this method returns true.
	 */
	boolean toggleNeedsUpdating();

	/**
	 * Method that returns if the toggle button should show as checked or not.
	 * Only used if {@link toggleNeedsUpdating} return true.
	 *
	 * @param context The currently selected context.
	 * @return if the reverse toggle button should show as checked or not.
	 */
	boolean isReverseToggled(Object context);
}

Back to the top