Examples of ISourceContainer


Examples of org.eclipse.debug.core.sourcelookup.ISourceContainer

    ISourcePathComputerDelegate {

  public ISourceContainer[] computeSourceContainers(
      ILaunchConfiguration configuration, IProgressMonitor monitor)
      throws CoreException {
    ISourceContainer sourceContainer;
    String projectName = configuration.getAttribute(
        IPHPDebugConstants.PHP_Project, (String) null);
    if (projectName != null) {
      IProject project = ResourcesPlugin.getWorkspace().getRoot()
          .getProject(projectName);
View Full Code Here

Examples of org.eclipse.debug.core.sourcelookup.ISourceContainer

  }

  protected ISourceContainer[] createSourceContainers() throws CoreException {
    ArrayList<ISourceContainer> containers = new ArrayList<ISourceContainer>();

    ISourceContainer projectContainer = new ProjectSourceContainer(project,
        false);
    containers.add(projectContainer);
    IBuildpathEntry[] entries = DLTKCore.create(project).getRawBuildpath();
    if (entries != null) {
      for (IBuildpathEntry element : entries) {
View Full Code Here

Examples of org.eclipse.debug.core.sourcelookup.ISourceContainer

public class TeaVMSourceLookupParticipant extends AbstractSourceLookupParticipant {
    private Map<ISourceContainer, ISourceContainer> delegateContainers = new HashMap<>();

    @Override
    protected ISourceContainer getDelegateContainer(ISourceContainer container) {
        ISourceContainer delegate = delegateContainers.get(container);
        return delegate != null ? delegate : super.getDelegateContainer(container);
    }
View Full Code Here

Examples of org.eclipse.debug.core.sourcelookup.ISourceContainer

    @Override
    public void sourceContainersChanged(ISourceLookupDirector director) {
        delegateContainers.clear();
        ISourceContainer[] containers = director.getSourceContainers();
        for (int i = 0; i < containers.length; i++) {
            ISourceContainer container = containers[i];
            if (container.getType().getId().equals(ArchiveSourceContainer.TYPE_ID)) {
                IFile file = ((ArchiveSourceContainer)container).getFile();
                IProject project = file.getProject();
                IJavaProject javaProject = JavaCore.create(project);
                if (javaProject.exists()) {
                    try {
View Full Code Here

Examples of org.eclipse.debug.core.sourcelookup.ISourceContainer

        throws CoreException {
      ISourceContainer[] common = getCommonSourceLookupDirector().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.
        container = type.createSourceContainer(type.getMemento(container));
        containers[i] = container;
      }
      return containers;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.