ICSettingsStorage getStorageBase() throws CoreException { if (fStorage == null) // fStorage = new CStorage((InternalXmlStorageElement) getRootStorageElement()); throw ExceptionFactory.createCoreException( "CProjectDescription ICSettingsStorage == null"); //$NON-NLS-1$ return fStorage; }
public ICStorageElement getRootStorageElement() throws CoreException { if (fRootStorageElement == null) throw ExceptionFactory.createCoreException( "CProjectDescription ICStorageElement == null"); //$NON-NLS-1$ // if (fRootStorageElement == null) { // fRootStorageElement = CProjectDescriptionManager.getInstance().createStorage(fProject, // true, true, isReadOnly()); // } return fRootStorageElement; }
/** * Return a 2-element array String[]{projName, cfgId} * * @param id id to parse, must not be null * @return String[]{projName, cfgId} * @throws CoreException if prjName not valid */ private static String[] parseId(String id) throws CoreException { if (id == null) throw new NullPointerException(); String projName, cfgId; int index = id.indexOf(DELIMITER); if (index != -1) { projName = id.substring(0, index); cfgId = id.substring(index + 1); } else { projName = id; cfgId = ACTIVE_CONFIG_ID; } if ((projName = projName.trim()).length() == 0) throw ExceptionFactory.createCoreException( SettingsModelMessages.getString("CfgExportSettingContainerFactory.2")); // $NON-NLS-1$ return new String[] {projName, cfgId}; }