Package org.eclipse.debug.core.sourcelookup

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


     ISourceLookupDirector sourceLocator = new AbstractSourceLookupDirector() {
        public void initializeParticipants() {
          addParticipants(new ISourceLookupParticipant[] {new JavaSourceLookupParticipant()});       
        }     
    };
    ISourcePathComputer computer = DebugPlugin.getDefault().getLaunchManager().getSourcePathComputer("org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer");
    sourceLocator.setSourcePathComputer(computer);

   
    List<IJavaProject> javaProjectList = new ArrayList<IJavaProject>();
    StringBuffer traceBuffer = new StringBuffer();   
View Full Code Here


  protected void setSourceLocator(ILaunch launch) throws CoreException {
    ILaunchConfiguration configuration = launch.getLaunchConfiguration();
    if (launch.getSourceLocator() == null) {
      ISourceLookupDirector sourceLocator = new JavaSourceLookupDirector();
      ISourcePathComputer locator = getLaunchManager().getSourcePathComputer(SOURCE_LOCATOR);
      if (locator != null) {
        sourceLocator.setSourcePathComputer(locator); //$NON-NLS-1$
        sourceLocator.initializeDefaults(configuration);
        launch.setSourceLocator(sourceLocator);
      }
View Full Code Here

    HashSet allContainers = new HashSet(Arrays.asList(defaultContainers));
    Iterator i = getAdditionalSrcPathComputers().iterator();
    ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
    Trace.trace(Trace.INFO, "Total # of unique source containers: " + allContainers.size());
    while(i.hasNext()) {
      ISourcePathComputer computer = mgr.getSourcePathComputer((String) i.next());
      Trace.trace(Trace.INFO, "Invoking Source Path Computer " +  computer.getId());
      ISourceContainer[] jsc = computer.computeSourceContainers(configuration, monitor);
      if(jsc != null) {
        Trace.trace(Trace.INFO, "Additional Source Containers returned ...");
        for(int j = 0; j < jsc.length; j++) {
          String name = jsc[j].getName();
          Trace.trace(Trace.INFO, "name = " + name);
View Full Code Here

    }
  }
 
  @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)
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.sourcelookup.ISourcePathComputer

Copyright © 2018 www.massapicom. 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.