Java源码示例:org.eclipse.cdt.dsf.service.DsfSession

示例1
@Override
protected MIVariableManager services_MIExpressions_createMIVariableManager(DsfSession session,
		DsfServicesTracker servicesTracker) {
	return new MIVariableManager_LangExtension(session, servicesTracker) {
		@Override
		protected GDBType getCorrectedGdbType(String newTypeName, GDBType gdbType) {
			if(gdbType.getType() == GDBType.POINTER && gdbType instanceof GDBDerivedType) {
				GDBDerivedType gdbDerivedType = (GDBDerivedType) gdbType;
				return gdbTypeParser.new GDBDerivedType(gdbDerivedType.getChild(), GDBType.REFERENCE);
			}
			return super.getCorrectedGdbType(newTypeName, gdbType);
		}
		
		@Override
		public String createChild_getChildFullExpression(String childFullExpression, MIVar childData) {
			return childFullExpression.replace(")->", ").");
		}
	};
}
 
示例2
@Override
protected ISourceLocator getSourceLocator(ILaunchConfiguration configuration, DsfSession session)
		throws CoreException {
	SourceLookupDirector locator = new SourceLookupDirector();
	String memento = configuration.getAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO, (String) null);
	if (memento == null) {
		locator.initializeDefaults(configuration);
	} else {
		locator.initializeFromMemento(memento, configuration);
	}
	return locator;
}
 
示例3
@Override
protected DsfSourceLookupDirector createDsfSourceLocator(ILaunchConfiguration configuration, DsfSession session)
		throws CoreException {
	DsfSourceLookupDirector sourceLookupDirector = new DsfSourceLookupDirector(session);
	sourceLookupDirector.setSourceContainers(
			((SourceLookupDirector) getSourceLocator(configuration, session)).getSourceContainers());
	return sourceLookupDirector;
}
 
示例4
public GdbVariableVMProvider_Override(AbstractVMAdapter adapter, IPresentationContext context,
		DsfSession session) {
	super(adapter, context, session);
	
	getPresentationContext().setProperty(
			IDebugVMConstants.PROP_FORMATTED_VALUE_FORMAT_PREFERENCE,
			MIExpressions.DETAILS_FORMAT);
}
 
示例5
@SuppressWarnings("unchecked")
@Override
protected <T> T createModelAdapter(Class<T> adapterType, ILaunch launch, DsfSession session) {
	if (IViewerInputProvider.class.equals(adapterType)) {
		return (T) createGdbViewModelAdapter(session, getSteppingController());
	}
	
	return super.createModelAdapter(adapterType, launch, session);
}
 
示例6
@Override
protected DsfSourceLookupDirector createDsfSourceLocator(ILaunchConfiguration lc, DsfSession session)
		throws CoreException {
	DsfSourceLookupDirector sourceLookupDirector = createSourceLookupDirector(lc, session);
	
	sourceLookupDirector.addParticipants(
			new ISourceLookupParticipant[]{ new DsfSourceLookupParticipant(session) } );
	return sourceLookupDirector;
}
 
示例7
protected GDBControl getGdbControl_override(DsfSession session, ILaunchConfiguration config, 
		GdbDebugServicesFactory gdbSvcFactory) {
	GDBControl gdbControl = null;
	
	if(GdbDebugServicesFactory.GDB_7_7_VERSION.compareTo(gdbSvcFactory.getVersion()) <= 0) {
		gdbControl = new GDBControl_7_7(session, config, new CommandFactory_6_8()) {
			@Override
			protected Sequence getCompleteInitializationSequence(Map<String, Object> attributes,
					RequestMonitorWithProgress rm) {
				return getCompleteInitializationSequence__GDBControl_7_7__ext(getSession(), attributes, rm);
			}
		};
	}
	return gdbControl;
}
 
示例8
public Lang_GdbExpressionVMProvider(AbstractVMAdapter adapter, IPresentationContext context, DsfSession session) {
	super(adapter, context, session);
}
 
示例9
public Lang_GdbVariableVMProvider(AbstractVMAdapter adapter, IPresentationContext context,
		DsfSession session) {
	super(adapter, context, session);
}
 
示例10
public GdbExpressionVMProvider_Override(AbstractVMAdapter adapter, IPresentationContext context,
		DsfSession session) {
	super(adapter, context, session);
}
 
示例11
GdbVariableVMNode_Override(AbstractDMVMProvider provider, DsfSession session,
		SyncVariableDataAccess syncVariableDataAccess) {
	super(provider, session, syncVariableDataAccess);
}
 
示例12
public GdbExtendedViewModelAdapter(DsfSession session, SteppingController controller) {
	super(session, controller);
}
 
示例13
@Override
protected GdbSessionAdapters createGdbSessionAdapters(ILaunch launch, DsfSession session) {
	return new GdbExtendedSessionAdapters(launch, session, getAdapterList());
}
 
示例14
public GdbExtendedSessionAdapters(ILaunch launch, DsfSession session, Class<?>[] launchAdapterTypes) {
	super(launch, session, launchAdapterTypes);
}
 
示例15
public LangSourceLookupDirector(DsfSession session) {
	super(session);
	this.session = session;
}
 
示例16
protected DsfSourceLookupParticipantExtension(DsfSession session) {
	super(session);
}
 
示例17
@Override
protected ISourceLocator getSourceLocator(ILaunchConfiguration configuration, DsfSession session)
		throws CoreException {
	return super.getSourceLocator(configuration, session);
}
 
示例18
@SuppressWarnings("unused")
protected LangSourceLookupDirector createSourceLookupDirector(ILaunchConfiguration lc, DsfSession session) {
	return new LangSourceLookupDirector(session);
}
 
示例19
public MIVariableManager_LangExtension(DsfSession session, DsfServicesTracker tracker) {
	super(session, tracker);
}
 
示例20
protected Sequence getCompleteInitializationSequence__GDBControl_7_7__ext(DsfSession session, Map<String, Object> attributes, 
		RequestMonitorWithProgress rm) {
	return new FinalLaunchSequence_7_7(session, attributes, rm);
}
 
示例21
public IExpressions createExpressionService(DsfSession session) {
	IMIExpressions originialExpressionService = new MIExpressions_Override(session);
	return new GDBPatternMatchingExpressions(session, originialExpressionService);
}
 
示例22
public MIExpressions_Override(DsfSession session) {
	super(session);
}
 
示例23
protected MIVariableManager services_MIExpressions_createMIVariableManager(DsfSession session,
		DsfServicesTracker servicesTracker) {
	return new MIVariableManager_LangExtension(session, servicesTracker);
}
 
示例24
public IMIBackend createBackendGDBService(DsfSession session, ILaunchConfiguration lc) {
	return new GDBBackend(session, lc);
}
 
示例25
public GDBBackend_Lang(DsfSession session, ILaunchConfiguration lc) {
	super(session, lc);
	
	this.fLaunchConfiguration = lc;
	this.project = getProject(lc);
}