cdt/cdt_5_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/Executable.java
changeset 14 c50c3d06898c
parent 0 0e6d23e2b466
equal deleted inserted replaced
8:2cfb52d98e82 14:c50c3d06898c
   129 			else
   129 			else
   130 				return this.getProject();
   130 				return this.getProject();
   131 		return super.getAdapter(adapter);
   131 		return super.getAdapter(adapter);
   132 	}
   132 	}
   133 
   133 
   134 	public TranslationUnit[] getSourceFiles(IProgressMonitor monitor) {
   134 	public synchronized TranslationUnit[] getSourceFiles(IProgressMonitor monitor) {
   135 		
   135 		
   136 		if (!refreshSourceFiles)
   136 		if (!refreshSourceFiles)
   137 			return sourceFiles.toArray(new TranslationUnit[sourceFiles.size()]) ;
   137 			return sourceFiles.toArray(new TranslationUnit[sourceFiles.size()]) ;
   138 		
   138 		
   139 		// Try to get the list of source files used to build the binary from the
   139 		// Try to get the list of source files used to build the binary from the
   227 
   227 
   228 	public void setRefreshSourceFiles(boolean refreshSourceFiles) {
   228 	public void setRefreshSourceFiles(boolean refreshSourceFiles) {
   229 		this.refreshSourceFiles = refreshSourceFiles;
   229 		this.refreshSourceFiles = refreshSourceFiles;
   230 	}
   230 	}
   231 
   231 
   232 	public String getOriginalLocation(ITranslationUnit tu) {
   232 	public synchronized String getOriginalLocation(ITranslationUnit tu) {
   233 		String orgLocation = remappedPaths.get(tu);
   233 		String orgLocation = remappedPaths.get(tu);
   234 		if (orgLocation == null)
   234 		if (orgLocation == null)
   235 			orgLocation = tu.getLocation().toOSString();
   235 			orgLocation = tu.getLocation().toOSString();
   236 		return orgLocation;
   236 		return orgLocation;
   237 	}
   237 	}