本文整理汇总了Java中org.eclipse.debug.core.model.IBreakpoint.isEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java IBreakpoint.isEnabled方法的具体用法?Java IBreakpoint.isEnabled怎么用?Java IBreakpoint.isEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.debug.core.model.IBreakpoint
的用法示例。
在下文中一共展示了IBreakpoint.isEnabled方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: breakpointChanged
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
public void breakpointChanged( IBreakpoint breakpoint, IMarkerDelta delta )
{
if ( !supportsBreakpoint( breakpoint ) )
{
return;
}
try
{
if ( breakpoint.isEnabled( ) )
{
breakpointAdded( breakpoint );
}
else
{
breakpointRemoved( breakpoint, null );
}
}
catch ( CoreException e )
{
}
}
示例2: update
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
@Override
public void update() {
IBreakpoint breakpoint = getBreakpointFromLastLineOfActivityInCurrentEditor();
setBreakpoint(breakpoint);
if (breakpoint == null) {
setEnabled(false);
setText("&Disable Breakpoint");
} else {
setEnabled(true);
try {
boolean enabled = breakpoint.isEnabled();
setText(enabled ? "&Disable Breakpoint" : "&Enable Breakpoint");
} catch (CoreException ce) {
PydevDebugPlugin.log(IStatus.ERROR, ce.getLocalizedMessage(), ce);
}
}
}
示例3: breakpointRemoved
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.core.IBreakpointListener#breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint,
* org.eclipse.core.resources.IMarkerDelta)
*/
public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta) {
if (supportsBreakpoint(breakpoint)) {
try {
if (breakpoint.isEnabled()) {
// TODO EMF representation of breakpoints ?
final URI uri = ((DSLBreakpoint)breakpoint).getURI();
factory.getDebugger().handleEvent(new RemoveBreakpointRequest(uri));
}
} catch (CoreException e) {
Activator.getDefault().error(e);
}
}
}
示例4: breakpointChanged
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.core.IBreakpointListener#breakpointChanged(org.eclipse.debug.core.model.IBreakpoint,
* org.eclipse.core.resources.IMarkerDelta)
*/
public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta) {
try {
if (breakpoint instanceof DSLBreakpoint && delta.getAttribute(IBreakpoint.ENABLED) != null
&& breakpoint.isEnabled() != ((Boolean)delta.getAttribute(IBreakpoint.ENABLED))
.booleanValue()) {
final DSLBreakpoint dslBreakpoint = (DSLBreakpoint)breakpoint;
final Set<URI> instructionURIs = new HashSet<URI>();
instructionURIs.add(dslBreakpoint.getURI());
notifySirius(instructionURIs, dslBreakpoint.getModelIdentifier());
}
} catch (CoreException e) {
// ignore
}
}
示例5: breakpointChanged
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.core.IBreakpointListener#breakpointChanged(org.eclipse.debug.core.model.IBreakpoint,
* org.eclipse.core.resources.IMarkerDelta)
*/
public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta) {
try {
if (breakpoint instanceof DSLBreakpoint
&& breakpoint.getModelIdentifier().equals(getModelIdentifier())
&& delta.getAttribute(IBreakpoint.ENABLED) != null
&& breakpoint.isEnabled() != ((Boolean)delta.getAttribute(IBreakpoint.ENABLED))
.booleanValue()) {
fireLabelProviderChanged(breakpoint);
}
} catch (CoreException e) {
// ignore
}
}
示例6: breakpointAdded
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
@Override
public void breakpointAdded(IBreakpoint breakpoint) {
if (supportsBreakpoint(breakpoint)) {
try {
if ((breakpoint.isEnabled() && getBreakpointManager().isEnabled()) || !breakpoint.isRegistered()) {
addBreakpointToMap(breakpoint);
sendBreakpoints();
}
} catch (CoreException e) {
// TODO
e.printStackTrace();
}
}
}
示例7: breakpointChanged
import org.eclipse.debug.core.model.IBreakpoint; //导入方法依赖的package包/类
@Override
public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta) {
if (supportsBreakpoint(breakpoint)) {
try {
if (breakpoint.isEnabled() && getBreakpointManager().isEnabled()) {
breakpointAdded(breakpoint);
} else {
breakpointRemoved(breakpoint, null);
}
} catch (CoreException e) {
}
}
}