private void loadSourceRoots() { disabledSourceRoots = new HashSet<String> ( sourcesProperties.getProperties ("source_roots").getCollection ( "remote_disabled", Collections.EMPTY_SET ) ); additionalSourceRoots = new ArrayList<String>( sourcesProperties.getProperties("additional_source_roots").getCollection( "src_roots", Collections.EMPTY_LIST) ); }
private void loadSourceRoots() { disabledSourceRoots = new HashSet<String> ( sourcesProperties.getProperties ("source_roots").getCollection ( "remote_disabled", Collections.EMPTY_SET ) ); additionalSourceRoots = new ArrayList<String>( sourcesProperties.getProperties("additional_source_roots").getCollection( "src_roots", Collections.EMPTY_LIST) ); }
private void initSourcePaths () { Properties properties = Properties.getDefault (). getProperties ("debugger").getProperties ("sources"); Set originalSourceRoots = new HashSet (Arrays.asList ( sourcePathProvider.getOriginalSourceRoots () )); Set sourceRoots = new HashSet (Arrays.asList ( sourcePathProvider.getSourceRoots () )); Iterator enabledSourceRoots = properties.getProperties ("source_roots"). getCollection ("enabled", Collections.EMPTY_SET).iterator (); while (enabledSourceRoots.hasNext ()) { String root = (String) enabledSourceRoots.next (); if (originalSourceRoots.contains (root)) sourceRoots.add (root); } Iterator disabledSourceRoots = properties.getProperties ("source_roots"). getCollection ("disabled", Collections.EMPTY_SET).iterator (); while (disabledSourceRoots.hasNext ()) { String root = (String) disabledSourceRoots.next (); sourceRoots.remove (root); } String[] ss = new String [sourceRoots.size ()]; sourcePathProvider.setSourceRoots ((String[]) sourceRoots.toArray (ss)); }
private Set<String> getRemoteDisabledSourceRoots() { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); return (Set<String>) sourcesProperties.getProperties("source_roots"). getCollection("remote_disabled", Collections.emptySet()); }
private List<FileObject> getAdditionalRemoteClassPath() { Properties sourcesProperties = Properties.getDefault ().getProperties ("debugger").getProperties ("sources"); List<String> additionalSourceRoots = (List<String>) sourcesProperties. getProperties("additional_source_roots"). getCollection("src_roots", Collections.emptyList()); if (additionalSourceRoots == null || additionalSourceRoots.isEmpty()) { return null; } List<FileObject> additionalSourcePath = new ArrayList<FileObject>(additionalSourceRoots.size()); for (String ar : additionalSourceRoots) { FileObject fo = getFileObject(ar); if (fo != null && fo.canRead()) { additionalSourcePath.add(fo); } } this.additionalSourceRoots = new LinkedHashSet<String>(additionalSourceRoots); return additionalSourcePath; //return ClassPathSupport.createClassPath( // additionalSourcePath.toArray(new FileObject[0])); }