org.eclipse.debug.core.sourcelookup.ISourcePathComputer Java Examples

The following examples show how to use org.eclipse.debug.core.sourcelookup.ISourcePathComputer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SourceLookupDirector.java    From corrosion with Eclipse Public License 2.0 6 votes vote down vote up
@Override public ISourcePathComputer getSourcePathComputer() {
	ISourcePathComputer computer = super.getSourcePathComputer();
	if (computer != null) {
		return computer;
	}
	return new ISourcePathComputer() {

		CSourcePathComputerDelegate langSourcePathComputer = new CSourcePathComputerDelegate();

		@Override public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
			return langSourcePathComputer.computeSourceContainers(configuration, monitor);
		}

		@Override public String getId() {
			return CorrosionPlugin.PLUGIN_ID + ".SourceLocator"; //$NON-NLS-1$
		}
	};
}
 
Example #2
Source File: LangSourceLookupDirector.java    From goclipse with Eclipse Public License 1.0 6 votes vote down vote up
@Override
public ISourcePathComputer getSourcePathComputer() {
	ISourcePathComputer sourcePathComputer = super.getSourcePathComputer();
	if(sourcePathComputer != null) {
		return sourcePathComputer;
	}
	
	return new ISourcePathComputer() {
		
		LangSourcePathComputer langSourcePathComputer = new LangSourcePathComputer();
		
		@Override
		public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor)
				throws CoreException {
			return langSourcePathComputer.computeSourceContainers(configuration, monitor);
		}
		
		@Override
		public String getId() {
			return LangDebug.LANG_SOURCE_LOOKUP_DIRECTOR;
		}
	};
}