当前位置: 首页>>代码示例>>Java>>正文


Java IBreakpoint.isEnabled方法代码示例

本文整理汇总了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 )
	{

	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:ScriptDebugTarget.java

示例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);
        }
    }
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:18,代码来源:EnableDisableBreakpointRulerAction.java

示例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);
		}
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:20,代码来源:DSLDebugTargetAdapter.java

示例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
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:21,代码来源:AbstractDSLDebuggerServices.java

示例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
	}
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:20,代码来源:DSLLabelDecorator.java

示例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();
		}
	}
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:15,代码来源:DSPDebugTarget.java

示例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) {
		}
	}
}
 
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:14,代码来源:DSPDebugTarget.java


注:本文中的org.eclipse.debug.core.model.IBreakpoint.isEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。