Java 类org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector 实例源码

项目:goclipse    文件:LangSourceLookupDirector.java   
protected ISourceLookupDirector getSourceLookupDirector() {
    ISourceLookupDirector commonSourceLookupDirector = new AbstractSourceLookupDirector() {
        @Override
        public void initializeParticipants() {
        }
    };

    ArrayList2<ISourceContainer> containers = new ArrayList2<>();
    containers.add(new LangAbsolutePathSourceContainer());
    containers.add(new ProgramRelativePathSourceContainer());

    customizeDefaultSourceContainers(containers);
    commonSourceLookupDirector.setSourceContainers(containers.toArray(ISourceContainer.class));

    return commonSourceLookupDirector;
}