Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JBrowser Source Code Files
JBrowser Source Code Files are provided in the source package file.
You can download JBrowser source package as described in the previous tutorial and go to the "src" sub-folder to view Source Code files.
You can also browse JBrowser Source Code files below:
✍: FYIcenter
⏎ org/mozilla/browser/impl/LocationProvider.java
/******************************************************************* * * Licensed Materials - Property of IBM * * AJAX Toolkit Framework 6-28-496-8128 * * (c) Copyright IBM Corp. 2006 All Rights Reserved. * * U.S. Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. * *******************************************************************/ package org.mozilla.browser.impl; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.mozilla.browser.common.Platform; import org.mozilla.xpcom.IAppFileLocProvider; public class LocationProvider implements IAppFileLocProvider { static Log log = LogFactory.getLog(LocationProvider.class); private File libXULPath; private File profile; private File history; public LocationProvider(File aBinPath, File aProfileDir) throws IOException { libXULPath = aBinPath; profile = aProfileDir; if (!libXULPath.exists() || !libXULPath.isDirectory()) { throw new FileNotFoundException("libxul directory specified is not valid: " //$NON-NLS-1$ + libXULPath.getAbsolutePath()); } if (profile != null && (!profile.exists() || !profile.isDirectory())) { throw new FileNotFoundException("profile directory specified is not valid: " //$NON-NLS-1$ + profile.getAbsolutePath()); } // create history file if (profile != null) { setupProfile(); } } private void setupProfile() throws IOException { history = new File(profile, "history.dat"); //$NON-NLS-1$ if (!history.exists()) { history.createNewFile(); } } public File getFile(String aProp, boolean[] aPersistent) { File file = null; if (aProp.equals("GreD") || aProp.equals("GreComsD")) { //$NON-NLS-1$ //$NON-NLS-2$ // file = new File(grePath); file = libXULPath; if (aProp.equals("GreComsD")) { //$NON-NLS-1$ file = new File(file, "components"); //$NON-NLS-1$ } } else if (aProp.equals("MozBinD") || //$NON-NLS-1$ aProp.equals("CurProcD") || //$NON-NLS-1$ aProp.equals("ComsD")) //$NON-NLS-1$ { file = libXULPath; if (aProp.equals("ComsD")) { //$NON-NLS-1$ file = new File(file, "components"); //$NON-NLS-1$ } } else if (aProp.equals("ProfD") || aProp.equals("ProfDS") || aProp.equals("ProfLD") || aProp.equals("ProfLDS")) { return profile; } else if (aProp.equals("UAppData")) { //$NON-NLS-1$ return profile; } else if (aProp.equals("UMimTyp") && profile!=null) { //$NON-NLS-1$ file = new File(profile, "mimeTypes.rdf"); //$NON-NLS-1$ } else if (aProp.equals("UHist")) { //$NON-NLS-1$ return history; } else if (aProp.equals("XCurProcD")) { //$NON-NLS-1$ if (profile!=null) { return profile; } else { String userDir = System.getProperty("user.dir"); //$NON-NLS-1$ return new File(userDir); } } // else { // log.debug("LocationProvider::getFile() => unhandled property = " + aProp); // } return file; } public File[] getFiles(String aProp) { File[] files = null; if (aProp.equals("APluginsDL")) { //$NON-NLS-1$ if(Platform.platform == Platform.OSX){ log.debug("Adding global plugins for OSX"); //$NON-NLS-1$ files = new File[2]; files[0] = new File(libXULPath, "plugins"); //$NON-NLS-1$ files[1] = new File("/Library/Internet Plug-Ins"); //$NON-NLS-1$ } else { files = new File[1]; files[0] = new File(libXULPath, "plugins"); //$NON-NLS-1$ } // } else { // log.debug("LocationProvider::getFiles() => unhandled property = " + aProp); } return files; } }
⏎ org/mozilla/browser/impl/LocationProvider.java
Or download all of them as a single archive file:
File name: jbrowser-1.9-fyi.zip File size: 625318 bytes Release date: 2022-11-10 Download
⇐ Download and Install JBrowser Source Package
2017-07-17, 8535👍, 1💬
Popular Posts:
Where to find answers to frequently asked questions on Download and Installing of Older Versions? He...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...