
org.eclipse.debug.ui.actions.IToggleBreakpointsTargetManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.debug.ui Show documentation
Show all versions of org.eclipse.debug.ui Show documentation
This is org.eclipse.debug.ui jar used by Scout SDK
The newest version!
/*******************************************************************************
* Copyright (c) 2012, 2013 Wind River Systems 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:
* Wind River Systems - initial API and implementation
* IBM Corporation - bug fixing
*******************************************************************************/
package org.eclipse.debug.ui.actions;
import java.util.Set;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchPart;
/**
* Organizes the toggle breakpoints target factories contributed through the
* extension point and keeps track of the toggle breakpoints target that
* the factories produce. The manager is accessed as a singleton through
* the getDefault()
method.
*
* The adapter mechanism for obtaining a toggle breakpoints target is
* still supported through a specialized toggle target factory. Targets
* contributed through this mechanism are labeled as "Default" in the UI.
*
*
* Clients should call {@link org.eclipse.debug.ui.DebugUITools#getToggleBreakpointsTargetManager()}
* for an instance of this instance.
*
*
* @see IToggleBreakpointsTargetFactory
* @see IToggleBreakpointsTarget
* @see IToggleBreakpointsTargetExtension
*
* @since 3.8
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IToggleBreakpointsTargetManager {
/**
* Returns the set of String
IDs of toggle breakpoint targets,
* which are enabled for the given active part and selection. The IDs can be used
* to create the {@link IToggleBreakpointsTarget} instance.
* @param part active part
* @param selection active selection in part
* @return Set of toggle target IDs or an empty set
*/
public Set getEnabledToggleBreakpointsTargetIDs(IWorkbenchPart part, ISelection selection);
/**
* Returns the ID of the calculated preferred toggle breakpoints target for the
* given active part and selection. The returned ID is chosen based on factory
* enablement, whether the target is a default one, and on user choice.
* @param part active part
* @param selection active selection in part
* @return The toggle target IDs or null if none.
*/
public String getPreferredToggleBreakpointsTargetID(IWorkbenchPart part, ISelection selection);
/**
* Given the ID of toggle breakpoint target, this method will try to find the factory
* that creates it and return an instance of it.
*
* @param part The workbench part in which toggle target is to be used
* @param selection The active selection to use with toggle target
* @return The instantiated target or null
*/
public IToggleBreakpointsTarget getToggleBreakpointsTarget(IWorkbenchPart part, ISelection selection);
/**
* Given the ID of a toggle breakpoints target, this method will try
* to find the factory that creates it and ask it for the name of it.
*
* @param id The ID of the requested toggle breakpoint target.
* @return The name of the target.
*/
public String getToggleBreakpointsTargetName(String id);
/**
* Given the ID of a toggle breakpoints target, this method will try
* to find the factory that creates it and ask it for the description of it.
*
* @param id The ID of the requested toggle breakpoint target.
* @return The description of the target or null.
*/
public String getToggleBreakpointsTargetDescription(String id);
/**
* Adds the given listener to the list of listeners notified when the preferred
* toggle breakpoints targets change.
* @param listener The listener to add.
*/
public void addChangedListener(IToggleBreakpointsTargetManagerListener listener);
/**
* Removes the given listener from the list of listeners notified when the preferred
* toggle breakpoints targets change.
* @param listener The listener to add.
*/
public void removeChangedListener(IToggleBreakpointsTargetManagerListener listener);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy