Java 类org.eclipse.debug.core.sourcelookup.ISourceContainerType 实例源码
项目:chromedevtools
文件:SourceNameMapperContainer.java
public ISourceContainer createSourceContainer(String memento) throws CoreException {
MementoFormat.Parser parser = new MementoFormat.Parser(memento);
String prefix;
String typeId;
String subContainerMemento;
try {
prefix = parser.nextComponent();
typeId = parser.nextComponent();
subContainerMemento = parser.nextComponent();
} catch (MementoFormat.ParserException e) {
throw new CoreException(new Status(IStatus.ERROR,
ChromiumDebugPlugin.PLUGIN_ID, "Failed to parse memento", e)); //$NON-NLS-1$
}
ISourceContainerType subContainerType =
DebugPlugin.getDefault().getLaunchManager().getSourceContainerType(typeId);
ISourceContainer subContainer = subContainerType.createSourceContainer(subContainerMemento);
return new SourceNameMapperContainer(prefix, subContainer);
}
项目:goclipse
文件:LangSourceLookupDirector.java
@Override
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor)
throws CoreException {
ISourceContainer[] common = getSourceLookupDirector().getSourceContainers();
ISourceContainer[] containers = new ISourceContainer[common.length];
for (int i = 0; i < common.length; i++) {
ISourceContainer container = common[i];
ISourceContainerType type = container.getType();
// Clone the container to make sure that the original can be safely disposed.
if(container instanceof AbsolutePathSourceContainer) {
// LANG: Ensure our modifications are propagated.
container = new LangAbsolutePathSourceContainer();
} else {
container = type.createSourceContainer(type.getMemento(container));
}
containers[i] = container;
}
return containers;
}
项目:chromedevtools
文件:SourceNameMapperContainerDialog.java
private List<ISourceContainerType> filterTypes(ISourceContainerType[] types){
ArrayList<ISourceContainerType> result = new ArrayList<ISourceContainerType>();
for (int i = 0; i< types.length; i++) {
ISourceContainerType type = types[i];
if (director.supportsSourceContainerType(type)) {
ISourceContainerBrowser sourceContainerBrowser =
DebugUITools.getSourceContainerBrowser(type.getId());
if(sourceContainerBrowser != null &&
sourceContainerBrowser.canAddSourceContainers(director)) {
result.add(type);
}
}
}
return result;
}
项目:dsp4e
文件:AbsolutePathSourceContainer.java
@Override
public ISourceContainerType getType() {
return null;
}
项目:m2e.sourcelookup
文件:MyMvnSourceContainer.java
@Override
public ISourceContainerType getType() {
return getSourceContainerType(MyMvnSourceContainerTypeDelegate.TYPE_ID);
}
项目:chromedevtools
文件:VProjectSourceContainer.java
public ISourceContainerType getType() {
return DebugPlugin.getDefault().getLaunchManager().getSourceContainerType(TYPE_ID);
}
项目:chromedevtools
文件:SourceNameMapperContainer.java
public ISourceContainerType getType() {
return DebugPlugin.getDefault().getLaunchManager().getSourceContainerType(TYPE_ID);
}
项目:chromedevtools
文件:SourceNameMapperContainerDialog.java
public int compare(ISourceContainerType o1, ISourceContainerType o2) {
return o1.getName().compareTo(o2.getName());
}
项目:chromedevtools
文件:SourceNameMapperContainerDialog.java
ComboWrapper<ISourceContainerType> getContainerTypeCombo();