}
public static void initializeProperties() {
// initialize some framework properties that must always be set
if (getProperty(PROP_FRAMEWORK) == null || getProperty(PROP_INSTALL_AREA) == null) {
CodeSource cs = FrameworkProperties.class.getProtectionDomain().getCodeSource();
if (cs == null)
throw new IllegalArgumentException(NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_PROPS_NOT_SET, PROP_FRAMEWORK + ", " + PROP_INSTALL_AREA)); //$NON-NLS-1$
URL url = cs.getLocation();
// allow props to be preset
if (getProperty(PROP_FRAMEWORK) == null)
setProperty(PROP_FRAMEWORK, url.toExternalForm());
if (getProperty(PROP_INSTALL_AREA) == null) {
String filePart = url.getFile();