本文整理汇总了Java中org.eclipse.debug.ui.actions.IToggleBreakpointsTarget类的典型用法代码示例。如果您正苦于以下问题:Java IToggleBreakpointsTarget类的具体用法?Java IToggleBreakpointsTarget怎么用?Java IToggleBreakpointsTarget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IToggleBreakpointsTarget类属于org.eclipse.debug.ui.actions包,在下文中一共展示了IToggleBreakpointsTarget类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAdapter
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) {
if (adapterType == IToggleBreakpointsTarget.class) {
if (adaptableObject instanceof ExtensionBasedTextEditor || adaptableObject instanceof TextEditor) {
return (T) new DSPBreakpointAdapter();
}
}
return null;
}
示例2: getAdapter
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public Object getAdapter(Object adaptableObject, @SuppressWarnings("rawtypes") Class adapterType) {
if (adapterType.equals(IToggleBreakpointsTarget.class)) {
return new BfToggleBreakpointsTarget();
}
return null;
}
示例3: getAdapter
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
public Object getAdapter( Object adaptableObject, Class adapterType )
{
if (adapterType == IRunToLineTarget.class) {
return new ScriptRunToLineAdapter();
}
else if (adapterType == IToggleBreakpointsTarget.class)
{
return new ScriptLineBreakpointAdapter( );
}
return null;
}
示例4: getAdapter
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) {
if (adaptableObject instanceof ITextEditor && adapterType == IToggleBreakpointsTarget.class) {
ITextEditor iTextEditor = (ITextEditor) adaptableObject;
if (canToggleFor(iTextEditor)) {
return (T) new PyDjangoToggleBreakpointsTarget();
}
return null;
}
return null;
}
示例5: addMarker
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
/**
* This is the function that actually adds the marker to the Eclipse
* structure.
*/
protected void addMarker() {
IDocument document = getDocument();
int rulerLine = getInfo().getLineOfLastMouseButtonActivity();
IToggleBreakpointsTarget adapter = (IToggleBreakpointsTarget) getTextEditor().getAdapter(
IToggleBreakpointsTarget.class);
if (adapter instanceof IPyToggleBreakpointsTarget) {
IPyToggleBreakpointsTarget iPyToggleBreakpointsTarget = (IPyToggleBreakpointsTarget) adapter;
iPyToggleBreakpointsTarget.addBreakpointMarker(document, rulerLine + 1, fTextEditor);
} else {
addBreakpointMarker(document, rulerLine + 1, fTextEditor, PyBreakpoint.PY_BREAK_TYPE_PYTHON);
}
}
示例6: createToggleTarget
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public IToggleBreakpointsTarget createToggleTarget(String targetID) {
if(targetID.equals(DebugUI_Actual.LANG_BREAKPOINT_FACTORY_ID)) {
return DebugUI_Actual.createToggleBreakPointAdapter();
}
if(targetID.equals(DYNAMIC_PRINTF_FACTORY_ID)) {
return DebugUI_Actual.createDynamicPrintfBreakpoint();
}
return null;
}
示例7: getAdapterList
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public Class<?>[] getAdapterList() {
return new Class[] { IToggleBreakpointsTarget.class };
}
示例8: createToggleTarget
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public IToggleBreakpointsTarget createToggleTarget(String targetID) {
return new ToggleJimpleBreakpointsTarget();
}
示例9: getAdapter
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (adapterType.equals(IToggleBreakpointsTarget.class)) {
return getToggleBreakpointAdapter();
}
return null;
}
示例10: getAdapterList
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
public Class[] getAdapterList() {
return new Class[] { IToggleBreakpointsTarget.class };
}
示例11: createToggleTarget
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public IToggleBreakpointsTarget createToggleTarget(String targetID) {
return new MontoToggleBreakpointsTarget();
}
示例12: getAdapterList
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public Class[] getAdapterList() {
return new Class[] { IToggleBreakpointsTarget.class };
}
示例13: createToggleTarget
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public IToggleBreakpointsTarget createToggleTarget(String targetID) {
return new LineBreakpointAdapter.ForVirtualProject();
}
示例14: getAdapterList
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
public Class[] getAdapterList( )
{
return new Class[]{
IToggleBreakpointsTarget.class, IRunToLineTarget.class
};
}
示例15: getAdapterList
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget; //导入依赖的package包/类
@Override
public Class<?>[] getAdapterList() {
return new Class[] { IToggleBreakpointsTarget.class };
}