MCPcopy Index your code
hub / github.com/processing/processing / addPackageList

Method addPackageList

app/src/processing/app/Library.java:293–320  ·  view source on GitHub ↗
(Map<String, List<Library>> importToLibraryTable)

Source from the content-addressed store, hash-verified

291 */
292// public void addPackageList(HashMap<String,Library> importToLibraryTable) {
293 public void addPackageList(Map<String, List<Library>> importToLibraryTable) {
294// PApplet.println(packages);
295 for (String pkg : packageList) {
296// pw.println(pkg + "\t" + libraryFolder.getAbsolutePath());
297// PApplet.println(pkg + "\t" + getName());
298// Library library = importToLibraryTable.get(pkg);
299 List<Library> libraries = importToLibraryTable.get(pkg);
300 if (libraries == null) {
301 libraries = new ArrayList<>();
302 importToLibraryTable.put(pkg, libraries);
303 } else {
304 if (Base.DEBUG) {
305 System.err.println("The library found in");
306 System.err.println(getPath());
307 System.err.println("conflicts with");
308 for (Library library : libraries) {
309 System.err.println(library.getPath());
310 }
311 System.err.println("which already define(s) the package " + pkg);
312 System.err.println("If you have a line in your sketch that reads");
313 System.err.println("import " + pkg + ".*;");
314 System.err.println("Then you'll need to first remove one of those libraries.");
315 System.err.println();
316 }
317 }
318 libraries.add(this);
319 }
320 }
321
322
323 public boolean hasExamples() {

Callers 1

rebuildLibraryListMethod · 0.95

Calls 5

getPathMethod · 0.95
getMethod · 0.65
putMethod · 0.45
printlnMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected