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); }
@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; }
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; }
@Override public ISourceContainerType getType() { return null; }
@Override public ISourceContainerType getType() { return getSourceContainerType(MyMvnSourceContainerTypeDelegate.TYPE_ID); }
public ISourceContainerType getType() { return DebugPlugin.getDefault().getLaunchManager().getSourceContainerType(TYPE_ID); }
public int compare(ISourceContainerType o1, ISourceContainerType o2) { return o1.getName().compareTo(o2.getName()); }
ComboWrapper<ISourceContainerType> getContainerTypeCombo();