MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / isDisplayable

Method isDisplayable

src/org/opensourcephysics/tools/Launcher.java:2453–2461  ·  view source on GitHub ↗

Check to see if a path is displayable using HTMLEditorKit. This will be the case if the path has a hash-tag reference or does not end in ".pdf", ".doc", or ".txt". @param path @return true if displayable using HTMLEditorKit

(String path)

Source from the content-addressed store, hash-verified

2451 * @return true if displayable using HTMLEditorKit
2452 */
2453 public static boolean isDisplayable(String path) {
2454 if (path.indexOf("#") < 0) {
2455 for (String ext : extractExtensions) {
2456 if (path.endsWith(ext))
2457 return false;
2458 }
2459 }
2460 return true;
2461 }
2462
2463 /**
2464 * Gets the node path and page number associated with an html URL. May return

Callers 15

handleHyperLinkMethod · 0.95
setURLMethod · 0.95
setURLMethod · 0.95
refreshGUIMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
showDataTableMethod · 0.80
disposeChildWindowsMethod · 0.80

Calls

no outgoing calls

Tested by 1

ImportExportJDialogMethod · 0.64