This commit was manufactured by cvs2svn to create tag 'v20030313'.

Sprout from master 2003-03-13 23:16:50 UTC darins '*** empty log message ***'
Cherrypick from master 2003-03-13 04:10:32 UTC Dejan Glozic <dejan> '*** empty log message ***':
    update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdatePerspective.java
    update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIImages.java
    update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIPluginResources.properties
    update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/ConfigurationView.java
    update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/RenameDialog.java
Delete:
    ant/org.eclipse.ant.tests.ui/.classpath
    ant/org.eclipse.ant.tests.ui/.cvsignore
    ant/org.eclipse.ant.tests.ui/.project
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/dtd/test/dumper.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestEditor.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestLocationProvider.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestProblemRequestor.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestTextCompletionProcessor.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestUtils.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorContentOutlineTests.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorTests.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/CodeCompletionTest.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/EnclosingTargetSearchingHandlerTest.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/TaskDescriptionProviderTest.java
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.Cp1251.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.UTF8.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildsWithSpecialEncoding.zip
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.properties
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest2.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/dependencytest.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/empty.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/outline_select_test_build.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/projectOnly.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/russianbuild.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test1.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test2.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test3.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test4.xml
    ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test5.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/.project
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/readme.txt
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.classpath
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.project
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin.log
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin/main.class
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.class
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.java
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/.project
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Buildfile Error/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Custom Build filename/customBuild.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing default target/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project element/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project name/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Similar Dependencies/build.xml
    ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Simple Dependency/build.xml
    ant/org.eclipse.ant.tests.ui/about.html
    ant/org.eclipse.ant.tests.ui/build.properties
    ant/org.eclipse.ant.tests.ui/plugin.properties
    ant/org.eclipse.ant.tests.ui/plugin.xml
    ant/org.eclipse.ant.ui/.classpath
    ant/org.eclipse.ant.ui/.cvsignore
    ant/org.eclipse.ant.ui/.project
    ant/org.eclipse.ant.ui/README.txt
    platform/org.eclipse.platform/.classpath
    platform/org.eclipse.platform/.cvsignore
    platform/org.eclipse.platform/.eclipseproduct
    platform/org.eclipse.platform/.project
    platform/org.eclipse.platform/about.html
    platform/org.eclipse.platform/about.ini
    platform/org.eclipse.platform/about.mappings
    platform/org.eclipse.platform/about.properties
    platform/org.eclipse.platform/build.properties
    platform/org.eclipse.platform/cpl-v10.html
    platform/org.eclipse.platform/eclipse.gif
    platform/org.eclipse.platform/eclipse32.gif
    platform/org.eclipse.platform/eclipse_lg.gif
    platform/org.eclipse.platform/install.ini
    platform/org.eclipse.platform/notice.html
    platform/org.eclipse.platform/plugin.properties
    platform/org.eclipse.platform/plugin.xml
    platform/org.eclipse.platform/plugin_customization.ini
    platform/org.eclipse.platform/plugin_customization.properties
    platform/org.eclipse.platform/splash.bmp
    platform/org.eclipse.platform/src/org/eclipse/core/launcher/Main.java
    platform/org.eclipse.platform/src/org/eclipse/core/launcher/package.html
    platform/org.eclipse.platform/welcome.xml
    update/org.eclipse.update.core.linux/.classpath
    update/org.eclipse.update.core.linux/.cvsignore
    update/org.eclipse.update.core.linux/.project
    update/org.eclipse.update.core.linux/about.html
    update/org.eclipse.update.core.linux/build.properties
    update/org.eclipse.update.core.linux/fragment.xml
    update/org.eclipse.update.core.linux/src/build.xml
    update/org.eclipse.update.core.linux/src/update.cpp
    update/org.eclipse.update.core.linux/src/update.h
    update/org.eclipse.update.core.win32/.classpath
    update/org.eclipse.update.core.win32/.cvsignore
    update/org.eclipse.update.core.win32/.project
    update/org.eclipse.update.core.win32/about.html
    update/org.eclipse.update.core.win32/build.properties
    update/org.eclipse.update.core.win32/fragment.xml
    update/org.eclipse.update.core.win32/os/win32/x86/update.dll
    update/org.eclipse.update.core.win32/src/build.xml
    update/org.eclipse.update.core.win32/src/update.cpp
    update/org.eclipse.update.core.win32/src/update.h
    update/org.eclipse.update.core/.classpath
    update/org.eclipse.update.core/.cvsignore
    update/org.eclipse.update.core/.options
    update/org.eclipse.update.core/.project
    update/org.eclipse.update.core/Scrapbook.jpage
    update/org.eclipse.update.core/about.html
    update/org.eclipse.update.core/build.properties
    update/org.eclipse.update.core/plugin.properties
    update/org.eclipse.update.core/plugin.xml
    update/org.eclipse.update.core/schema/featureTypes.exsd
    update/org.eclipse.update.core/schema/installHandlers.exsd
    update/org.eclipse.update.core/schema/siteTypes.exsd
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IActivity.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSite.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSiteChangedListener.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfiguration.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfigurationChangedListener.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallDeltaHandler.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSite.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSiteChangedListener.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSystemInfoListener.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IProblemHandler.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/ISessionDelta.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/IVolume.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/LocalSystemInfo.java
    update/org.eclipse.update.core/src/org/eclipse/update/configuration/package.html
    update/org.eclipse.update.core/src/org/eclipse/update/core/ArchiveReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/BaseFeatureFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/BaseInstallHandler.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/BaseSiteFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Category.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ContentReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Feature.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IArchiveReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ICategory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IFeature.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IImport.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IIncludedFeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandler.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandlerEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/INonPluginEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IPlatformEnvironment.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IPluginEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ISite.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactoryExtension.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IURLEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IUpdateConstants.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationListener.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationResult.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IVerifier.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Import.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/IncludedFeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/InstallHandlerEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/InstallMonitor.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/JarContentReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/JarEntryContentReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/NonPluginEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/PluginEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Site.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/SiteContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReference.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReferenceModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/SiteManager.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/URLEntry.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Utilities.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/Verifier.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/VersionedIdentifier.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/ArchiveReferenceModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/CategoryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/ContentEntryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultFeatureParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultSiteParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModelFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureReferenceModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/ImportModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/IncludedFeatureReferenceModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallAbortedException.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallHandlerEntryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/InvalidSiteTypeException.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/ModelObject.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/NonPluginEntryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/PluginEntryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModelFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/URLEntryModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/core/model/package.html
    update/org.eclipse.update.core/src/org/eclipse/update/core/package.html
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Assert.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/BaseSiteLocalFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationActivity.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationPolicy.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfiguredSite.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConnectionThreadManager.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/DefaultInstallHandler.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ErrorRecoveryLog.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureTypeFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FileResponse.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/HttpResponse.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ISiteContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IStatusCodes.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IWritable.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallConfiguration.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallHandlerProxy.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InternalSiteManager.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ListenersList.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/NonPluginEntryContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/PluginEntryContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Policy.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Response.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SessionDelta.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFile.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileNonPluginContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFilePluginContentConsumer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteLocal.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteReconciler.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteTypeFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLContentProvider.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLFactory.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/TargetFeature.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLEncoder.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLKey.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateCore.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerLogWriter.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerReconciler.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Volume.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/core/messages.properties
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationActivityModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationPolicyModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfiguredSiteModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/DefaultPluginParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallChangeParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalModel.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalParser.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/security/CertificatePair.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerificationResult.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeyStores.java
    update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeystoreHandle.java
    update/org.eclipse.update.examples/.classpath
    update/org.eclipse.update.examples/.cvsignore
    update/org.eclipse.update.examples/.project
    update/org.eclipse.update.examples/Scrapbook2.jpage
    update/org.eclipse.update.examples/about.html
    update/org.eclipse.update.examples/build.properties
    update/org.eclipse.update.examples/plugin.properties
    update/org.eclipse.update.examples/plugin.xml
    update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
    update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
    update/org.eclipse.update.examples/site/info/images/redDot.jpg
    update/org.eclipse.update.examples/site/info/siteInfo.html
    update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
    update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
    update/org.eclipse.update.examples/site/site.xml
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
    update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
    update/org.eclipse.update.tests.core/.classpath
    update/org.eclipse.update.tests.core/.cvsignore
    update/org.eclipse.update.tests.core/.project
    update/org.eclipse.update.tests.core/about.html
    update/org.eclipse.update.tests.core/build.properties
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/Pde_core.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/help.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/junit_3.7.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/helpFeature.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/org.eclipse.pde.feature_1.0.0.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/top_titlsm.gif
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/wel_ml.jpg
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/siteInfo.html
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/Pde_core.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/help.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/junit_3.7.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/site.xml
    update/org.eclipse.update.tests.core/data/FTPLikeSite/site.xml
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/site.xml
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/features/feature3/features2.jarfile
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/site.xml
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/features/feature3/features2.jarfile
    update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/site.xml
    update/org.eclipse.update.tests.core/data/Site with space/features space/helpFeature.jar
    update/org.eclipse.update.tests.core/data/Site with space/features space/space feature.jar
    update/org.eclipse.update.tests.core/data/Site with space/info/img/top_titlsm.gif
    update/org.eclipse.update.tests.core/data/Site with space/info/img/wel_ml.jpg
    update/org.eclipse.update.tests.core/data/Site with space/info/siteInfo.html
    update/org.eclipse.update.tests.core/data/Site with space/install/features space/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/Site with space/plugins space/Pde_core.jar
    update/org.eclipse.update.tests.core/data/Site with space/plugins space/help.jar
    update/org.eclipse.update.tests.core/data/Site with space/plugins space/junit_3.7.jar
    update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/Site with space/site.xml
    update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/features/feature3/features2.jarfile
    update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/site.xml
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/helpFeature.jar
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/org.eclipse.pde.feature_1.0.0.jar
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/Pde_core.jar
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/help.jar
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/junit_3.7.jar
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/top_titlsm.gif
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/wel_ml.jpg
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/siteInfo.html
    update/org.eclipse.update.tests.core/data/SiteURLTest/data/site.xml
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/file1.zip
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/install/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/site.xml
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/features/features3.jar
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/non data/another file.zip
    update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/site.xml
    update/org.eclipse.update.tests.core/data/features/features2.jar
    update/org.eclipse.update.tests.core/data/features/org.eclipse.test.feature_1.0.0.jar
    update/org.eclipse.update.tests.core/data/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
    update/org.eclipse.update.tests.core/data/features/org.eclipse_test_feature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/rootfeature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/site.xml
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/childrenfeature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/rootfeature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/site.xml
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/childrenfeature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/rootfeature.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
    update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/site.xml
    update/org.eclipse.update.tests.core/data/parsertests/feature1.xml
    update/org.eclipse.update.tests.core/data/parsertests/feature1bis.xml
    update/org.eclipse.update.tests.core/data/parsertests/feature2.xml
    update/org.eclipse.update.tests.core/data/parsertests/feature3.xml
    update/org.eclipse.update.tests.core/data/parsertests/feature4.xml
    update/org.eclipse.update.tests.core/data/parsertests/reddot.xml
    update/org.eclipse.update.tests.core/data/parsertests/reddot1.xml
    update/org.eclipse.update.tests.core/data/parsertests/site.properties
    update/org.eclipse.update.tests.core/data/parsertests/site.xml
    update/org.eclipse.update.tests.core/data/parsertests/site10.xml
    update/org.eclipse.update.tests.core/data/parsertests/site2.xml
    update/org.eclipse.update.tests.core/data/parsertests/site3.xml
    update/org.eclipse.update.tests.core/data/parsertests/site4.xml
    update/org.eclipse.update.tests.core/data/parsertests/site7.xml
    update/org.eclipse.update.tests.core/data/parsertests/site8.xml
    update/org.eclipse.update.tests.core/data/parsertests/site9.xml
    update/org.eclipse.update.tests.core/data/parsertests/siteftp.xml
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/reconciliationSites/site1/install/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/reconciliationSites/site2/install/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/plugin.xml
    update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/src.jar
    update/org.eclipse.update.tests.core/data/resources.properties
    update/org.eclipse.update.tests.core/data/site.xml
    update/org.eclipse.update.tests.core/data/site2/site.xml
    update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/plugin.xml
    update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/src.jar
    update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/plugin.xml
    update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/src.jar
    update/org.eclipse.update.tests.core/data/testAPI/features/feature3/feature.xml
    update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
    update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
    update/org.eclipse.update.tests.core/data/testAPI/site.xml
    update/org.eclipse.update.tests.core/data/validation/site2/.eclipseproduct
    update/org.eclipse.update.tests.core/data/validation/site3/.eclipseextension
    update/org.eclipse.update.tests.core/data/validation/site4/.eclipseUM
    update/org.eclipse.update.tests.core/data/validation/site5/.eclipseUM
    update/org.eclipse.update.tests.core/data/validation/site6/.eclipseUM
    update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse.test.feature_1.0.0/feature.xml
    update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse_test_feature/feature.xml
    update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature.xml
    update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature1.gif
    update/org.eclipse.update.tests.core/data/xmls/site1/site.xml
    update/org.eclipse.update.tests.core/plugin.properties
    update/org.eclipse.update.tests.core/plugin.xml
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateManagerTestCase.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateTestsPlugin.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/AllAPITests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/DefaultFeature.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/MyURLEntry.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultExecutableFeatureAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultPackageFeatureAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestFeatureContentProvider_FileFilterAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestLocalSiteAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestNestedFeatureAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestPluginContainerAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestUpdateManagerUtilsAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/AllConfigurationsTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestBackward.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestRevert.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/AllPlatformConfigurationTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/PlatformConfigurationTestCase.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgAPI.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgDefault.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTP.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTPFactory.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/AllModelTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/FeatureMain.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/SiteMain.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/feature.xml
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site.xml
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_old_format.xml
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_with_type.xml
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/test.properties
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nativeTests/TestLocalSystemInfo.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/AllNestedTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/TestInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/AllParserTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestCategories.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestFeatureParse.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestSiteParse.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/AllReconciliationTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/TestSiteReconciliation.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/AllRegularInstallTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/MultipleTestLocalSite.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestDataEntryInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutableInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutablePackagedInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestGetFeature.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstallURLSIteXML.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestLocalSite.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestSpaceInInstall.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/AllRegularRemoveTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/TestRemove.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/AllSiteValidationTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/TestSiteValidation.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/AllTypesTests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestFeatureType.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestSiteType.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/AllCoreUITests.java
    update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/TestUILabel.java
    update/org.eclipse.update.tests.core/test.xml
    update/org.eclipse.update.tests.core/test_with_mail.xml
    update/org.eclipse.update.tests.core/webserver/Site with space/features space/helpFeature.jar
    update/org.eclipse.update.tests.core/webserver/Site with space/features space/space feature.jar
    update/org.eclipse.update.tests.core/webserver/Site with space/info/img/top_titlsm.gif
    update/org.eclipse.update.tests.core/webserver/Site with space/info/img/wel_ml.jpg
    update/org.eclipse.update.tests.core/webserver/Site with space/info/siteInfo.html
    update/org.eclipse.update.tests.core/webserver/Site with space/install/features space/feature3/feature.xml
    update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/Pde_core.jar
    update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/help.jar
    update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/junit_3.7.jar
    update/org.eclipse.update.tests.core/webserver/Site with space/site.xml
    update/org.eclipse.update.tests.core/webserver/UpdateManager/features/helpFeature.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager/features/org.eclipse.pde.feature_1.0.0.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/top_titlsm.gif
    update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/wel_ml.jpg
    update/org.eclipse.update.tests.core/webserver/UpdateManager/info/siteInfo.html
    update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/Pde_core.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/help.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/junit_3.7.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager/site.xml
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/features2.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.test.feature_1.0.0.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse_test_feature.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/rootfeature.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/site.xml
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.properties
    update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.xml
    update/org.eclipse.update.tests.core/webserver/WEB-INF/web.xml
    update/org.eclipse.update.ui.forms/.classpath
    update/org.eclipse.update.ui.forms/.cvsignore
    update/org.eclipse.update.ui.forms/.project
    update/org.eclipse.update.ui.forms/about.html
    update/org.eclipse.update.ui.forms/build.properties
    update/org.eclipse.update.ui.forms/plugin.properties
    update/org.eclipse.update.ui.forms/plugin.xml
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractSectionForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/CustomWorkbook.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ExpandableGroup.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormButton.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormEntry.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormLabel.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormSection.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormWidgetFactory.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPlugin.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPluginResources.properties
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HTMLTableLayout.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkAdapter.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkHandler.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkSettings.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormPage.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormSelectionListener.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormTextListener.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormWorkbook.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IHyperlinkListener.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ILayoutExtension.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/NoTabsWorkbook.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ScrollableSectionForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionChangeManager.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableControl.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableFormLabel.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableData.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableLayoutTest.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ToggleControl.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/WebForm.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/BulletParagraph.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngine.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngineLayout.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HTTPAction.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkAction.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IBulletParagraph.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IHyperlinkSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IImageSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IObjectReference.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraph.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraphSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextModel.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ImageSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Locator.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Paragraph.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ParagraphSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextModel.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextSegment.java
    update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/index.xml
    update/org.eclipse.update.ui.win32/.classpath
    update/org.eclipse.update.ui.win32/.cvsignore
    update/org.eclipse.update.ui.win32/.project
    update/org.eclipse.update.ui.win32/about.html
    update/org.eclipse.update.ui.win32/build.properties
    update/org.eclipse.update.ui.win32/fragment.xml
    update/org.eclipse.update.ui.win32/icons/full/cview16/browser.gif
    update/org.eclipse.update.ui.win32/icons/full/eview16/browser.gif
    update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/BrowserControlSite.java
    update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/GlobalActionHandler.java
    update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowser.java
    update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowserView.java
    update/org.eclipse.update.ui/icons/full/obj16/efix2_obj.gif
    update/org.eclipse.update/.classpath
    update/org.eclipse.update/.cvsignore
    update/org.eclipse.update/.vcm_meta
    update/org.eclipse.update/about.html
    update/org.eclipse.update/build.properties
    update/org.eclipse.update/icons/full/ctool16/new.gif
    update/org.eclipse.update/icons/full/ctool16/update.gif
    update/org.eclipse.update/icons/full/wizban/new.gif
    update/org.eclipse.update/icons/full/wizban/revert.gif
    update/org.eclipse.update/icons/full/wizban/update.gif
    update/org.eclipse.update/plugin.properties
    update/org.eclipse.update/plugin.xml
    update/org.eclipse.update/plugin.xml.off
    update/org.eclipse.update/src/org/eclipse/update/internal/core/ISessionDefiner.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/IUMLock.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMLock.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionDefinerReferenceUpdate.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManager.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerEntry.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerMessage.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerOperation.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerParcel.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerSession.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/URLHandler.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManager.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerException.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerPlugin.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerStrings.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerURLComparator.java
    update/org.eclipse.update/src/org/eclipse/update/internal/core/updatemanagerstrings.properties
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/AuthorizationDatabase.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/Installation.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationDialog.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationResult.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationService.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerifier.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/KeyStores.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/Main.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplication.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterface.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterfaceProperties.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationWindow.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialog.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialogAction.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMPreferencePageSettings.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizard.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageComplete.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstallable.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstalling.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistory.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistoryComplete.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLocations.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLComplete.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstall.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstallable.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstalling.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPersistentProperties.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentNew.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentRevert.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentURLInstall.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentUpdate.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItem.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItemComparator.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardURLNamePairComparator.java
    update/org.eclipse.update/src/org/eclipse/update/internal/ui/UserValidationDialog.java
diff --git a/ant/org.eclipse.ant.tests.ui/.classpath b/ant/org.eclipse.ant.tests.ui/.classpath
deleted file mode 100644
index e2da57f..0000000
--- a/ant/org.eclipse.ant.tests.ui/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="Ant Editor Tests/"/>
-    <classpathentry kind="src" path="/org.apache.ant"/>
-    <classpathentry kind="src" path="/org.junit"/>
-    <classpathentry kind="src" path="/org.eclipse.core.resources"/>
-    <classpathentry kind="src" path="/org.apache.xerces"/>
-    <classpathentry kind="src" path="/org.eclipse.jdt.core"/>
-    <classpathentry kind="src" path="/org.eclipse.ui"/>
-    <classpathentry kind="src" path="/org.eclipse.ant.core"/>
-    <classpathentry kind="src" path="/org.eclipse.update.core"/>
-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>
-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
-    <classpathentry kind="src" path="/org.eclipse.ui.externaltools"/>
-    <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/ant/org.eclipse.ant.tests.ui/.cvsignore b/ant/org.eclipse.ant.tests.ui/.cvsignore
deleted file mode 100644
index ba077a4..0000000
--- a/ant/org.eclipse.ant.tests.ui/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/ant/org.eclipse.ant.tests.ui/.project b/ant/org.eclipse.ant.tests.ui/.project
deleted file mode 100644
index 6237842..0000000
--- a/ant/org.eclipse.ant.tests.ui/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.eclipse.ant.tests.ui</name>
-	<comment></comment>
-	<projects>
-		<project>org.apache.ant</project>
-		<project>org.apache.xerces</project>
-		<project>org.eclipse.ant.core</project>
-		<project>org.eclipse.core.boot</project>
-		<project>org.eclipse.core.resources</project>
-		<project>org.eclipse.core.runtime</project>
-		<project>org.eclipse.jdt.core</project>
-		<project>org.eclipse.ui</project>
-		<project>org.eclipse.ui.externaltools</project>
-		<project>org.eclipse.update.core</project>
-		<project>org.junit</project>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/dtd/test/dumper.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/dtd/test/dumper.java
deleted file mode 100644
index 3be5968..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/dtd/test/dumper.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 Object Factory Inc.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     Object Factory Inc. - Initial implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.dtd.test;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.Map;
-
-import org.eclipse.ui.externaltools.internal.ant.dtd.IDfm;
-import org.eclipse.ui.externaltools.internal.ant.dtd.IElement;
-import org.eclipse.ui.externaltools.internal.ant.dtd.IModel;
-import org.eclipse.ui.externaltools.internal.ant.dtd.ISchema;
-import org.eclipse.ui.externaltools.internal.ant.dtd.ParseError;
-import org.eclipse.ui.externaltools.internal.ant.dtd.Parser;
-
-/**
- * This class is intended to be used from the command line (hence the
- * uncapitalized class name).
- * @author Bob Foster
- */
-public class dumper {
-
-	public static int main(String[] args) {
-
-		if (args.length <= 0) {
-			System.out.println("Usage: java DTDMerger URL");
-			return 0;
-		}
-		String document = args[0];
-
-		Parser parser = new Parser();
-		
-		ISchema schema;
-		try {
-			schema = parser.parse(document);
-		} catch (ParseError e) {
-			System.out.println(e.getMessage());
-			e.printStackTrace();
-			return 1;
-		} catch (IOException e) {
-			e.printStackTrace();
-			return 1;
-		}
-		System.out.println("DTD successfully parsed");
-		dumpSchema(schema);
-		return 0;
-	}
-	
-	/**
-	 * Write schema contents to standard output.
-	 */
-	private static void dumpSchema(ISchema schema) {
-		IElement[] elements = schema.getElements();
-		System.out.println(""+elements.length+" elements defined");
-		for (int i = 0; i < elements.length; i++) {
-			IElement element = elements[i];
-			IModel model = element.getContentModel();
-			System.out.println("ELEMENT "+element.getName()
-				+'"'+model.stringRep()+'"');
-			dumpDfm(element.getDfm());
-		}
-	}
-
-	/**
-	 * Dump dfm as a series of states.
-	 * <pre>
-	 * S0  a=>S1 b=>S2 
-	 * S1  c=>S2
-	 * S2* d=>S2
-	 * </pre>
-	 * Where * indicates accepting state.
-	 * @param dfm to dump
-	 */
-	private static void dumpDfm(IDfm dfm) {
-		HashMap map = new HashMap();
-		dumpDfm(dfm, map, 0);
-		LinkedList list = new LinkedList();
-		Iterator it = map.entrySet().iterator();
-		while (it.hasNext()) {
-			Map.Entry entry = (Map.Entry) it.next();
-			list.add(new State((IDfm)entry.getKey(), (Integer)entry.getValue()));
-		}
-		State[] states = (State[]) list.toArray(new State[list.size()]);
-		Arrays.sort(states);
-		for (int i = 0; i < states.length; i++) {
-			print(states[i], map);
-		}
-	}
-
-	private static void print(State state, HashMap map) {
-		System.out.print("  S"+state.n.intValue()
-			+(state.dfm.isAccepting() ? "*  " : "  "));
-		String[] accepts = state.dfm.getAccepts();
-		for (int i = 0; i < accepts.length; i++) {
-			String accept = accepts[i];
-			IDfm next = state.dfm.advance(accept);
-			int n = ((Integer)map.get(next)).intValue();
-			System.out.print(" "+accept+"=>S"+n);
-		}
-		System.out.println();
-	}
-	
-	private static int dumpDfm(IDfm dfm, HashMap map, int num) {
-		if (!map.containsKey(dfm)) {
-			map.put(dfm, new Integer(num++));
-			String[] accepts = dfm.getAccepts();
-			for (int i = 0; i < accepts.length; i++) {
-				IDfm next = dfm.advance(accepts[i]);
-				num = dumpDfm(next, map, num);
-			}
-		}
-		return num;
-	}
-	
-	private static class State implements Comparable {
-		public IDfm dfm;
-		public Integer n;
-		public State(IDfm dfm, Integer n) {
-			this.dfm = dfm;
-			this.n = n;
-		}
-		/**
-		 * @see java.lang.Comparable#compareTo(java.lang.Object)
-		 */
-		public int compareTo(Object o) {
-			State other = (State) o;
-			return n.intValue() < other.n.intValue()
-				? -1 
-				: (n.intValue() == other.n.intValue() 
-					? 0 
-					: 1);
-		}
-
-	}
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestEditor.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestEditor.java
deleted file mode 100644
index 57ad1ff..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestEditor.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.support;
-
-import org.eclipse.ui.externaltools.internal.ant.editor.PlantyEditor;
-import org.eclipse.ui.externaltools.internal.ant.editor.test.CodeCompletionTest;
-
-public class TestEditor extends PlantyEditor {
-	private final CodeCompletionTest TestAntEditor;
-	TestEditor(CodeCompletionTest TestAntEditor) {
-		this.TestAntEditor = TestAntEditor;
-	}
-    public void initializeEditor() {
-    }
-    /** 
-     * Returns '10'.
-     * @see org.eclipse.ui.texteditor.AbstractTextEditor#getCursorPosition()
-     */
-    protected String getCursorPosition() {
-        return "10";
-    }
-
-}
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestLocationProvider.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestLocationProvider.java
deleted file mode 100644
index 15c627a..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestLocationProvider.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.support;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.ui.externaltools.internal.ant.editor.outline.ILocationProvider;
-
-
-public class TestLocationProvider implements ILocationProvider {
-
-	private String buildFileName;
-	
-	public TestLocationProvider(String buildFileName) {
-		this.buildFileName= buildFileName;
-	}
-	
-	/* (non-Javadoc)
-	 * @see org.eclipse.ui.externaltools.internal.ant.editor.outline.ILocationProvider#getLocation()
-	 */
-	public IPath getLocation() {
-		return new Path(buildFileName);
-	}
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestProblemRequestor.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestProblemRequestor.java
deleted file mode 100644
index 4bd5d99..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestProblemRequestor.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.support;
-
-import org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblem;
-import org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblemRequestor;
-
-public class TestProblemRequestor implements IProblemRequestor {
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblemRequestor#acceptProblem(org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblem)
-	 */
-	public void acceptProblem(IProblem problem) {
-
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblemRequestor#beginReporting()
-	 */
-	public void beginReporting() {
-
-	}
-
-	/* (non-Javadoc)
-	 * @see org.eclipse.ui.externaltools.internal.ant.editor.outline.IProblemRequestor#endReporting()
-	 */
-	public void endReporting() {
-
-	}
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestTextCompletionProcessor.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestTextCompletionProcessor.java
deleted file mode 100644
index 31349e5..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestTextCompletionProcessor.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.support;
-
-import java.io.File;
-import java.io.IOException;
-
-import junit.framework.TestCase;
-
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.ui.externaltools.internal.ant.editor.PlantyCompletionProcessor;
-import org.eclipse.ui.externaltools.internal.ant.editor.test.CodeCompletionTest;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.w3c.dom.Element;
-
-public class TestTextCompletionProcessor extends PlantyCompletionProcessor {
-	private final CodeCompletionTest TestTextCompletionProcessor;
-    
-    public TestTextCompletionProcessor(CodeCompletionTest TestTextCompletionProcessor) {
-        cursorPosition = 10;
-		this.TestTextCompletionProcessor = TestTextCompletionProcessor;
-    }
-    
-    public ICompletionProposal[] getAttributeProposals(
-        String aTaskName,
-        String aPrefix) {
-        return super.getAttributeProposals(aTaskName, aPrefix);
-    }
-    
-    /**
-     * Returns always 10.
-     */
-    public int getCursorPosition(ITextEditor textEditor) {
-        return 10;
-    }
-
-    public Element findChildElementNamedOf(
-        Element anElement,
-        String aChildElementName) {
-        return super.findChildElementNamedOf(anElement, aChildElementName);
-    }
-
-    public ICompletionProposal[] getTaskProposals(String aWholeDocumentString,
-        Element aParentTaskElement,
-        String aPrefix) {
-        return super.getTaskProposals(aWholeDocumentString, aParentTaskElement, aPrefix);
-    }
-
-    public int determineProposalMode(
-        String aWholeDocumentString,
-        int aCursorPosition,
-        String aPrefix) {
-        return super.determineProposalMode(
-            aWholeDocumentString,
-            aCursorPosition,
-            aPrefix);
-    }
-
-    public Element findParentElement(
-        String aWholeDocumentString,
-        int aLineNumber,
-        int aColumnNumber) {
-        return super.findParentElement(
-            aWholeDocumentString,
-            aLineNumber,
-            aColumnNumber);
-    }
-
-    public String getPrefixFromDocument(
-        String aDocumentText,
-        int anOffset) {
-        return super.getPrefixFromDocument(aDocumentText, anOffset);
-    }
-
-    public ICompletionProposal[] getPropertyProposals(
-        String aDocumentText,
-        String aPrefix, int aCursorPosition) {
-        return super.getPropertyProposals(aDocumentText, aPrefix, aCursorPosition);
-    }
-
-	File editedFile;
-
-    /**
-     * Returns the edited File that org.eclipse.ui.externaltools.internal.ant.editorfore or a temporary 
-     * file, which only serves as a dummy.
-     * @see org.eclipse.ui.externaltools.internal.ant.editor.PlantyCompletionProcessor#getEditedFile()
-     */
-	public File getEditedFile() {
-        File tempFile = null;
-        try {
-            tempFile = File.createTempFile("test", null);
-        } catch (IOException e) {
-            TestCase.fail(e.getMessage());
-        }
-        tempFile.deleteOnExit();
-        return tempFile;
-    }
-    
-
-	public void setEditedFile(File aFile) {
-		editedFile = aFile;
-	}
-
-	public void setLineNumber(int aLineNumber) {
-    	lineNumber = aLineNumber;
-    }
-
-	public void setColumnNumber(int aColumnNumber) {
-    	columnNumber = aColumnNumber;
-    }
-
-}
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestUtils.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestUtils.java
deleted file mode 100644
index 72635dc..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/support/TestUtils.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.support;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.UnsupportedEncodingException;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.ui.externaltools.internal.model.ExternalToolsPlugin;
-
-public class TestUtils {
-
-	public static String getStreamContentAsString(InputStream inputStream) {
-		InputStreamReader reader;
-		try {
-			reader = new InputStreamReader(inputStream, ResourcesPlugin.getEncoding());
-		} catch (UnsupportedEncodingException e) {
-			ExternalToolsPlugin.getDefault().log(e);
-			return ""; //$NON-NLS-1$
-		}
-		BufferedReader tempBufferedReader = new BufferedReader(reader);
-
-		return getReaderContentAsString(tempBufferedReader);
-	}
-	
-	protected static String getReaderContentAsString(BufferedReader tempBufferedReader) {
-		StringBuffer tempResult = new StringBuffer();
-		try {
-			String tempLine= tempBufferedReader.readLine();
-    
-			while(tempLine != null) {
-				if(tempResult.length() != 0) {
-					tempResult.append("\n"); //$NON-NLS-1$
-				}
-				tempResult.append(tempLine);
-				tempLine = tempBufferedReader.readLine();
-			}
-		} catch (IOException e) {
-			ExternalToolsPlugin.getDefault().log(e);
-			return null;
-		}
-
-		return tempResult.toString();
-	}
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorContentOutlineTests.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorContentOutlineTests.java
deleted file mode 100644
index 70b3e80..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorContentOutlineTests.java
+++ /dev/null
@@ -1,298 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 GEBIT Gesellschaft fuer EDV-Beratung
- * und Informatik-Technologien mbH, 
- * Berlin, Duesseldorf, Frankfurt (Germany) and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial implementation
- * 	   IBM Corporation - additional tests
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.test;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.List;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.ui.externaltools.internal.ant.editor.outline.AntModel;
-import org.eclipse.ui.externaltools.internal.ant.editor.outline.XMLCore;
-import org.eclipse.ui.externaltools.internal.ant.editor.support.TestLocationProvider;
-import org.eclipse.ui.externaltools.internal.ant.editor.support.TestUtils;
-import org.eclipse.ui.externaltools.internal.ant.editor.xml.IAntEditorConstants;
-import org.eclipse.ui.externaltools.internal.ant.editor.xml.XmlElement;
-import org.xml.sax.SAXException;
-
-/**
- * Tests the correct creation of the outline for an xml file.
- * 
- * @author Alf Schiefelbein
- */
-public class AntEditorContentOutlineTests extends TestCase {
-    
-    private IDocument currentDocument;
-    
-    public AntEditorContentOutlineTests(String name) {
-        super(name);
-    }
-
-    /**
-     * Tests parsing an XML file with the use of our OutlinePreparingHandler.
-     */
-    public void testOutlinePreparingHandler() throws SAXException, ParserConfigurationException, IOException {
-		AntModel model= getAntModel("test2.xml");
-        
-		XmlElement[] roots = model.getRootElements();
-		assertNotNull(roots);
-		XmlElement rootElement= roots[0];
-   
-		assertNotNull(rootElement);
-        
-        assertEquals("bla", rootElement.getName());
-        assertEquals(1, rootElement.getStartingRow());
-        assertEquals(1, rootElement.getStartingColumn());
-        assertEquals(9, rootElement.getEndingRow());
-        assertEquals(7, rootElement.getEndingColumn());
-        List childNodes = rootElement.getChildNodes();
-        assertEquals(2, childNodes.size());
-
-        XmlElement childElement = (XmlElement)childNodes.get(0);
-        assertEquals("blub", childElement.getName());
-        assertEquals(2, childElement.getStartingRow());
-        assertEquals(3, childElement.getStartingColumn());
-        assertEquals(2, childElement.getEndingRow());
-        assertEquals(16, childElement.getEndingColumn());
-
-        childElement = (XmlElement)childNodes.get(1);
-        assertEquals("klick", childElement.getName());
-        assertEquals(3, childElement.getStartingRow());
-        assertEquals(3, childElement.getStartingColumn());
-        assertEquals(8, childElement.getEndingRow());
-        assertEquals(11, childElement.getEndingColumn());
-
-		childNodes = childElement.getChildNodes();
-        assertEquals(4, childNodes.size());
-		
-		childElement = (XmlElement)childNodes.get(0);
-        assertEquals("gurgel", childElement.getName());
-        assertEquals(4, childElement.getStartingRow());
-        assertEquals(5, childElement.getStartingColumn());
-        assertEquals(4, childElement.getEndingRow());
-        assertEquals(22, childElement.getEndingColumn());
-
-		childElement = (XmlElement)childNodes.get(1);
-        assertEquals("hal", childElement.getName());
-        assertEquals(5, childElement.getStartingRow());
-        assertEquals(5, childElement.getStartingColumn());
-        assertEquals(5, childElement.getEndingRow());
-        assertEquals(16, childElement.getEndingColumn());
-
-		childElement = (XmlElement)childNodes.get(2);
-        assertEquals("klack", childElement.getName());
-        assertEquals(6, childElement.getStartingRow());
-        assertEquals(5, childElement.getStartingColumn());
-        assertEquals(6, childElement.getEndingRow());
-        assertEquals(13, childElement.getEndingColumn());
-
-		childElement = (XmlElement)childNodes.get(3);
-        assertEquals("humpf", childElement.getName());
-        assertEquals(7, childElement.getStartingRow());
-        assertEquals(5, childElement.getStartingColumn());
-        assertEquals(7, childElement.getEndingRow());
-        assertEquals(13, childElement.getEndingColumn());
-    }
-
-    /**
-     * Tests the creation of the XmlElement, that includes parsing a file
-     * and determining the correct location of the tags.
-     */
-    public void testCreationOfOutlineTree() {
-		AntModel model= getAntModel("buildtest1.xml");
-        
-		XmlElement[] roots = model.getRootElements();
-		assertNotNull(roots);
-		XmlElement project= roots[0];
-       
-        assertNotNull(project);
-        
-        // Get the content as string
-        String wholeDocumentString = currentDocument.get();
-
-        
-        // <project>
-        assertEquals(2, project.getStartingRow());
-        assertEquals(1, project.getStartingColumn());
-        int tempOffset = wholeDocumentString.indexOf("<project");
-          
-	    assertEquals(tempOffset, project.getOffset());
-        
-        List children = project.getChildNodes();
-		
-		// <property name="propD">
-		XmlElement tempEle = (XmlElement)children.get(0);
-        assertEquals(3, tempEle.getStartingRow());
-        assertEquals(2, tempEle.getStartingColumn()); // with tab in file
-        assertEquals(3, tempEle.getEndingRow());
-        assertEquals(40, tempEle.getEndingColumn());  // with tab in file
-        tempOffset = wholeDocumentString.indexOf("<property");
-       
-        assertEquals(tempOffset, tempEle.getOffset());
-// (T)
-        int tempLength = "<property name=\"propD\" value=\"valD\" />".length();
-        assertEquals(tempLength, tempEle.getLength());
-
-		
-		// <property file="buildtest1.properties">
-		tempEle = (XmlElement)children.get(1);
-        assertEquals(4, tempEle.getStartingRow());
-        assertEquals(5, tempEle.getStartingColumn()); // no tab
-        assertEquals(4, tempEle.getEndingRow());
-        assertEquals(46, tempEle.getEndingColumn());
-		
-		// <property name="propV">
-		tempEle = (XmlElement)children.get(2);
-        assertEquals(5, tempEle.getStartingRow());
-        assertEquals(5, tempEle.getStartingColumn());
-        assertEquals(5, tempEle.getEndingRow());
-        assertEquals(43, tempEle.getEndingColumn());
-		
-		// <target name="main">
-		tempEle = (XmlElement)children.get(3);
-        assertEquals(6, tempEle.getStartingRow());
-        assertEquals(5, tempEle.getStartingColumn());
-        assertEquals(8, tempEle.getEndingRow());
-        assertEquals(14, tempEle.getEndingColumn());
-		
-		// <property name="property_in_target">
-		tempEle = (XmlElement)tempEle.getChildNodes().get(0);
-        assertEquals(7, tempEle.getStartingRow());
-        assertEquals(9, tempEle.getStartingColumn());
-        assertEquals(7, tempEle.getEndingRow());
-        assertEquals(58, tempEle.getEndingColumn());
-        tempOffset = wholeDocumentString.indexOf("<property name=\"property_in_target\"");
-          
-        assertEquals(tempOffset, tempEle.getOffset());
-		
-        assertEquals(9, project.getEndingRow());
-        assertEquals(11, project.getEndingColumn());
-                
-    }
-
-    /**
-     * Tests the creation of the XmlElement, that includes parsing a non-valid 
-     * file.
-     */
-    public void testParsingOfNonValidFile() {
-		AntModel model= getAntModel("buildtest2.xml");
-        
-		XmlElement[] roots = model.getRootElements();
-		assertNotNull(roots);
-		XmlElement root= roots[0];
-   		assertNotNull(root);
-   		
-        // Get the content as string
-        String wholeDocumentString = currentDocument.get();
-
-        List children = root.getChildNodes();
-
-		// <target name="main">
-		XmlElement tempEle = (XmlElement)children.get(2);
-        assertEquals(5, tempEle.getStartingRow());
-        assertEquals(2, tempEle.getStartingColumn()); // with tab in file
-        assertEquals(5, tempEle.getEndingRow());
-        assertEquals(43, tempEle.getEndingColumn());
-        int tempOffset = wholeDocumentString.indexOf("<target name=\"main\"");
-         
-	    assertEquals(tempOffset, tempEle.getOffset()); // ???
-    }
-
-	
-	/**
-	 * Tests whether the outline can handle a build file with only the <project></project> tags.
-	 */
-	public void testWithProjectOnlyBuildFile() {
-		AntModel model= getAntModel("projectOnly.xml");
-		XmlElement[] roots = model.getRootElements();
-		assertNotNull(roots);
-		XmlElement root= roots[0];
-		assertNotNull(root);
-	}
-	
-	/**
-	 * Tests whether the outline can handle an empty build file.
-	 */
-	public void testWithEmptyBuildFile() {
-		AntModel model= getAntModel("empty.xml");
-		XmlElement[] roots = model.getRootElements();
-		assertNotNull(roots);
-		assertTrue(roots.length == 0);
-	}		
-
-	
-	/**
-	 * Some testing of getting the right location of tags.
-	 */
-	public void testAdvancedTaskLocationing() {
-		AntModel model= getAntModel("outline_select_test_build.xml");
-        
-        XmlElement[] roots = model.getRootElements();
-        assertNotNull(roots);
-        XmlElement project= roots[0];
-        // Get the content as string
-        String wholeDocumentString = currentDocument.get();
-        
-        // <project>
-        assertNotNull(project);
-        assertEquals(2, project.getStartingRow());
-        assertEquals(1, project.getStartingColumn());
-        int tempOffset = wholeDocumentString.indexOf("<project");
-        
-	    assertEquals(tempOffset, project.getOffset());
-        
-		// <target name="properties">
-        XmlElement tempEle = (XmlElement)project.getChildNodes().get(1);
-        assertNotNull(tempEle);
-        assertEquals("properties", tempEle.getAttributeNamed(IAntEditorConstants.ATTR_NAME).getValue());
-        assertEquals(16, tempEle.getStartingRow());
-        assertEquals(2, tempEle.getStartingColumn());
-        tempOffset = wholeDocumentString.indexOf("<target name=\"properties\"");
-      
-	    assertEquals(tempOffset, tempEle.getOffset());
-	}
-
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite("PlantyContentOutlineTest");
-        suite.addTest(new AntEditorContentOutlineTests("testOutlinePreparingHandler"));
-        suite.addTest(new AntEditorContentOutlineTests("testCreationOfOutlineTree"));
-        suite.addTest(new AntEditorContentOutlineTests("testParsingOfNonValidFile"));
-        suite.addTest(new AntEditorContentOutlineTests("testAdvancedTaskLocationing"));
-        suite.addTest(new AntEditorContentOutlineTests("testWithEmptyBuildFile"));
-        return suite;
-    }
-    
-    private IDocument getDocument(String fileName) {
-		InputStream in = getClass().getResourceAsStream(fileName);
-		String initialContent= TestUtils.getStreamContentAsString(in);
-		return new Document(initialContent);
-    }
-    
-	private AntModel getAntModel(String fileName) {
-		currentDocument= getDocument(fileName);
-		AntModel model= new AntModel(XMLCore.getDefault(), currentDocument, null, new TestLocationProvider(fileName));
-		model.reconcile();
-		return model;
-	}
-
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorTests.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorTests.java
deleted file mode 100644
index d9f3562..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/AntEditorTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 GEBIT Gesellschaft fuer EDV-Beratung
- * und Informatik-Technologien mbH, 
- * Berlin, Duesseldorf, Frankfurt (Germany) and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial implementation
- * 	   IBM Corporation - additional tests
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.test;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-/**
- * Test suite for the Ant Editor
- * 
- * @author Alf Schiefelbein
- */
-public class AntEditorTests extends TestSuite {
-
-    public static Test suite() {
-
-        TestSuite suite= new AntEditorTests();
-        suite.setName("Ant Editor Unit Tests");
-        suite.addTest(new TestSuite(CodeCompletionTest.class));
-        suite.addTest(new TestSuite(TaskDescriptionProviderTest.class));
-        suite.addTest(new TestSuite(AntEditorContentOutlineTests.class));
-        suite.addTest(new TestSuite(EnclosingTargetSearchingHandlerTest.class));
-        return suite;
-    }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/CodeCompletionTest.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/CodeCompletionTest.java
deleted file mode 100644
index b0baf76..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/CodeCompletionTest.java
+++ /dev/null
@@ -1,571 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 GEBIT Gesellschaft fuer EDV-Beratung
- * und Informatik-Technologien mbH, 
- * Berlin, Duesseldorf, Frankfurt (Germany) and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial implementation
- * 	   IBM Corporation - additional tests
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.test;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.Hashtable;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.ProjectHelper;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.ui.externaltools.internal.ant.editor.PlantySaxDefaultHandler;
-import org.eclipse.ui.externaltools.internal.ant.editor.support.TestTextCompletionProcessor;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Comment;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-
-
-/**
- * Tests everything about code completion and code assistance.
- * 
- * @version 29.11.2002
- * @author Alf Schiefelbein
- */
-public class CodeCompletionTest extends TestCase {
-
-    /**
-     * Constructor for CodeCompletionTest.
-     * @param arg0
-     */
-    public CodeCompletionTest(String arg0) {
-        super(arg0);
-    }
-
-    
-    /**
-     * Tests the code completion for attributes of tasks.
-     */
-    public void testAttributeProposals() throws IOException {
-        TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        ICompletionProposal[] tempProposals = tempProcessor.getAttributeProposals("contains", "ca");
-        assertEquals(1, tempProposals.length);
-        assertEquals("casesensitive - (true | false | on | off | yes | no)", tempProposals[0].getDisplayString());
-
-        tempProposals = tempProcessor.getAttributeProposals("move", "");
-        assertEquals(14, tempProposals.length);
-        ICompletionProposal tempProposal = tempProposals[0];
-        String tempString = tempProposal.getDisplayString();
-        assertTrue(tempString.equals("id") 
-        || tempString.equals("flatten - (true | false | on | off | yes | no)")
-        || tempString.equals("encoding")
-        || tempString.equals("tofile")
-        || tempString.equals("todir")
-        || tempString.equals("file")
-        || tempString.equals("verbose - (true | false | on | off | yes | no)")
-        || tempString.equals("includeemptydirs")
-        || tempString.equals("overwrite - (true | false | on | off | yes | no)")
-        || tempString.equals("taskname")
-        || tempString.equals("failonerror - (true | false | on | off | yes | no)")
-        || tempString.equals("description")
-        || tempString.equals("preservelastmodified - (true | false | on | off | yes | no)")
-        || tempString.equals("filtering - (true | false | on | off | yes | no)"));
-
-        tempProposals = tempProcessor.getAttributeProposals("move", "to");
-        assertEquals(2, tempProposals.length);
-
-        tempProposals = tempProcessor.getAttributeProposals("reference", "idl");
-        assertEquals(0, tempProposals.length);
-
-        tempProposals = tempProcessor.getAttributeProposals("reference", "id");
-        assertEquals(1, tempProposals.length);
-        assertEquals("id", tempProposals[0].getDisplayString());
-
-        tempProposals = tempProcessor.getAttributeProposals("reference", "i");
-        assertEquals(1, tempProposals.length);
-        assertEquals("id", tempProposals[0].getDisplayString());
-
-        tempProposals = tempProcessor.getAttributeProposals("project", "de");
-        assertEquals(1, tempProposals.length);
-        
-        // assertEquals("default - #REQUIRED", tempProposals[0].getDisplayString());
-
-    }
-    
-
-    /**
-     * Test the code completion for properties.
-     */
-    public void testPropertyProposals1() {
-		TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        String tempDocumentText = "<project default=\"test\"><property name=\"prop1\" value=\"val1\" />\n";
-        tempDocumentText += "<property name=\"prop2\" value=\"val2\" />\n";
-        tempDocumentText += "<property name=\"alf\" value=\"horst\" />\n";
-        tempDocumentText += "<test name=\"$";
-		tempProcessor.setLineNumber(4);
-		tempProcessor.setColumnNumber(14);
-        int tempCursorPos = tempDocumentText.length();
-        ICompletionProposal[] tempProposals = tempProcessor.getPropertyProposals(tempDocumentText, "", tempCursorPos);
-        assertTrue(tempProposals.length >= 3);
-        assertContains("alf", tempProposals);
-        tempDocumentText = "<project default=\"test\"><property name=\"prop1\" value=\"val1\" />\n";
-        tempDocumentText += "<property name=\"prop2\" value=\"val2\" />\n";
-        tempDocumentText += "<property name=\"alf\" value=\"horst\" />\n";
-        tempDocumentText += "<test name=\"$a}";
-		tempProcessor.setLineNumber(4);
-		tempProcessor.setColumnNumber(15);
-        tempCursorPos = tempDocumentText.length()-1;
-        tempProposals = tempProcessor.getPropertyProposals(tempDocumentText, "a", tempCursorPos);
-        assertTrue(tempProposals.length >= 1);
-        assertContains("alf", tempProposals);
-
-    }
- 
- 	/**
- 	 * Asserts that <code>aProposalDisplayString</code> is in one of the 
- 	 * completion proposals.
- 	 */
-    private void assertContains(String aProposalDisplayString, ICompletionProposal[] aProposalArray) {
-        boolean found = false;
-        for (int i = 0; i < aProposalArray.length; i++) {
-            ICompletionProposal tempProposal = aProposalArray[i];
-            String tempDisplayString = tempProposal.getDisplayString();
-            if(aProposalDisplayString.equals(tempDisplayString)) {
-                found = true;
-                break;
-            }
-        }
-        assertEquals(true, found);
-    }        
-    
-	/**
-	 * Tests the property proposals in for the case that they are defined in
-	 * a seperate property file.
-	 */
-    public void testBuildWithProperties() {
-        Project tempProject = new Project();
-        tempProject.init();
-        URL tempURL = getClass().getResource("buildtest1.xml");
-        assertNotNull(tempURL);
-        File tempFile = new File(tempURL.getPath());
-        assertTrue(tempFile.exists());
-        
-        tempProject.setUserProperty("ant.file", tempFile.getAbsolutePath());
-
-        ProjectHelper.configureProject(tempProject, tempFile);  // File will be parsed here
-        Hashtable tempTable = tempProject.getProperties();
-        assertEquals("valD", tempTable.get("propD"));
-        assertEquals("val1", tempTable.get("prop1"));
-        assertEquals("val2", tempTable.get("prop2"));
-        assertEquals("valV", tempTable.get("propV"));
-        // assertEquals("val", tempTable.get("property_in_target"));  // (T) is known and should be fixed
-
-        // test with not valid (complete) build file
-        tempProject = new Project();
-        tempProject.init();
-        tempURL = getClass().getResource("buildtest2.xml");
-        assertNotNull(tempURL);
-        tempFile = new File(tempURL.getPath());
-		assertTrue(tempFile.exists());
-        tempProject.setUserProperty("ant.file", tempFile.getAbsolutePath());
-        try {
-            org.eclipse.ui.externaltools.internal.ant.editor.utils.ProjectHelper.configureProject(tempProject, tempFile);  // File will be parsed here
-        }
-        catch(BuildException e) {
-            // ignore a build exception on purpose 
-        }    
-        tempTable = tempProject.getProperties();
-        assertEquals("valD", tempTable.get("propD"));
-        assertEquals("val1", tempTable.get("prop1"));
-        assertEquals("val2", tempTable.get("prop2"));
-
-        // test with not valid whole document string
-        tempProject = new Project();
-        tempProject.init();
-        tempURL = getClass().getResource("buildtest2.xml");
-        assertNotNull(tempURL);
-        String tempPath = tempURL.getPath();
-        tempPath = tempPath.substring(0, tempPath.lastIndexOf('/')+1) + "someNonExisting.xml";
-        tempFile = new File(tempPath);
-        tempProject.setUserProperty("ant.file", tempFile.getAbsolutePath());
-        StringBuffer tempStrBuf = new StringBuffer();
-        tempStrBuf.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
-        tempStrBuf.append("<project name=\"testproject\" basedir=\".\" default=\"main\">");
-        tempStrBuf.append("<property name=\"propA\" value=\"valA\" />\n");
-		tempStrBuf.append("<property file=\"buildtest1.properties\" />\n");
-        tempStrBuf.append("<target name=\"main\" depends=\"properties\">\n");
-        try {
-            org.eclipse.ui.externaltools.internal.ant.editor.utils.ProjectHelper.configureProject(tempProject, tempFile, tempStrBuf.toString());  // File will be parsed here
-        }
-        catch (BuildException e) {
-            //ignore a build exception on purpose
-			//as the document does not start and end within the same entity
-        }    
-        tempTable = tempProject.getProperties();
-        assertEquals("valA", tempTable.get("propA"));
-        assertEquals("val2", tempTable.get("prop2"));
-    }
-
-
-	/**
-	 * Tests the property proposals for the case that they are defined in
-	 * a dependent targets.
-	 */
-    public void testPropertyProposalDefinedInDependendTargets() throws FileNotFoundException {
-        TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        URL tempURL = getClass().getResource("dependencytest.xml");
-        assertNotNull(tempURL);
-        File tempFile = new File(tempURL.getPath());
-        assertTrue(tempFile.exists());
-        tempProcessor.setEditedFile(tempFile);
-		String tempDocumentText = getFileContentAsString(tempFile);
-
-		tempProcessor.setLineNumber(35);
-		tempProcessor.setColumnNumber(41);
-		int tempCursorPosition = tempDocumentText.lastIndexOf("${");
-		assertTrue(tempCursorPosition != -1);
-        ICompletionProposal[] tempProposals = tempProcessor.getPropertyProposals(tempDocumentText, "", tempCursorPosition+2);
-		assertContains("init_prop", tempProposals);
-		assertContains("main_prop", tempProposals);
-		assertContains("prop_prop", tempProposals);
-		assertContains("do_not_compile", tempProposals);
-		assertContains("adit_prop", tempProposals);
-		assertContains("compile_prop", tempProposals);
-    }
-
-    
-    /**
-     * Tests the code completion for tasks having parent tasks.
-     */
-    public void testTaskProposals() throws IOException, ParserConfigurationException {
-		TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        DocumentBuilder tempDocBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
-        Document tempDocument = tempDocBuilder.newDocument();
-
-        ICompletionProposal[] tempProposals = tempProcessor.getTaskProposals("         <", tempDocument.createElement("rename"), "");
-        assertEquals(0, tempProposals.length);
-
-        tempProposals = tempProcessor.getTaskProposals("       <cl", createTestPropertyElement(tempDocument), "cl");
-        assertEquals(1, tempProposals.length);
-        ICompletionProposal tempProposal = tempProposals[0];
-        assertEquals("classpath", tempProposal.getDisplayString());
-        
-        //case insensitivity
-		tempProposals = tempProcessor.getTaskProposals("       <CL", createTestPropertyElement(tempDocument), "cl");
-	   	assertEquals(1, tempProposals.length);
-	   	tempProposal = tempProposals[0];
-	   	assertEquals("classpath", tempProposal.getDisplayString());
-
-        tempProposals = tempProcessor.getTaskProposals("       <cl", tempDocument.createElement("property"), "cl");
-        assertEquals(1, tempProposals.length);
-        tempProposal = tempProposals[0];
-        assertEquals("classpath", tempProposal.getDisplayString());
-
-        tempProposals = tempProcessor.getTaskProposals("       <pr", tempDocument.createElement("property"), "");
-        assertEquals(1, tempProposals.length);
-        tempProposal = tempProposals[0];
-        assertEquals("classpath", tempProposal.getDisplayString());
-
-        tempProposals = tempProcessor.getTaskProposals("       <pr", createTestProjectElement(tempDocument), "pr");
-        assertEquals(1, tempProposals.length); // is choice and already used with classpath
-        tempProposal = tempProposals[0];
-        assertEquals("property", tempProposal.getDisplayString());
-        
-        tempProposals = tempProcessor.getTaskProposals("       <fi", createTestProjectElement(tempDocument), "fi");
-        assertEquals(5, tempProposals.length); // is choice and already used with classpath
-        
-        tempProposals = tempProcessor.getTaskProposals("          ", tempDocument.createElement("project"), "");
-        assertEquals(22, tempProposals.length);
-
-        tempProposals = tempProcessor.getTaskProposals("          ", null, "");
-        assertEquals(1, tempProposals.length);
-        tempProposal = tempProposals[0];
-        assertEquals("project", tempProposal.getDisplayString());
-
-        tempProposals = tempProcessor.getTaskProposals("            jl", null, "jl");
-        assertEquals(0, tempProposals.length);
-
-        tempProposals = tempProcessor.getTaskProposals("             ", tempDocument.createElement("projexxx"), "");
-        assertEquals(0, tempProposals.length);
-
-        tempProposals = tempProcessor.getTaskProposals("              ", tempDocument.createElement("filelist"), "");
-        assertEquals(0, tempProposals.length);
-
-        // "<project><target><mk"
-        String tempString = "<project><target><mk";
-        tempProposals = tempProcessor.getTaskProposals("             <mk", tempProcessor.findParentElement(tempString, 0, 20), "mk");
-        assertEquals(1, tempProposals.length);
-        tempProposal = tempProposals[0];
-        assertEquals("mkdir", tempProposal.getDisplayString());
-        
-        tempProposals = tempProcessor.getTaskProposals("", null, "");
-        assertEquals(1, tempProposals.length);
-        tempProposal = tempProposals[0];
-        assertEquals("project", tempProposal.getDisplayString());
-
-        tempProposals = tempProcessor.getTaskProposals("    \n<project></project>", null, "");
-        assertEquals(1, tempProposals.length);
-
-    }
-
-    /**
-     * Tests the algorithm for finding a child as used by the processor.
-     */
-    public void testFindChildElement() throws ParserConfigurationException {
-        
-        // Create the test data
-        DocumentBuilder tempDocBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
-        Document tempDocument = tempDocBuilder.newDocument();
-        Element tempParentElement = tempDocument.createElement("parent");
-        Attr tempAttribute = tempDocument.createAttribute("att1");
-        tempParentElement.setAttributeNode(tempAttribute);
-        Comment tempComment = tempDocument.createComment("lakjjflsakdfj");
-        tempParentElement.appendChild(tempComment);
-        Element tempChildElement = tempDocument.createElement("child");
-        tempParentElement.appendChild(tempChildElement);
-        tempChildElement = tempDocument.createElement("secondchild");
-        tempParentElement.appendChild(tempChildElement);
-        
-        // Create the processor
-        TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-        
-        // Test it!
-        tempChildElement = tempProcessor.findChildElementNamedOf(tempParentElement, "jkl");
-        assertNull(tempChildElement);
-        tempChildElement = tempProcessor.findChildElementNamedOf(tempParentElement, "secondchild");
-        assertNotNull(tempChildElement);
-        assertEquals("secondchild", tempChildElement.getTagName());
-    }
-    
-    
-    protected Element createTestProjectElement(Document aDocument) throws ParserConfigurationException {
-        Element tempParentElement = aDocument.createElement("project");
-        Element tempChildElement = aDocument.createElement("property");
-        tempParentElement.appendChild(tempChildElement);
-        Element tempClasspathElement = aDocument.createElement("classpath");
-        tempChildElement.appendChild(tempClasspathElement);
-        
-        return tempParentElement;
-    }
-
-    protected Element createTestPropertyElement(Document aDocument) {
-        Element tempChildElement = aDocument.createElement("property");
-        Element tempClasspathElement = aDocument.createElement("classpath");
-        tempChildElement.appendChild(tempClasspathElement);
-
-        return tempChildElement;
-    }
-    
-    protected Element createTestTargetElement(Document aDocument) {
-        Element tempChildElement = aDocument.createElement("property");
-        Element tempClasspathElement = aDocument.createElement("classpath");
-        tempChildElement.appendChild(tempClasspathElement);
-
-        return tempChildElement;
-    }
-    
-    
-    /**
-     * Tests how the processor determines the proposal mode.
-     */
-    public void testDeterminingProposalMode() throws IOException {
-        TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        // Modes:
-        // 0 None
-        // 1 Task Proposal
-        // 2 Attribute Proposal
-        // 3 Task Closing Proposal
-        // 4 Attribute Value Proposal
-        // 5 Property Proposal
-        
-        int tempMode = tempProcessor.determineProposalMode("<project><property ta", 21, "ta");
-        assertEquals(2, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><property ", 19, "");
-        assertEquals(2, tempMode);
-        // (T) has to be implemented still
-        tempMode = tempProcessor.determineProposalMode("<project><property   ", 21, "");
-        assertEquals(2, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><prop", 14, "prop");
-        assertEquals(1, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><prop bla", 18, "bla");
-        assertEquals(0, tempMode); // task not known
-        tempMode = tempProcessor.determineProposalMode("<project> hjk", 13, "");
-        assertEquals(0, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project> hjk<", 14, "");
-        assertEquals(1, tempMode); // allow this case though it is not valid with Ant
-        tempMode = tempProcessor.determineProposalMode("<project>", 9, "");
-        assertEquals(1, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project> ", 10, "");
-        assertEquals(1, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project></", 11, "");
-        assertEquals(3, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project>< </project>", 10, "");
-        assertEquals(1, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<property id=\"hu\" ", 18, "");
-        assertEquals(2, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<property id=\"hu\" \r\n ", 21, "");
-        assertEquals(2, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<property\n", 10, "");
-        assertEquals(2, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<property id=\"\" \r\n ", 14, "");
-        assertEquals(4, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<target name=\"main\"><zip><size></size></zip></", 46, "");
-        assertEquals(3, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><target name=\"$\"", 24, "");
-        assertEquals(5, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><target name=\"${\"", 25, "");
-        assertEquals(5, tempMode);
-        tempMode = tempProcessor.determineProposalMode("<project><target name=\"${ja.bl\"", 30, "ja.bl");
-        assertEquals(5, tempMode);
-        tempMode = tempProcessor.determineProposalMode("", 0, "");
-        assertEquals(1, tempMode);
-    }
-
-
-    /**
-     * Tests how the prefix will be determined.
-     */
-    public void testDeterminingPrefix() {
-        TestTextCompletionProcessor tempProcessor = new TestTextCompletionProcessor(this);
-
-        // cursor after ${
-        String tempPrefix = tempProcessor.getPrefixFromDocument("<project><target name=\"${}\"", 25);
-        assertEquals("", tempPrefix);
-
-        // cursor after $
-        tempPrefix = tempProcessor.getPrefixFromDocument("<project><target name=\"${\"", 24);
-        assertEquals("", tempPrefix);
-
-        // cursor after ${ja.
-        tempPrefix = tempProcessor.getPrefixFromDocument("<project><target name=\"${ja.\"", 28);
-        assertEquals("ja.", tempPrefix);
-        
-        // cursor after <
-		tempPrefix = tempProcessor.getPrefixFromDocument("<project><", 10);
-		assertEquals("", tempPrefix);
-		
-		tempPrefix = tempProcessor.getPrefixFromDocument("<project name= \"test\"><tar", 26);
-		assertEquals("tar", tempPrefix);
-    }    
-
-
-    /**
-     * Tests parsing an XML file with the use of our PlantySaxDefaultHandler.
-     */
-    public void testXMLParsingWithPlantyDefaultHandler() throws SAXException, ParserConfigurationException, IOException {
-        SAXParser tempParser = SAXParserFactory.newInstance().newSAXParser();
-
-		URL url= getClass().getResource("test1.xml");
-		File file= new File(url.getFile());
-        PlantySaxDefaultHandler tempHandler = new PlantySaxDefaultHandler(file.getParentFile(), 4, 8);
-        InputStream tempStream = getClass().getResourceAsStream("test1.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        Element tempElement = tempHandler.getParentElement(true);
-        assertNotNull(tempElement);
-        assertEquals("klick", tempElement.getTagName());
-        NodeList tempChildNodes = tempElement.getChildNodes();
-        assertEquals(1, tempChildNodes.getLength());
-        assertEquals("gurgel", ((Element)tempChildNodes.item(0)).getTagName());
-
-		url= getClass().getResource("test2.xml");
-		file= new File(url.getFile());
-        tempHandler = new PlantySaxDefaultHandler(file.getParentFile(), 4, 8);
-        tempStream = getClass().getResourceAsStream("test2.xml");
-        tempParser.parse(tempStream, tempHandler);
-        tempElement = tempHandler.getParentElement(false);
-        assertNotNull(tempElement);
-        assertEquals("klick", tempElement.getTagName());
-        tempChildNodes = tempElement.getChildNodes();
-        assertEquals(4, tempChildNodes.getLength());
-        assertEquals("gurgel", ((Element)tempChildNodes.item(0)).getTagName());
-        assertEquals("hal", ((Element)tempChildNodes.item(1)).getTagName());
-        assertEquals("klack", ((Element)tempChildNodes.item(2)).getTagName());
-        assertEquals("humpf", ((Element)tempChildNodes.item(3)).getTagName());
-
-		url= getClass().getResource("test3.xml");
-		file= new File(url.getFile());
-        tempHandler = new PlantySaxDefaultHandler(file.getParentFile(), 3, 1);
-        tempStream = getClass().getResourceAsStream("test3.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(true);
-        assertNotNull(tempElement);
-        assertEquals("bla", tempElement.getTagName());
-
-		url= getClass().getResource("test4.xml");
-		file= new File(url.getFile());
-        tempHandler = new PlantySaxDefaultHandler(file.getParentFile(), 0, 46);
-        tempStream = getClass().getResourceAsStream("test4.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(true);
-        assertNotNull(tempElement);
-        assertEquals("target", tempElement.getTagName());
-    }
-    
-    
-	/**
-	 * Returns the content of the specified file as <code>String</code>.
-	 */
-	private String getFileContentAsString(File aFile) throws FileNotFoundException {
-        InputStream tempStream = new FileInputStream(aFile);
-        InputStreamReader tempReader = new InputStreamReader(tempStream);
-        BufferedReader tempBufferedReader = new BufferedReader(tempReader);
-
-        String tempResult = "";
-        try {
-            String tempLine;
-            tempLine = tempBufferedReader.readLine();
-        
-            while(tempLine != null) {
-                tempResult += "\n";
-                tempResult += tempLine;
-                tempLine = tempBufferedReader.readLine();
-            }
-        } catch (IOException e) {
-            e.printStackTrace();
-            return null;
-        }
-		return tempResult;
-	}
-
-
-    public static Test suite() {
-        return new TestSuite(CodeCompletionTest.class);
-    }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/EnclosingTargetSearchingHandlerTest.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/EnclosingTargetSearchingHandlerTest.java
deleted file mode 100644
index 7df75fa..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/EnclosingTargetSearchingHandlerTest.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 GEBIT Gesellschaft fuer EDV-Beratung
- * und Informatik-Technologien mbH, 
- * Berlin, Duesseldorf, Frankfurt (Germany) and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial implementation
- * 	   IBM Corporation - additional tests
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.test;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.ui.externaltools.internal.ant.editor.EnclosingTargetSearchingHandler;
-import org.w3c.dom.Element;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
-
-/**
- * Tests the parsing using the EnclosingTargetSearchingHandler.
- * 
- * @version 19.11.2002
- * @author Alf Schiefelbein
- */
-public class EnclosingTargetSearchingHandlerTest extends TestCase {
-
-    /**
-     * Constructor for EnclosingTargetSearchingHandlerTest.
-     * @param name
-     */
-    public EnclosingTargetSearchingHandlerTest(String name) {
-        super(name);
-    }
-
-
-	/**
-	 * The test suite.
-	 */
-    public static Test suite() {
-        TestSuite suite = new TestSuite("EnclosingTargetSearchingHandlerTest");
-        
-        suite.addTest(new EnclosingTargetSearchingHandlerTest("testParsingOfBuildFileWithTargetElement"));
-        suite.addTest(new EnclosingTargetSearchingHandlerTest("testParsingOfBuildFileWithoutTargetElement"));
-        suite.addTest(new EnclosingTargetSearchingHandlerTest("testParsingOfEmptyBuildFile"));
-        return suite;
-    }
-	
-    
-    /**
-     * Tests parsing an XML file with the use of our PlantySaxDefaultHandler.
-     */
-    public void testParsingOfBuildFileWithoutTargetElement() throws SAXException, ParserConfigurationException, IOException {
-        SAXParser tempParser = SAXParserFactory.newInstance().newSAXParser();
-		URL url= getClass().getResource("test1.xml");
-		File file= new File(url.getFile());
-        EnclosingTargetSearchingHandler tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 4, 8);
-        InputStream tempStream = getClass().getResourceAsStream("test1.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        Element tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-
-		tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 2, 0);
-        tempStream = getClass().getResourceAsStream("test1.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-
-        tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 0, 0);
-        tempStream = getClass().getResourceAsStream("test1.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-    }
-    
-    
-    /**
-     * Tests parsing an XML file with the use of our PlantySaxDefaultHandler.
-     */
-    public void testParsingOfBuildFileWithTargetElement() throws SAXException, ParserConfigurationException, IOException {
-        SAXParser tempParser = SAXParserFactory.newInstance().newSAXParser();
-		URL url= getClass().getResource("russianbuild.xml");
-		File file= new File(url.getFile());
-        EnclosingTargetSearchingHandler tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 5, 5);
-        InputStream tempStream = getClass().getResourceAsStream("russianbuild.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        Element tempElement = tempHandler.getParentElement(false);
-        assertNotNull(tempElement);
-		assertEquals("target", tempElement.getTagName());
-        tempElement = tempHandler.getParentElement(true);
-        assertNotNull(tempElement);
-		assertEquals("target", tempElement.getTagName());
-		assertEquals("init", tempElement.getAttribute("name"));
-
-        tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 7, 0);
-        tempStream = getClass().getResourceAsStream("russianbuild.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-
-        tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 0, 0);
-        tempStream = getClass().getResourceAsStream("russianbuild.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-    }
-    
-    /**
-     * Tests parsing an XML file with the use of our PlantySaxDefaultHandler.
-     */
-    public void testParsingOfEmptyBuildFile() throws SAXException, ParserConfigurationException, IOException {
-        SAXParser tempParser = SAXParserFactory.newInstance().newSAXParser();
-		URL url= getClass().getResource("projectOnly.xml");
-		File file= new File(url.getFile());
-        EnclosingTargetSearchingHandler tempHandler = new EnclosingTargetSearchingHandler(file.getParentFile(), 0, 0);
-        InputStream tempStream = getClass().getResourceAsStream("projectOnly.xml");
-        try {
-            tempParser.parse(tempStream, tempHandler);
-        } catch(SAXParseException e) {
-        }
-        Element tempElement = tempHandler.getParentElement(false);
-        assertNull(tempElement);
-        tempElement = tempHandler.getParentElement(true);
-        assertNull(tempElement);
-    }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/TaskDescriptionProviderTest.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/TaskDescriptionProviderTest.java
deleted file mode 100644
index 1ba34ba..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/TaskDescriptionProviderTest.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2002, 2003 GEBIT Gesellschaft fuer EDV-Beratung
- * und Informatik-Technologien mbH, 
- * Berlin, Duesseldorf, Frankfurt (Germany).
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial implementation
- *******************************************************************************/
-
-package org.eclipse.ui.externaltools.internal.ant.editor.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.eclipse.ui.externaltools.internal.ant.editor.TaskDescriptionProvider;
-
-/**
- * Tests the taks description provider.
- * 
- */
-public class TaskDescriptionProviderTest extends TestCase {
-
-    /**
-     * Constructor for TaskDescriptionProviderTest.
-     * @param arg0
-     */
-    public TaskDescriptionProviderTest(String arg0) {
-        super(arg0);
-    }
-
-    /** 
-     * Tests getting the description of a task.
-     */
-    public void testGettingTaskDescription() {
-        TaskDescriptionProvider tempProvider = new TaskDescriptionProvider();
-        String tempDescription = tempProvider.getDescriptionForTask("apply");
-        assertNotNull(tempDescription);
-        assertTrue(tempDescription.length() > 0);
-    }
-
-    /**
-     * Tests getting the description of an attribute.
-     */
-    public void testGettingAttribute() {
-        TaskDescriptionProvider tempProvider = new TaskDescriptionProvider();
-        String tempDescription = tempProvider.getDescriptionForTaskAttribute("apply", "executable");
-        assertNotNull(tempDescription);
-        assertTrue(tempDescription.length() > 0);
-    }
-    
-    /**
-     * Tests getting the required value of an attribute.
-     */
-    public void testGettingRequired() {
-        TaskDescriptionProvider tempProvider = new TaskDescriptionProvider();
-        String tempRequired = tempProvider.getRequiredAttributeForTaskAttribute("apply", "executable");
-        assertNotNull(tempRequired);
-        assertEquals("yes", tempRequired);
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite("TaskDescriptionProviderTest");
-
-        suite.addTest(new TaskDescriptionProviderTest("testGettingAttribute"));
-        suite.addTest(new TaskDescriptionProviderTest("testGettingRequired"));
-        suite.addTest(new TaskDescriptionProviderTest("testGettingTaskDescription"));
-        return suite;
-    }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.Cp1251.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.Cp1251.xml
deleted file mode 100644
index 2ddbf52..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.Cp1251.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="windows-1251"?>

-<project name="test" basedir=".">

-

-     <target name="init">

-          <!-- displays Hello in Russian -->

-          <echo message="Çäðàâñòâóéòå"/>

-     </target>

-

-

-</project>

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.UTF8.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.UTF8.xml
deleted file mode 100644
index 4494321..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/build.UTF8.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project name="test" basedir=".">

-

-     <target name="init">

-          <!-- displays Hello in Russian -->

-          <echo message="Здравствуйте"/>

-     </target>

-

-</project>

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildsWithSpecialEncoding.zip b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildsWithSpecialEncoding.zip
deleted file mode 100644
index 9d8197a..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildsWithSpecialEncoding.zip
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.properties b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.properties
deleted file mode 100644
index a528725..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-prop1=val1

-prop2 = val2

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.xml
deleted file mode 100644
index a83a544..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest1.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project name="testproject" basedir="." default="main">

-	<property name="propD" value="valD" />

-    <property file="buildtest1.properties" />

-    <property name="propV" value="valV" />

-    <target name="main">

-        <property name="property_in_target" value="val"/>

-    </target>

-</project>

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest2.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest2.xml
deleted file mode 100644
index 19241a4..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/buildtest2.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project name="testproject" basedir="." default="main">

-	<property name="propD" value="valD" />

-	<property file="buildtest1.properties" />

-	<target name="main" depends="properties">

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/dependencytest.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/dependencytest.xml
deleted file mode 100644
index 0a6ecbd..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/dependencytest.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<!-- Ein test case sollte die property proposals in main       -->

-<!-- Ueberpruefen, und ob die diversen properties entsprechend -->

-<!-- der dependencies gesetzt sind                             -->

-

-<project default="main">

-

-	<property name="do_init" value="val"></property>

-	

-	<target name="properties">

-		<property name="prop_prop" value="val"></property>

-		<property name="do_not_compile" value="val"></property>

-		<echo message="executing properties"></echo>

-	</target>

-

-	<!-- should never be executed since property is not set      --> 

-	<target name="additional_properties" if="do_addit_props">

-		<property name="adit_prop" value="val" />

-		<echo message="executing additional_properties"></echo>

-	</target>

-	

-	<target name="init" if="doinit" depends="properties,additional_properties">

-		<property name="init_prop" value="val"></property>

-		<echo message="executing init"></echo>

-	</target>

-	

-	<!-- should never be executed since property should be set   -->

-	<!-- by properties because of dependencies before            --> 

-	<target name="compile" unless="do_not_compile">

-		<property name="compile_prop" value="val"></property>

-		<echo message="executing compile"></echo>

-	</target>

-

-	<target name="main" depends="init, compile">

-		<property name="main_prop" value="val"></property>

-		<echo message="executing main ${well}"></echo>

-	</target>

-	

-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/empty.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/empty.xml
deleted file mode 100644
index e69de29..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/empty.xml
+++ /dev/null
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/outline_select_test_build.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/outline_select_test_build.xml
deleted file mode 100644
index 7b5d09a..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/outline_select_test_build.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project name="org.eclipse.ui.externaltools.internal.ant.editor" default="zip.plugin" basedir=".">

-	<target name="init" depends="properties">

-	    <property file="build.properties" />

-		<property name="version.suffix" value="_0.4.5" />

-		<property name="plugins_dir" value="${eclipse_dir}/plugins" />

-		<property name="plugin" value="org.eclipse.ui.externaltools.internal.ant.editor" />

-		<property name="full.name" value="${plugin}${version.suffix}" />

-		<property name="temp.folder" value="${basedir}/temp.folder" />

-		<property name="plugin.destination" value="${basedir}" />

-		<property name="build.result.folder" value="${basedir}" />

-		<property name="source.planty.jar" value="src/" />

-		<echo message="Value is ${plugins_dir}" />

-	</target>

-

-	<target name="properties" if="eclipse.running">

-		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

-	</target>

-

-</project>

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/projectOnly.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/projectOnly.xml
deleted file mode 100644
index 35ece5b..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/projectOnly.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-<project ></project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/russianbuild.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/russianbuild.xml
deleted file mode 100644
index 172e2aa..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/russianbuild.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="windows-1251"?>

-<project name="test" basedir=".">

-

-	<target name="init">

-		<!-- displays Hello in Russian -->

-		<echo message="Çäðàâñòâóéòå"/>

-	</target>

-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test1.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test1.xml
deleted file mode 100644
index 84992dc..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test1.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-

-<bla>

-  <blub></blub>

-  <klick>

-    <gurgel></gurgel>

-    <hal

-    <klack/>

-    <humpf/>

-  </klick>

-</bla>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test2.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test2.xml
deleted file mode 100644
index 607310b..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test2.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<bla>

-  <blub></blub>

-  <klick>

-    <gurgel></gurgel>

-    <hal></hal>

-    <klack/>

-    <humpf/>

-  </klick>

-</bla>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test3.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test3.xml
deleted file mode 100644
index c28e4e9..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test3.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<bla>

-  <blub>

-  </blub>

-</

diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test4.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test4.xml
deleted file mode 100644
index fd60f79..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test4.xml
+++ /dev/null
@@ -1 +0,0 @@
-<target name="main"><mk
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test5.xml b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test5.xml
deleted file mode 100644
index 3a4d93a..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test/test5.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<project name="main">

-	<target name="bla" />

-	<property name="prop1" value="val1"/>

-	<property name="prop2" value="val2"/>

-	<property name="prop3" value="val3"/>

-<g
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/.project b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/.project
deleted file mode 100644
index 7faea71..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>AntView ExtDir Test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-	</buildSpec>
-	<natures>
-	</natures>
-</projectDescription>
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/build.xml
deleted file mode 100644
index a733ad3..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/build.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="External Dir Test" basedir="." default="test-one">       
-    <target name="init">
-       <echo message="Init"/>
-    </target>
-    <target name="test-one" depends="init,test-two">
-       <echo message="One - multiple dependents"/>
-    </target>
-    <target name="test-two" depends="init,test-three">
-       <echo message="Two - similar dependencies"/>
-    </target>
-    <target name="test-three">
-       <echo message="Three - simple"/>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/readme.txt b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/readme.txt
deleted file mode 100644
index d43b15a..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Ext Dir Test Example/readme.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-
-Create a new simple project with project directory outside ECLIPSE_HOME
- 
-import this directory.
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.classpath b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.classpath
deleted file mode 100644
index 24fb488..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path=""/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path=""/>
-</classpath>
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.project b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.project
deleted file mode 100644
index 4ad8ae9..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>AntView Java Test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin.log b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin.log
deleted file mode 100644
index e3b4fe5..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin.log
+++ /dev/null
@@ -1,2 +0,0 @@
-Compiled 13 lines in 991 ms (13.1 lines/s)

-1 .class file generated
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin/main.class b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin/main.class
deleted file mode 100644
index 820d96c..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/bin/main.class
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/build.xml
deleted file mode 100644
index 7aab352..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/build.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Java Compile Test" basedir="." default="compile">       
-	<target name="properties" if="eclipse.running">
-		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
-	</target>
-	<target name="compile" depends="properties,env">
-	   <javac destdir="bin" failonerror="false" verbose="true" debug="on" includeAntRuntime="no">
-			<src path="src/"/>
-	   </javac>
-	</target>
-
-    <target name="clean"> 
-       <delete file="bin/main.class"/>
-    </target>
-    
-    <target name="env">
-       <echo> 
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-           build.compiler: ${build.compiler}
-      </echo>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.class b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.class
deleted file mode 100644
index 7ccc9b4..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.class
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.java b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.java
deleted file mode 100644
index c5ab5b8..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Java Test/src/main.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * @author roscoe.m.rush
- *
- * To change this generated comment edit the template variable "typecomment":
- * Window>Preferences>Java>Templates.
- * To enable and disable the creation of type comments go to
- * Window>Preferences>Java>Code Generation.
- */
-public class main {
-	public  main() {
-        System.out.println("Hello World!\n");
-	}
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/.project b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/.project
deleted file mode 100644
index 04e9dfb..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>AntView Test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-	</buildSpec>
-	<natures>
-	</natures>
-</projectDescription>
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Buildfile Error/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Buildfile Error/build.xml
deleted file mode 100644
index 89df62b..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Buildfile Error/build.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="AntView Test.01" basedir="." default="test-one">       
-    <target name="init">
-       <echo message="Init"/>
-    </target>
-    <target name="test-one" depends="init,test-two">
-       <echo message="One - multiple dependents"/>
-    </target>
-    <target name="test-two" depends="init,test-three" description="description of test-two">
-       <echo message="Two - similar dependencies"/>
-    </target>
-    <target name="test-three" description="description of test-three">
-       <echo message="Three - simple"/>
-    </target>
-    <target name="env"
-       <echo>
-           Shell Environment
-           -----------------
-           ANT_HOME: ${e.ANT_HOME}
-           JAVA_HOME: ${e.JAVA_HOME}
-           CLASSPATH: ${e.CLASSPATH}
-      
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-      </echo>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Custom Build filename/customBuild.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Custom Build filename/customBuild.xml
deleted file mode 100644
index 040c975..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Custom Build filename/customBuild.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Custom build filename" basedir="." default="test-one">       
-    <target name="init">
-       <echo message="Init"/>
-    </target>
-    <target name="test-one" depends="init,test-two">
-       <echo message="One - multiple dependents"/>
-    </target>
-    <target name="test-two" depends="init,test-three" description="description of test-two">
-       <echo message="Two - similar dependencies"/>
-    </target>
-    <target name="test-three" description="description of test-three">
-       <echo message="Three - simple"/>
-    </target>
-    <target name="env">
-       <echo>
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-           build.compiler: ${build.compiler}
-      </echo>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing default target/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing default target/build.xml
deleted file mode 100644
index af8e4c3..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing default target/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Missing Project default test" basedir=".">       
-    <target name="env">
-       <echo>    
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-           build.compiler: ${build.compiler}
-      </echo>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project element/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project element/build.xml
deleted file mode 100644
index cdfbda2..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project element/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<missingproject name="Missing project element" basedir="." default="env">       
-    <target name="env">
-       <echo>    
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-           build.compiler: ${build.compiler}
-      </echo>
-    </target>
-</missingproject>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project name/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project name/build.xml
deleted file mode 100644
index 530fe65..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Missing project name/build.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." default="env">       
-    <target name="env">
-       <echo>    
-           System Properties
-           -----------------
-           java.version: ${java.version}
-           java.vendor: ${java.vendor}
-           java.home: ${java.home}
-           java.class.path: ${java.class.path}
-           java.ext.dirs: ${java.ext.dirs}
-           os.name: ${os.name}
-           os.arch: ${os.arch}
-           os.version: ${os.version}
-           user.name: ${user.name}                
-           
-           Ant Environment
-           ----------------
-           basedir: ${basedir}
-           ant.file: ${ant.file}
-           ant.version: ${ant.version}
-           ant.project.name: ${ant.project.name}
-           ant.java.version: ${ant.java.version}
-           build.compiler: ${build.compiler}
-      </echo>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Similar Dependencies/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Similar Dependencies/build.xml
deleted file mode 100644
index 8c5c650..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Similar Dependencies/build.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Similiar dependencies" basedir="." default="test-one">       
-    <target name="init">
-       <echo message="Init"/>
-    </target>
-    <target name="test-one" depends="init,test-two">
-       <echo message="One - multiple dependents"/>
-    </target>
-    <target name="test-two" depends="init,test-three" description="description of test-two">
-       <echo message="Two - similar dependencies"/>
-    </target>
-    <target name="test-three" description="description of test-three">
-       <echo message="Three - simple"/>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Simple Dependency/build.xml b/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Simple Dependency/build.xml
deleted file mode 100644
index b21e8dd..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant View Tests/AntView Test/Simple Dependency/build.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Simple" basedir="." default="test-a">        
-    <target name="test-a">
-       <echo message="A - no dependents"/>
-    </target>
-    <target name="test-b" depends="test-a">
-       <echo message="B - simple dependency"/>
-    </target>
-</project>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/about.html b/ant/org.eclipse.ant.tests.ui/about.html
deleted file mode 100644
index cde506f..0000000
--- a/ant/org.eclipse.ant.tests.ui/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>30th January, 2003</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/build.properties b/ant/org.eclipse.ant.tests.ui/build.properties
deleted file mode 100644
index 7d8d0b4..0000000
--- a/ant/org.eclipse.ant.tests.ui/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# Copyright (c) 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-bin.includes = plugin.xml,\
-			   plugin.properties,\
-               about.html,\
-               *.jar
-               
-source.anttestsui.jar = Ant Editor Tests/,\
-                         Ant View Tests/
diff --git a/ant/org.eclipse.ant.tests.ui/plugin.properties b/ant/org.eclipse.ant.tests.ui/plugin.properties
deleted file mode 100644
index 07228b2..0000000
--- a/ant/org.eclipse.ant.tests.ui/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-
-pluginName=Ant UI Test Plugin
-providerName=Eclipse.org
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/plugin.xml b/ant/org.eclipse.ant.tests.ui/plugin.xml
deleted file mode 100644
index 26bd047..0000000
--- a/ant/org.eclipse.ant.tests.ui/plugin.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<plugin
-   id="org.eclipse.ant.tests.ui"
-   name="%pluginName"
-   version="2.1.0"
-   provider-name="%providerName">
-   
-   <requires>
-      <import plugin="org.apache.ant"/>
-	  <import plugin="org.junit"/>   
-      <import plugin="org.eclipse.core.resources"/>
-      <import plugin="org.apache.xerces"/>
-      <import plugin="org.eclipse.jdt.core"/>
-      <import plugin="org.eclipse.ui"/>
-      <import plugin="org.eclipse.ant.core"/>
-      <import plugin="org.eclipse.update.core"/>
-       <import plugin="org.eclipse.ui.externaltools"/>
-   </requires>
-
-<runtime>
-  <library name="anttestsui.jar" >
-     <export name = "*"/>
-  </library> 
-</runtime>
-
-</plugin>
diff --git a/ant/org.eclipse.ant.ui/.classpath b/ant/org.eclipse.ant.ui/.classpath
deleted file mode 100644
index 6b2a02d..0000000
--- a/ant/org.eclipse.ant.ui/.classpath
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/ant/org.eclipse.ant.ui/.cvsignore b/ant/org.eclipse.ant.ui/.cvsignore
deleted file mode 100644
index 57b480f..0000000
--- a/ant/org.eclipse.ant.ui/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-bin
-lib
diff --git a/ant/org.eclipse.ant.ui/.project b/ant/org.eclipse.ant.ui/.project
deleted file mode 100644
index 24f7c98..0000000
--- a/ant/org.eclipse.ant.ui/.project
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.eclipse.ant.ui</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.team.cvs.core.cvsnature</nature>
-	</natures>
-</projectDescription>
diff --git a/ant/org.eclipse.ant.ui/README.txt b/ant/org.eclipse.ant.ui/README.txt
deleted file mode 100644
index c21ea37..0000000
--- a/ant/org.eclipse.ant.ui/README.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-The org.eclipse.ant.ui plug-in is now considered to be obsolete.
-
-The functionality previously available in this project has been absorbed by
-the org.eclipse.ui.externaltools project.
-
-Please refer to the org.eclipse.ui.externaltools project for current implementation.
diff --git a/platform/org.eclipse.platform/.classpath b/platform/org.eclipse.platform/.classpath
deleted file mode 100644
index dbbc1d8..0000000
--- a/platform/org.eclipse.platform/.classpath
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="src" path="src"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/platform/org.eclipse.platform/.cvsignore b/platform/org.eclipse.platform/.cvsignore
deleted file mode 100644
index ba077a4..0000000
--- a/platform/org.eclipse.platform/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/platform/org.eclipse.platform/.eclipseproduct b/platform/org.eclipse.platform/.eclipseproduct
deleted file mode 100644
index 389203b..0000000
--- a/platform/org.eclipse.platform/.eclipseproduct
+++ /dev/null
@@ -1,3 +0,0 @@
-name=Eclipse Platform
-id=org.eclipse.platform
-version=2.1.0
\ No newline at end of file
diff --git a/platform/org.eclipse.platform/.project b/platform/org.eclipse.platform/.project
deleted file mode 100644
index 2f66f29..0000000
--- a/platform/org.eclipse.platform/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.eclipse.platform</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
diff --git a/platform/org.eclipse.platform/about.html b/platform/org.eclipse.platform/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/platform/org.eclipse.platform/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/platform/org.eclipse.platform/about.ini b/platform/org.eclipse.platform/about.ini
deleted file mode 100644
index c173221..0000000
--- a/platform/org.eclipse.platform/about.ini
+++ /dev/null
@@ -1,38 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-# Maximum 15 lines and 75 characters per line.
-aboutText=%blurb
-
-# Property "windowImage" contains path to window icon (16x16)
-windowImage=eclipse.gif
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=eclipse32.gif
-
-# Property "aboutImage" contains path to product image.
-# Full-sized product image: no larger than 500x330 pixels
-# Half-sized product image: no larger than 250x330 pixels
-# A full-sized product image is shown without the "aboutText" blurb.
-# A half-sized product image is shown with the "aboutText" blurb beside it.
-aboutImage=eclipse_lg.gif
-
-# Property "appName" contains name of the application (translated)
-appName=%appName
-
-# Property "welcomePage" contains path to welcome page (special XML-based format)
-# ($nl$/ prefix to permit locale-specific translations of entire file)
-welcomePage=$nl$/welcome.xml
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
-
-# Property "tipsAndTricksHref" contains the Help topic href to a tips and tricks page 
-# optional
-tipsAndTricksHref=/org.eclipse.platform.doc.user/tips/platform_tips.html
-
diff --git a/platform/org.eclipse.platform/about.mappings b/platform/org.eclipse.platform/about.mappings
deleted file mode 100644
index bddaab4..0000000
--- a/platform/org.eclipse.platform/about.mappings
+++ /dev/null
@@ -1,6 +0,0 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
\ No newline at end of file
diff --git a/platform/org.eclipse.platform/about.properties b/platform/org.eclipse.platform/about.properties
deleted file mode 100644
index dcfc036..0000000
--- a/platform/org.eclipse.platform/about.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-# about.properties
-# contains externalized strings for about.ini
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# fill-ins are supplied by about.mappings
-# This file should be translated.
-#
-# Do not translate any values surrounded by {}
-
-appName=Eclipse
-
-blurb=Eclipse Platform\n\
-\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright IBM Corp. and others 2000, 2003.  All rights reserved.\n\
-Visit http://www.eclipse.org/platform\n\
-\n\
-This product includes software developed by the\n\
-Apache Software Foundation http://www.apache.org/
diff --git a/platform/org.eclipse.platform/build.properties b/platform/org.eclipse.platform/build.properties
deleted file mode 100644
index f8397e9..0000000
--- a/platform/org.eclipse.platform/build.properties
+++ /dev/null
@@ -1,35 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-source.startup.jar=src/
-
-src.includes=about.html
-
-bin.includes=\
-about.html,\
-about.ini,\
-about.mappings,\
-about.properties,\
-eclipse_lg.gif,\
-eclipse.gif,\
-eclipse32.gif,\
-plugin_customization.ini,\
-plugin_customization.properties,\
-plugin.xml,\
-plugin.properties,\
-splash.bmp,\
-welcome.xml
-
-# note: the following files are intentionally not listed in bin.includes
-#    install.ini
-#    cpl-v10.html
-#    notice.html
-#    startup.jar
-# these files need to end up as root files in <install>/eclipse/
diff --git a/platform/org.eclipse.platform/cpl-v10.html b/platform/org.eclipse.platform/cpl-v10.html
deleted file mode 100644
index 36aa208..0000000
--- a/platform/org.eclipse.platform/cpl-v10.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-<HEAD>
-<TITLE>Common Public License - v 1.0</TITLE>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-</HEAD>
-
-<BODY BGCOLOR="#FFFFFF" VLINK="#800000">
-
-
-<P ALIGN="CENTER"><B>Common Public License - v 1.0</B>
-<P><B></B><FONT SIZE="3"></FONT>
-<P><FONT SIZE="3"></FONT><FONT SIZE="2">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT").  ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.</FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"><B>1.  DEFINITIONS</B></FONT>
-<P><FONT SIZE="2">"Contribution" means:</FONT>
-
-<UL><FONT SIZE="2">a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and<BR CLEAR="LEFT">
-b) in the case of each subsequent Contributor:</FONT></UL>
-
-
-<UL><FONT SIZE="2">i)	 	changes to the Program, and</FONT></UL>
-
-
-<UL><FONT SIZE="2">ii)		additions to the Program;</FONT></UL>
-
-
-<UL><FONT SIZE="2">where such changes and/or additions to the Program originate from and are distributed by that particular Contributor.  </FONT><FONT SIZE="2">A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf.  </FONT><FONT SIZE="2">Contributions do not include additions to the Program which:  (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.  </FONT></UL>
-
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">"Contributor" means any person or entity that distributes the Program.</FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.  </FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2">"Program" means the Contributions distributed in accordance with this Agreement.</FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.</FONT>
-<P><FONT SIZE="2"><B></B></FONT>
-<P><FONT SIZE="2"><B>2.  GRANT OF RIGHTS</B></FONT>
-
-<UL><FONT SIZE="2"></FONT><FONT SIZE="2">a)	</FONT><FONT SIZE="2">Subject to the terms of this Agreement, each Contributor hereby grants</FONT><FONT SIZE="2"> Recipient a non-exclusive, worldwide, royalty-free copyright license to</FONT><FONT SIZE="2" COLOR="#FF0000"> </FONT><FONT SIZE="2">reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.</FONT></UL>
-
-
-<UL><FONT SIZE="2"></FONT></UL>
-
-
-<UL><FONT SIZE="2"></FONT><FONT SIZE="2">b) 	Subject to the terms of this Agreement, each Contributor hereby grants </FONT><FONT SIZE="2">Recipient a non-exclusive, worldwide,</FONT><FONT SIZE="2" COLOR="#008000"> </FONT><FONT SIZE="2">royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form.  This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents.  The patent license shall not apply to any other combinations which include the Contribution.  No hardware per se is licensed hereunder.   </FONT></UL>
-
-
-<UL><FONT SIZE="2"></FONT></UL>
-
-
-<UL><FONT SIZE="2">c)	Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity.  Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise.  As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any.  For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.</FONT></UL>
-
-
-<UL><FONT SIZE="2"></FONT></UL>
-
-
-<UL><FONT SIZE="2">d)	Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. </FONT></UL>
-
-
-<UL><FONT SIZE="2"></FONT></UL>
-
-<P><FONT SIZE="2"><B>3.  REQUIREMENTS</B></FONT>
-<P><FONT SIZE="2"><B></B>A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:</FONT>
-
-<UL><FONT SIZE="2">a)	it complies with the terms and conditions of this Agreement; and</FONT></UL>
-
-
-<UL><FONT SIZE="2">b)	its license agreement:</FONT></UL>
-
-
-<UL><FONT SIZE="2">i)	effectively disclaims</FONT><FONT SIZE="2"> on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; </FONT></UL>
-
-
-<UL><FONT SIZE="2">ii) 	effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; </FONT></UL>
-
-
-<UL><FONT SIZE="2">iii)</FONT><FONT SIZE="2">	states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and</FONT></UL>
-
-
-<UL><FONT SIZE="2">iv)	states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.</FONT><FONT SIZE="2" COLOR="#0000FF"> </FONT><FONT SIZE="2" COLOR="#FF0000"></FONT></UL>
-
-
-<UL><FONT SIZE="2" COLOR="#FF0000"></FONT><FONT SIZE="2"></FONT></UL>
-
-<P><FONT SIZE="2">When the Program is made available in source code form:</FONT>
-
-<UL><FONT SIZE="2">a)	it must be made available under this Agreement; and </FONT></UL>
-
-
-<UL><FONT SIZE="2">b)	a copy of this Agreement must be included with each copy of the Program.  </FONT></UL>
-
-<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT>
-<P><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT><FONT SIZE="2">Contributors may not remove or alter any copyright notices contained within the Program.  </FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.  </FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"><B>4.  COMMERCIAL DISTRIBUTION</B></FONT>
-<P><FONT SIZE="2">Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like.  While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors.   Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering.  The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement.  In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations.  The Indemnified Contributor may participate in any such claim at its own expense.</FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">For example, a Contributor might include the Program in a commercial product offering, Product X.  That Contributor is then a Commercial Contributor.  If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone.  Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.</FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"></FONT>
-<P><FONT SIZE="2" COLOR="#0000FF"></FONT><FONT SIZE="2"><B>5.  NO WARRANTY</B></FONT>
-<P><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is</FONT><FONT SIZE="2"> solely responsible for determining the appropriateness of using and distributing </FONT><FONT SIZE="2">the Program</FONT><FONT SIZE="2"> and assumes all risks associated with its exercise of rights under this Agreement</FONT><FONT SIZE="2">, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, </FONT><FONT SIZE="2">programs or equipment, and unavailability or interruption of operations</FONT><FONT SIZE="2">.  </FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2"><B>6.  DISCLAIMER OF LIABILITY</B></FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES </FONT><FONT SIZE="2">(INCLUDING WITHOUT LIMITATION LOST PROFITS),</FONT><FONT SIZE="2"> HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"><B>7.  GENERAL</B></FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2">If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.</FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed.  In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. </FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance.  If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable.  However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.  </FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2">Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted  and may only be modified in the following manner. The Agreement Steward reserves the right to </FONT><FONT SIZE="2">publish new versions (including revisions) of this Agreement from time to </FONT><FONT SIZE="2">time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward.   IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity.  </FONT><FONT SIZE="2">Each new version of the Agreement will be given a distinguishing version number.  The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new </FONT><FONT SIZE="2">version.  </FONT><FONT SIZE="2">Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, </FONT><FONT SIZE="2">by implication, estoppel or otherwise</FONT><FONT SIZE="2">.</FONT><FONT SIZE="2">  All rights in the Program not expressly granted under this Agreement are reserved.</FONT>
-<P><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2">This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose.  Each party waives its rights to a jury trial in any resulting litigation.</FONT>
-<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
-<P><FONT SIZE="2"></FONT>
-
-</BODY>
-
-</HTML>
\ No newline at end of file
diff --git a/platform/org.eclipse.platform/eclipse.gif b/platform/org.eclipse.platform/eclipse.gif
deleted file mode 100644
index 6ca37e0..0000000
--- a/platform/org.eclipse.platform/eclipse.gif
+++ /dev/null
Binary files differ
diff --git a/platform/org.eclipse.platform/eclipse32.gif b/platform/org.eclipse.platform/eclipse32.gif
deleted file mode 100644
index f71a8f6..0000000
--- a/platform/org.eclipse.platform/eclipse32.gif
+++ /dev/null
Binary files differ
diff --git a/platform/org.eclipse.platform/eclipse_lg.gif b/platform/org.eclipse.platform/eclipse_lg.gif
deleted file mode 100644
index 27c0838..0000000
--- a/platform/org.eclipse.platform/eclipse_lg.gif
+++ /dev/null
Binary files differ
diff --git a/platform/org.eclipse.platform/install.ini b/platform/org.eclipse.platform/install.ini
deleted file mode 100644
index aa240f5..0000000
--- a/platform/org.eclipse.platform/install.ini
+++ /dev/null
@@ -1,14 +0,0 @@
-# install.ini 
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-# Required property "feature.default.id" contains id of the primary feature
-# (the primary feature controls product branding, splash screens, and plug-in
-# customization)
-feature.default.id=org.eclipse.platform
-
-# Required property "feature.default.application" contains id of the core
-# application that gets control on startup. For products with a UI, this
-# is always org.eclipse.ui.workbench; for "headless" products, this is
-# product-specific.
-feature.default.application=org.eclipse.ui.workbench
diff --git a/platform/org.eclipse.platform/notice.html b/platform/org.eclipse.platform/notice.html
deleted file mode 100644
index 00d784b..0000000
--- a/platform/org.eclipse.platform/notice.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse.org Software User Agreement</h2>
-<p>17th June, 2002</p>
-
-<p>ECLIPSE.ORG MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
-   (COLLECTIVELY &quot;CONTENT&quot;).  USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
-   CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW.  BY USING THE CONTENT, YOU AGREE THAT YOUR USE
-   OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
-   NOTICES INDICATED OR REFERENCED BELOW.  IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
-   CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<p>Unless otherwise indicated, all Content made available by Eclipse.org is provided to you under the terms and conditions of the Common Public License Version 1.0
-   (&quot;CPL&quot;).  A copy of the CPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-   For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
-   modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<p>Content may be apportioned into plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;). A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of  the Plug-ins and/or Fragments associated with a Feature.   Plug-ins and Fragments are located in directories
-   named &quot;plugins&quot; and Features are located in directories named &quot;features&quot;.</p>
-  
-<p>Features may also include other Features (&quot;Included Features&quot;). Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</p>
-  
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
-	<li>The top-level (root) directory</li>
-	<li>Plug-in and Fragment directories</li>
-	<li>Subdirectories of the directory named &quot;src&quot; of certain Plug-ins</li>
-	<li>Feature directories</li>
-</ul>
-		
-<p>Note: if a Feature made available by Eclipse.org is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot;.
-Such Abouts, Feature Licenses and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.  The Abouts, Feature Licenses and Feature Update Licenses may refer to the CPL or other license agreements, notices or terms and conditions . It is your obligation to read and accept all such all terms and conditions prior to use of the Content.
-If no About, Feature License or Feature Update License is provided, please contact Eclipse.org to determine what terms and conditions govern that particular Content.</p>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
-   another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
-   possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-</body>
-</html>
diff --git a/platform/org.eclipse.platform/plugin.properties b/platform/org.eclipse.platform/plugin.properties
deleted file mode 100644
index e0d87df..0000000
--- a/platform/org.eclipse.platform/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-pluginName=Eclipse Platform
-providerName=Eclipse.org
\ No newline at end of file
diff --git a/platform/org.eclipse.platform/plugin.xml b/platform/org.eclipse.platform/plugin.xml
deleted file mode 100644
index e5ec1d0..0000000
--- a/platform/org.eclipse.platform/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
-  name="%pluginName"
-  id="org.eclipse.platform"
-  version="2.1.0"
-  provider-name="%providerName">
-  
-  <runtime>
-  	<library name="startup.jar" />
-  </runtime>
-  
-</plugin>
diff --git a/platform/org.eclipse.platform/plugin_customization.ini b/platform/org.eclipse.platform/plugin_customization.ini
deleted file mode 100644
index 2a8e223..0000000
--- a/platform/org.eclipse.platform/plugin_customization.ini
+++ /dev/null
@@ -1,16 +0,0 @@
-# plugin_customization.ini 
-# sets default values for plug-in-specific preferences
-# keys are qualified by plug-in id
-# e.g., com.example.acmeplugin/myproperty=myvalue
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in plugin_customization.properties
-# This file does not need to be translated.
-
-# Property "org.eclipse.ui/defaultPerspectiveId" controls the 
-# perspective that the workbench opens initially
-org.eclipse.ui/defaultPerspectiveId=org.eclipse.ui.resourcePerspective
-
-
-
-
-
diff --git a/platform/org.eclipse.platform/plugin_customization.properties b/platform/org.eclipse.platform/plugin_customization.properties
deleted file mode 100644
index dfdc241..0000000
--- a/platform/org.eclipse.platform/plugin_customization.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-# plugin_customization.properties
-# contains externalized strings for plugin_customization.ini
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
diff --git a/platform/org.eclipse.platform/splash.bmp b/platform/org.eclipse.platform/splash.bmp
deleted file mode 100644
index 6ec75da..0000000
--- a/platform/org.eclipse.platform/splash.bmp
+++ /dev/null
Binary files differ
diff --git a/platform/org.eclipse.platform/src/org/eclipse/core/launcher/Main.java b/platform/org.eclipse.platform/src/org/eclipse/core/launcher/Main.java
deleted file mode 100644
index 37b07e7..0000000
--- a/platform/org.eclipse.platform/src/org/eclipse/core/launcher/Main.java
+++ /dev/null
@@ -1,1414 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.core.launcher;
-
-import java.io.*;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.net.*;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.*;
-
-/**
- * Startup class for Eclipse. Creates a class loader using
- * supplied URL of platform installation, loads and calls
- * the Eclipse Boot Loader.  The startup arguments are as follows:
- * <dl>
- * <dd>
- *    -application &lt;id&gt;: the identifier of the application to run
- * </dd>
- * <dd>
- *    -boot &lt;location&gt;: the location, expressed as a URL, of the platform's boot.jar
- * </dd>
- * <dd>
- *    -consolelog : enables log to the console. Handy when combined with -debug
- * </dd>
- * <dd>
- *    -data &lt;location&gt;: sets the workspace location and the default location for projects
- * </dd>
- * <dd>
- *    -debug [options file]: turns on debug mode for the platform and optionally specifies a location
- * for the .options file. This file indicates what debug points are available for a
- * plug-in and whether or not they are enabled. If a location is not specified, the platform searches
- * for the .options file under the install directory
- * </dd>
- * <dd>
- *    -dev [entries]: turns on dev mode and optionally specifies comma-separated class path entries
- * which are added to the class path of each plug-in
- * </dd>
- * <dd>
- *    -keyring &lt;location&gt;: the location of the authorization database on disk. This argument
- * has to be used together with the -password argument
- * </dd>
- * <dd>
- *    -password &lt;passwd&gt;: the password for the authorization database
- * </dd>
- * <dd>
- *    -plugins &lt;location&gt;: The arg is a URL pointing to a file which specs the plugin 
- * path for the platform.  The file is in property file format where the keys are user-defined 
- * names and the values are comma separated lists of either explicit paths to plugin.xml 
- * files or directories containing plugins. (e.g., .../eclipse/plugins).
- * </dd>
- * <dd>
- *    -ws &lt;window system&gt;: sets the window system value
- * </dd>
- * </dl>
- */
-public class Main {
-	/**
-	 * Indicates whether this instance is running in debug mode.
-	 */
-	protected boolean debug = false;
-	
-	/**
-	 * The location of the launcher to run.
-	 */
-	protected String bootLocation = null;
-	
-	/**
-	 * The location of the install root
-	 */
-	protected String rootLocation = null;
-	
-	/**
-	 * The identifier of the application to run.
-	 */
-	protected String application;
-	
-	/**
-	 * The identifier of the feature to run.
-	 */
-	protected String feature;
-	
-	/**
-	 * The identifier of the configuration to use.
-	 */
-	protected String configuration;
-	
-	/**
-	 * The path for finding find plugins.
-	 */
-	protected URL pluginPathLocation;
-	
-	/**
-	 * The boot path location.
-	 */
-	protected String location;		
-		
-	/**
-	 * The class path entries.
-	 */
-	protected String devClassPath = null;
-	
-	/**
-	 * Indicates whether this instance is running in development mode.
-	 */
-	protected boolean inDevelopmentMode = false;
-
-	// splash handling
-	private String showSplash = null; 
-	private String endSplash = null; 
-	private boolean cmdInitialize = false;
-	private boolean cmdFirstUse = false;
-	private Process showProcess = null;
-	private boolean splashDown = false; 
-	private final Runnable endSplashHandler = new Runnable() {
-		public void run() {
-			takeDownSplash();
-		}
-	}; 
-	
-	// configuration properties
-	private Properties props = new Properties();
-	private HashMap featureIndex = new HashMap();
-	private String baseLocation = null;
-	
-	// constants
-	private static final String APPLICATION = "-application"; //$NON-NLS-1$
-	private static final String BOOT = "-boot"; //$NON-NLS-1$
-	private static final String INSTALL = "-install"; //$NON-NLS-1$
-	private static final String INITIALIZE = "-initialize"; //$NON-NLS-1$
-	private static final String DEBUG = "-debug"; //$NON-NLS-1$
-	private static final String DEV = "-dev"; //$NON-NLS-1$
-	private static final String DATA = "-data"; //$NON-NLS-1$
-	private static final String CONFIGURATION = "-configuration"; //$NON-NLS-1$
-	private static final String FEATURE = "-feature"; //$NON-NLS-1$
-	private static final String SHOWSPLASH = "-showsplash"; //$NON-NLS-1$
-	private static final String ENDSPLASH = "-endsplash"; //$NON-NLS-1$
-	private static final String FIRST_USE = "-firstuse"; //$NON-NLS-1$
-	private static final String SPLASH_IMAGE = "splash.bmp"; //$NON-NLS-1$
-	private static final String PI_BOOT = "org.eclipse.core.boot"; //$NON-NLS-1$
-	private static final String BOOTLOADER = "org.eclipse.core.boot.BootLoader"; //$NON-NLS-1$
-	private static final String BOOTJAR = "boot.jar"; //$NON-NLS-1$
-	private static final String PLATFORM_URL = "platform:/base/"; //$NON-NLS-1$
-	
-	// constants: configuration file location
-	private static final String CONFIG_FILE = "platform.cfg"; //$NON-NLS-1$
-	private static final String CONFIG_FILE_TEMP_SUFFIX = ".tmp"; //$NON-NLS-1$
-	private static final String CONFIG_FILE_BAK_SUFFIX = ".bak"; //$NON-NLS-1$
-	private static final String ARG_USER_DIR = "user.dir"; //$NON-NLS-1$
-	
-	// constants: configuration file elements
-	private static final String CFG_CORE_BOOT = "bootstrap." + PI_BOOT;  //$NON-NLS-1$
-	private static final String CFG_FEATURE_ENTRY = "feature"; //$NON-NLS-1$
-	private static final String CFG_FEATURE_ENTRY_DEFAULT = "feature.default.id"; //$NON-NLS-1$
-	private static final String CFG_FEATURE_ENTRY_ID = "id"; //$NON-NLS-1$
-	private static final String CFG_FEATURE_ENTRY_ROOT = "root"; //$NON-NLS-1$
-	private static final String CFG_EOF = "eof"; //$NON-NLS-1$
-
-	// log file handling
-	protected static final String SESSION = "!SESSION"; //$NON-NLS-1$
-	protected static final String ENTRY = "!ENTRY"; //$NON-NLS-1$
-	protected static final String MESSAGE = "!MESSAGE"; //$NON-NLS-1$
-	protected static final String STACK = "!STACK"; //$NON-NLS-1$
-	protected static final int ERROR = 4;
-	protected static final String PLUGIN_ID = "org.eclipse.core.launcher"; //$NON-NLS-1$
-	protected static File logFile = null;
-	protected static BufferedWriter log = null;
-	protected static String[] arguments;
-	protected static boolean newSession = true;
-
-	static class Identifier {
-		private static final String DELIM = ". "; //$NON-NLS-1$
-		private int major, minor, service;
-		private Identifier(int major, int minor, int service) {
-			super();
-			this.major = major;
-			this.minor = minor;
-			this.service = service;
-		}
-		private Identifier(String versionString) {
-			super();
-			StringTokenizer tokenizer = new StringTokenizer(versionString, DELIM);
-			
-			// major
-			if (tokenizer.hasMoreTokens())
-				major = Integer.parseInt(tokenizer.nextToken());
-
-			// minor
-			if (tokenizer.hasMoreTokens())
-				minor = Integer.parseInt(tokenizer.nextToken());
-
-			// service
-			if (tokenizer.hasMoreTokens())
-				service = Integer.parseInt(tokenizer.nextToken());
-		}
-		/**
-		 * Returns true if this id is considered to be greater than or equal to the given baseline.
-		 * e.g. 
-		 * 1.2.9 >= 1.3.1 -> false
-		 * 1.3.0 >= 1.3.1 -> false
-		 * 1.3.1 >= 1.3.1 -> true
-		 * 1.3.2 >= 1.3.1 -> true
-		 * 2.0.0 >= 1.3.1 -> true
-		 */
-		private boolean isGreaterEqualTo(Identifier minimum) {
-			if (major < minimum.major)
-				return false;
-			if (major > minimum.major)
-				return true;
-			// major numbers are equivalent so check minor
-			if (minor < minimum.minor)
-				return false;
-			if (minor > minimum.minor)
-				return true;
-			// minor numbers are equivalent so check service
-			return service >= minimum.service;
-		}
-	}
-/**
- * Executes the launch.
- * 
- * @return the result of performing the launch
- * @param args command-line arguments
- * @exception Exception thrown if a problem occurs during the launch
- */
-protected Object basicRun(String[] args) throws Exception {
-	// locate boot plugin (may return -dev mode variations)
-	URL[] bootPath = getBootPath(bootLocation);
-	
-	// splash handling is done here, because the default case needs to know
-	// the location of the boot plugin we are going to use
-	handleSplash(bootPath);
-	
-	// load the BootLoader and startup the platform
-	Class clazz = getBootLoader(bootPath);
-	Method method = clazz.getDeclaredMethod("run", new Class[] { String.class, URL.class, String.class, String[].class, Runnable.class }); //$NON-NLS-1$
-	try {
-		return method.invoke(clazz, new Object[] { application, pluginPathLocation, location, args, endSplashHandler });
-	} catch (InvocationTargetException e) {
-		if (e.getTargetException() instanceof Error)
-			throw (Error) e.getTargetException();
-		else
-			throw e;
-	}
-}
-/**
- * Returns a string representation of the given URL String.  This converts
- * escaped sequences (%..) in the URL into the appropriate characters.
- * NOTE: due to class visibility there is a copy of this method
- *       in InternalBootLoader
- */
-protected String decode(String urlString) {
-	//try to use Java 1.4 method if available
-	try {
-		Class clazz = URLDecoder.class;
-		Method method = clazz.getDeclaredMethod("decode", new Class[] {String.class, String.class});//$NON-NLS-1$
-		//first encode '+' characters, because URLDecoder incorrectly converts 
-		//them to spaces on certain class library implementations.
-		if (urlString.indexOf('+') >= 0) {
-			int len = urlString.length();
-			StringBuffer buf = new StringBuffer(len);
-			for (int i = 0; i < len; i++) {
-				char c = urlString.charAt(i);
-				if (c == '+')
-					buf.append("%2B");//$NON-NLS-1$
-				else
-					buf.append(c);
-			}
-			urlString = buf.toString();
-		}
-		Object result = method.invoke(null, new Object[] {urlString, "UTF-8"});//$NON-NLS-1$
-		if (result != null)
-			return (String)result;
-	} catch (Exception e) {
-		//JDK 1.4 method not found -- fall through and decode by hand
-	}
-	//decode URL by hand
-	boolean replaced = false;
-	byte[] encodedBytes = urlString.getBytes();
-	int encodedLength = encodedBytes.length;
-	byte[] decodedBytes = new byte[encodedLength];
-	int decodedLength = 0;
-	for (int i = 0; i < encodedLength; i++) {
-		byte b = encodedBytes[i];
-		if (b == '%') {
-			byte enc1 = encodedBytes[++i];
-			byte enc2 = encodedBytes[++i];
-			b = (byte) ((hexToByte(enc1) << 4) + hexToByte(enc2));
-			replaced = true;
-		}
-		decodedBytes[decodedLength++] = b;
-	}
-	if (!replaced)
-		return urlString;
-	try {
-		return new String(decodedBytes, 0, decodedLength, "UTF-8");//$NON-NLS-1$
-	} catch (UnsupportedEncodingException e) {
-		//use default encoding
-		return new String(decodedBytes, 0, decodedLength);
-	}
-}
-/**
- * Returns the result of converting a list of comma-separated tokens into an array
- * 
- * @return the array of string tokens
- * @param prop the initial comma-separated string
- */
-private String[] getArrayFromList(String prop) {
-	if (prop == null || prop.trim().equals("")) //$NON-NLS-1$
-		return new String[0];
-	Vector list = new Vector();
-	StringTokenizer tokens = new StringTokenizer(prop, ","); //$NON-NLS-1$
-	while (tokens.hasMoreTokens()) {
-		String token = tokens.nextToken().trim();
-		if (!token.equals("")) //$NON-NLS-1$
-			list.addElement(token);
-	}
-	return list.isEmpty() ? new String[0] : (String[]) list.toArray(new String[0]);
-}
-/**
- * Creates and returns a platform <code>BootLoader</code> which can be used to start
- * up and run the platform.  
- * 
- * @return the new boot loader
- * @param path search path for the BootLoader
- */
-public Class getBootLoader(URL[] path) throws Exception {
-	URLClassLoader loader = new URLClassLoader(path, null);
-	return loader.loadClass(BOOTLOADER);
-}
-/**
- * Returns the <code>URL</code>-based class path describing where the boot classes
- * are located when running in development mode.
- * 
- * @return the url-based class path
- * @param base the base location
- * @exception MalformedURLException if a problem occurs computing the class path
- */
-protected URL[] getDevPath(URL base) throws MalformedURLException {
-	URL url;
-	String devBase = base.toExternalForm();
-	if (!inDevelopmentMode) {
-		url = new URL(devBase + BOOTJAR);
-		return new URL[] {url};
-	}
-	String[] locations = getArrayFromList(devClassPath);
-	ArrayList result = new ArrayList(locations.length);
-	for (int i = 0; i < locations.length; i++) {
-		String spec = devBase + locations[i];
-		char lastChar = spec.charAt(spec.length() - 1);
-		if ((spec.endsWith(".jar") || (lastChar == '/' || lastChar == '\\'))) //$NON-NLS-1$
-			url = new URL (spec);
-		else
-			url = new URL(spec + "/"); //$NON-NLS-1$
-		//make sure URL exists before adding to path
-		if (new java.io.File(url.getFile()).exists())
-			result.add(url);
-	}
-	url = new URL(devBase + BOOTJAR);
-	if (new java.io.File(url.getFile()).exists())
-		result.add(url);
-	return (URL[])result.toArray(new URL[result.size()]);
-}
-
-/**
- * Returns the <code>URL</code>-based class path describing where the boot classes are located.
- * 
- * @return the url-based class path
- * @param base the base location
- * @exception MalformedURLException if a problem occurs computing the class path
- */
-protected URL[] getBootPath(String base) throws MalformedURLException {
-	URL url = null;
-	// if the given location is not null, assume it is correct and use it. 
-	if (base != null) {
-		url = new URL(base);
-		if (debug)
-			System.out.println("Boot URL: " + url.toExternalForm()); //$NON-NLS-1$
-		return new URL[] {url};	
-	}
-	// search for boot in root location
-	URL[] result = null;
-	url = new URL(rootLocation);
-	String path = url.getFile();
-	path = searchForBoot(path);
-	// add on any dev path elements
-	url = new URL(url.getProtocol(), url.getHost(), url.getPort(), path);
-	result = getDevPath(url);
-	if (debug) {
-		System.out.println("Boot URL:"); //$NON-NLS-1$
-		for (int i = 0; i < result.length; i++)
-			System.out.println("    " + result[i].toExternalForm()); //$NON-NLS-1$
-	}
-	return result;
-}
-
-/**
- * Searches for a boot directory starting in the "plugins" subdirectory
- * of the given location.  If one is found then this location is returned; 
- * otherwise an exception is thrown.
- * 
- * @return the location where boot directory was found
- * @param start the location to begin searching at
- */
-protected String searchForBoot(String start) {
-	FileFilter filter = new FileFilter() {
-		public boolean accept(File candidate) {
-			return candidate.isDirectory() &&
-				(candidate.getName().equals(PI_BOOT)
-				|| candidate.getName().startsWith(PI_BOOT + "_")); //$NON-NLS-1$
-		}
-	};
-	File[] boots = new File(start, "plugins").listFiles(filter); //$NON-NLS-1$
-	if (boots == null)
-		throw new RuntimeException("Could not find bootstrap code. Check location of boot plug-in or specify -boot."); //$NON-NLS-1$
-	String result = null;
-	Object maxVersion = null;
-	for (int i = 0; i < boots.length; i++) {
-		String name = boots[i].getName();
-		int index = name.indexOf('_');
-		String version;
-		Object currentVersion;
-		if (index == -1)
-			version = "";  //$NON-NLS-1$ // Note: directory with version suffix is always > than directory without version suffix
-		else
-			version = name.substring(index + 1);
-		currentVersion = getVersionElements(version);			
-		if (maxVersion == null) {
-			result = boots[i].getAbsolutePath();
-			maxVersion = currentVersion;
-		} else {
-			if (compareVersion((Object[])maxVersion, (Object[])currentVersion) < 0) {
-				result = boots[i].getAbsolutePath();
-				maxVersion = currentVersion;
-			}
-		}
-	}
-	if (result == null)
-		throw new RuntimeException("Could not find bootstrap code. Check location of boot plug-in or specify -boot."); //$NON-NLS-1$
-	return result.replace(File.separatorChar, '/') + "/"; //$NON-NLS-1$
-}
-
-/**
- * Compares version strings. 
- * @return result of comparison, as integer;
- * <code><0</code> if left < right;
- * <code>0</code> if left == right;
- * <code>>0</code> if left > right;
- */
-private int compareVersion(Object[] left, Object[] right) {
-	
-	int result = ((Integer)left[0]).compareTo((Integer)right[0]); // compare major
-	if (result != 0)
-		return result;
-		
-	result = ((Integer)left[1]).compareTo((Integer)right[1]); // compare minor
-	if (result != 0)
-		return result;
-		
-	result = ((Integer)left[2]).compareTo((Integer)right[2]); // compare service
-	if (result != 0)
-		return result;
-		
-	return ((String)left[3]).compareTo((String)right[3]); // compare qualifier
-}
-
-/**
- * Do a quick parse of version identifier so its elements can be correctly compared.
- * If we are unable to parse the full version, remaining elements are initialized
- * with suitable defaults.
- * @return an array of size 4; first three elements are of type Integer (representing
- * major, minor and service) and the fourth element is of type String (representing
- * qualifier). Note, that returning anything else will cause exceptions in the caller.
- */
-private Object[] getVersionElements(String version) {
-	Object[] result = {new Integer(0), new Integer(0), new Integer(0), ""}; //$NON-NLS-1$
-	StringTokenizer t = new StringTokenizer(version, "."); //$NON-NLS-1$
-	String token;
-	int i = 0;
-	while(t.hasMoreTokens() && i<4) {
-		token = t.nextToken();
-		if (i<3) {
-			// major, minor or service ... numeric values
-			try {
-				result[i++] = new Integer(token);
-			} catch(Exception e) {
-				// invalid number format - use default numbers (0) for the rest
-				break; 
-			}
-		} else {
-			// qualifier ... string value
-			result[i++] = token;
-		}
-	}
-	return result;
-}
-
-/**
- * Runs the platform with the given arguments.  The arguments must identify
- * an application to run (e.g., <code>-application com.example.application</code>).
- * After running the application <code>System.exit(N)</code> is executed.
- * The value of N is derived from the value returned from running the application.
- * If the application's return value is an <code>Integer</code>, N is this value.
- * In all other cases, N = 0.
- * <p>
- * Clients wishing to run the platform without a following <code>System.exit</code>
- * call should use <code>run()</code>.
- *
- * @see #run
- * 
- * @param args the command line arguments
- */
-public static void main(String[] args) {
-	Object result = null;
-	arguments = args;
-	// Check to see if we are running with a compatible VM.
-	// If not, then return exit code "14" which will be recognized
-	// by the executable and an appropriate message will be displayed
-	// to the user.
-	if (!isCompatible())
-		System.exit(14);
-	// Check to see if there is already a platform running in
-	// this workspace. If there is, then return an exit code of "15" which
-	// will be recognized by the executable and an appropriate message
-	// will be displayed to the user.
-	if (isAlreadyRunning())
-		System.exit(15);
-	Main launcher = new Main();
-	try {
-		result = launcher.run(args);
-	} catch (Throwable e) {
-		// try and take down the splash screen.
-		launcher.takeDownSplash();
-		log("Exception launching the Eclipse Platform:"); //$NON-NLS-1$
-		log(e);
-		// Return "unlucky" 13 as the exit code. The executable will recognize
-		// this constant and display a message to the user telling them that
-		// there is information in their log file.
-		System.exit(13);
-	}
-	int exitCode = result instanceof Integer ? ((Integer) result).intValue() : 0;
-	System.exit(exitCode);
-}
-
-/**
- * Runs this launcher with the arguments specified in the given string.
- * 
- * @param argString the arguments string
- * @exception Exception thrown if a problem occurs during launching
- */
-public static void main(String argString) throws Exception {
-	Vector list = new Vector(5);
-	for (StringTokenizer tokens = new StringTokenizer(argString, " "); tokens.hasMoreElements();) //$NON-NLS-1$
-		list.addElement((String) tokens.nextElement());
-	main((String[]) list.toArray(new String[list.size()]));
-}
-
-/**
- * Processes the command line arguments
- * 
- * @return the arguments to pass through to the launched application
- * @param args the command line arguments
- */
-protected String[] processCommandLine(String[] args) throws Exception {
-	int[] configArgs = new int[100];
-	configArgs[0] = -1; // need to initialize the first element to something that could not be an index.
-	int configArgIndex = 0;
-	for (int i = 0; i < args.length; i++) {
-		boolean found = false;
-		// check for args without parameters (i.e., a flag arg)
-		// check if debug should be enabled for the entire platform
-		if (args[i].equalsIgnoreCase(DEBUG)) {
-			debug = true;
-			// passed thru this arg (i.e., do not set found = true
-			continue;
-		}
-		
-		// check if this is initialization pass
-		if (args[i].equalsIgnoreCase(INITIALIZE)) {
-			cmdInitialize = true;
-			// passed thru this arg (i.e., do not set found = true
-			continue;
-		}
-		
-		// check if development mode should be enabled for the entire platform
-		// If this is the last arg or there is a following arg (i.e., arg+1 has a leading -), 
-		// simply enable development mode.  Otherwise, assume that that the following arg is
-		// actually some additional development time class path entries.  This will be processed below.
-		if (args[i].equalsIgnoreCase(DEV) && ((i + 1 == args.length) || ((i + 1 < args.length) && (args[i + 1].startsWith("-"))))) { //$NON-NLS-1$
-			inDevelopmentMode = true;
-			// do not mark the arg as found so it will be passed through
-			continue;
-		}
-
-		// done checking for args.  Remember where an arg was found 
-		if (found) {
-			configArgs[configArgIndex++] = i;
-			continue;
-		}
-		// check for args with parameters. If we are at the last argument or if the next one
-		// has a '-' as the first character, then we can't have an arg with a parm so continue.
-		if (i == args.length - 1 || args[i + 1].startsWith("-"))  //$NON-NLS-1$
-			continue;
-		String arg = args[++i];
-
-		// look for the laucher to run
-		if (args[i - 1].equalsIgnoreCase(BOOT)) {
-			bootLocation = arg;
-			found = true;
-		}
-
-		// look explicitly set install root
-		if (args[i - 1].equalsIgnoreCase(INSTALL)) {
-			rootLocation = arg;
-			found = true;
-		}
-
-		// look for the development mode and class path entries.  
-		if (args[i - 1].equalsIgnoreCase(DEV)) {
-			inDevelopmentMode = true;
-			devClassPath = arg;
-			continue;
-		}
-
-		// look for the location of workspace
-		if (args[i - 1].equalsIgnoreCase(DATA)) {
-			baseLocation = arg;
-			continue; // pass the arg on
-		}
-
-		// look for the application to run
-		if (args[i - 1].equalsIgnoreCase(APPLICATION)) {
-			application = arg;
-			found = true;
-		}
-
-		// look for the feature to run
-		if (args[i - 1].equalsIgnoreCase(FEATURE)) {
-			feature = arg;
-			continue; // pass the arg on [20063]
-		}
-
-		// look for the configuration to use
-		if (args[i - 1].equalsIgnoreCase(CONFIGURATION)) {
-			configuration = arg;
-			// we  mark -configuration for removal. It will be
-			// reinserted after we determine the actual URL of
-			// the configuration file to use.
-			found = true;
-		}
-
-		// look for token to use to show the splash screen
-		if (args[i - 1].equalsIgnoreCase(SHOWSPLASH)) {
-			showSplash = arg;
-			found = true;
-		}
-
-		// look for token to use to end the splash screen
-		if (args[i - 1].equalsIgnoreCase(ENDSPLASH)) {
-			endSplash = arg;
-			found = true;
-		}
-
-		// done checking for args.  Remember where an arg was found 
-		if (found) {
-			configArgs[configArgIndex++] = i - 1;
-			configArgs[configArgIndex++] = i;
-		}
-	}
-	// remove all the arguments consumed by this argument parsing
-	if (configArgIndex == 0)
-		return args;
-	String[] passThruArgs = new String[args.length - configArgIndex];
-	configArgIndex = 0;
-	int j = 0;
-	for (int i = 0; i < args.length; i++) {
-		if (i == configArgs[configArgIndex])
-			configArgIndex++;
-		else
-			passThruArgs[j++] = args[i];
-	}
-	return passThruArgs;
-}
-/**
- * Runs the application to be launched.
- * 
- * @return the return value from the launched application
- * @param args the arguments to pass to the application
- * @exception thrown if a problem occurs during launching
- */
-public Object run(String[] args) throws Exception {
-	String[] passThruArgs = processCommandLine(args);
-	passThruArgs = processConfiguration(passThruArgs);
-	return basicRun(passThruArgs);
-}
-
-/*
- * After the command line arguments have been processed, we try
- * to locate and load the platform configuration file. It contains
- * information maintained by the install/ update support. In 
- * particular, the following are needed at this point
- * in the startup sequence:
- * -> if -boot was not specified, which boot.jar to load 
- *    BootLoader from (original core.boot plugin may have been updated)
- * -> if -feature was not specified, what is the default feature
- *    (product packagers can set the default)
- * -> if we were requested to put up the splash (-showsplash
- *    was specified), which one (based on defaulted or
- *    specified feature information)
- * Note, that if we can't find the platform configuration file,
- * or it does not contain the information we are looking for,
- * the startup support ends up computing "reasonable" defaults
- * as before (based on relative locations within the file system)
- */
-private String[] processConfiguration(String[] passThruArgs) throws MalformedURLException {
-	// get install root location, if not specified
-	if (rootLocation == null)
-		rootLocation = getRootURL().toExternalForm();
-		
-	// attempt to locate configuration file
-	URL configURL = null;
-	if (configuration != null && !configuration.trim().equals("")) { //$NON-NLS-1$
-		configuration = configuration.replace(File.separatorChar, '/');
-		if (configuration.equalsIgnoreCase(ARG_USER_DIR)) {
-			// configuration is in current working directory
-			String tmp = System.getProperty("user.dir"); //$NON-NLS-1$
-			if (!tmp.endsWith(File.separator))
-				tmp += File.separator;
-			configURL = new URL("file:" + tmp.replace(File.separatorChar,'/') + CONFIG_FILE); //$NON-NLS-1$
-		} else if(configuration.endsWith("/")) { //$NON-NLS-1$
-			// configuration specified as directory URL		
-			configURL = new URL(configuration + CONFIG_FILE);
-		} else {
-			// configuration specified down to a file			
-			configURL = new URL(configuration);
-		}
-	} else {
-		// configuration not specified - defer to BootLoader
-	}
-		
-	// load configuration
-	loadConfiguration(configURL);
-	
-	// get boot url, if none was specified
-	if (bootLocation == null) {
-		String urlString = loadAttribute(props, CFG_CORE_BOOT, null);
-		if (urlString != null) {
-			try {
-				urlString = resolve(urlString);
-				URL bootDir = new URL(urlString);
-				URL bootURL = new URL(bootDir, BOOTJAR);
-				if (bootDir.getProtocol().equals("file")) { //$NON-NLS-1$
-					File jar = new File(bootURL.getFile());
-					if (jar.exists())
-						// verify boot dir exists
-						bootLocation = bootURL.toExternalForm();
-					else
-						// Somebody turned the tables on us. The info in
-						// platform.cfg is stale, or the workspace is being used
-						// with a new install. Do default search for boot and force
-						// "first use" processing (optimistic reconciliation)
-						cmdFirstUse = true;
-				} else
-					bootLocation = bootURL.toExternalForm();
-			} catch(MalformedURLException e) {
-				// continue ... will do default search for boot
-			}
-		}
-	}
-		
-	// reconstruct command line arguments for configuration elements
-	// (-boot and -application are not passed to BootLoader)
-	if (configURL == null && rootLocation == null)
-		return passThruArgs;
-			
-	ArrayList args = new ArrayList(Arrays.asList(passThruArgs));
-	
-	if (configURL != null) {
-		args.add(CONFIGURATION);
-		args.add(decode(configURL.toExternalForm()));
-	}
-	
-	if (cmdFirstUse) {
-		args.add(FIRST_USE);
-	}
-	
-	// pass root location downstream
-	if (rootLocation != null) {
-		args.add(INSTALL);
-		args.add(rootLocation);
-	}
-	
-	return (String[])args.toArray(new String[0]);
-}
-
-/**
- * Returns url of the location this class was loaded from
- */
-private URL getRootURL() throws MalformedURLException {
-	if (rootLocation != null)
-		return new URL(rootLocation);
-		
-	URL	url = getClass().getProtectionDomain().getCodeSource().getLocation();
-	String path = decode(url.getFile());
-	path = new File(path).getAbsolutePath().replace(File.separatorChar,'/');
-	if (path.endsWith(".jar")) //$NON-NLS-1$
-		path = path.substring(0, path.lastIndexOf("/")+1); //$NON-NLS-1$
-	url = new URL(url.getProtocol(), url.getHost(), url.getPort(), path);
-	rootLocation = url.toExternalForm();
-	return url;
-}
-
-/*
- * Load the configuration file. If not specified, default to the workspace
- */
-private void loadConfiguration(URL url) {
-	if (url == null) {
-		// configuration URL was not specified ..... search
-		String base = baseLocation;
-		if (base == null) {
-			// determine default workspace
-			base = System.getProperty("user.dir"); //$NON-NLS-1$
-			if (!base.endsWith(File.separator))
-				base += File.separator;
-			base += "workspace" + File.separator; //$NON-NLS-1$
-		} else {
-			base = base.replace('/',File.separatorChar);
-		}
-		if (!base.endsWith(File.separator))
-			base += File.separator;
-		
-		File cfg = null;	
-		try {
-			// first look for configuration in base location (workspace or as specified)
-			cfg = new File(base + ".metadata" + File.separator + ".config" + File.separator + CONFIG_FILE); //$NON-NLS-1$ //$NON-NLS-2$
-			url = new URL("file", null, 0, cfg.getAbsolutePath()); //$NON-NLS-1$
-			props = loadProperties(url);
-			if (debug)
-				System.out.println("Startup: using configuration " + url.toString()); //$NON-NLS-1$
-			return; // we're done looking
-		} catch(IOException e) {
-			// continue ...
-		}
-		
-		try {
-			// look for configuration in install root (set up by -initialize)
-			String install = getRootURL().getFile().replace('/',File.separatorChar);
-			if (!install.endsWith(File.separator))
-				install += File.separator;
-			cfg = new File(install + ".config" + File.separator + CONFIG_FILE); //$NON-NLS-1$
-			url = new URL("file", null, 0, cfg.getAbsolutePath()); //$NON-NLS-1$
-			props = loadProperties(url);
-			if (debug)
-				System.out.println("Startup: using configuration " + url.toString()); //$NON-NLS-1$
-		} catch(IOException e) {
-			// continue ...
-			if (debug)
-				System.out.println("Startup: unable to load configuration\n" + e); //$NON-NLS-1$
-		}
-	} else {
-		try {
-			// configuration url was specified ... use it
-			props = loadProperties(url);
-			if (debug)
-				System.out.println("Startup: using configuration " + url.toString()); //$NON-NLS-1$
-		} catch(IOException e) {
-			// continue ...
-			if (debug)
-				System.out.println("Startup: unable to load configuration\n" + e); //$NON-NLS-1$
-		}
-	}
-}
-
-private Properties loadProperties(URL url) throws IOException {
-		
-	// try to load saved configuration file (watch for failed prior save())
-	Properties props = null;
-	IOException originalException = null;
-	try {
-		props = load(url, null); // try to load config file
-	} catch(IOException e1) {
-		originalException = e1;
-		try {
-			props = load(url, CONFIG_FILE_TEMP_SUFFIX); // check for failures on save
-		} catch(IOException e2) {
-			try {
-				props = load(url, CONFIG_FILE_BAK_SUFFIX); // check for failures on save
-			} catch(IOException e3) {
-				throw originalException; // we tried, but no config here ...
-			}
-		}
-	}
-	
-	return props;
-}
- 
-/*
- * Load the configuration  
- */ 
-private Properties load(URL url, String suffix) throws IOException {
-	// figure out what we will be loading
-	if (suffix != null && !suffix.equals("")) //$NON-NLS-1$
-		url = new URL(url.getProtocol(),url.getHost(),url.getPort(),url.getFile()+suffix);
-			
-	// try to load saved configuration file
-	Properties props = new Properties();
-	InputStream is = null;
-	try {
-		is = url.openStream();
-		props.load(is);
-		// check to see if we have complete config file
-		if (!CFG_EOF.equals(props.getProperty(CFG_EOF))) {
-			throw new IOException();
-		}
-	} finally {
-		if (is!=null) {
-			try {
-				is.close();
-			} catch(IOException e) {
-				//ignore failure to close
-			}
-		}
-	}
-	
-	// load feature index
-	if (props != null) {
-		String id = props.getProperty(CFG_FEATURE_ENTRY+".0."+CFG_FEATURE_ENTRY_ID); //$NON-NLS-1$
-		for (int i=1; id != null; i++) {
-			featureIndex.put(id, Integer.toString(i-1));
-			id = props.getProperty(CFG_FEATURE_ENTRY+"."+i+"."+CFG_FEATURE_ENTRY_ID); //$NON-NLS-1$ //$NON-NLS-2$
-		}
-	}
-	
-	return props;
-}	
-	
-/*
- * Load a configuration attribute
- */	
-private String loadAttribute(Properties props, String name, String dflt) {
-	if (props == null)
-		return dflt;
-		
-	String prop = props.getProperty(name);
-	if (prop == null)
-		return dflt;
-	else
-		return prop.trim();
-}
-
-/*
- * Handle splash screen.
- * We support 2 startup scenarios:
- * 
- * (1) the executable launcher put up the splash screen. In that
- *     scenario we are invoked with -endsplash command which is
- *     fully formed to take down the splash screen
- * 
- * (2) the executable launcher did not put up the splash screen,
- *     but invokes Eclipse with partially formed -showsplash command.
- *     In this scenario we determine which splash to display (based on 
- *     feature information) and then call -showsplash command. 
- * 
- * In both scenarios we pass a handler (Runnable) to the platform.
- * The handler is called as a result of the launched application calling
- * Platform.endSplash(). In the first scenario this results in the
- * -endsplash command being executed. In the second scenarios this
- * results in the process created as a result of the -showsplash command
- * being destroyed.
- * 
- * @param bootPath search path for the boot plugin
- */
-private void handleSplash(URL[] bootPath) {
-	
-	// run without splash if we are initializing
-	if (cmdInitialize) {
-		showSplash = null;
-		endSplash = null;
-		return;
-	}
-	
-	// if -endsplash is specified, use it and ignore any -showsplash command
-	if (endSplash != null) {
-		showSplash = null;
-		return;
-	}
-	
-	// check if we are running without a splash screen
-	if (showSplash == null)
-		return;
-
-	// determine the splash path
-	String path  = getSplashPath(bootPath);
-	if (debug && path != null) {
-		System.out.println("Startup: splash path = "+path); //$NON-NLS-1$
-	}
-		
-	// Parse the showsplash command into its separate arguments.
-	// The command format is: 
-	//     <executable> -show <magicArg> [<splashPath>]
-	// If either the <executable> or the <splashPath> arguments contain a
-	// space, Runtime.getRuntime().exec( String ) will not work, even
-	// if both arguments are enclosed in double-quotes. The solution is to
-	// use the Runtime.getRuntime().exec( String[] ) method.
-	String[] cmd = new String[ (path != null ? 4 : 3) ];
-	int sIndex = 0;
-	int eIndex = showSplash.indexOf( " -show" ); //$NON-NLS-1$
-	if (eIndex == -1)
-		return; // invalid -showsplash command
-	cmd[0] = showSplash.substring( sIndex, eIndex );
-	sIndex = eIndex + 1;
-	eIndex = showSplash.indexOf( " ", sIndex ); //$NON-NLS-1$
-	if (eIndex == -1)
-		return; // invalid -showsplash command
-	cmd[1] = showSplash.substring( sIndex, eIndex );
-	cmd[2] = showSplash.substring( eIndex+1 );
-	if (path != null)
-		cmd[3] = path;
-	try {
-		showProcess = Runtime.getRuntime().exec(cmd);
-	} catch (Exception e) {
-		// continue without splash ...
-		log("Exception showing splash screen."); //$NON-NLS-1$
-		log(e);
-	}
-	return;
-}
-
-/*
- * take down the splash screen. Try both take-down methods just in case
- * (only one should ever be set)
- */
-private void takeDownSplash() {
-	if (splashDown) // splash is already down
-		return;
-		
-	// check if -endsplash was specified
-	if (endSplash != null) {
-		try {
-			Runtime.getRuntime().exec(endSplash);
-		} catch (Exception e) {
-			//ignore failure to end splash
-		}
-	}
-	
-	// check if -showsplash was specified and executed
-	if (showProcess != null) {
-		showProcess.destroy();
-		showProcess = null;
-	}
-	
-	splashDown = true;
-}
-
-/*
- * Return path of the splash image to use
- */
-private String getSplashPath(URL[] bootPath) {
-	
-	// see if we can get a splash for the launched feature
-	String[] featurePath = getFeatureRoot();	
-	String path = lookupSplash(featurePath);
-	if (path != null)
-		return path;
-	
-	// no feature path, default to current boot plugin
-	String temp = bootPath[0].getFile(); // take the first path element
-	temp = temp.replace('/', File.separatorChar);
-	int ix = temp.lastIndexOf("plugins"+File.separator); //$NON-NLS-1$
-	if (ix != -1) {
-		int pix = temp.indexOf(File.separator, ix+8);
-		if (pix != -1) {
-			temp = temp.substring(0,pix);
-			path = lookupSplash(new String[] { temp });
-			return path;
-		}
-	}
-		
-	// sorry, no splash found
-	return null;
-}
-
-/*
- * Do a locale-sensitive lookup of splash image
- */
- private String lookupSplash(String[] searchPath) {
- 	if (searchPath == null)
- 		return null;
- 	
- 	// get current locale information
- 	String localePath = Locale.getDefault().toString().replace('_', File.separatorChar);
- 	
- 	// search the specified path
- 	while (localePath != null) {
- 		String suffix;
- 		if (localePath.equals("")) { //$NON-NLS-1$
- 			// look for nl'ed splash image
- 			suffix = SPLASH_IMAGE;
- 		} else {
- 			// look for default splash image
- 			suffix = "nl" + File.separator + localePath + File.separator + SPLASH_IMAGE; //$NON-NLS-1$
- 		}
- 			
- 		// check for file in searchPath
- 		for (int i=0; i<searchPath.length; i++) {
- 			String path = searchPath[i];
- 			if (!path.endsWith(File.separator))
- 				path += File.separator;
- 			path += suffix;
- 			File splash = new File(path);
- 			if (splash.exists())
- 				return splash.getAbsolutePath(); // return the first match found [20063]
- 		}
- 		
- 		// try the next variant
- 		if (localePath.equals("")) //$NON-NLS-1$
- 			localePath = null;
- 		else {
- 			int ix = localePath.lastIndexOf(File.separator);
- 			if (ix == -1)
- 				localePath = ""; //$NON-NLS-1$
- 			else
- 				localePath = localePath.substring(0,ix);
- 		}
- 	} 
- 	
- 	// sorry, could not find splash image
- 	return null;
- }
-
-/*
- * Return the feature identifier to use (specified or defaulted)
- */
-private String getFeatureIdentifier() {
-		
-	if (feature != null) // -feature was specified on command line
-		return feature; 
-		
-	// feature was not specified on command line
-	String dflt = props.getProperty(CFG_FEATURE_ENTRY_DEFAULT);
-	if (dflt != null)
-		return dflt; // return customized default if set.
-	else
-		return null; // otherwise let BootLoader pick default
-}
-
-/*
- * Return the feature root if known
- */
-private String[] getFeatureRoot() {
-	String ix = featureIndex(getFeatureIdentifier());
-	String urlString = props.getProperty(CFG_FEATURE_ENTRY + "." + ix + "." + CFG_FEATURE_ENTRY_ROOT + ".0"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-	if (urlString == null)
-		return null;
-	
-	ArrayList result = new ArrayList();
-	URL url = null;
-	for (int i=1; urlString != null; i++) {
-		try {	
-			urlString = resolve(urlString); // resolve platform relative URLs
-			url = new URL(urlString);
-			if (url.getProtocol().equals("file")) { //$NON-NLS-1$
-				result.add(url.getFile().replace('/', File.separatorChar));
-			} else
-				continue; // in the future may cache
-		} catch(MalformedURLException e) {
-			// skip bad entries
-		}
-		urlString = props.getProperty(CFG_FEATURE_ENTRY + "." + ix + "." + CFG_FEATURE_ENTRY_ROOT + "." + i); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-	}
-	
-	if (result.size()>0)
-		return (String[])result.toArray(new String[0]);
-	else 
-		return null;
-}
-
-/*
- * resolve platform:/base/ URLs
- */
- private String resolve(String urlString) throws MalformedURLException { 	
- 	if (urlString.startsWith(PLATFORM_URL)) {
- 		String root = getRootURL().toExternalForm();
- 		if (!root.endsWith("/")) //$NON-NLS-1$
- 			root += "/"; //$NON-NLS-1$
- 		String path = urlString.substring(PLATFORM_URL.length());
- 		return root + path;
- 	} else
- 		return urlString;
- }
-
-/*
- * 
- */
-private String featureIndex(String id) {
-	if (id==null)
-		return null;
-	return (String)featureIndex.get(id);
-}
-
-/*
- * Entry point for logging.
- */
-private static synchronized void log(Object obj) {
-	if (obj == null)
-		return;
-	try {
-		openLogFile();
-		try {
-			if (newSession) {
-				log.write(SESSION);
-				log.write(' ');
-				for (int i=SESSION.length(); i<78; i++)
-					log.write('-');
-				log.newLine();
-				newSession = false;
-			}
-			write(obj);
-		} finally {
-			if (logFile == null) {
-				if (log != null)
-					log.flush();
-			} else
-				closeLogFile();
-		}
-	} catch (Exception e) {
-		System.err.println("An exception occurred while writing to the platform log:");//$NON-NLS-1$
-		e.printStackTrace(System.err);
-		System.err.println("Logging to the console instead.");//$NON-NLS-1$
-		//we failed to write, so dump log entry to console instead
-		try {
-			log = logForStream(System.err);
-			write(obj);
-			log.flush();
-		} catch (Exception e2) {
-			System.err.println("An exception occurred while logging to the console:");//$NON-NLS-1$
-			e2.printStackTrace(System.err);
-		}
-	} finally {
-			log = null;
-	}
-}
-/*
- * This should only be called from #log()
- */
-private static void write(Object obj) throws IOException {
-	if (obj == null)
-		return;
-	if (obj instanceof Throwable) {
-		log.write(STACK);
-		log.newLine();
-		((Throwable) obj).printStackTrace(new PrintWriter(log));
-	} else {
-		log.write(ENTRY);
-		log.write(' ');
-		log.write(PLUGIN_ID);
-		log.write(' ');
-		log.write(String.valueOf(ERROR));
-		log.write(' ');
-		log.write(String.valueOf(0));
-		log.write(' ');
-		try {
-			DateFormat formatter = new SimpleDateFormat("MMM dd, yyyy kk:mm:ss.SS"); //$NON-NLS-1$
-			log.write(formatter.format(new Date()));
-		} catch (Exception e) {
-			// continue if we can't write out the date
-			log.write(Long.toString(System.currentTimeMillis()));
-		}
-		log.newLine();
-		log.write(MESSAGE);
-		log.write(' ');
-		log.write(String.valueOf(obj));
-	}
-	log.newLine();
-}
-private static void computeLogFileLocation() {
-	if (logFile != null)
-		return;
-	// compute the base location and then append the name of the log file
-	File base = computeMetadataLocation();
-	logFile = new File(base, ".log"); //$NON-NLS-1$
-	logFile.getParentFile().mkdirs();
-}
-private static File computeLockFileLocation() {
-	// compute the base location and then append the name of the lock file
-	File base = computeMetadataLocation();
-	File result = new File(base, ".lock"); //$NON-NLS-1$
-	result.getParentFile().mkdirs();
-	return result;
-}
-private static File computeMetadataLocation() {
-
-	File result = null;
-	// check to see if the user specified a workspace location in the command-line args
-	for (int i=0; arguments != null && result == null && i<arguments.length; i++) {
-		if (arguments[i].equalsIgnoreCase(DATA)) {
-			// found the -data command line argument so the next argument should be the
-			// workspace location. Ensure that we have another arg to check
-			if (i+1<arguments.length)
-				result = new File(arguments[i+1]);
-		}
-	}
-	// otherwise use the default location
-	if (result == null)
-		result = new File(System.getProperty("user.dir"), "workspace");//$NON-NLS-1$ //$NON-NLS-2$
-	
-	// append the .metadata directory to the path
-	return new File(result, ".metadata"); //$NON-NLS-1$
-}
-/**
- * Converts an ASCII character representing a hexadecimal
- * value into its integer equivalent.
- */
-private int hexToByte(byte b) {
-	switch (b) {
-		case '0':return 0;
-		case '1':return 1;
-		case '2':return 2;
-		case '3':return 3;
-		case '4':return 4;
-		case '5':return 5;
-		case '6':return 6;
-		case '7':return 7;
-		case '8':return 8;
-		case '9':return 9;
-		case 'A':
-		case 'a':return 10;
-		case 'B':
-		case 'b':return 11;
-		case 'C':
-		case 'c':return 12;
-		case 'D':
-		case 'd':return 13;
-		case 'E':
-		case 'e':return 14;
-		case 'F':
-		case 'f':return 15;
-		default:
-			throw new IllegalArgumentException("Switch error decoding URL");
-	}
-}
-
-
-private static void openLogFile() throws IOException {
-	computeLogFileLocation();
-	try {
-		log = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(logFile.getAbsolutePath(), true), "UTF-8"));//$NON-NLS-1$
-	} catch (IOException e) {
-		logFile = null;
-		throw e;
-	}
-}
-private static BufferedWriter logForStream(OutputStream output) {
-	try {
-		return new BufferedWriter(new OutputStreamWriter(output, "UTF-8"));//$NON-NLS-1$
-	} catch (UnsupportedEncodingException e) {
-		return new BufferedWriter(new OutputStreamWriter(output));
-	}
-}
-private static void closeLogFile() throws IOException {
-	try {
-		if (log != null) {
-			log.flush();
-			log.close();
-		}
-	} finally {
-		log = null;
-	}
-}
-/**
- * Return a boolean value indicating whether or not the version of the JVM is
- * deemed to be compatible with Eclipse.
- */
-private static boolean isCompatible() {
-	try {
-		String vmVersionString = System.getProperty("java.version"); //$NON-NLS-1$
-		Identifier minimum = new Identifier(1, 3, 0);
-		Identifier version = new Identifier(vmVersionString);
-		return version.isGreaterEqualTo(minimum);
-	} catch (SecurityException e) {
-		// If the security manager won't allow us to get the system property, continue for
-		// now and let things fail later on their own if necessary.
-		return true;
-	} catch (NumberFormatException e) {
-		// If the version string was in a format that we don't understand, continue and
-		// let things fail later on their own if necessary.
-		return true;
-	}
-}
-/**
- * Return a boolean value indicating whether or not the platform is already
- * running in this workspace.
- */
-private static boolean isAlreadyRunning() {
-	// Calculate the location of the lock file
-	File lockFile = computeLockFileLocation();
-
-	// if the lock file already exists, try to delete,
-	// assume failure means another eclipse has it open
-	if (lockFile.exists())
-		lockFile.delete();
-	return lockFile.exists();
-}
-
-}
diff --git a/platform/org.eclipse.platform/src/org/eclipse/core/launcher/package.html b/platform/org.eclipse.platform/src/org/eclipse/core/launcher/package.html
deleted file mode 100644
index ca2e7ce..0000000
--- a/platform/org.eclipse.platform/src/org/eclipse/core/launcher/package.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-   <meta name="Author" content="IBM">
-   <meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
-   <title>Package-level Javadoc</title>
-</head>
-<body>
-Launches the Eclipse Platform.
-<h2>
-Package Specification</h2>
-
-This package is the main entry point to the Eclipse Platform.  To start the platform invoke the Main
-class in this package.
-<br>&nbsp;
-</body>
-</html>
diff --git a/platform/org.eclipse.platform/welcome.xml b/platform/org.eclipse.platform/welcome.xml
deleted file mode 100644
index 19bfb65..0000000
--- a/platform/org.eclipse.platform/welcome.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?> 
-<welcomePage 
-	title="Eclipse Platform"
-	format="nowrap">
-	<intro>This page will help familiarize you with the Eclipse Workbench.
-To get started, read the sections below and click on the related links. </intro>
-
-<item><b>Installed Features </b>
-To find out more about the features installed in your workbench, choose <action pluginId="org.eclipse.ui"  class="org.eclipse.ui.internal.QuickStartAction">Help > Welcome...</action>
-and select the feature you are interested in.</item>
-
-<item><b>Perspectives, views and editors </b>
-A window contains one or more perspectives. A perspective consists of views (e.g. Navigator) 
-and editors for working with your resources.
-
-The shortcut bar at the far left of the window allows you to open new perspectives and move
-between perspectives that are already open. The perspective you are currently working with 
-is shown in the title of the window and in the shortcut bar as a pushed-in icon.</item>
-
-<item><b>Configuring your perspectives</b>
-You can move views and editors around the workbench by dragging their titlebars. You can
-also add more views to your current perspective by using Window > Show View. 
-To reset the perspective to its original state, choose <action pluginId="org.eclipse.ui"  class="org.eclipse.ui.internal.ResetPerspectiveAction">Window > Reset Perspective</action>. 
-
-Once you have arranged your perspective, you can save it using Window > Save Perspective As.... 
-You can customize the views, perspectives and New menu operations that show up for 
-your perspective. To do this choose <action pluginId="org.eclipse.ui"  class="org.eclipse.ui.internal.EditActionSetsAction">Window > Customize Perspective...</action> .  A view can
-additionally be converted into a Fast View by dragging it to the shortcut bar (at the 
-far left of the window). </item> 
-
-<item><b>Join a CVS team</b>
-To join a CVS development team, open the <action pluginId="org.eclipse.team.cvs.ui" class="org.eclipse.team.internal.ccvs.ui.actions.ShowCVSPerspectiveAction">CVS Repository Exploring perspective</action>. Next, specify
-the location of your CVS repository. To do this, choose <action pluginId="org.eclipse.team.cvs.ui" class="org.eclipse.team.internal.ccvs.ui.repo.NewCVSRepositoryAction">New > Repository Location...</action> from the
-CVS Repositories view popup menu. When the location wizard opens, fill in the details of your
-CVS repository and click Finish. 
-
-A repository location will appear in the CVS Repositories view. Expand the location, then expand
-the HEAD branch. You will see a list of the modules in that repository. Select a module and choose 
-<b>Checkout as Project</b> from the context menu. This will checkout the module from the CVS 
-repository and create a project by that name in your workspace.</item>
-
-<item><b>Learn more </b>
-To learn more you can browse the <topic id="/org.eclipse.platform.doc.user/toc.xml">Workbench User Guide</topic>.</item>
-
-
-</welcomePage>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.linux/.classpath b/update/org.eclipse.update.core.linux/.classpath
deleted file mode 100644
index 5921923..0000000
--- a/update/org.eclipse.update.core.linux/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="src"/>
-    <classpathentry kind="src" path="/org.eclipse.update.core"/>
-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
-    <classpathentry kind="src" path="/org.eclipse.help"/>
-    <classpathentry kind="src" path="/org.apache.xerces"/>
-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update.core.linux/.cvsignore b/update/org.eclipse.update.core.linux/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.core.linux/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.linux/.project b/update/org.eclipse.update.core.linux/.project
deleted file mode 100644
index d41874c..0000000
--- a/update/org.eclipse.update.core.linux/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.core.linux</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.help</project>

-		<project>org.eclipse.update.core</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.core.linux/about.html b/update/org.eclipse.update.core.linux/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.core.linux/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.linux/build.properties b/update/org.eclipse.update.core.linux/build.properties
deleted file mode 100644
index 9862f0a..0000000
--- a/update/org.eclipse.update.core.linux/build.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-bin.includes = fragment.xml,\
-               os/,\
-               fragment.properties,\
-               about.html
-source.updatecorelinux.zip = src/
diff --git a/update/org.eclipse.update.core.linux/fragment.xml b/update/org.eclipse.update.core.linux/fragment.xml
deleted file mode 100644
index a21f2ae..0000000
--- a/update/org.eclipse.update.core.linux/fragment.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<fragment
-   id="org.eclipse.update.core.linux"
-   name="%fragmentNameLinux"
-   version="2.1.0"
-   provider-name="%providerName"
-   plugin-id="org.eclipse.update.core"
-   plugin-version="2.1.0"
-   match="compatible">
-
-   <runtime>
-   </runtime>
-
-
-</fragment>
diff --git a/update/org.eclipse.update.core.linux/src/build.xml b/update/org.eclipse.update.core.linux/src/build.xml
deleted file mode 100644
index 59f9799..0000000
--- a/update/org.eclipse.update.core.linux/src/build.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<project name="buildlibrary" default="run" basedir="."> 
-  
-  <!-- The properties ${eclipse-home} ${jdk-path} should be passed into this script -->
-  <!-- Set a meaningful default value for when it is not. -->
-  <property name="eclipse-home" value="${basedir}/../.."/>
-  <property name="jdk-path" value="${java.home}"/>  
-  <property name="destination" value="${eclipse-home}/org.eclipse.update.core.linux/os/linux/x86/"/>
-  <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core/src/"/>
-  <property name="src-path" value="${eclipse-home}/org.eclipse.update.core/src/"/>  
-  
-  <!-- sets the properties -->
-  <property name="library-name" value="libupdate"/>  
-  <property name="library-platform" value="so"/>    
-  <property name="library-file" value="${library-name}.${library-platform}"/>
-  
-  <!-- This target holds all initialization code that needs to be done for -->
-  <!-- all tests that are to be run. Initialization for individual tests -->
-  <!-- should be done within the body of the suite target. -->
-  <target name="init">
-    <tstamp/>
-    <delete>
-      <fileset dir="${obj-path}" includes="${library-file}"/>
-      <fileset dir="${obj-path}" includes="${library-name}.o"/>
-    </delete>
-  </target>
-  
-  <!-- This target holds code to cleanup the testing environment after -->
-  <!-- after all of the tests have been run. You can use this target to -->
-  <!-- delete temporary files that have been created. -->
-  <target name="cleanup">
-      <delete>
-      <fileset dir="${obj-path}" includes="${library-file}"/>
-      <fileset dir="${obj-path}" includes="${library-name}.o"/>
-    </delete>
-  </target>
-  
-  
-  <!-- This target runs the build. -->
-  <target name="run" depends="init,build,cleanup">
-  </target>
-  
-  <!-- This target build the library -->
-  <target name="build">
-    <echo message="Building ${library-file}"/>
-
-    <property name="header-path" value="${jdk-path}/include"/>
-    <property name="header-linux-path" value="${header-path}/linux" />
-
-	<echo message="gcc -o  ${library-file} -shared -I${src-path} -I${header-linux-path} ${library-file} -static -lc"/>
-
-    <apply executable="gcc" dest="${eclipse-home}/" parallel="false">
-      <arg value="-o"/>
-      <arg value="${library-file}"/>
-      <arg value="-shared"/>
-      <arg value="-I${src-path}"/>
-      <arg value="-I${header-path}"/>      
-      <arg value="-I${header-linux-path}"/>  
-	  <srcfile/>
-	  <arg value="-static"/>           
-      <arg value="-lc"/>	  
-      <fileset dir="${src-path}" includes="*.cpp"/>
-      <mapper type="glob" from="*.cpp" to="*.o"/>
-    </apply>
-    
-	<move file="${library-file}" todir="${destination}"/>
-  </target>
-  
-  
-</project>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.linux/src/update.cpp b/update/org.eclipse.update.core.linux/src/update.cpp
deleted file mode 100644
index 84ef705..0000000
--- a/update/org.eclipse.update.core.linux/src/update.cpp
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2002 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-

-# include <sys/types.h>

-# include <sys/statfs.h>

-# include <update.h>

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetFreeSpace

- * Signature: (Ljava/io/File;)J

- */

-JNIEXPORT jlong JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetFreeSpace(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const char * lpDirectoryName;

-

-	// Linux Parameters

-	struct statfs buffer;

-

-	// the result

-	jlong result = org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN;

-

-	// first, obtain the Path from the java.io.File parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-

-	// cast one argument as jlong to have a jlong result

-	int err = statfs(lpDirectoryName,&buffer);

-	if (err==0){

-		long size = buffer.f_bsize;

-		jlong free = buffer.f_bfree;

-		result = size*free;

-	}

-

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetLabel

- * Signature: (Ljava/io/File;)Ljava/lang/String;

- */

-JNIEXPORT jstring JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetLabel(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const char * lpDirectoryName;

-

-	// obtain the String from the parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-

-	jstring result = NULL;

-

-	// Linux implementation following

-

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetType

- * Signature: (Ljava/io/File;)I

- */

-JNIEXPORT jint JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetType(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const char * lpDirectoryName;

-

-	// obtain the String from the parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-

-	int result;

-	

-	// Linux implemantation

-

-	result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH;

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeListMountPoints

- * Signature: ()[Ljava/lang/String;

- */

-JNIEXPORT jobjectArray JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeListMountPoints(

-	JNIEnv * jnienv,

-	jclass javaClass) {

-

-	//

-	int drive;

-	char driveName[100];

-	jobjectArray returnArray;

-	int nDrive = 0;

-

-	// 

-	jclass stringClass;

-	jobject empty;

-	int index = 0;

-	jobject str;

-

-	// Linux implementation

-	// find mount points

-

-	drive = 0;

-	stringClass = jnienv -> FindClass("java/lang/String");

-	empty = jnienv -> NewStringUTF("");

-	//returnArray = jnienv -> NewObjectArray(nDrive, stringClass, empty);

-	// for now return null as method is not implemented

-	returnArray = NULL;

-

-	for (int i = 0; i < drive; i++) {

-		// Linux implementation, create String for each mount point

-

-		str = jnienv -> NewStringUTF(driveName);

-		jnienv -> SetObjectArrayElement(returnArray, index, str);

-		index++;

-	}

-

-	return returnArray;

-}

diff --git a/update/org.eclipse.update.core.linux/src/update.h b/update/org.eclipse.update.core.linux/src/update.h
deleted file mode 100644
index fef0347..0000000
--- a/update/org.eclipse.update.core.linux/src/update.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */

-

-/*******************************************************************************

- * Copyright (c) 2000, 2002 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

- 

-#include <jni.h>

-/* Header for class org_eclipse_update_configuration_LocalSystemInfo */

-

-#ifndef _Included_org_eclipse_update_configuration_LocalSystemInfo

-#define _Included_org_eclipse_update_configuration_LocalSystemInfo

-#ifdef __cplusplus

-extern "C" {

-#endif

-#undef org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN

-#define org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN -1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN -1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH -2L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE 1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FIXED

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FIXED 2L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOTE

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOTE 3L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_CDROM

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_CDROM 4L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_RAMDISK

-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_RAMDISK 5L

-/* Inaccessible static: listeners */

-/* Inaccessible static: hasNatives */

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetFreeSpace

- * Signature: (Ljava/io/File;)J

- */

-JNIEXPORT jlong JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetFreeSpace

-  (JNIEnv *, jclass, jobject);

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetLabel

- * Signature: (Ljava/io/File;)Ljava/lang/String;

- */

-JNIEXPORT jstring JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetLabel

-  (JNIEnv *, jclass, jobject);

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetType

- * Signature: (Ljava/io/File;)I

- */

-JNIEXPORT jint JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetType

-  (JNIEnv *, jclass, jobject);

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeListMountPoints

- * Signature: ()[Ljava/lang/String;

- */

-JNIEXPORT jobjectArray JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeListMountPoints

-  (JNIEnv *, jclass);

-

-#ifdef __cplusplus

-}

-

-#endif

-#endif

diff --git a/update/org.eclipse.update.core.win32/.classpath b/update/org.eclipse.update.core.win32/.classpath
deleted file mode 100644
index 5921923..0000000
--- a/update/org.eclipse.update.core.win32/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="src"/>
-    <classpathentry kind="src" path="/org.eclipse.update.core"/>
-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
-    <classpathentry kind="src" path="/org.eclipse.help"/>
-    <classpathentry kind="src" path="/org.apache.xerces"/>
-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update.core.win32/.cvsignore b/update/org.eclipse.update.core.win32/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.core.win32/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.win32/.project b/update/org.eclipse.update.core.win32/.project
deleted file mode 100644
index bb440b5..0000000
--- a/update/org.eclipse.update.core.win32/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.core.win32</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.help</project>

-		<project>org.eclipse.update.core</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.core.win32/about.html b/update/org.eclipse.update.core.win32/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.core.win32/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.win32/build.properties b/update/org.eclipse.update.core.win32/build.properties
deleted file mode 100644
index 0f5d557..0000000
--- a/update/org.eclipse.update.core.win32/build.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-source.updatecorewin32.zip = src/
-bin.includes = fragment.xml,\
-               os/,\
-               fragment.properties,\
-               about.html
diff --git a/update/org.eclipse.update.core.win32/fragment.xml b/update/org.eclipse.update.core.win32/fragment.xml
deleted file mode 100644
index 5df5874..0000000
--- a/update/org.eclipse.update.core.win32/fragment.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<fragment
-   id="org.eclipse.update.core.win32"
-   name="%fragmentNameWin"
-   version="2.1.0"
-   provider-name="%providerName"
-   plugin-id="org.eclipse.update.core"
-   plugin-version="2.1.0"
-   match="compatible">
-
-   <runtime>
-   </runtime>
-
-
-</fragment>
diff --git a/update/org.eclipse.update.core.win32/os/win32/x86/update.dll b/update/org.eclipse.update.core.win32/os/win32/x86/update.dll
deleted file mode 100644
index 428e60e..0000000
--- a/update/org.eclipse.update.core.win32/os/win32/x86/update.dll
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.core.win32/src/build.xml b/update/org.eclipse.update.core.win32/src/build.xml
deleted file mode 100644
index 694dc82..0000000
--- a/update/org.eclipse.update.core.win32/src/build.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-<project name="buildlibrary" default="run" basedir="."> 
-  
-  <!-- The properties ${eclipse-home} ${jdk-path} should be passed into this script -->
-  <!-- The Path should point to the bin directory of BCC55 -->
-  <!-- http://www.borland.com/products/downloads/download_cbuilder.html -->
-  
-  <!-- Set a meaningful default value for when it is not. -->
-  <property name="eclipse-home" value="${basedir}/../.."/>
-  <property name="jdk-path" value="${java.home}"/>  
-  <property name="destination" value="${eclipse-home}/org.eclipse.update.core.win32/os/win32/x86/"/>
-  <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.win32/src"/>
-  <property name="src-path" value="${eclipse-home}/org.eclipse.update.core.win32/src/"/>  
-  
-  <!-- sets the properties -->
-  <property name="library-name" value="update"/>  
-  <property name="library-platform" value="dll"/>    
-  <property name="library-file" value="${library-name}.${library-platform}"/>
-  
-  <!-- This target holds all initialization code that needs to be done for -->
-  <!-- all tests that are to be run. Initialization for individual tests -->
-  <!-- should be done within the body of the suite target. -->
-  <target name="init">
-    <tstamp/>
-    <delete>
-      <fileset dir="${obj-path}" includes="${library-file}"/>
-      <fileset dir="${obj-path}" includes="${library-name}.obj"/>
-      <fileset dir="${obj-path}" includes="${library-name}.tds"/>            
-    </delete>
-  </target>
-  
-  <!-- This target holds code to cleanup the testing environment after -->
-  <!-- after all of the tests have been run. You can use this target to -->
-  <!-- delete temporary files that have been created. -->
-  <target name="cleanup">
-      <delete>
-      <fileset dir="${obj-path}" includes="${library-file}"/>
-      <fileset dir="${obj-path}" includes="${library-name}.obj"/>
-      <fileset dir="${obj-path}" includes="${library-name}.tds"/>            
-    </delete>
-  </target>
-  
-  
-  <!-- This target runs the test suite. Any actions that need to happen -->
-  <!-- after all the tests have been run should go here. -->
-  <target name="run" depends="init,build,cleanup">
-  </target>
-  
-  <!-- This target build the dll -->
-  <target name="build">
-    <echo message="Building ${library-file}"/>
-
-    <property name="header-path" value="${jdk-path}/include"/>
-    <property name="header-windows-path" value="${header-path}/win32" />
-
-	<echo message="bcc32 -I${src-path} -I${header-windows-path} -WD"/>
-
-    <apply executable="bcc32" dest="${eclipse-home}/" parallel="false">
-      <arg value="-I${src-path}"/>
-      <arg value="-I${header-path}"/>      
-      <arg value="-I${header-windows-path}"/> 
-      <!-- arg value="-DUNICODE" --> 
-	  <arg value="-w-8057"/>           
-      <arg value="-WD"/>
-	  <srcfile/>
-      <fileset dir="${src-path}" includes="*.cpp"/>
-      <mapper type="glob" from="*.cpp" to="*.obj"/>
-    </apply>
-    
-	<move file="${library-file}" todir="${destination}"/>
-  </target>
-  
-  
-</project>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core.win32/src/update.cpp b/update/org.eclipse.update.core.win32/src/update.cpp
deleted file mode 100644
index cb27fd5..0000000
--- a/update/org.eclipse.update.core.win32/src/update.cpp
+++ /dev/null
@@ -1,487 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2002 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-

-# include <update.h>

-# include <windows.h>

-# include <winioctl.h> // IOCTL codes: MediaType

-

-// Windows Version

-int WIN98 = 0;

-int WINNT = 1;

-int WINME = 2;

-int WIN2000 = 3;

-int WINXP = 4;

-

-// set to 1 for DEBUG

-int DEBUG = 0;

-

-// set to 0 to run on Windows 95 *Unsupported*

-int NOWIN95 = 1;

-

-

-// GLOBAL METHODS

-// ---------------

-

-/*

- *

- */

-jstring WindowsTojstring( JNIEnv* jnienv, char* buf )

-{

-  jstring rtn = 0;

-  wchar_t* buffer = 0;

-  int bufferLen = strlen(buf);  

-  if( bufferLen == 0 ){

-    rtn = jnienv ->NewStringUTF(buf);

-	if (DEBUG)

-		printf("WindowsToJString Buffer is empty\n");    

-  } else {

-    int length = MultiByteToWideChar( CP_ACP, 0, (LPCSTR)buf, bufferLen, NULL, 0 );

-    buffer = (wchar_t*)malloc( length*2 + 1 );

-    if(int err=MultiByteToWideChar( CP_ACP, 0, (LPCSTR)buf, bufferLen, (LPWSTR)buffer, length ) >0 ){

-      rtn = jnienv->NewString((jchar*)buffer, length );

-    } else {

-		if (DEBUG)

-			printf("MultiByteToWideChar %i\n",err);    

-    }

-  }

-  if( buffer )

-   free( buffer );

-  return rtn;

-}

-

-

-

-/*

- * calls GetVolumeInformation to retrive the label of the volume

- * Returns NULL if an error occurs

- * @param driveLetter path to the drive "c:\\"

- * @prama jnienv JNIEnvironment

- */

-jstring getLabel(TCHAR driveLetter[],JNIEnv * jnienv){

-

-	jstring result = NULL;

-	TCHAR buf[128];	

-	

-	// always return null as UNICODE is not implemented

-	// how can we get the label of a volume as UNICODE char ?

-	return result;

-	

-	int err = GetVolumeInformation(

-		driveLetter,

-		buf,

-		sizeof(buf) - 1,

-		NULL,

-		NULL,

-		NULL,

-		NULL,

-		0);

-	if (err){

-		result = WindowsTojstring(jnienv, buf);

-	} else {

-		if (DEBUG)

-			printf("Error GetVolumeInformation %i\n",err);				

- 	}

-	return result;

-}

-

-/*

- * returns the Version of Windows

- * int 0 WIN98;

- * int 1 WINNT;

- * int 2 WINME;

- * int 3 WIN2000;

- * int 4 WINXP;

- * returns -1 otherwise

- */

-int getWindowsVersion(){

-	OSVERSIONINFOEX osvi;

-	int UNKNOWN = -1;

-	

-	ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));

-	osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);

-	

-	if(!(GetVersionEx((OSVERSIONINFO *)&osvi))){

-		if (DEBUG)

-			printf("UNKNOWN VERSION: Cannot execute GetVersionEx\n");

-		// if OSVERSIONEX doesn't work, try OSVERSIONINFO

-		osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);			 	

-		if(!(GetVersionEx((OSVERSIONINFO *)&osvi))){

-		if (DEBUG)

-			printf("UNKNOWN VERSION: Cannot execute GetVersionEx\n");

-			return UNKNOWN;

-		}

-	}

-	

-	switch(osvi.dwPlatformId){

-		case VER_PLATFORM_WIN32_NT:

-			if (DEBUG)

-				printf("VERSION NT: Maj %i Min %i\n",osvi.dwMajorVersion,osvi.dwMinorVersion);				 	

-			if(osvi.dwMajorVersion<=4)

-				return WINNT;

-			if(osvi.dwMajorVersion==5){

-				if (osvi.dwMinorVersion==0)

-					return WIN2000;

-				if (osvi.dwMinorVersion==1)

-					return WINXP;

-			} else {

-				return UNKNOWN;

-			};

-			break;

-		case VER_PLATFORM_WIN32_WINDOWS:

-			if (DEBUG)

-				printf("VERSION Non NT: Maj %i Min %i\n",osvi.dwMajorVersion,osvi.dwMinorVersion);				 	

-			if(osvi.dwMajorVersion==4){

-				if (osvi.dwMinorVersion==10)

-					return WIN98;

-				if (osvi.dwMinorVersion==90)

-					return WINME;

-			} else {

-				return UNKNOWN;

-			}

-			break;

-		default:

-			if (DEBUG)

-				printf("VERSION UNKNOWN: Maj %i Min %i\n",osvi.dwMajorVersion,osvi.dwMinorVersion);				 	

-			return UNKNOWN;

-	}

-	return UNKNOWN;

-} 

-

-/*

- * Returns the type of Removable Drive 

- * Returns 

- * org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_3

- * org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_5

- * org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE

- */

-jlong getFloppy(TCHAR driveLetter[]){

-

-	TCHAR floppyPath[8];

-	HANDLE handle;

-	DISK_GEOMETRY geometry[20];

-	DWORD dw;

-	jlong UNKNOWN = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE;

-

-	sprintf(floppyPath, "\\\\.\\%c:", driveLetter[0]);

-	if (DEBUG)

-		printf("Path %s\n",floppyPath);

-	// BUG 25719

-    SetErrorMode( SEM_FAILCRITICALERRORS ); 		

-	handle=CreateFile(floppyPath,0,FILE_SHARE_READ,NULL,OPEN_ALWAYS,0,NULL);

-	if (handle==INVALID_HANDLE_VALUE){

-		if (DEBUG)

-			printf("Invalid Handle %s\n",floppyPath);

-		return UNKNOWN;

-	} else {

-		if(DeviceIoControl(handle,

-			IOCTL_DISK_GET_MEDIA_TYPES,0,0,

-			geometry,sizeof(geometry),&dw,0) 

-			&& dw>0) {

-			switch(geometry[0].MediaType){

-			 case F5_160_512:

-			 case F5_180_512:

-			 case F5_320_512:

-			 case F5_320_1024:

-			 case F5_360_512:

-			 case F5_1Pt2_512:

-				if (DEBUG)

-					printf("Found 5 1/4 Drive\n");				 	

-			 	return org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_5;

-			 case F3_720_512:			 				 				 				 				 

-			 case F3_1Pt44_512:

-			 case F3_2Pt88_512:

-			 case F3_20Pt8_512:				 				 				 

-				if (DEBUG)

-					printf("Found 3 1/2 Drive\n");				 	

-			 	return org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_3;

-			 default:

-			 	return UNKNOWN;

-			}

-		}

-	}

-	return UNKNOWN;	

-}

-

-/*

- * Returns the UNC name of a remote drive

- * (\\Machine\path\path1\path2$)

- * returns NULL if an error occurs

- */

- jstring getRemoteNetworkName(TCHAR driveLetter[],JNIEnv * jnienv){

- 	

- 	unsigned long size =256;

- 	TCHAR buf[256];	

- 	TCHAR drivePath[2];

- 	DWORD err;

- 	jstring result = NULL;

- 	

- 	// always return NULL as UNICODE not implemented

-	// how can we get the label of a remote network name as UNICODE char ? 	

- 	return result;

- 	

-	sprintf(drivePath, "%c:", driveLetter[0]); 	

- 	err = WNetGetConnection(drivePath,buf,&size);

- 	

- 	if (err==WN_SUCCESS){

-		result = WindowsTojstring(jnienv,buf);

-	} else {

-		if (DEBUG)

-			printf("Error WNEtGetConnection %i",err);				

- 	}

-	return result;

- }

-

-

-// JNI METHODS

-// ---------------

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetFreeSpace

- * Signature: (Ljava/io/File;)J

- */

-JNIEXPORT jlong JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetFreeSpace(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const TCHAR * lpDirectoryName;

-

-	// Windows Parameters

-	__int64 i64FreeBytesAvailableToCaller;

-	__int64 i64TotalNumberOfBytes;

-	__int64 i64TotalNumberOfFreeBytes;

-

-	// the result

-	jlong result = org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN;

-

-	// first, obtain the Path from the java.io.File parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-	if (DEBUG)

-		printf("Directory: [%s]\n",lpDirectoryName);

-

-	if (int win = (int)getWindowsVersion()<0 && NOWIN95){

-		// windows 95 or other

-		if (DEBUG)

-			printf("Unsupported Windows: %i\n",win);		

-		return result;

-	}

-

-	int err = GetDiskFreeSpaceEx(

-				lpDirectoryName,

-				(PULARGE_INTEGER) & i64FreeBytesAvailableToCaller,

-				(PULARGE_INTEGER) & i64TotalNumberOfBytes,

-				(PULARGE_INTEGER) & i64TotalNumberOfFreeBytes);

-			

-	if (err) {

-		result = (jlong) i64FreeBytesAvailableToCaller;

-	}

-

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetLabel

- * Signature: (Ljava/io/File;)Ljava/lang/String;

- */

-JNIEXPORT jstring JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetLabel(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const TCHAR * lpDirectoryName;

-

-	// obtain the String from the parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-	if (DEBUG)

-		printf("Directory: [%s]\n",lpDirectoryName);

-

-	//

-	jstring result = NULL;

-	int floppy;

-	

-	if (int win = (int)getWindowsVersion()<0 && NOWIN95){

-		// windows 95 or other

-		if (DEBUG)

-			printf("Unsupported Windows: %i\n",win);		

-		return result;

-	}

-		

-	// Make sure we have a String of the Form: <letter>:

-	if (':' == lpDirectoryName[1]) {

-		TCHAR driveLetter[4]; // i.e. -> C:\\

-		memcpy(driveLetter, lpDirectoryName, 2);

-		strcpy(driveLetter + 2, "\\");

-		switch (GetDriveType(driveLetter)) {

-			case DRIVE_REMOTE :

-				// check name of machine and path of remote

-				if (DEBUG)

-					printf("Remote Drive");

-				result = getRemoteNetworkName(driveLetter,jnienv);				

-				break;

-			default :

-				if (DEBUG)

-					printf("Another Drive at %s", driveLetter);

-				result = getLabel(driveLetter,jnienv);

-				break;

-		} 

-	} 

-

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetType

- * Signature: (Ljava/io/File;)I

- */

-JNIEXPORT jint JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetType(

-	JNIEnv * jnienv,

-	jclass javaClass,

-	jobject file) {

-

-	// to retrive the String

-	jclass cls;

-	jmethodID id;

-	jobject obj;

-

-	// java.io.File.getAbsolutePath()

-	const TCHAR * lpDirectoryName;

-

-	// obtain the String from the parameter

-	cls = jnienv -> GetObjectClass(file);

-	id = jnienv -> GetMethodID(cls, "getAbsolutePath", "()Ljava/lang/String;");

-	obj = jnienv -> CallObjectMethod(file, id);

-	lpDirectoryName = jnienv -> GetStringUTFChars((jstring) obj, 0);

-	if (DEBUG)

-		printf("Directory: [%s]\n",lpDirectoryName);

-

-	int result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN;

-	if (int win = (int)getWindowsVersion()<0 && NOWIN95){

-		// windows 95 or other

-		if (DEBUG)

-			printf("Unsupported Windows: %i\n",win);		

-		return result;

-	}

-	

-	// Make sure we have a String of the Form: <letter>:

-	if (':' == lpDirectoryName[1]) {

-		TCHAR driveLetter[4]; //C:\\

-		memcpy(driveLetter, lpDirectoryName, 2);

-		strcpy(driveLetter + 2, "\\");

-

-		switch (GetDriveType(driveLetter)) {

-			case DRIVE_REMOVABLE :

-				// check if floppy 3.5, floppy 5.25	

-				// or other removable device (USB,PCMCIA ...)

-				if (DEBUG)

-					printf("Removable Device");

-				result = getFloppy(driveLetter);					

-				break;

-			case DRIVE_CDROM :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_CDROM;

-				break;

-			case DRIVE_FIXED :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FIXED;

-				break;

-			case DRIVE_REMOTE :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOTE;

-				break;

-			case DRIVE_NO_ROOT_DIR :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH;

-				break;

-			case DRIVE_RAMDISK :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_RAMDISK;

-				break;			

-			case DRIVE_UNKNOWN :

-			default :

-				result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN;

-				break;

-		}

-	} else {

-		result = org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH;

-	}

-

-	return result;

-}

-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeListMountPoints

- * Signature: ()[Ljava/lang/String;

- */

-JNIEXPORT jobjectArray JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeListMountPoints(

-	JNIEnv * jnienv,

-	jclass javaClass) {

-

-	//

-	DWORD logDrives;

-	UINT drive;

-	TCHAR driveName[100];

-	jobjectArray returnArray;

-	int nDrive = 0;

-

-	// 

-	jclass stringClass;

-	jobject empty;

-	int index = 0;

-	jobject str;

-

-

-	logDrives = GetLogicalDrives();

-	for (drive = 0; drive < 32; drive++) {

-		if (logDrives & (1 << drive)) {

-			nDrive++;

-		}

-	}

-

-	stringClass = jnienv -> FindClass("java/lang/String");

-	empty = jnienv -> NewStringUTF("");

-	returnArray = jnienv -> NewObjectArray(nDrive, stringClass, empty);

-

-	if (int win = (int)getWindowsVersion()<0 && NOWIN95){

-		// windows 95 or other

-		if (DEBUG)

-			printf("Unsupported Windows: %i\n",win);	

-		return NULL;

-	}

-

-	for (drive = 0; drive < 32; drive++) {

-		if (logDrives & (1 << drive)) {

-			sprintf(driveName, "%c:\\", drive + 'A');

-			str = jnienv -> NewStringUTF(driveName);

-			jnienv -> SetObjectArrayElement(returnArray, index, str);

-			index++;

-		}

-	}

-

-	return returnArray;

-}

-

diff --git a/update/org.eclipse.update.core.win32/src/update.h b/update/org.eclipse.update.core.win32/src/update.h
deleted file mode 100644
index 35673d1..0000000
--- a/update/org.eclipse.update.core.win32/src/update.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */
-
-/*******************************************************************************
- * Copyright (c) 2000, 2002 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <jni.h>

-/* Header for class org_eclipse_update_configuration_LocalSystemInfo */
-
-#ifndef _Included_org_eclipse_update_configuration_LocalSystemInfo
-#define _Included_org_eclipse_update_configuration_LocalSystemInfo

-#ifdef __cplusplus
-extern "C" {
-#endif

-#undef org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN
-#define org_eclipse_update_configuration_LocalSystemInfo_SIZE_UNKNOWN -1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_UNKNOWN -1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_INVALID_PATH -2L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOVABLE 1L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FIXED
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FIXED 2L

-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOTE
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_REMOTE 3L
-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_CDROM
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_CDROM 4L
-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_RAMDISK
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_RAMDISK 5L
-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_5
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_5 6L
-#undef org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_3
-#define org_eclipse_update_configuration_LocalSystemInfo_VOLUME_FLOPPY_3 7L

-/* Inaccessible static: listeners */

-/* Inaccessible static: hasNatives */

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetFreeSpace

- * Signature: (Ljava/io/File;)J

- */

-JNIEXPORT jlong JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetFreeSpace

-  (JNIEnv *, jclass, jobject);
-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetLabel

- * Signature: (Ljava/io/File;)Ljava/lang/String;

- */

-JNIEXPORT jstring JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetLabel

-  (JNIEnv *, jclass, jobject);
-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeGetType

- * Signature: (Ljava/io/File;)I

- */

-JNIEXPORT jint JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeGetType

-  (JNIEnv *, jclass, jobject);
-

-/*

- * Class:     org_eclipse_update_configuration_LocalSystemInfo

- * Method:    nativeListMountPoints

- * Signature: ()[Ljava/lang/String;

- */

-JNIEXPORT jobjectArray JNICALL Java_org_eclipse_update_configuration_LocalSystemInfo_nativeListMountPoints

-  (JNIEnv *, jclass);
-

-#ifdef __cplusplus
-}
-
-#endif

-#endif

diff --git a/update/org.eclipse.update.core/.classpath b/update/org.eclipse.update.core/.classpath
deleted file mode 100644
index f10cf27..0000000
--- a/update/org.eclipse.update.core/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<classpath>

-    <classpathentry kind="src" path="src/"/>

-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>

-    <classpathentry kind="src" path="/org.apache.xerces"/>

-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>

-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>

-    <classpathentry kind="output" path="bin"/>

-</classpath>

diff --git a/update/org.eclipse.update.core/.cvsignore b/update/org.eclipse.update.core/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.core/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/.options b/update/org.eclipse.update.core/.options
deleted file mode 100644
index 7bf6197..0000000
--- a/update/org.eclipse.update.core/.options
+++ /dev/null
@@ -1,9 +0,0 @@
-org.eclipse.update.core/debug=true

-org.eclipse.update.core/debug/warning=false

-org.eclipse.update.core/debug/parsing=false

-org.eclipse.update.core/debug/install=false

-org.eclipse.update.core/debug/configuration=false

-org.eclipse.update.core/debug/type=false

-org.eclipse.update.core/debug/web=false

-org.eclipse.update.core/debug/installhandler=false

-org.eclipse.update.core/debug/reconciler=false

diff --git a/update/org.eclipse.update.core/.project b/update/org.eclipse.update.core/.project
deleted file mode 100644
index 5248656..0000000
--- a/update/org.eclipse.update.core/.project
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.core</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.help</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.core/Scrapbook.jpage b/update/org.eclipse.update.core/Scrapbook.jpage
deleted file mode 100644
index c2633ae..0000000
--- a/update/org.eclipse.update.core/Scrapbook.jpage
+++ /dev/null
@@ -1,431 +0,0 @@
-		java.util.Enumeration enum =  System.getProperties().keys();

-		String key = null;

-		while (enum.hasMoreElements()){

-			key = (String)enum.nextElement();

-			System.out.print(key);

-			for (int i =0;i<(30-key.length());i++)System.out.print(" ");

-			System.out.println("->"+System.getProperty(key));

-		}

-

-

-new java.net.URL("file://C:/temp/org.eclipse.update.core.feature1_1.0.0/org.eclipse.update.core.feature1.plugin1_1.1.1.jar").openStream()

-

-(new java.io.File("C:\\chris chris\hello\\")).mkdirs();

-

-java.net.URL a =  new java.net.URL("http","www.oti.com","/feature/blah.jar");

-java.net.URL b =  new java.net.URL("jar",null,a.toExternalForm()+"!/hello.txt");

-b

-

-new java.net.URL("file",null,System.getProperty("java.io.tmpdir"));

-new java.net.URL("file",null,System.getProperty("user.home"));

-

-String tempDir = "c:\\TEMP\\features2.jar";

-java.net.URL TEMP_SITE = new java.net.URL("file",null,tempDir);

-java.net.URL file = new java.net.URL("jar",null,TEMP_SITE.toExternalForm()+"!/feature.xml");

-file.openStream();

-file

-

-java.io.File f =  new java.io.File("c:\\temp\\xtf\\file.jar");

-f.mkdirs()

-

-java.util.Locale.getDefault()

-java.util.ResourceBundle

-

-java.net.URL url = new java.net.URL("file",null,"C:\\path"+java.io.File.separator);

-url.getPath().endsWith("/");

-url

-

-java.net.URL url = new java.net.URL("http://machine:8080/path space/file.abc#hello");

-java.net.URL url2 = new java.net.URL(url,"/ ");

-url2.getPath()

-

-java.lang.ClassLoader l = new java.net.URLClassLoader(new java.net.URL[] {new java.net.URL("file",null,"c:\\oti\\wsw205\\eclipse\\install\\features\\org.eclipse.help.feature_1.0.4/") }, null);

-java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("feature", java.util.Locale.getDefault(), l);

-bundle

-

-String[] ss = {"a", "b"}; 

-java.util.List list = new java.util.ArrayList(0);

-list.addAll(java.util.Arrays.asList(ss)); 

-list.add("c");

-list.size();

-

-java.util.List list = new java.util.ArrayList(0);

-list.add("1");

-list.add("2");

-list.add("3");

-list.add("4");

-list.add("5");

-list.add("6");

-list.add("7");

-while (list.size()>5){

-	list.remove(0);

-}

-list.get(0)

-

-

-org.eclipse.update.internal.security.KeyStores k = new org.eclipse.update.internal.security.KeyStores();

-while (k.hasNext()){

-	org.eclipse.update.internal.security.KeystoreHandle handle = (org.eclipse.update.internal.security.KeystoreHandle) k.next();

-	System.out.println("KeyStore:"+handle.getLocation()+":"+handle.getType());

-}

-

-int i = (13/3);

-i

-

-*****************************************

-OLD Feature Code

-

-

-	/**

-	 */

-	private void downloadArchivesLocally(ISite tempSite, String[] archiveIDToInstall, IProgressMonitor monitor) throws CoreException, IOException {

-

-		URL sourceURL;

-		String newFile;

-		URL newURL;

-

-		if (monitor != null) {

-			monitor.beginTask("Download archives bundles to Temporary Space", archiveIDToInstall.length);

-		}

-		for (int i = 0; i < archiveIDToInstall.length; i++) {

-

-			// transform the id by asking the site to map them to real URL inside the SITE

-			if (getSite() != null) {

-				sourceURL = getSite().getSiteContentProvider().getArchivesReferences(archiveIDToInstall[i]);

-				if (monitor != null) {

-					monitor.subTask("..." + archiveIDToInstall[i]);

-				}

-				// the name of the file in the temp directory

-				// should be the regular plugins/pluginID_ver as the Temp site is OUR site

-				newFile = Site.DEFAULT_PLUGIN_PATH + archiveIDToInstall[i];

-				newURL = UpdateManagerUtils.resolveAsLocal(sourceURL, newFile, monitor);

-

-				// transfer the possible mapping to the temp site						

-				 ((Site) tempSite).addArchive(new URLEntry(archiveIDToInstall[i], newURL));

-				if (monitor != null) {

-					monitor.worked(1);

-					if (monitor.isCanceled()) {

-						throw CANCEL_EXCEPTION;

-					}

-				}

-			}

-		}

-

-		// the site of this feature now becomes the TEMP directory

-		// FIXME: make sure there is no other issue

-		// like asking for stuff that hasn't been copied

-		// or reusing this feature

-		// of having an un-manageable temp site

-

-		this.setSite(tempSite);

-

-	}

-

-	/**

-	 */

-	private void downloadDataLocally(IFeature targetFeature, INonPluginEntry[] dataToInstall, IProgressMonitor monitor) throws CoreException, IOException {

-

-		URL sourceURL;

-		// any other data

-		INonPluginEntry[] entries = getNonPluginEntries();

-		if (entries != null) {

-			if (monitor != null) {

-				monitor.beginTask("Installing Other Data information", dataToInstall.length);

-				if (monitor.isCanceled()) {

-					throw CANCEL_EXCEPTION;

-				}

-			}

-

-			for (int j = 0; j < entries.length; j++) {

-				String name = dataToInstall[j].getIdentifier();

-				if (monitor != null) {

-					monitor.subTask("..." + name);

-				}

-

-				// the id is URL format with "/"

-				String dataEntryId = Site.DEFAULT_FEATURE_PATH + getIdentifier().toString() + "/" + name;

-				// transform the id by asking the site to map them to real URL inside the SITE

-				if (getSite() != null) {

-					sourceURL = getSite().getSiteContentProvider().getArchivesReferences(dataEntryId);

-					((Site) targetFeature.getSite()).storeFeatureInfo(getIdentifier(), name, sourceURL.openStream());

-					if (monitor != null) {

-						monitor.worked(1);

-						if (monitor.isCanceled()) {

-							throw CANCEL_EXCEPTION;

-						}

-					}

-				}// getSite==null

-			}

-		}

-	}

-	

-	

-		/**

-		 * Method install.

-		 * @param targetFeature

-		 * @param monitor

-		 * @throws CoreException

-		 */

-	public void old_install(IFeature targetFeature, IProgressMonitor monitor) throws CoreException {

-

-		IPluginEntry[] sourceFeaturePluginEntries = getPluginEntries();

-		IPluginEntry[] targetSitePluginEntries = targetFeature.getSite().getPluginEntries();

-		Site tempSite = (Site) SiteManager.getTempSite();

-

-		// determine list of plugins to install

-		// find the intersection between the two arrays of IPluginEntry...

-		// The one teh site contains and teh one the feature contains

-		IPluginEntry[] pluginsToInstall = intersection(sourceFeaturePluginEntries, targetSitePluginEntries);

-

-		// private abstract - Determine list of content references id /archives id /bundles id that 

-		// map the list of plugins to install

-		String[] archiveIDToInstall = getContentReferenceToInstall(pluginsToInstall);

-

-		try {

-			// download and install data bundles

-			// before we set the site of teh feature to the TEMP site

-			INonPluginEntry[] dataEntries = getNonPluginEntries();

-			if (dataEntries.length > 0) {

-				downloadDataLocally(targetFeature, dataEntries, monitor);

-			}

-

-			// optmization, may be private to implementation

-			// copy *blobs/content references/archives/bundles* in TEMP space

-			if (((Site) getSite()).optimize()) {

-				if (archiveIDToInstall != null) {

-					downloadArchivesLocally(tempSite, archiveIDToInstall, monitor);

-				}

-			}

-

-			// obtain the list of *Streamable Storage Unit*

-			// from the archive

-			if (monitor != null) {

-				int total = pluginsToInstall == null ? 1 : pluginsToInstall.length + 1;

-				monitor.beginTask("Install feature " + getLabel(), total);

-			}

-			if (pluginsToInstall != null) {

-				InputStream inStream = null;

-				for (int i = 0; i < pluginsToInstall.length; i++) {

-					if (monitor != null) {

-						monitor.subTask("Installing plug-in: " + pluginsToInstall[i]);

-						if (monitor.isCanceled()) {

-							throw CANCEL_EXCEPTION;

-						}

-					}

-

-					open(pluginsToInstall[i]);

-					String[] names = getStorageUnitNames(pluginsToInstall[i]);

-					if (names != null) {

-						for (int j = 0; j < names.length; j++) {

-							if ((inStream = getInputStreamFor(pluginsToInstall[i], names[j])) != null)

-								targetFeature.store(pluginsToInstall[i], names[j], inStream);

-						}

-					}

-					close(pluginsToInstall[i]);

-					if (monitor != null) {

-						monitor.worked(1);

-						if (monitor.isCanceled()) {

-							throw CANCEL_EXCEPTION;

-						}

-					}

-

-				}

-			}

-

-			// install the Feature info

-			InputStream inStream = null;

-			String[] names = getStorageUnitNames(this);

-			if (names != null) {

-				openFeature();

-				if (monitor != null) {

-					monitor.subTask("Installing Feature information");

-					if (monitor.isCanceled()) {

-						throw CANCEL_EXCEPTION;

-					}

-				}

-

-				for (int j = 0; j < names.length; j++) {

-					if ((inStream = getInputStreamFor(this, names[j])) != null)

-						 ((Site) targetFeature.getSite()).storeFeatureInfo(getIdentifier(), names[j], inStream);

-				}

-				closeFeature();

-				if (monitor != null) {

-					monitor.worked(1);

-					if (monitor.isCanceled()) {

-						throw CANCEL_EXCEPTION;

-					}

-				}

-

-			}

-

-		} catch (IOException e) {

-			String id = UpdateManagerPlugin.getPlugin().getDescriptor().getUniqueIdentifier();

-			IStatus status = new Status(IStatus.ERROR, id, IStatus.OK, "Error during Install", e);

-			throw new CoreException(status);

-		} finally {

-			//do not clean up TEMP drive

-			// as other feature may be there... clean up when exiting the plugin

-		}

-	}

-	

-	

-		/**

-	 * @see IPluginContainer#store(IPluginEntry, String, InputStream)

-	 */

-	public void store(IPluginEntry pluginEntry, String contentKey, InputStream inStream) throws CoreException {

-		// check if pluginEntry already exists before passing to the site

-		// anything else ?

-		boolean found = false;

-		int i = 0;

-		IPluginEntry[] entries = getPluginEntries();

-		while (i < entries.length && !found) {

-			if (entries[i].equals(pluginEntry)) {

-				found = true;

-			}

-			i++;

-		}

-		if (!found) {

-			String id = UpdateManagerPlugin.getPlugin().getDescriptor().getUniqueIdentifier();

-			IStatus status = new Status(IStatus.ERROR, id, IStatus.OK, "The plugin:" + pluginEntry.getIdentifier().toString() + " is not part of the plugins of the feature:" + this.getIdentifier().toString(), null);

-			throw new CoreException(status);

-		}

-		getSite().store(pluginEntry, contentKey, inStream);

-	}

-	

-		/**

-	 * perform pre processing before opening a plugin archive

-	 * @param entry the plugin about to be opened

-	 */

-	protected void open(IPluginEntry entry) {

-	};

-

-	/**

-	 * perform post processing to close a plugin archive

-	 * @param entry the plugin about to be closed

-	 */

-	protected void close(IPluginEntry entry) throws IOException {

-	};

-

-	/**

-	 * perform pre processing before opening the feature archive

-	 */

-	protected void openFeature() {

-	};

-

-	/**

-	 * perform post processing to close a feature archive

-	 */

-	public void closeFeature() throws IOException {

-	};

-	

-	

-		/**

-	 * return the list of FILE to be transfered for a Plugin

-	 */

-	protected abstract String[] getStorageUnitNames(IPluginEntry pluginEntry) throws CoreException;

-

-	/**

-	 * return the list of FILE to be transfered from within the Feature

-	 */

-	protected abstract String[] getStorageUnitNames(IFeature feature) throws CoreException;

-

-	/**

-	 * return the Stream of the FILE to be transfered for a Plugin

-	 */

-	protected abstract InputStream getInputStreamFor(IPluginEntry pluginEntry, String name) throws CoreException;

-

-	/**

-	 * return the Stream of FILE to be transfered from within the Feature

-	 */

-	protected abstract InputStream getInputStreamFor(IFeature feature, String name) throws IOException, CoreException;

-

-	/**

-	 * returns the list of archive to transfer/install

-	 * in order to install the list of plugins

-	 * 

-	 * @param pluginsToInstall list of plugin to install 

-	 */

-	protected abstract String[] getContentReferenceToInstall(IPluginEntry[] pluginsToInstall);

-	

-	

-		/**

-	 * remove myself...

-	 */

-	public void old_remove(IProgressMonitor monitor) throws CoreException {

-

-		// remove the feature and the plugins if they are not used and not activated

-

-		// get the plugins from the feature

-		IPluginEntry[] pluginsToRemove = ((SiteLocal) SiteManager.getLocalSite()).getDeltaPluginEntries(this);

-

-		try {

-

-			// obtain the list of *Streamable Storage Unit*

-			// from the archive

-			if (monitor != null) {

-				int total = pluginsToRemove == null ? 1 : pluginsToRemove.length + 1;

-				monitor.beginTask("Uninstall feature " + getLabel(), total);

-			}

-			if (pluginsToRemove != null) {

-				for (int i = 0; i < pluginsToRemove.length; i++) {

-					if (monitor != null) {

-						monitor.subTask("Removing plug-in: " + pluginsToRemove[i]);

-						if (monitor.isCanceled()) {

-							throw CANCEL_EXCEPTION;

-						}

-					}

-

-					remove(pluginsToRemove[i]);

-

-					if (monitor != null) {

-						monitor.worked(1);

-						if (monitor.isCanceled()) {

-							throw CANCEL_EXCEPTION;

-						}

-					}

-

-				}

-			}

-

-			// remove the Feature info

-			String[] names = getStorageUnitNames(this);

-			if (names != null) {

-				if (monitor != null) {

-					monitor.subTask("Removing Feature information");

-					if (monitor.isCanceled()) {

-						throw CANCEL_EXCEPTION;

-					}

-				}

-

-				((Site) this.getSite()).removeFeatureInfo(getIdentifier());

-

-				closeFeature();

-				if (monitor != null) {

-					monitor.worked(1);

-					if (monitor.isCanceled()) {

-						throw CANCEL_EXCEPTION;

-					}

-				}

-

-			}

-

-		} catch (IOException e) {

-			String id = UpdateManagerPlugin.getPlugin().getDescriptor().getUniqueIdentifier();

-			IStatus status = new Status(IStatus.ERROR, id, IStatus.OK, "Error during Uninstall", e);

-			throw new CoreException(status);

-		}

-	}

-	

-	System.getProperty("java.io.tmpdir")(java.lang.String) /tmp

-	

-	true^false

-	true^true

-

-	

-org.eclipse.core.runtime.IPath p1= (new org.eclipse.core.runtime.Path("/path1/path2/*.txt"));

-org.eclipse.core.runtime.IPath p2= (new org.eclipse.core.runtime.Path("/path1/path2/a.txt"));

-p1.equals(p2);

-

-

-org.eclipse.update.internal.core.URLEncoder.encode(new java.net.URL("http://www.ourwebsite.com/servlet/update?jar=somefeaturejarfile"));(java.net.URL) http://www.ourwebsite.com/servlet/update?jar=somefeaturejarfile

-

diff --git a/update/org.eclipse.update.core/about.html b/update/org.eclipse.update.core/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.core/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/build.properties b/update/org.eclipse.update.core/build.properties
deleted file mode 100644
index 8ee535c..0000000
--- a/update/org.eclipse.update.core/build.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-source.updatecore.jar = src/

-bin.includes = plugin.xml,\

-               plugin.properties,\

-               *.jar,\

-               about.html,\

-               .options,\

-               os/

-src.includes = about.html,\

-               schema/

diff --git a/update/org.eclipse.update.core/plugin.properties b/update/org.eclipse.update.core/plugin.properties
deleted file mode 100644
index ee432ef..0000000
--- a/update/org.eclipse.update.core/plugin.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-pluginName= Install/Update Core

-providerName= Eclipse.org

-fragmentNameWin= Install/Update Core for Windows

-fragmentNameLinux= Install/Update Core for Linux

-

-

diff --git a/update/org.eclipse.update.core/plugin.xml b/update/org.eclipse.update.core/plugin.xml
deleted file mode 100644
index 2f55c41..0000000
--- a/update/org.eclipse.update.core/plugin.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin

-   id="org.eclipse.update.core"

-   name="%pluginName"

-   version="2.1.0"

-   provider-name="%providerName"

-   class="org.eclipse.update.internal.core.UpdateCore">

-

-   <runtime>

-      <library name="updatecore.jar">

-         <export name="*"/>

-         <packages prefixes="org.eclipse.update"/>

-      </library>

-   </runtime>

-   <requires>

-      <import plugin="org.eclipse.core.runtime"/>

-      <import plugin="org.apache.xerces"/>

-   </requires>

-

-

-   <extension-point id="featureTypes" name="Install/Update Concrete Feature Type Implementation Factory" schema="schema/featureTypes.exsd"/>

-   <extension-point id="siteTypes" name="Install/Update Concrete Site Type Implementation Factory" schema="schema/siteTypes.exsd"/>

-   <extension-point id="installHandlers" name="Install/Update Global Install Handlers" schema="schema/installHandlers.exsd"/>

-   <extension-point id="deltaHandler" name="Install/Update Delta Handler"/>

-

-   <extension

-         id="reconciler"

-         point="org.eclipse.core.runtime.applications">

-      <application>

-         <run class="org.eclipse.update.internal.core.UpdateManagerReconciler"/>

-      </application>

-   </extension>

-   <extension

-         id="packaged"

-         point="org.eclipse.update.core.featureTypes">

-      <feature-factory

-            class="org.eclipse.update.internal.core.FeaturePackagedFactory">

-      </feature-factory>

-   </extension>

-   <extension

-         id="installed"

-         point="org.eclipse.update.core.featureTypes">

-      <feature-factory

-            class="org.eclipse.update.internal.core.FeatureExecutableFactory">

-      </feature-factory>

-   </extension>

-   <extension

-         id="http"

-         point="org.eclipse.update.core.siteTypes">

-      <site-factory

-            class="org.eclipse.update.internal.core.SiteURLFactory">

-      </site-factory>

-   </extension>

-   <extension

-         id="file"

-         point="org.eclipse.update.core.siteTypes">

-      <site-factory

-            class="org.eclipse.update.internal.core.SiteFileFactory">

-      </site-factory>

-   </extension>

-   <extension

-         id="DefaultInstallHandler"

-         point="org.eclipse.update.core.installHandlers">

-      <install-handler

-            class="org.eclipse.update.internal.core.DefaultInstallHandler">

-      </install-handler>

-   </extension>

-

-</plugin>

diff --git a/update/org.eclipse.update.core/schema/featureTypes.exsd b/update/org.eclipse.update.core/schema/featureTypes.exsd
deleted file mode 100644
index f504461..0000000
--- a/update/org.eclipse.update.core/schema/featureTypes.exsd
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>

-<!-- Schema file written by PDE -->

-<schema targetNamespace="org.eclipse.update.core">

-<annotation>

-   <appInfo>

-      <meta.schema plugin="org.eclipse.update.core" id="featureTypes" name="Feature Type Factory"/>

-   </appInfo>

-   <documentation>

-      The platform update mechanism supports pluggable feature type
-implementations. A new feature type can be registered in order
-to support
-alternate packaging and verification schemes.
-&lt;p&gt;
-The &lt;code&gt;featureTypes&lt;/code&gt;
-extension point allows alternate feature implementations to be
-registered using a symbolic type identifier. Whenever the 
-type is referenced using this identifier, the supplied factory
-is used to create the correct concrete feature implementation.

-   </documentation>

-</annotation>

-

-   <element name="extension">

-      <complexType>

-         <sequence>

-            <element ref="feature-factory" minOccurs="1" maxOccurs="unbounded"/>

-         </sequence>

-         <attribute name="point" type="string" use="required">

-            <annotation>

-               <documentation>

-                  must be specified as &lt;b&gt;org.eclipse.update.core.featureTypes&lt;/b&gt;

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="id" type="string">

-            <annotation>

-               <documentation>

-                  must be specified. Identifies the new feature type

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="name" type="string">

-            <annotation>

-               <documentation>

-                  optional displayable label for the new feature type

-               </documentation>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <element name="feature-factory">

-      <complexType>

-         <attribute name="class" type="string" use="required">

-            <annotation>

-               <documentation>

-                  fully qualified name of the factory class for the identified feature type

-               </documentation>

-               <appInfo>

-                  <meta.attribute kind="java" basedOn="org.eclipse.update.configuration.IInstallDeltaHandler"/>

-               </appInfo>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="examples"/>

-      </appInfo>

-      <documentation>

-         The following is an example of new feature type registration:
-&lt;p&gt;
-&lt;pre&gt;
-   &lt;extension
-      id="custom"
-      point="org.eclipse.update.core.featureTypes"
-      name="Custom packaged feature"&gt;
-      &lt;feature-factory
-          class="com.xyz.update.CustomFeatureFactory"&gt;
-      &lt;/feature-factory&gt;
-   &lt;/extension&gt;
-&lt;/pre&gt;
-&lt;/p&gt;

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="apiInfo"/>

-      </appInfo>

-      <documentation>

-         Registered factory classes must implement 
-&lt;code&gt;&lt;b&gt;org.eclipse.update.core.IFeatureFactory&lt;/b&gt;&lt;/code&gt;

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="implementation"/>

-      </appInfo>

-      <documentation>

-         The platform supplies two standard implementations of feature
-types. One representing the default packaged feature type, and
-the other representing an installed feature type.

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="copyright"/>

-      </appInfo>

-      <documentation>

-         &lt;br&gt;
-&lt;br&gt;&lt;a href="hglegal.htm"&gt;&lt;img SRC="ngibmcpy.gif" 
-ALT="Copyright IBM Corp. and others 2000, 2002.  All Rights Reserved." 
-BORDER=0&gt;&lt;/a&gt;

-      </documentation>

-   </annotation>

-

-</schema>

diff --git a/update/org.eclipse.update.core/schema/installHandlers.exsd b/update/org.eclipse.update.core/schema/installHandlers.exsd
deleted file mode 100644
index 520b57e..0000000
--- a/update/org.eclipse.update.core/schema/installHandlers.exsd
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>

-<!-- Schema file written by PDE -->

-<schema targetNamespace="org.eclipse.update.core">

-<annotation>

-   <appInfo>

-      <meta.schema plugin="org.eclipse.update.core" id="installHandlers" name="Global Install Handlers"/>

-   </appInfo>

-   <documentation>

-      Extension point for registering global install handlers. Global
-install handlers can be referenced by features 
-(using the &lt;code&gt;&amp;lt;feature&amp;gt; &amp;lt;install-handler&amp;gt;&lt;/code&gt;
-tags) without having to include a copy of the handler code as
-part of the downloadable feature.

-   </documentation>

-</annotation>

-

-   <element name="extension">

-      <complexType>

-         <sequence>

-            <element ref="install-handler" minOccurs="1" maxOccurs="unbounded"/>

-         </sequence>

-         <attribute name="point" type="string" use="required">

-            <annotation>

-               <documentation>

-                  must be specified as &lt;b&gt;org.eclipse.update.core.installHandlers&lt;/b&gt;

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="id" type="string">

-            <annotation>

-               <documentation>

-                  must be specified. Identifies the new install handler

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="name" type="string">

-            <annotation>

-               <documentation>

-                  optional displayable label for the new install handler

-               </documentation>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <element name="install-handler">

-      <complexType>

-         <attribute name="class" type="string" use="required">

-            <annotation>

-               <documentation>

-                  fully qualified name of the handler implementation class for the identified
-install handler

-               </documentation>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="examples"/>

-      </appInfo>

-      <documentation>

-         The following is an example of new global install handler registration:
-&lt;p&gt;
-&lt;pre&gt;
-   &lt;extension
-        id="custom"
-        point="org.eclipse.update.core.installHandlers"
-        name="Custom install handler"&gt;
-     &lt;install-handler
-        class="com.xyz.update.CustomInstallHandler"&gt;
-     &lt;/install-handler&gt;
-   &lt;/extension&gt;
-&lt;/pre&gt;
-&lt;/p&gt;

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="apiInfo"/>

-      </appInfo>

-      <documentation>

-         Registered install handler classes must implement 
-&lt;code&gt;org.eclipse.update.core.IInstallHandler&lt;/code&gt; interface.
-Implementers should extend base class &lt;code&gt;org.eclipse.update.core.BaseInstallHandler&lt;/code&gt;.

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="implementation"/>

-      </appInfo>

-      <documentation>

-         The platform supplies a simple install handler that is registered as &lt;code&gt;org.eclipse.update.core.DefaultInstallHandler&lt;/code&gt;. If used, it will copy any non-plug-in data entries provided with the feature into the feature installation directory.

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="copyright"/>

-      </appInfo>

-      <documentation>

-         &lt;br&gt;
-&lt;br&gt;&lt;a href="hglegal.htm"&gt;&lt;img SRC="ngibmcpy.gif" 
-ALT="Copyright IBM Corp. and others 2000, 2002.  All Rights Reserved."
-BORDER=0&gt;&lt;/a&gt;

-      </documentation>

-   </annotation>

-

-</schema>

diff --git a/update/org.eclipse.update.core/schema/siteTypes.exsd b/update/org.eclipse.update.core/schema/siteTypes.exsd
deleted file mode 100644
index 2a73b76..0000000
--- a/update/org.eclipse.update.core/schema/siteTypes.exsd
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>

-<!-- Schema file written by PDE -->

-<schema targetNamespace="org.eclipse.update.core">

-<annotation>

-   <appInfo>

-      <meta.schema plugin="org.eclipse.update.core" id="siteTypes" name="Site Type Factory"/>

-   </appInfo>

-   <documentation>

-      The platform update mechanism supports pluggable site type
-implementations. A new site type can be registered in order
-to support alternate site layout schemes.
-&lt;p&gt;
-The &lt;code&gt;siteTypes&lt;/code&gt;
-extension point allows alternate site implementations to be
-registered using a symbolic type identifier. Whenever the 
-type is referenced using this identifier, the supplied factory
-is used to create the correct concrete site implementation.

-   </documentation>

-</annotation>

-

-   <element name="extension">

-      <complexType>

-         <sequence>

-            <element ref="site-factory" minOccurs="1" maxOccurs="unbounded"/>

-         </sequence>

-         <attribute name="point" type="string" use="required">

-            <annotation>

-               <documentation>

-                  must be specified as &lt;b&gt;org.eclipse.update.core.siteTypes&lt;/b&gt;

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="id" type="string">

-            <annotation>

-               <documentation>

-                  must be specified. Identifies the new site type

-               </documentation>

-            </annotation>

-         </attribute>

-         <attribute name="name" type="string">

-            <annotation>

-               <documentation>

-                  optional displayable label for the new site type

-               </documentation>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <element name="site-factory">

-      <complexType>

-         <attribute name="class" type="string" use="required">

-            <annotation>

-               <documentation>

-                  fully qualified name of the factory class for the identified
-site type

-               </documentation>

-            </annotation>

-         </attribute>

-      </complexType>

-   </element>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="examples"/>

-      </appInfo>

-      <documentation>

-         The following is an example of new site type registration.
-&lt;p&gt;
-&lt;pre&gt;
-   &lt;extension
-        id="custom"
-        point="org.eclipse.update.core.siteTypes"
-        name="Custom site"&gt;
-      &lt;site-factory
-          class="com.xyz.update.CustomSiteFactory"&gt;
-      &lt;/site-factory&gt;
-   &lt;/extension&gt;
-&lt;/pre&gt;
-&lt;/p&gt;

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="apiInfo"/>

-      </appInfo>

-      <documentation>

-         Registered factory classes must implement 
-&lt;code&gt;&lt;b&gt;org.eclipse.update.core.ISiteFactory&lt;/b&gt;&lt;/code&gt;

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="implementation"/>

-      </appInfo>

-      <documentation>

-         The platform supplies two standard implementations of site
-types. One representing the default update server type, and
-the other representing the local file system site.

-      </documentation>

-   </annotation>

-

-   <annotation>

-      <appInfo>

-         <meta.section type="copyright"/>

-      </appInfo>

-      <documentation>

-         &lt;br&gt;
-&lt;br&gt;&lt;a href="hglegal.htm"&gt;&lt;img SRC="ngibmcpy.gif" 
-ALT="Copyright IBM Corp. and others 2000, 2002.  All Rights Reserved." 
-BORDER=0&gt;&lt;/a&gt;

-      </documentation>

-   </annotation>

-

-</schema>

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IActivity.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IActivity.java
deleted file mode 100644
index 87f43da..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IActivity.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import java.util.Date;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Install activity.
- * Represents a record of an installation action performed
- * on a particular installation configuration.
- * <p>
- * This interface is not intended to be implemented by clients.
- * </p>
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @see org.eclipse.update.configuration.IInstallConfiguration
- * @since 2.0
- */
-public interface IActivity extends IAdaptable {
-
-	/**
-	 * Indicates feature installation action
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_FEATURE_INSTALL = 1;
-
-	/**
-	 * Indicates feature removal (uninstallation) action
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_FEATURE_REMOVE = 2;
-
-	/**
-	 * Indicates an addition of a site to a configuration
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_SITE_INSTALL = 3;
-
-	/**
-	 * Indicates removal of a site from a configuration
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_SITE_REMOVE = 4;
-
-	/**
-	 * Indicates feature unconfiguration action
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_UNCONFIGURE = 5;
-
-	/**
-	 * Indicates feature configuration action
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_CONFIGURE = 6;
-
-	/**
-	 * Indicates reverting to a prior configuration state
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_REVERT = 7;
-
-	/**
-	 * Indicates reconcilliation with changes made directly to the site
-	 * installation directory
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_RECONCILIATION = 8;
-
-	/**
-	 * Indicates adding the configuration to a preserved state
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int ACTION_ADD_PRESERVED = 9;
-	
-	/**
-	 * Indicates the action completed cussessfully
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int STATUS_OK = 0;
-
-	/**
-	 * Indicates the action did not complete successfully
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public static final int STATUS_NOK = 1;
-
-	/**
-	 * Returns the action code for this activity
-	 * 
-	 * @see #ACTION_FEATURE_INSTALL
-	 * @see #ACTION_FEATURE_REMOVE
-	 * @see #ACTION_SITE_INSTALL
-	 * @see #ACTION_SITE_REMOVE
-	 * @see #ACTION_UNCONFIGURE
-	 * @see #ACTION_CONFIGURE
-	 * @see #ACTION_REVERT
-	 * @see #ACTION_RECONCILIATION
-	 * @return action code, as defined in this interface
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int getAction();
-
-	/**
-	 * Returns the displayable label for this action
-	 * 
-	 * @return diplayable label for action
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public String getLabel();
-
-	/**
-	 * Returns the creation date of this activity
-	 * 
-	 * @return activity date
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public Date getDate();
-
-	/** 
-	 * Returns the activity completion status
-	 * 
-	 * @see #STATUS_OK
-	 * @see #STATUS_NOK
-	 * @return completion status, as defined in this interface
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int getStatus();
-
-	/**
-	 * Returns the installation configuration that was the result of 
-	 * this action
-	 * 
-	 * @return installation configuration
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration getInstallConfiguration();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSite.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSite.java
deleted file mode 100644
index e38de49..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSite.java
+++ /dev/null
@@ -1,373 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.*;
-
-/**
- * Configured Site.
- * Represents an installation site "filtered" by configuration information.
- * Configured site is the target of the feature update operations (install
- * feature, remove feature, configure feature, unconfigure feature).
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IConfiguredSite extends IAdaptable {
-
-	/**
-	 * Returns the underlying "unfiltered" site.
-	 * 
-	 * @return the underlying site 
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public ISite getSite();
-
-	/**
-	 * Indicates whether updates can be applied to the site.
-	 * 
-	 * <code>IStatus.isOk()</code> return <code>true</code> if
-	 * the site can be updated, <code>false</code> otherwise.
-	 * 
-	 * If updates cannot be aplied, the status contains the error message, and
-	 * the possible exception. 
-	 * 
-	 * @see IStatus
-	 * @return an IStatus
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IStatus verifyUpdatableStatus();
-
-	/**
-	 * Indicates whether updates can be applied to the site.
-	 * 
-	 * A configuration site is tagged a non-updatable by reading
-	 * the platform configuration for this site.
-	 * 
-	 * @return <code>true</code> if the site can be updated, 
-	 * <code>false</code> otherwise
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isUpdatable();
-
-	/**
-	 * Install the specified feature on this site.
-	 * 
-	 * @param feature feature to install
-	 * @param verificationListener verification listener, or <code>null</code>
-	 * @param monitor progress monitor, or <code>null</code>
-	 * @exception InstallAbortedException when the user cancels the install
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IFeatureReference install(IFeature feature, IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException;
-
-	/**
-	 * Install the specified feature on this site.
-	 * Only the specified optional features will be installed
-	 * 
-	 * @param feature feature to install
-	 * @param optionalFeatures optional features to install
-	 * @param verificationListener verification listener, or <code>null</code>
-	 * @param monitor progress monitor, or <code>null</code>
-	 * @exception InstallAbortedException when the user cancels the install
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IFeatureReference install(IFeature feature, IFeatureReference[] optionalFeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException;
-
-
-	/**
-	 * Remove (uninstall) the specified feature from this site
-	 * 
-	 * @param feature feature to remove
-	 * @param monitor progress monitor, or <code>null</code>
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException;
-
-	/**
-	 * Indicates if the specified feature is "broken". A feature is considered
-	 * to be broken in the context of this site, if some of the plug-ins
-	 * referenced by the feature are not installed on this site.
-	 * 
-	 * The status code is <code>IStatus.ERROR</code> if the feature is considered
-	 * broken. The Status may contain the reason why the feature is broken.
-	 * The status code is <code>IStatus.OK</code> if the feature is not considered
-	 * broken.
-	 * 
-	 * @param feature the feature
-	 * @return the status for this feature on this configured site
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IStatus getBrokenStatus(IFeature feature);
-
-	/**
-	 * Indicates if the specified feature is configured on this site.
-	 * 
-	 * @param feature the feature
-	 * @return <code>true</code> if the feature is configured,
-	 * <code>false</code> otherwise
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isConfigured(IFeature feature);
-
-	/**
-	 * Configure the specified feature on this site. The configured
-	 * feature will be included on next startup.
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void configure(IFeature feature) throws CoreException;
-
-	/**
-	 * Unconfigure the specified feature from this site. The unconfigured
-	 * feature will be omitted on the next startup.
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean unconfigure(IFeature feature) throws CoreException;
-
-	/**
-	 * Return references to features configured on this site.
-	 * 
-	 * @return an array of feature references, or an empty array.
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IFeatureReference[] getConfiguredFeatures();
-
-	/**
-	 * Return all features installed on this site (configured as well
-	 * as unconfigured). Note, that if the site requires reconciliation,
-	 * the result may not match the result of the corresponding method
-	 * on the underlying site.
-	 * 
-	 * @see ISite#getFeatureReferences()
-	 * @return an array of site feature references, or an empty array.
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IFeatureReference[] getFeatureReferences();
-
-	/**
-	 * Returns the install configuration object this site is part of.
-	 * 
-	 * @return install configuration object
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration getInstallConfiguration();
-
-	/**
-	 * Adds a change listener to the configured site.
-	 * 
-	 * @param listener the listener to add
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void addConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener);
-
-	/**
-	 * Removes a change listener from the configured site.
-	 * 
-	 * @param listener the listener to remove
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void removeConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener);
-
-	/**
-	 * Indicates if the site is an extension site.
-	 * 
-	 * @return <code>true</code> if the site is an extension site,
-	 * <code>false</code> otherwise
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isExtensionSite();
-
-	/**
-	 * Indicates if the site is a product site.
-	 * 
-	 * @return <code>true</code> if the site is a product site,
-	 * <code>false</code> otherwise
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isProductSite();
-
-	/**
-	 * Indicates if the site is a private site.
-	 * This does not check if this private site belongs to the
-	 * product that is running.
-	 * 
-	 * @return <code>true</code> if the site is a private site,
-	 * <code>false</code> otherwise
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isPrivateSite();
-
-	/**
-	 * Indicates if the site has been linked by a native
-	 * installer.
-	 * 
-	 * @return <code>true</code> if the site is a natively linked site,
-	 * <code>false</code> otherwise
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isNativelyLinked() throws CoreException;
-
-	/**
-	 * Sets if the site is enabled
-	 * 
-	 * @parem <code>true</code> if the site is enable, <code>false</code>
-	 * otherwise
-	 * @since 2.1
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void setEnabled(boolean value);
-
-	/**
-	 * Indicates if the site is enabled. 
-	 * If a site is not enable, all teh features are considered disabled.
-	 * 
-	 * @return <code>true</code> if the site is enable, <code>false</code>
-	 * otherwise
-	 * @since 2.1
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isEnabled();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSiteChangedListener.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSiteChangedListener.java
deleted file mode 100644
index e1a6c35..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IConfiguredSiteChangedListener.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import org.eclipse.update.core.IFeature;
-
-/**
- * Configuration change listener. * 
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IConfiguredSiteChangedListener {
-	
-	/**
-	 * Indicates the specified feature was installed.
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void featureInstalled(IFeature feature);
-	
-	/**
-	 * Indicates the specified feature was removed (uninstalled)
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void featureRemoved(IFeature feature);
-	
-	/**
-	 * Indicates the specified feature was configured.
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void featureConfigured(IFeature feature);
-	
-	/**
-	 * Indicates the specified feature was unconfigured.
-	 * 
-	 * @param feature the feature
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void featureUnconfigured(IFeature feature);
-}
-
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfiguration.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfiguration.java
deleted file mode 100644
index 3572db5..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfiguration.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import java.io.File;
-import java.util.Date;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Installation configuration.
- * Represents a specific configuration of a number of sites as a point
- * in time. Maintains a record of the specific activities that resulted
- * in this configuration. Current installation configuration is
- * the configuration the platform was started with.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IInstallConfiguration extends IAdaptable {
-
-	/**
-	 * Indicates if this is the current configuration
-	 * 
-	 * @return <code>true</code> if this is the current configuration,
-	 * <code>false</code> otherwise
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public boolean isCurrent();
-
-	/**
-	 * Return the sites that are part of this configuration.
-	 * 
-	 * @return an array of configured sites, or an empty array.
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IConfiguredSite[] getConfiguredSites();
-
-	/**
-	 * Create a new installation site, based on a local file 
-	 * system directory. Note, the site is not added to the
-	 * configuration as a result of this call.
-	 * 
-	 * @param directory file directory
-	 * @return new site
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IConfiguredSite createConfiguredSite(File directory) throws CoreException;
-
-	/**
-	 * Create a new linked site, based on a local file 
-	 * system directory. Note, the site is not added to the
-	 * configuration as a result of this call.
-	 * The linked site is only created if the directory is an
-	 * already existing extension site and if it is not already
-	 * natively linked to teh local site.
-	 * 
-	 * @param directory file directory
-	 * @return new linked site
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IConfiguredSite createLinkedConfiguredSite(File directory) throws CoreException;
-
-	/**
-	 * Adds the specified site to this configuration.
-	 * 
-	 * @param site new site
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void addConfiguredSite(IConfiguredSite site);
-
-	/**
-	 * Removes the specified site from this configuration.
-	 * 
-	 * @param site site to remove
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void removeConfiguredSite(IConfiguredSite site);
-
-	/**
-	 * Adds a configuration change listener.
-	 * 
-	 * @param listener the listener
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void addInstallConfigurationChangedListener(IInstallConfigurationChangedListener listener);
-
-	/**
-	 * Removes a configuration change listener.
-	 * 
-	 * @param listener the listener
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void removeInstallConfigurationChangedListener(IInstallConfigurationChangedListener listener);
-
-	/**
-	 * Return the list of activities that resulted in this configuration.
-	 * There is always at least one activity
-	 * 
-	 * @return an array of activities
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IActivity[] getActivities();
-
-	/**
-	 * Retrun the date the configuration was created.
-	 * 
-	 * @return create date
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public Date getCreationDate();
-
-	/**
-	 * Return the configuration label.
-	 * 
-	 * @return the configuration label. If the configuration label was not
-	 * explicitly set, a default label is generated based on the creation
-	 * date
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public String getLabel();
-
-	/**
-	 * Sets the configuration label.
-	 * 
-	 * @param label the label
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void setLabel(String label);
-
-	/**
-	 * Returns an integer that represents a time stamp created at the beginning of a new configuration time line.
-	 * Time line is started when configuration state is created by a full file system reconciliation. All configurations
-	 * subsequently created will have the same time line until the next full reconciliation. Certain operations
- 	 * (e.g. revert) make sense only between objects that belong to the same time line.
- 	 * 
-	 * @since 2.0.2
-	 * @return the time stamp of the full system reconciliation
-	 * 
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public long getTimeline();
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfigurationChangedListener.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfigurationChangedListener.java
deleted file mode 100644
index 070a874..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallConfigurationChangedListener.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-/**
- * Configuration change listener.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IInstallConfigurationChangedListener {
-	
-	/**
-	 * Indicates the specified site was added to the configuration
-	 * 
-	 * @param site the site
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	void installSiteAdded(IConfiguredSite site);
-	
-	/**
-	 * Indicates the specified site was removed from the configuration
-	 * 
-	 * @param site the site
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	void installSiteRemoved(IConfiguredSite site);
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallDeltaHandler.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallDeltaHandler.java
deleted file mode 100644
index 309a3a6..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IInstallDeltaHandler.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-/**
- * Install Delta Handler.
- * Presents the changes the reconciler found to the user
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IInstallDeltaHandler{
-
-	/**
-	 * Sets the list of session delta to present to the user
-	 * 
-	 * @param deltas an Array of <code>ISessionDelta</code>
-	 * @see org.eclipse.update.configuration.ISesssionDelta
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void init(ISessionDelta[] deltas);
-
-	/**
-	 * Prompt the user to configure or unconfigure
-	 * new features found during reconciliation
-	 * 
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void open();
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSite.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSite.java
deleted file mode 100644
index b6a55df..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSite.java
+++ /dev/null
@@ -1,268 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.IFeature;
-
-/**
- * Local Site.
- * Represents the local installation. It consists of the current
- * configuration and the configuration history. A local site
- * manages the number of configuration histories kept. It also allows
- * specific configuration histories to be saved.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p> 
- * @since 2.0
- */
-public interface ILocalSite extends IAdaptable {
-
-	/**
-	 * Return the current configuration.
-	 * 
-	 * @return current configuration
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	IInstallConfiguration getCurrentConfiguration();
-
-	/**
-	 * Return configuration history.
-	 * 
-	 * @return an array of configurations, or an empty array.
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration[] getConfigurationHistory();
-
-	/**
-	 * Reverts the local site to use the specified configuration.
-	 * The result of this operation is a new configuration that
-	 * contains the same configured features as the specified configuration.
-	 * The new configuration becomes the current configuration.
-	 * 
-	 * @param configuration configuration state to revert to
-	 * @param monitor progress monitor
-	 * @param handler problem handler
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void revertTo(
-		IInstallConfiguration configuration,
-		IProgressMonitor monitor,
-		IProblemHandler handler)
-		throws CoreException;
-
-	/**
-	 * Creates a new configuration containing the same state as the 
-	 * specified configuration. The new configuration is not added to
-	 * this lical site.
-	 * 
-	 * @return cloned configuration
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration cloneCurrentConfiguration() throws CoreException;
-
-	/**
-	 * Adds the specified configuration to this local site.
-	 * The new configuration becomes the current one.
-	 * 
-	 * @param config the configuration
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void addConfiguration(IInstallConfiguration config);
-
-	/**
-	 * Saves the local site state
-	 * 
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void save() throws CoreException;
-
-	/**
-	 * Indicates how many configuration histories should be maintained.
-	 * Histories beyond the specified count are automatically deleted.
-	 * 
-	 * @return number of past configurations to keep as history
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int getMaximumHistoryCount();
-
-	/**
-	 * Sets the number of past configurations to keep in history
-	 * 
-	 * @param history number of configuration to keep
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void setMaximumHistoryCount(int history);
-
-	/**
-	 * Adds a site change listener
-	 * 
-	 * @param listener the listener
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void addLocalSiteChangedListener(ILocalSiteChangedListener listener);
-
-	/**
-	 * Removes a site listener
-	 * 
-	 * @param listener the listener
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void removeLocalSiteChangedListener(ILocalSiteChangedListener listener);
-
-	/**
-	 * Save the specified configuration. Saved configurations are 
-	 * not deleted based on the history count. They must be explicitly
-	 * removed.
-	 * 
-	 * @param configuration the configuration to save
-	 * @return the preserved configuration or <code>null</code> if the configuration to save is <code>null</code>
-	 * @exception CoreException
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration addToPreservedConfigurations(IInstallConfiguration configuration)
-		throws CoreException;
-
-	/**
-	 * Removes the specified configuration from the list of previously
-	 * saved configurations.
-	 * 
-	 * @param configuration the configuration to remove
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void removeFromPreservedConfigurations(IInstallConfiguration configuration);
-
-	/**
-	 * Return the list of saved configurations
-	 * 
-	 * @return an array of configurations, or an empty array.
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IInstallConfiguration[] getPreservedConfigurations();
-	
-	/**
-	 * Indicates if the 'state' of the specified feature and its children features.
-	 * 
-	 * A feature is considered to be 'unhappy' in the context of this site,
-	 * if some of the plug-ins referenced by the feature, or any of its children,
-	 *  are not installed on this site.
-	 * 
-	 * A feature is considered to be 'happy' in the context of a local site
-	 * if all the plug-ins referenced by the feature, or any of its children,
-	 * are installed on the site and no other version of any of the plug-ins
-	 * are installed on any other site of the local site.
-	 * 
-	 * A feature is considered to be 'ambiguous' in the context of a local site
-	 * if all the plug-ins referenced by the feature, or any of its children,
-	 * are installed on the site and other version of any of the plug-ins
-	 * are installed on any other site of the local site.
-	 * 
-	 * @param feature the feature
-	 * @see IFeature#STATUS_HAPPY
-	 * @see IFeature#STATUS_UNHAPPY
-	 * @see IFeature#STATUS_AMBIGUOUS
-	 * @return the state of the feature
-	 * @exception CoreException
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IStatus getFeatureStatus(IFeature feature) throws CoreException ;	
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSiteChangedListener.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSiteChangedListener.java
deleted file mode 100644
index 9e1162a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSiteChangedListener.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-/**
- * Local site change listener. 
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface ILocalSiteChangedListener {
-	
-	/**
-	 * Indicates the current configuration has changed.
-	 * 
-	 * @param configuration the current cunfiguration
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void currentInstallConfigurationChanged(IInstallConfiguration configuration);
-	
-	/**
-	 * Indicates the specified configuration was removed.
-	 * 
-	 * @param configuration the configuration
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void installConfigurationRemoved(IInstallConfiguration configuration);
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSystemInfoListener.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSystemInfoListener.java
deleted file mode 100644
index 25ab62c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ILocalSystemInfoListener.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.configuration;

- 

-

-

-/**

- * Local system change listener interface.

- * <p>

- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to

- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

- * (repeatedly) as the API evolves.

- * </p>

- * @see LocalSystemInfo#addInfoListener(ILocalSystemInfoListener)

- * @see LocalSystemInfo#removeInfoListener(ILocalSystemInfoListener)

- * @see LocalSystemInfo#fireSystemInfoChanged(IVolume,int)

- * @since 2.0

- */

-public interface ILocalSystemInfoListener {

-	

-	/**

-	 * Volume change notification.

-	 * Called each time there are relevant volume changes

-	 * detected. This specifically includes changes to the

-	 * file system structure as a result of removable drive/ media

-	 * operations (eg. CD insertion), and changes to volume 

-	 * mount structure.

-	 * @param volume volume of the changed file

-	 * system structure. Any current paths beyond

-	 * the specified 'root' file of the volume are assumed to be invalidated.

-	 * @param changeType type of the change that occured.

-	 * @see LocalSystemInfo#VOLUME_ADDED

-	 * @see LocalSystemInfo#VOLUME_REMOVED

-	 * @see LocalSystemInfo#VOLUME_CHANGED

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public void systemInfoChanged(IVolume volume, int changeType);

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IProblemHandler.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IProblemHandler.java
deleted file mode 100644
index 361e9e8..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IProblemHandler.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
- 
-/**
- * Generic problem handler. Used to report status from specific
- * install operations. The methods implemented by this interface
- * are callbacks from the update support to the caller of the update
- * methods.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface IProblemHandler {
-
-	/**
-	 * Report problem.
-	 * 
-	 * @param problemText problem text
-	 * @return <code>true</code> if the operation should continue,
-	 * <code>false</code> if the operation should be cancelled
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	boolean reportProblem(String problemText);
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ISessionDelta.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ISessionDelta.java
deleted file mode 100644
index cf2db8f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/ISessionDelta.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import java.util.Date;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.update.core.IFeatureReference;
-
-/**
- * Installation Change.
- * Represents the changes the reconciler found.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @since 2.0
- */
-public interface ISessionDelta extends IAdaptable {
-
-	/**
-	 * Indicates a processing type to enable the features
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int ENABLE = 1;
-
-	/**
-	 * Indicates a processing type to disable the features
-	 * 
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
- 	public int DISABLE = 2;
-
-	/**
-	 * Returns the list of Features found during reconciliation
-	 * 
-	 * @return an array of feature references, or an empty array
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public IFeatureReference[] getFeatureReferences();
-
-	/**
-	 * Returns the date the reconciliation occured
-	 * 
-	 * @return the date of the reconciliation
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public Date getDate();
-
-	/**
-	 * Returns the type of the processing type
-	 * that will affect all the associated features. 
-	 * 
-	 * @return the processing type
-	 * @see ISessionDelta#ENABLE
-	 * @see ISessionDelta#DISABLE
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int getType();
-
-	/**
-	 * Process all the feature references of the 
-	 * Session Delta. 
-	 * Removes the Session Delta from the file system after processing it.
-	 * 
-	 * @param progressMonitor the progress monitor
-	 * @throws CoreException if an error occurs. 
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void process(IProgressMonitor progressMonitor) throws CoreException;
-
-	/**
-	 * Process the selected feature references of the Session Delta.
-	 * Removes the Session Delta from the file system after processing it.
-	 *
-	 * @param selected list of selected feature references to be processed
-	 * @param progressMonitor the progress monitor
-	 * @throws CoreException if an error occurs.
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void process(IFeatureReference [] selected, IProgressMonitor monitor) throws CoreException;
-	
-	/**
-	 * Removes the Session Delta from the file system without processing it.
-	 * 
-	 * @since 2.0 
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public void delete();	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IVolume.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IVolume.java
deleted file mode 100644
index 7845aa6..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/IVolume.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.configuration;
-
-import java.io.File;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Local Volume Info.
- * Represents local file system information for a specific volume.
- * <p>
- * This interface is not intended to be implemented by clients.
- * </p>
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
- * (repeatedly) as the API evolves.
- * </p>
- * @see org.eclipse.update.configuration.LocalSystemInfo
- * @since 2.0
- */
-public interface IVolume extends IAdaptable {
-
-	/**
-	 * Returns the available free space on this volume.
-	 * Returns the amount of free space available to this
-	 * user on the volume. The
-	 * method takes into account any space quotas or other
-	 * native mechanisms that may restrict space usage
-	 * on a given volume.
-	 * @return the amount of free space available (in units
-	 * of Kbyte), or an indication the size is not known 
-	 * @see LocalSystemInfo#SIZE_UNKNOWN
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public long getFreeSpace();
-	
-	/**
-	 * returns volume label.
-	 * Returns the label of the volume.
-	 * @return volume label (as string), or <code>null</code> if
-	 * the label cannot be determined.
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public String getLabel();
-	
-	/**
-	 * Returns volume type.
-	 * Returns the type of the volume.
-	 * @return volume type
-	 * @see LocalSystemInfo#VOLUME_UNKNOWN
-	 * @see LocalSystemInfo#VOLUME_INVALID_PATH
-	 * @see LocalSystemInfo#VOLUME_REMOVABLE
-	 * @see LocalSystemInfo#VOLUME_FIXED
-	 * @see LocalSystemInfo#VOLUME_REMOTE
-	 * @see LocalSystemInfo#VOLUME_CDROM
-	 * @see LocalSystemInfo#VOLUME_FLOPPY_3
-	 * @see LocalSystemInfo#VOLUME_FLOPPY_5
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public int getType();
-	
-	/**
-	 * Returns the volume path.
-	 * Returns the path that represents the mount point of the volume.
-	 * @return mount point file
-	 * @since 2.0
-	 * <p>
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 * </p>
-	 */
-	public File getFile();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/LocalSystemInfo.java b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/LocalSystemInfo.java
deleted file mode 100644
index 5e46792..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/LocalSystemInfo.java
+++ /dev/null
@@ -1,442 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.configuration;

- 

-import java.io.File;

-import java.util.ArrayList;

-

-import org.eclipse.update.internal.core.UpdateCore;

-import org.eclipse.update.internal.core.Volume;

- 

-/**

- * Utility class providing local file system information.

- * The class attempts to load a native library implementation

- * of its methods. If successful, the method calls are delegated

- * to the native implementation. Otherwise a default non-native

- * implementation is used.  * 

- * <p>

- * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to

- * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

- * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

- * (repeatedly) as the API evolves.

- * </p>

- * @see ILocalSystemInfoListener

- * @since 2.0

- */

-public class LocalSystemInfo {

-	

-	/**

-	 * Indicates the amount of available free space is not known

-	 * 

-	 * @see LocalSystemInfo#getFreeSpace(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final long SIZE_UNKNOWN = -1;

-	

-	/**

-	 * Indicates the volume type is not known

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_UNKNOWN = -1;

-	

-	/**

-	 * Indicates the volume could not be determined from path

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_INVALID_PATH = -2;

-	

-	/**

-	 * Indicates the volume is removable (other than floppy disk)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_REMOVABLE = 1;

-	

-	/**

-	 * Indicates the volume is fixed (hard drive)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_FIXED = 2;

-	

-	/**

-	 * Indicates a remote (network) volume

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_REMOTE = 3;

-	

-	/**

-	 * Indicates a cdrom volume (compact disc)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_CDROM = 4;	

-	

-	/**

-	 * Indicates a ramdisk volume (memory)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_RAMDISK = 5;	

-

-	/**

-	 * Indicates the volume is removable (floppy disk 5 1/4)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_FLOPPY_5 = 6;	

-	

-	/**

-	 * Indicates the volume is removable (floppy disk 3 1/2)

-	 * 

-	 * @see LocalSystemInfo#getType(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_FLOPPY_3 = 7;

-	

-	/**

-	 * Indicates a new volume has been added

-	 * 

-	 * @see LocalSystemInfo#addInfoListener(File)

-	 * @see LocalSystemInfo#removeInfoListener(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_ADDED = 0;

-			

-	/**

-	 * Indicates a volume has been removed

-	 * 

-	 * @see LocalSystemInfo#addInfoListener(File)

-	 * @see LocalSystemInfo#removeInfoListener(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_REMOVED = 1;

-

-	/**

-	 * Indicates a volume has been changed

-	 * 

-	 * @see LocalSystemInfo#addInfoListener(File)

-	 * @see LocalSystemInfo#removeInfoListener(File)

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This field is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static final int VOLUME_CHANGED = 2;

-

-	

-	private static ArrayList listeners = new ArrayList();	

-	private static boolean hasNatives = false;	

-	static {

-		try {

-			System.loadLibrary("update"); //$NON-NLS-1$

-			hasNatives = true;

-		} catch (UnsatisfiedLinkError e) {

-			UpdateCore.warn("Unable to load native library 'update'."); //$NON-NLS-1$

-			hasNatives = false;

-		}

-	}

-	

-	/**

-	 * Determines available free space on a volume.

-	 * Returns the amount of free space available to this

-	 * user on the volume containing the specified path. The

-	 * method takes into account any space quotas or other

-	 * native mechanisms that may restrict space usage

-	 * on a given volume.

-	 * @param path file path. May contain path elements beyond

-	 * the volume "root"

-	 * @return the amount of free space available (in units

-	 * of Kbyte), or an indication the size is not known 

-	 * @see LocalSystemInfo#SIZE_UNKNOWN

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static long getFreeSpace(File path) {

-		if (hasNatives) {

-			try {

-				long bytes = nativeGetFreeSpace(path);

-				return (bytes!=0)?bytes/1024:0;

-			} catch (UnsatisfiedLinkError e) {

-			}

-		}

-		return SIZE_UNKNOWN;

-	}

-

-

-	/**

-	 * Lists the file system volume.

-	 * @return array of volume representing mount

-	 * points, or <code>null</code> if none found

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static IVolume[] getVolumes() {

-		String[] mountPoints = listMountPoints();

-		Volume[] vol = new Volume[0];

-		if (mountPoints!=null){

-			vol = new Volume[mountPoints.length];

-			for (int i = 0; i < mountPoints.length; i++) {

-				File root = new File(mountPoints[i]);

-				String label = getLabel(root);

-				int type = getType(root);

-				long size = getFreeSpace(root);

-				vol[i] = new Volume(root,label,type,size);

-				vol[i].markReadOnly();

-			}

-		} else {

-			UpdateCore.warn("Unable to find mount points");

-			// fallback

-			File [] roots = File.listRoots();

-			if (roots.length == 1) {

-				// just one root - skip it

-				File root = roots[0];

-				roots = root.listFiles();

-			}

-			vol = new Volume[roots.length];			

-			for (int i = 0; i < roots.length; i++) {

-				vol[i] = new Volume(roots[i],null,LocalSystemInfo.VOLUME_UNKNOWN,LocalSystemInfo.SIZE_UNKNOWN);

-				vol[i].markReadOnly();

-			}			

-		}

-		return vol;

-	}

-

-	

-	/**

-	 * Add local system change listener.

-	 * Allows a listener to be added for monitoring changes

-	 * in the local system information. The listener is notified

-	 * each time there are relevant volume changes

-	 * detected. This specifically includes changes to the

-	 * list of volumes as a result of removable drive/ media

-	 * operations (eg. CD insertion, removal), and changes to volume 

-	 * mount structure.

-	 * @param listener change listener

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static void addInfoListener(ILocalSystemInfoListener listener) {

-		if (!listeners.contains(listener))

-			listeners.add(listener);

-	}

-	

-	/**

-	 * Remove local system change listener

-	 * @param listener change listener

-	 * @since 2.0

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static void removeInfoListener(ILocalSystemInfoListener listener) {

-		listeners.remove(listener);

-	}

-		

-	/**

-	 * Notify listeners of change.

-	 * 

-	 * @param volume the volume representing the

-	 * change file system structure. Any current paths beyond

-	 * the specified "root" file of the volume are assumed to be invalidated.

-	 * @param changeType type of the change that occured.

-	 * @see LocalSystemInfo#VOLUME_ADDED

-	 * @see LocalSystemInfo#VOLUME_REMOVED

-	 * @see LocalSystemInfo#VOLUME_CHANGED

-	 * <p>

-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to

-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-	 * (repeatedly) as the API evolves.

-	 * </p>

-	 */

-	public static void fireSystemInfoChanged(IVolume volume, int changeType) {

-		for (int i=0; i< listeners.size(); i++) {

-			((ILocalSystemInfoListener)listeners.get(i)).systemInfoChanged(volume,changeType);

-		}

-	}

-		

-	/*

-	 * Determines volume label.

-	 * Returns the label of the volume containing the specified

-	 * path.

-	 * @param path file path. May contain path elements beyond

-	 * the volume "root"

-	 * @return volume label (as string), or <code>null</code> if

-	 * the label cannot be determined.

-	 * @since 2.0

-	 */

-	private static String getLabel(File path) {

-		if (hasNatives) {

-			try {

-				return nativeGetLabel(path);

-			} catch (UnsatisfiedLinkError e) {

-			}

-		}

-		return null;

-	}

-	

-	/*

-	 * Determines volume type.

-	 * Returns the type of the volume containing the specified

-	 * path.

-	 * @param path file path. May contain path elements beyond

-	 * the volume "root"

-	 * @return volume type

-	 * @see LocalSystemInfo#VOLUME_UNKNOWN

-	 * @see LocalSystemInfo#VOLUME_INVALID_PATH

-	 * @see LocalSystemInfo#VOLUME_REMOVABLE

-	 * @see LocalSystemInfo#VOLUME_FIXED

-	 * @see LocalSystemInfo#VOLUME_REMOTE

-	 * @see LocalSystemInfo#VOLUME_CDROM

-	 * @see LocalSystemInfo#VOLUME_FLOPPY_3

-	 * @see LocalSystemInfo#VOLUME_FLOPPY_5

-	 * @since 2.0

-	 */

-	private static int getType(File path) {

-		if (hasNatives) {

-			try {

-				return nativeGetType(path);

-			} catch (UnsatisfiedLinkError e) {

-			}

-		}

-		return VOLUME_UNKNOWN;

-	}

-	

-	/*

-	 * Lists the file system mount points.

-	 * @return array of absolute file paths representing mount

-	 * points, or <code>null</code> if none found

-	 * @since 2.0

-	 */

-	private static String[] listMountPoints() {

-		if (hasNatives) {

-			try {

-				String[] mountPoints = nativeListMountPoints();

-				return mountPoints;

-			} catch (UnsatisfiedLinkError e) {

-			}

-		}

-		return null;

-	}

-		

-	/*

-	 * Native implementations.

-	 */

-	private static native long nativeGetFreeSpace(File path);

-	private static native String nativeGetLabel(File path);

-	private static native int nativeGetType(File path);

-	private static native String[] nativeListMountPoints();

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/package.html b/update/org.eclipse.update.core/src/org/eclipse/update/configuration/package.html
deleted file mode 100644
index e76be03..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/configuration/package.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

-<html>

-<head>

-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

-   <meta name="Author" content="IBM">

-   <meta name="GENERATOR" content="Mozilla/4.72 [en] (Windows NT 5.0; U) [Netscape]">

-   <title>Package-level Javadoc</title>

-</head>

-<body>

-Provides support for accessing local installation

-information.

-<h2>

-Package Specification</h2>

-This package contains interfaces for accessing and manipulating the local

-system installation and configuration information. In general, users extending

-the update support&nbsp; by writing additional feature and site implementation

-do not need to make use of interfaces defined in this package.

-<p>

-<b>Note:</b> This package is part of an interim API that is still under development and expected to

-change significantly before reaching stability. It is being made available at this early stage to solicit feedback

-from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken

-(repeatedly) as the API evolves.

-</p>

-</body>

-</html>

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ArchiveReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ArchiveReference.java
deleted file mode 100644
index 9941659..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ArchiveReference.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.update.core.model.ArchiveReferenceModel;

-

-/**

- * Convenience implementation of a site archive.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IArchiveReference

- * @see org.eclipse.update.core.model.ArchiveReferenceModel

- * @since 2.0

- */

-public class ArchiveReference

-	extends ArchiveReferenceModel

-	implements IArchiveReference {

-

-	/**

-	 * Constructor for ArchiveReference

-	 * @since 2.0

-	 */

-	public ArchiveReference() {

-		super();

-	}

-

-	/**

-	 * @see Object#toString()

-	 * @since 2.0

-	 */

-	public String toString() {

-		String result = "IArchiveReference: "; //$NON-NLS-1$

-		result =

-			result

-				+ ((getPath() == null)

-					? getURL().toExternalForm()

-					: getPath() + " : " + getURL().toExternalForm());

-		//$NON-NLS-1$

-		return result;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseFeatureFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseFeatureFactory.java
deleted file mode 100644
index 30a2b44..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseFeatureFactory.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.model.*;

-

-/**

- * Base implementation of a feature factory.

- * The factory is responsible for constructing the correct

- * concrete implementation of the model objects for each particular

- * feature type. This class creates model objects that correspond

- * to the concrete implementation classes provided in this package.

- * The actual feature creation method is subclass responsibility.

- * <p>

- * This class must be subclassed by clients.

- * </p>

- * @see org.eclipse.update.core.IFeatureFactory

- * @see org.eclipse.update.core.model.FeatureModelFactory

- * @since 2.0

- */

-public abstract class BaseFeatureFactory extends FeatureModelFactory implements IFeatureFactory {

-

-	/**

-	 * 

-	 * @deprecated implement createFeature(URL, ISite, IProgressMonitor) instead

-	 * @see IFeatureFactory#createFeature(URL,ISite)

-	 * @since 2.0

-	 */

-	public IFeature createFeature(URL url, ISite site) throws CoreException {

-		return createFeature(url, site, null);

-	}

-

-	/**

-	 * Create feature. Implementation of this method must be provided by 

-	 * subclass

-	 * 

-	 * @see IFeatureFactory#createFeature(URL,ISite,IProgressMonitor)

-	 * @since 2.0

-	 */

-	public abstract IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException;

-

-	/**

-	 * Create a concrete implementation of feature model.

-	 * 

-	 * @see Feature

-	 * @return feature model

-	 * @since 2.0

-	 */

-	public FeatureModel createFeatureModel() {

-		return new Feature();

-	}

-

-	/**

-	 * Create a concrete implementation of included feature reference model.

-	 * 

-	 * @see IncludedFeatureReference

-	 * @return feature model

-	 * @since 2.1

-	 */

-	public IncludedFeatureReferenceModel createIncludedFeatureReferenceModel() {

-		return new IncludedFeatureReference();

-	}

-

-	/**

-	 * Create a concrete implementation of install handler model.

-	 * 

-	 * @see InstallHandlerEntry

-	 * @return install handler entry model

-	 * @since 2.0

-	 */

-	public InstallHandlerEntryModel createInstallHandlerEntryModel() {

-		return new InstallHandlerEntry();

-	}

-

-	/**

-	 * Create a concrete implementation of import dependency model.

-	 * 

-	 * @see Import

-	 * @return import dependency model

-	 * @since 2.0

-	 */

-	public ImportModel createImportModel() {

-		return new Import();

-	}

-

-	/**

-	 * Create a concrete implementation of plug-in entry model.

-	 * 

-	 * @see PluginEntry

-	 * @return plug-in entry model

-	 * @since 2.0

-	 */

-	public PluginEntryModel createPluginEntryModel() {

-		return new PluginEntry();

-	}

-

-	/**

-	 * Create a concrete implementation of non-plug-in entry model.

-	 * 

-	 * @see NonPluginEntry

-	 * @return non-plug-in entry model

-	 * @since 2.0

-	 */

-	public NonPluginEntryModel createNonPluginEntryModel() {

-		return new NonPluginEntry();

-	}

-

-	/**

-	 * Create a concrete implementation of annotated URL model.

-	 * 

-	 * @see URLEntry

-	 * @return annotated URL model

-	 * @since 2.0

-	 */

-	public URLEntryModel createURLEntryModel() {

-		return new URLEntry();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseInstallHandler.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseInstallHandler.java
deleted file mode 100644
index de33a53..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseInstallHandler.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.CoreException;
-
-/**
- * Base implementation of an install handler.
- * This is a convenience implementation of an install handler with
- * null implementation of its methods. It allows subclasses to selectively
- * implement only the methods required for their installation tasks.
- * <p>
- * This class should be subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.IInstallHandler
- * @since 2.0
- */
-
-public class BaseInstallHandler implements IInstallHandler {
-
-	/**
-	 * Update action type
-	 * 
-	 * @see IInstallHandler#HANDLER_ACTION_INSTALL
-	 * @see IInstallHandler#HANDLER_ACTION_CONFIGURE
-	 * @see IInstallHandler#HANDLER_ACTION_UNCONFIGURE
-	 * @see IInstallHandler#HANDLER_ACTION_UNINSTALL
-	 * @since 2.0
-	 */
-	protected int type;
-
-	/**
-	 * The target of the action
-	 * @since 2.0
-	 */
-	protected IFeature feature;
-
-	/**
-	 * Model entry that defines this handler
-	 * 
-	 * @since 2.0
-	 */
-	protected IInstallHandlerEntry entry;
-
-	/** 
-	 * Optional progress monitor, can be <code>null</code>
-	 * 
-	 * @since 2.0
-	 */
-	protected InstallMonitor monitor;
-
-	/**
-	 * Plug-in entries downloaded
-	 * 
-	 * @see IInstallHandler#HANDLER_ACTION_INSTALL
-	 * @since 2.0
-	 */
-	protected IPluginEntry[] pluginEntries;
-
-	/**
-	 * Non-plug-in entries downloaded
-	 * 
-	 * @see IInstallHandler#HANDLER_ACTION_INSTALL
-	 * @since 2.0
-	 */
-	protected INonPluginEntry[] nonPluginEntries;
-
-	/**
-	 * Indicates if handler has been initialized
-	 * 
-	 * @since 2.0
-	 */
-	protected boolean initialized = false;
-
-	/**
-	 * Initialize the install handler.
-	 * 
-	 * @see IInstallHandler#initialize(int, IFeature, IInstallHandlerEntry, InstallMonitor)
-	 * @since 2.0
-	 */
-	public void initialize(
-		int type,
-		IFeature feature,
-		IInstallHandlerEntry entry,
-		InstallMonitor monitor)
-		throws CoreException {
-
-		if (this.initialized)
-			return;
-		else {
-			if (feature == null)
-				throw new IllegalArgumentException();
-			this.type = type;
-			this.feature = feature;
-			this.entry = entry;
-			this.monitor = monitor;
-			this.initialized = true;
-		}
-	}
-
-	/**
-	 * Called at the start of the install action.
-	 * 
-	 * @see IInstallHandler#installInitiated
-	 * @since 2.0
-	 */
-	public void installInitiated() throws CoreException {
-	}
-
-	/**
-	 * Called after files corresponding to plug-in entries have been downloaded,
-	 * but before they are actully unpacked and installed.
-	 * 
-	 * @see IInstallHandler#pluginsDownloaded(IPluginEntry[])
-	 * @since 2.0
-	 */
-	public void pluginsDownloaded(IPluginEntry[] plugins) throws CoreException {
-
-		this.pluginEntries = plugins;
-	}
-
-	/**
-	 * Called after files corresponding to non-plug-in entries have been 
-	 * downloaded.
-	 * 
-	 * @see IInstallHandler#nonPluginDataDownloaded(INonPluginEntry[], IVerificationListener)
-	 * @since 2.0
-	 */
-	public void nonPluginDataDownloaded(
-		INonPluginEntry[] nonPluginData,
-		IVerificationListener listener)
-		throws CoreException {
-
-		this.nonPluginEntries = nonPluginData;
-	}
-
-	/**
-	 * Called after the feature files and any downloaded plug-ins have
-	 * been installed. 
-	 * 
-	 * @see IInstallHandler#pluginsInstalled(IFeatureContentConsumer)
-	 * @since 2.0
-	 */
-	public void completeInstall(IFeatureContentConsumer consumer)
-		throws CoreException {
-	}
-
-	/**
-	 * Called at the end of the install action.
-	 * 
-	 * @see IInstallHandler#installCompleted(boolean)
-	 * @since 2.0
-	 */
-	public void installCompleted(boolean success) throws CoreException {
-	}
-
-	/**
-	 * Called at the start of the configure action.
-	 * 
-	 * @see IInstallHandler#configureInitiated()
-	 * @since 2.0
-	 */
-	public void configureInitiated() throws CoreException {
-	}
-
-	/**
-	 * Called after the feature has been configured.
-	 * 
-	 * @see IInstallHandler#completeConfigure()
-	 * @since 2.0
-	 */
-	public void completeConfigure() throws CoreException {
-	}
-
-	/**
-	 * Called at the end of the configure action.
-	 * 
-	 * @see IInstallHandler#configureCompleted(boolean)
-	 * @since 2.0
-	 */
-	public void configureCompleted(boolean success) throws CoreException {
-	}
-
-	/**
-	 * Called at the start of the unconfigure action.
-	 * 
-	 * @see IInstallHandler#unconfigureInitiated()
-	 * @since 2.0
-	 */
-	public void unconfigureInitiated() throws CoreException {
-	}
-
-	/**
-	 * Called after the feature has been unconfigured.
-	 * 
-	 * @see IInstallHandler#completeUnconfigure()
-	 * @since 2.0
-	 */
-	public void completeUnconfigure() throws CoreException {
-	}
-
-	/**
-	 * Called at the end of the unconfigure action.
-	 * 
-	 * @see IInstallHandler#unconfigureCompleted(boolean)
-	 * @since 2.0
-	 */
-	public void unconfigureCompleted(boolean success) throws CoreException {
-	}
-
-	/**
-	 * Called at the start of the uninstall action.
-	 * 
-	 * @see IInstallHandler#uninstallInitiated()
-	 * @since 2.0
-	 */
-	public void uninstallInitiated() throws CoreException {
-	}
-
-	/**
-	 * Called after the feature has been uninstalled.
-	 * 
-	 * @see IInstallHandler#completeUninstall()
-	 * @since 2.0
-	 */
-	public void completeUninstall() throws CoreException {
-	}
-
-	/**
-	 * Called at the end of the uninstall action.
-	 * 
-	 * @see IInstallHandler#uninstallCompleted(boolean)
-	 * @since 2.0
-	 */
-	public void uninstallCompleted(boolean success) throws CoreException {
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseSiteFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseSiteFactory.java
deleted file mode 100644
index 92b3b47..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/BaseSiteFactory.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

- 

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.*;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.*;

-

-/**

- * Base implementation of a site factory.

- * The factory is responsible for constructing the correct

- * concrete implementation of the model objects for each particular

- * site type. This class creates model objects that correspond

- * to the concrete implementation classes provided in this package.

- * The actual site creation method is subclass responsibility.

- * <p>

- * This class must be subclassed by clients.

- * </p>

- * @see org.eclipse.update.core.ISiteFactory

- * @see org.eclipse.update.core.model.SiteModelFactory

- * @since 2.0

- */

-public abstract class BaseSiteFactory extends SiteModelFactory implements ISiteFactory {

-

-	// 

-	private URLConnection connection = null;

-	private IOException exception = null;

-

-	/**

-	 * Create site. Implementation of this method must be provided by 

-	 * subclass

-	 * 

-	 * @see ISiteFactory#createSite(URL)

-	 * @since 2.0

-	 */

-	public abstract ISite createSite(URL url) throws CoreException, InvalidSiteTypeException;

-

-	/**

-	 * Helper method to access resouce bundle for site. The default 

-	 * implementation attempts to load the appropriately localized 

-	 * site.properties file.

-	 * 

-	 * @param url base URL used to load the resource bundle.

-	 * @return resource bundle, or <code>null</code>.

-	 * @since 2.0

-	 */

-	protected ResourceBundle getResourceBundle(URL url) {

-		ResourceBundle bundle = null;

-

-		try {

-			url = UpdateManagerUtils.asDirectoryURL(url);

-			ClassLoader l = new URLClassLoader(new URL[] { url }, null);

-			bundle = ResourceBundle.getBundle(Site.SITE_FILE, Locale.getDefault(), l);

-		} catch (MissingResourceException e) {

-			UpdateCore.warn(e.getLocalizedMessage() + ":" + url.toExternalForm()); //$NON-NLS-1$

-		} catch (MalformedURLException e) {

-			UpdateCore.warn(Policy.bind("BaseSiteFactory.CannotRetriveParentDirectory", url.toExternalForm()));  //$NON-NLS-1$

-		}

-

-		return bundle;

-	}

-

-	/**

-	 * Create a concrete implementation of site model.

-	 * 

-	 * @see Site

-	 * @return site model

-	 * @since 2.0

-	 */

-	public SiteModel createSiteMapModel() {

-		return new Site();

-	}

-

-

-	/**

-	 * Create a concrete implementation of feature reference model.

-	 * 

-	 * @see FeatureReference

-	 * @return feature reference model

-	 * @since 2.0

-	 */

-	public SiteFeatureReferenceModel createFeatureReferenceModel() {

-		return new SiteFeatureReference();

-	}

-

-	/**

-	 * Create a concrete implementation of archive reference model.

-	 * 

-	 * @see ArchiveReference

-	 * @return archive reference model

-	 * @since 2.0

-	 */

-	public ArchiveReferenceModel createArchiveReferenceModel() {

-		return new ArchiveReference();

-	}

-

-

-	/**

-	 * Create a concrete implementation of annotated URL model.

-	 * 

-	 * @see URLEntry

-	 * @return annotated URL model

-	 * @since 2.0

-	 */

-	public URLEntryModel createURLEntryModel() {

-		return new URLEntry();

-	}

-

-

-	/**

-	 * Create a concrete implementation of category model.

-	 * 

-	 * @see Category

-	 * @return category model

-	 * @since 2.0

-	 */

-	public CategoryModel createSiteCategoryModel() {

-		return new Category();

-	}

-

-	/**

-	 * Open a stream on a URL.

-	 * manages a time out if the connection is locked or fails

-	 * 

-	 * @param resolvedURL

-	 * @return InputStream

-	 */

-	protected InputStream openStream(URL resolvedURL)  throws IOException {

-		Response response = UpdateCore.getPlugin().get(resolvedURL);

-		return response.getInputStream();

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Category.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Category.java
deleted file mode 100644
index 0abbcb6..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Category.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.update.core.model.CategoryModel;

-

-/**

- * Convenience implementation of feature category definition.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.ICategory

- * @see org.eclipse.update.core.model.CategoryModel

- * @since 2.0

- */

-public class Category extends CategoryModel implements ICategory {

-

-	/**

-	 * Default Constructor

-	 */

-	public Category() {

-	}

-

-	/**

-	 * Constructor

-	 */

-	public Category(String name, String label) {

-		setName(name);

-		setLabel(label);

-	}

-

-	/**

-	 * Retrieve the detailed category description

-	 * @see ICategory#getDescription()

-	 */

-	public IURLEntry getDescription() {

-		return (IURLEntry) getDescriptionModel();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ContentReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ContentReference.java
deleted file mode 100644
index 73d461a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ContentReference.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.io.*;

-import java.net.URL;

-

-import org.eclipse.update.internal.core.*;

-

-/**

- * Content reference implements a general access wrapper 

- * to feature and site content. The reference specifies

- * a "symbolic" path identifier for the content, and the actual

- * reference as a file, or a URL.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.JarContentReference

- * @see org.eclipse.update.core.JarEntryContentReference

- * @since 2.0

- */

-public class ContentReference {

-

-	/**

-	 * Unknown size indication

-	 * @since 2.0

-	 */

-	public static final long UNKNOWN_SIZE = -1;

-

-	/**

-	 * Default executable permission when installing a content reference

-	 * Will add executable bit if necessary

-	 * 

-	 * @since 2.0.1

-	 */

-	public static final int DEFAULT_EXECUTABLE_PERMISSION = -1;

-

-	private static final String FILE_URL_PROTOCOL = "file"; //$NON-NLS-1$

-

-	private String id;

-	private URL url; // reference is either URL reference *OR*

-	private File file; //    local file reference

-	private Response response;

-	private int permission; 

-	

-	// <true> if a copy of a Contentreferenec in a temp local directory

-	private boolean tempLocal = false;

-

-	/*

-	 * do not allow default contruction

-	 */

-	private ContentReference() {

-	}

-

-	/**

-	 * Create content reference from URL.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param url actual referenced URL

-	 * @since 2.0

-	 */

-	public ContentReference(String id, URL url) {

-		this.id = (id == null ? "" : id); //$NON-NLS-1$

-		this.url = url; // can be null

-		this.file = null;

-	}

-

-	/**

-	 * Create content reference from file.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param file actual referenced file

-	 * @since 2.0

-	 */

-	public ContentReference(String id, File file) {

-		this.id = (id == null ? "" : id); //$NON-NLS-1$

-		this.file = file; // can be null

-		this.url = null;

-	}

-

-	/**

-	 * A factory method to create a content reference of

-	 * the same type.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param file actual referenced file

-	 * @return content reference of the same type

-	 * @since 2.0

-	 */

-	public ContentReference createContentReference(String id, File file) {

-		return new ContentReference(id, file,true);

-	}

-	/**

-	 * 

-	 */

-	private ContentReference(String id, File file, boolean b) {

-		this(id,file);

-		setTempLocal(b);

-	}

-

-	/**

-	 * Retrieves the "symbolic" path identifier for the reference.

-	 * 

-	 * @return "symbolic" path identifier

-	 * @since 2.0

-	 */

-	public String getIdentifier() {

-		return id;

-	}

-

-	/**

-	 * Creates an input stream for the reference.

-	 * 

-	 * @return input stream

-	 * @exception IOException unable to create stream

-	 * @since 2.0

-	 */

-	public InputStream getInputStream() throws IOException {

-		if (file != null)

-			return new FileInputStream(file);

-		else if (url != null) {

-			if (response == null) {

-				URL resolvedURL = URLEncoder.encode(url);

-				response = UpdateCore.getPlugin().get(resolvedURL);

-				UpdateManagerUtils.checkConnectionResult(response,resolvedURL);

-			}

-			return response.getInputStream();

-		} else

-			throw new IOException(Policy.bind("ContentReference.UnableToCreateInputStream", this.toString())); //$NON-NLS-1$

-	}

-

-	/**

-	 * Returns the size of the referenced input, if it can be determined.

-	 * 

-	 * @return input size, or @see #UNKNOWN_SIZE if size cannot be determined.

-	 * @since 2.0

-	 */

-	public long getInputSize() throws IOException {

-		if (file != null)

-			return file.length();

-		else if (url != null) {

-			if (response == null) {

-				URL resolvedURL = null;

-				try {

-					resolvedURL = URLEncoder.encode(url);

-					response = UpdateCore.getPlugin().get(resolvedURL);

-				} catch (IOException e) {

-					return ContentReference.UNKNOWN_SIZE;

-				}

-				UpdateManagerUtils.checkConnectionResult(response,resolvedURL);			

-			}

-			long size = response.getContentLength();

-			return size == -1 ? ContentReference.UNKNOWN_SIZE : size;

-		} else

-			return ContentReference.UNKNOWN_SIZE;

-	}

-

-	/**

-	 * Indicates whether the reference is a local file reference.

-	 * 

-	 * @return <code>true</code> if the reference is local, 

-	 * otherwise <code>false</code>

-	 * @since 2.0

-	 */

-	public boolean isLocalReference() {

-		/*if (file != null)

-			return true;

-		else if (url != null)

-			return FILE_URL_PROTOCOL.equals(url.getProtocol());

-		else

-			return false;*/

-		// only temp files are considered local

-		return tempLocal;

-	}

-

-	/**

-	 * Returns the content reference as a file. Note, that this method

-	 * <b>does not</b> cause the file to be downloaded if it

-	 * is not already local.

-	 * 

-	 * @return reference as file

-	 * @exception IOException reference cannot be returned as file

-	 * @since 2.0

-	 */

-	public File asFile() throws IOException {

-		if (file != null)

-			return file;

-

-		if (url != null && FILE_URL_PROTOCOL.equals(url.getProtocol())) {

-			File result = new File(url.getFile());

-			if (result.exists())

-				return result;

-			else 

-				throw new IOException(Policy.bind("ContentReference.FileDoesNotExist", this.toString())); //$NON-NLS-1$ 			

-		}

-

-		throw new IOException(Policy.bind("ContentReference.UnableToReturnReferenceAsFile", this.toString())); //$NON-NLS-1$ 

-	}

-

-	/**

-	 * Returns the content reference as a URL.

-	 * 

-	 * @return reference as URL

-	 * @exception IOException reference cannot be returned as URL

-	 * @since 2.0

-	 */

-	public URL asURL() throws IOException {

-		if (url != null)

-			return url;

-

-		if (file != null)

-			return file.toURL();

-

-		throw new IOException(Policy.bind("ContentReference.UnableToReturnReferenceAsURL", this.toString())); //$NON-NLS-1$

-	}

-

-	/**

-	 * Return string representation of this reference.

-	 * 

-	 * @return string representation

-	 * @since 2.0

-	 */

-	public String toString() {

-		if (file != null)

-			return file.getAbsolutePath();

-		else

-			return url.toExternalForm();

-	}

-	/**

-	 * Returns the permission for this file.

-	 * 

-	 * @return the content reference permission

-	 * @see DEFAULT_PERMISSION

-	 * @since 2.0.1

-	 */

-	public int getPermission() {

-		return permission;

-	}

-

-	/**

-	 * Sets the permission of this content reference.

-	 * 

-	 * @param permission The permission to set

-	 */

-	public void setPermission(int permission) {

-		this.permission = permission;

-	}

-

-	/**

-	 * Sets if a content reference is considered local 

-	 * 

-	 * @param tempLocal <code>true</code> if the file is considered local

-	 */

-	protected void setTempLocal(boolean tempLocal) {

-		this.tempLocal = tempLocal;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Feature.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Feature.java
deleted file mode 100644
index f3b6bb4..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Feature.java
+++ /dev/null
@@ -1,980 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-

-import java.net.*;

-import java.util.*;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.*;

-

-/**

- * Convenience implementation of a feature.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IFeature

- * @see org.eclipse.update.core.model.FeatureModel

- * @since 2.0

- */

-public class Feature extends FeatureModel implements IFeature {

-

-	/**

-	 * Simple file name of the default feature manifest file

-	 * @since 2.0

-	 */

-	public static final String FEATURE_FILE = "feature"; //$NON-NLS-1$

-

-	/**

-	 * File extension of the default feature manifest file

-	 * @since 2.0

-	 */

-	public static final String FEATURE_XML = FEATURE_FILE + ".xml"; //$NON-NLS-1$

-

-	private ISite site; // feature site

-	private IFeatureContentProvider featureContentProvider; // content provider

-	private List /*of IFeatureReference*/

-	includedFeatureReferences;

-	

-	//PERF: new instance variable

-	private VersionedIdentifier versionId;

-

-	/**

-	 * Feature default constructor

-	 * 

-	 * @since 2.0

-	 */

-	public Feature() {

-	}

-

-	/**

-	 * Compares two features for equality

-	 * 

-	 * @param object feature object to compare with

-	 * @return <code>true</code> if the two features are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object object) {

-		if (!(object instanceof IFeature))

-			return false;

-		IFeature f = (IFeature) object;

-		return getVersionedIdentifier().equals(f.getVersionedIdentifier());

-	}

-

-	/**

-	 * Returns the feature identifier.

-	 * 

-	 * @see IFeature#getVersionedIdentifier()

-	 * @since 2.0

-	 */

-	public VersionedIdentifier getVersionedIdentifier() {

-		if (versionId != null)

-			return versionId;

-

-		String id = getFeatureIdentifier();

-		String ver = getFeatureVersion();

-		if (id != null && ver != null) {

-			try {

-				versionId = new VersionedIdentifier(id, ver);

-				return versionId;

-			} catch (Exception e) {

-				UpdateCore.warn("Unable to create versioned identifier:" + id + ":" + ver);

-			}

-		}

-

-		versionId = new VersionedIdentifier(getURL().toExternalForm(),null);

-		return versionId;

-	}

-

-	/**

-	 * Returns the site this feature is associated with.

-	 * 

-	 * @see IFeature#getSite()

-	 * @since 2.0

-	 */

-	public ISite getSite() {

-		return site;

-	}

-

-	/**

-	 * Returns the feature URL.

-	 * 

-	 * @see IFeature#getURL()

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		IFeatureContentProvider contentProvider = null;

-		try {

-			contentProvider = getFeatureContentProvider();

-		} catch (CoreException e) {

-			UpdateCore.warn("No content Provider", e);

-		}

-		return (contentProvider != null) ? contentProvider.getURL() : null;

-	}

-

-	/**

-	 * Returns an information entry referencing the location of the

-	 * feature update site. 

-	 * 

-	 * @see IFeature#getUpdateSiteEntry()

-	 * @since 2.0

-	 */

-	public IURLEntry getUpdateSiteEntry() {

-		return (IURLEntry) getUpdateSiteEntryModel();

-	}

-

-	/**

-	 * Return an array of information entries referencing locations of other

-	 * update sites.

-	 * 

-	 * @see IFeature#getDiscoverySiteEntries()

-	 * @since 2.0

-	 */

-	public IURLEntry[] getDiscoverySiteEntries() {

-		URLEntryModel[] result = getDiscoverySiteEntryModels();

-		if (result.length == 0)

-			return new IURLEntry[0];

-		else

-			return (IURLEntry[]) result;

-	}

-

-	/**

-	 * Returns and optional custom install handler entry.

-	 * 

-	 * @see IFeature#getInstallHandlerEntry()

-	 * @since 2.0

-	 */

-	public IInstallHandlerEntry getInstallHandlerEntry() {

-		return (IInstallHandlerEntry) getInstallHandlerModel();

-	}

-

-	/**

-	 * Returns the feature description.

-	 * 

-	 * @see IFeature#getDescription()

-	 * @since 2.0

-	 */

-	public IURLEntry getDescription() {

-		return (IURLEntry) getDescriptionModel();

-	}

-

-	/**

-	 * Returns the copyright information for the feature.

-	 * 

-	 * @see IFeature#getCopyright()

-	 * @since 2.0

-	 */

-	public IURLEntry getCopyright() {

-		return (IURLEntry) getCopyrightModel();

-	}

-

-	/**

-	 * Returns the license information for the feature.

-	 * 

-	 * @see IFeature#getLicense()

-	 * @since 2.0

-	 */

-	public IURLEntry getLicense() {

-		return (IURLEntry) getLicenseModel();

-	}

-

-	/**

-	 * Return optional image for the feature.

-	 * 

-	 * @see IFeature#getImage()

-	 * @since 2.0

-	 */

-	public URL getImage() {

-		return getImageURL();

-	}

-

-	/**

-	 * Return a list of plug-in dependencies for this feature.

-	 * 

-	 * @see IFeature#getRawImports()

-	 * @since 2.0

-	 */

-	public IImport[] getRawImports() {

-		ImportModel[] result = getImportModels();

-		if (result.length == 0)

-			return new IImport[0];

-		else

-			return (IImport[]) result;

-	}

-

-	/**

-	 * Install the contents of this feature into the specified target feature.

-	 * This method is a reference implementation of the feature installation

-	 * protocol. Other concrete feature implementation that override this

-	 * method need to implement this protocol.

-	 * 

-	 * @see IFeature#install(IFeature, IVerificationListener, IProgressMonitor)

-	 * @since 2.0

-	 */

-	public IFeatureReference install(IFeature targetFeature, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {

-		// call other API with all optional features, or setup variable meaning install all

-		return install(targetFeature, null, verificationListener, progress);

-	}

-

-	/**

-	 * Install the contents of this feature into the specified target feature.

-	 * This method is a reference implementation of the feature installation

-	 * protocol. Other concrete feature implementation that override this

-	 * method need to implement this protocol.

-	 * 

-	 * @see IFeature#install(IFeature, IVerificationListener, IProgressMonitor)

-	 * @since 2.0

-	 */

-	public IFeatureReference install(IFeature targetFeature, IFeatureReference[] optionalfeatures, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {

-

-		//DEBUG

-		debug("Installing...:" + getURL().toExternalForm());

-		ErrorRecoveryLog recoveryLog = ErrorRecoveryLog.getLog();

-

-		// make sure we have an InstallMonitor		

-		InstallMonitor monitor;

-		if (progress == null)

-			monitor = new InstallMonitor(new NullProgressMonitor());

-		else if (progress instanceof InstallMonitor)

-			monitor = (InstallMonitor) progress;

-		else

-			monitor = new InstallMonitor(progress);

-

-		// Setup optional install handler

-		InstallHandlerProxy handler = new InstallHandlerProxy(IInstallHandler.HANDLER_ACTION_INSTALL, this, this.getInstallHandlerEntry(), monitor);

-		boolean success = false;

-		Throwable originalException = null;

-		InstallAbortedException abortedException = null;

-

-		// Get source feature provider and verifier.

-		// Initialize target variables.

-		IFeatureContentProvider provider = getFeatureContentProvider();

-		IVerifier verifier = provider.getVerifier();

-		IFeatureReference result = null;

-		IFeatureReference alreadyInstalledFeature = null;

-		IFeatureContentConsumer consumer = null;

-		IPluginEntry[] targetSitePluginEntries = null;

-

-		try {

-			// determine list of plugins to install

-			// find the intersection between the plugin entries already contained

-			// on the target site, and plugin entries packaged in source feature

-			IPluginEntry[] sourceFeaturePluginEntries = getPluginEntries();

-			ISite targetSite = targetFeature.getSite();

-			if (targetSite == null) {

-				debug("The site to install in is null");

-				targetSitePluginEntries = new IPluginEntry[0];

-			} else {

-				targetSitePluginEntries = targetSite.getPluginEntries();

-			}

-			IPluginEntry[] pluginsToInstall = UpdateManagerUtils.diff(sourceFeaturePluginEntries, targetSitePluginEntries);

-			INonPluginEntry[] nonPluginsToInstall = getNonPluginEntries();

-

-			IFeatureReference[] children = getIncludedFeatureReferences();

-			if (optionalfeatures != null) {

-				children = UpdateManagerUtils.optionalChildrenToInstall(children, optionalfeatures);

-			}

-

-			// determine number of monitor tasks

-			//   2 tasks for the feature jar (download/verify + install)

-			// + 2*n tasks for plugin entries (download/verify + install for each)

-			// + 1*m tasks per non-plugin data entry (download for each)

-			// + 1 task for custom non-plugin entry handling (1 for all combined)

-			// + 5*x tasks for children features (5 subtasks per install)

-			int taskCount = 2 + 2 * pluginsToInstall.length + nonPluginsToInstall.length + 1 + 5 * children.length;

-			monitor.beginTask("", taskCount);

-			SubProgressMonitor subMonitor = null;

-

-			// start log

-			recoveryLog.open(ErrorRecoveryLog.START_INSTALL_LOG);

-

-			// Start the installation tasks			

-			handler.installInitiated();

-

-			// Download and verify feature archive(s)

-			ContentReference[] references = provider.getFeatureEntryArchiveReferences(monitor);

-			verifyReferences(verifier, references, monitor, verificationListener, true);

-			monitorWork(monitor, 1);

-

-			// Download and verify plugin archives

-			for (int i = 0; i < pluginsToInstall.length; i++) {

-				references = provider.getPluginEntryArchiveReferences(pluginsToInstall[i], monitor);

-				verifyReferences(verifier, references, monitor, verificationListener, false);

-				monitorWork(monitor, 1);

-			}

-			handler.pluginsDownloaded(pluginsToInstall);

-

-			// Download non-plugin archives. Verification handled by optional install handler

-			for (int i = 0; i < nonPluginsToInstall.length; i++) {

-				references = provider.getNonPluginEntryArchiveReferences(nonPluginsToInstall[i], monitor);

-				monitorWork(monitor, 1);

-			}

-			handler.nonPluginDataDownloaded(nonPluginsToInstall, verificationListener);

-

-			// All archives are downloaded and verified. Get ready to install

-			consumer = targetFeature.getFeatureContentConsumer();

-

-			// install the children feature

-			// check if they are optional, and if they should be installed [2.0.1]

-			for (int i = 0; i < children.length; i++) {

-				IFeature childFeature = null;

-				try {

-					childFeature = children[i].getFeature(null);

-				} catch (CoreException e) {

-					UpdateCore.warn(null, e);

-				}

-				if (childFeature != null) {

-					subMonitor = new SubProgressMonitor(monitor, 5);

-					((Site) targetSite).install(// need to cast

-					childFeature, optionalfeatures, consumer, verifier, verificationListener, subMonitor);

-				}

-			}

-

-			// Install plugin files

-			for (int i = 0; i < pluginsToInstall.length; i++) {

-				references = provider.getPluginEntryContentReferences(pluginsToInstall[i], monitor);

-				IContentConsumer pluginConsumer = consumer.open(pluginsToInstall[i]);

-

-				String msg = "";

-				subMonitor = new SubProgressMonitor(monitor, 1);

-				VersionedIdentifier pluginVerId = pluginsToInstall[i].getVersionedIdentifier();

-				String pluginID = (pluginVerId == null) ? "" : pluginVerId.getIdentifier();

-				msg = Policy.bind("Feature.TaskInstallPluginFiles", pluginID); //$NON-NLS-1$

-				

-				for (int j = 0; j < references.length; j++) {

-					setMonitorTaskName(subMonitor, msg + references[j].getIdentifier());

-					pluginConsumer.store(references[j], subMonitor);

-				}

-

-				if (monitor.isCanceled())

-						abort();

-			}

-

-			// check if we need to install feature files [16718]	

-			// store will throw CoreException if another feature is already

-			// installed in the same place

-			alreadyInstalledFeature = featureAlreadyInstalled(targetSite); // 18867

-			if (alreadyInstalledFeature == null) {

-				//Install feature files

-				references = provider.getFeatureEntryContentReferences(monitor);

-

-				String msg = "";

-				subMonitor = new SubProgressMonitor(monitor, 1);

-				msg = Policy.bind("Feature.TaskInstallFeatureFiles"); //$NON-NLS-1$

-				

-				for (int i = 0; i < references.length; i++) {

-					setMonitorTaskName(subMonitor, msg + " " + references[i].getIdentifier());

-					consumer.store(references[i], subMonitor);

-				}

-			} else {

-				monitor.worked(1);

-			}

-

-			if (monitor.isCanceled())

-				abort();

-			

-

-			// call handler to complete installation (eg. handle non-plugin entries)

-			handler.completeInstall(consumer);

-			monitorWork(monitor, 1);

-

-			// indicate install success

-			success = true;

-

-		} catch (InstallAbortedException e) {

-			abortedException = e;

-		} catch (CoreException e) {

-			originalException = e;

-		} finally {

-			Exception newException = null;

-			try {

-				if (consumer != null) {

-					if (success) {

-						result = consumer.close();

-						if (result == null) {

-							result = alreadyInstalledFeature; // 18867

-							if (result != null && optionalfeatures != null && optionalfeatures.length > 0) {

-								// reinitialize as new optional children may have been installed

-								reinitializeFeature(result);

-							}

-						}

-						// close the log

-						recoveryLog.close(ErrorRecoveryLog.END_INSTALL_LOG);

-					} else {

-						consumer.abort();

-					}

-				}

-				handler.installCompleted(success);

-				// if abort is done, no need for the log to stay

-				recoveryLog.delete();

-			} catch (CoreException e) {

-				newException = e;

-			}

-

-			// original exception wins unless it is InstallAbortedException

-			// and an error occured during abort

-			if (originalException != null) {

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", this.getLabel()), originalException);

-			}

-

-			if (newException != null)

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", this.getLabel()), newException);

-

-			if (abortedException != null) {

-				throw abortedException;

-			}

-

-		}

-		return result;

-	}

-

-	/**

-	 * Returns an array of plug-in entries referenced by this feature

-	 * 

-	 * @see IFeature#getPluginEntries()

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getRawPluginEntries() {

-		PluginEntryModel[] result = getPluginEntryModels();

-		if (result.length == 0)

-			return new IPluginEntry[0];

-		else 

-			return (IPluginEntry[])result;

-	}

-

-	/*

-	 * Method filter.

-	 * @param result

-	 * @return IPluginEntry[]

-	 */

-	private IPluginEntry[] filterPluginEntry(IPluginEntry[] all) {

-		List list = new ArrayList();

-		if (all!=null){

-			for (int i = 0; i < all.length; i++) {
-				if (UpdateManagerUtils.isValidEnvironment(all[i]))

-					list.add((IPluginEntry)all[i]);
-			}

-		}

-		

-		IPluginEntry[] result = new IPluginEntry[list.size()];

-		if (!list.isEmpty()){

-			list.toArray(result);

-		}

-		

-		return result;

-	}

-

-

-	/**

-	 * Returns the count of referenced plug-in entries.

-	 * 

-	 * @see IFeature#getPluginEntryCount()

-	 * @since 2.0

-	 */

-	public int getPluginEntryCount() {

-		return getPluginEntries().length;

-	}

-

-	/**

-	 * Returns an array of non-plug-in entries referenced by this feature

-	 * 

-	 * @see IFeature#getNonPluginEntries()

-	 * @since 2.0

-	 */

-	public INonPluginEntry[] getRawNonPluginEntries() {

-		NonPluginEntryModel[] result = getNonPluginEntryModels();

-		if (result.length == 0)

-			return new INonPluginEntry[0];

-		else

-			return (INonPluginEntry[]) result;

-	}

-

-	/**

-	 * Returns the count of referenced non-plug-in entries.

-	 * 

-	 * @see IFeature#getNonPluginEntryCount()

-	 * @since 2.0

-	 */

-	public int getNonPluginEntryCount() {

-		return getNonPluginEntryModels().length;

-	}

-

-	/**

-	 * Returns an array of feature references included by this feature

-	 * 

-	 * @return an erray of feature references, or an empty array.

-	 * @since 2.0

-	 */

-	public IIncludedFeatureReference[] getRawIncludedFeatureReferences() throws CoreException {

-		if (includedFeatureReferences == null)

-			initializeIncludedReferences();

-

-		if (includedFeatureReferences.size() == 0)

-			return new IncludedFeatureReference[0];

-

-		return (IIncludedFeatureReference[]) includedFeatureReferences.toArray(arrayTypeFor(includedFeatureReferences));

-	}

-	/**

-	 * Returns the download size of the feature, if it can be determined.

-	 * 

-	 * @see IFeature#getDownloadSize()

-	 * @since 2.0

-	 */

-	public long getDownloadSize() {

-		try {

-			Set allPluginEntries = new HashSet();

-			Set allNonPluginEntries = new HashSet();

-

-			IPluginEntry[] plugins = getPluginEntries();

-			allPluginEntries.addAll(Arrays.asList(plugins));

-			INonPluginEntry[] nonPlugins = getNonPluginEntries();

-			allNonPluginEntries.addAll(Arrays.asList(nonPlugins));

-

-			IFeatureReference[] children = getIncludedFeatureReferences();

-			for (int i = 0; i < children.length; i++) {

-				plugins = children[i].getFeature(null).getPluginEntries();

-				allPluginEntries.addAll(Arrays.asList(plugins));

-				nonPlugins = children[i].getFeature(null).getNonPluginEntries();

-				allNonPluginEntries.addAll(Arrays.asList(nonPlugins));

-			}

-

-			IPluginEntry[] totalPlugins = new IPluginEntry[allPluginEntries.size()];

-			INonPluginEntry[] totalNonPlugins = new INonPluginEntry[allNonPluginEntries.size()];

-			if (allPluginEntries.size() != 0) {

-				allPluginEntries.toArray(totalPlugins);

-			}

-			if (allNonPluginEntries.size() != 0) {

-				allNonPluginEntries.toArray(totalNonPlugins);

-			}

-

-			return getFeatureContentProvider().getDownloadSizeFor(totalPlugins, totalNonPlugins);

-

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-			return ContentEntryModel.UNKNOWN_SIZE;

-		}

-	}

-

-	/**

-	 * Returns the install size of the feature, if it can be determined.

-	 * 

-	 * @see IFeature#getInstallSize()

-	 * @since 2.0

-	 */

-	public long getInstallSize() {

-		try {

-			Set allPluginEntries = new HashSet();

-			Set allNonPluginEntries = new HashSet();

-

-			IPluginEntry[] plugins = getPluginEntries();

-			allPluginEntries.addAll(Arrays.asList(plugins));

-			INonPluginEntry[] nonPlugins = getNonPluginEntries();

-			allNonPluginEntries.addAll(Arrays.asList(nonPlugins));

-

-			IFeatureReference[] children = getIncludedFeatureReferences();

-			for (int i = 0; i < children.length; i++) {

-				plugins = children[i].getFeature(null).getPluginEntries();

-				allPluginEntries.addAll(Arrays.asList(plugins));

-				nonPlugins = children[i].getFeature(null).getNonPluginEntries();

-				allNonPluginEntries.addAll(Arrays.asList(nonPlugins));

-			}

-

-			IPluginEntry[] totalPlugins = new IPluginEntry[allPluginEntries.size()];

-			INonPluginEntry[] totalNonPlugins = new INonPluginEntry[allNonPluginEntries.size()];

-			if (allPluginEntries.size() != 0) {

-				allPluginEntries.toArray(totalPlugins);

-			}

-			if (allNonPluginEntries.size() != 0) {

-				allNonPluginEntries.toArray(totalNonPlugins);

-			}

-

-			return getFeatureContentProvider().getInstallSizeFor(totalPlugins, totalNonPlugins);

-

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-			return ContentEntryModel.UNKNOWN_SIZE;

-		}

-	}

-

-	/**

-	 * Returns the content provider for this feature.

-	 * 

-	 * @see IFeature#getFeatureContentProvider()

-	 * @since 2.0

-	 */

-	public IFeatureContentProvider getFeatureContentProvider() throws CoreException {

-		if (featureContentProvider == null) {

-			throw Utilities.newCoreException(Policy.bind("Feature.NoContentProvider", getVersionedIdentifier().toString()), null);

-			//$NON-NLS-1$

-		}

-		return this.featureContentProvider;

-	}

-

-	/**

-	 * Returns the content consumer for this feature.

-	 * 

-	 * @see IFeature#getFeatureContentConsumer()

-	 * @since 2.0

-	 */

-	public IFeatureContentConsumer getFeatureContentConsumer() throws CoreException {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Sets the site for this feature.

-	 * 

-	 * @see IFeature#setSite(ISite)

-	 * @since 2.0

-	 */

-	public void setSite(ISite site) throws CoreException {

-		if (this.site != null) {

-			String featureURLString = (getURL() != null) ? getURL().toExternalForm() : "";

-			throw Utilities.newCoreException(Policy.bind("Feature.SiteAlreadySet", featureURLString), null);

-			//$NON-NLS-1$

-		}

-		this.site = site;

-	}

-

-	/**

-	 * Sets the content provider for this feature.

-	 * 

-	 * @see IFeature#setFeatureContentProvider(IFeatureContentProvider)

-	 * @since 2.0

-	 */

-	public void setFeatureContentProvider(IFeatureContentProvider featureContentProvider) {

-		this.featureContentProvider = featureContentProvider;

-		featureContentProvider.setFeature(this);

-	}

-

-	/**

-	 * Return the string representation of this fetaure

-	 * 

-	 * @return feature as string

-	 * @since 2.0

-	 */

-	public String toString() {

-		String URLString = (getURL() == null) ? Policy.bind("Feature.NoURL") : getURL().toExternalForm();

-		//$NON-NLS-1$

-		String verString = Policy.bind("Feature.FeatureVersionToString", URLString, getVersionedIdentifier().toString());

-		//$NON-NLS-1$

-		String label = getLabel() == null ? "" : getLabel();

-		return verString + " [" + label + "]";

-	}

-

-	/*

-	 * Installation has been cancelled, abort and revert

-	 */

-	private void abort() throws CoreException {

-		String msg = Policy.bind("Feature.InstallationCancelled"); //$NON-NLS-1$

-		throw new InstallAbortedException(msg, null);

-	}

-

-	/*

-	 * Initializes includes feature references

-	 * If the included feature reference is found on the site, add it to the List

-	 * Otherwise attempt to instanciate it using the same type as this feature and

-	 * using the default location on the site.

-	 */

-	private void initializeIncludedReferences() throws CoreException {

-		includedFeatureReferences = new ArrayList();

-

-		IIncludedFeatureReference[] nestedFeatures = getFeatureIncluded();

-		if (nestedFeatures.length==0)

-			return;

-

-		ISite site = getSite();

-		if (site == null)

-			return;

-

-		for (int i = 0; i < nestedFeatures.length; i++) {
-			IIncludedFeatureReference include = nestedFeatures[i];

-			IIncludedFeatureReference newRef = getPerfectIncludeFeature(site, include);

-			includedFeatureReferences.add(newRef);

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private IIncludedFeatureReference getPerfectIncludeFeature(ISite site, IIncludedFeatureReference include) throws CoreException {

-	

-		// [20367] no site, cannot initialize nested references

-		ISiteFeatureReference[] refs = site.getFeatureReferences();

-		VersionedIdentifier identifier = include.getVersionedIdentifier();

-		

-		// too long to compute if not a file system

-		// other solution would be to parse feature.xml

-		// when parsing file system to create archive features/FeatureId_Ver.jar

-		if ("file".equals(site.getURL().getProtocol())) {

-			// check if declared on the Site

-			if (refs != null) {

-				for (int ref = 0; ref < refs.length; ref++) {

-					if (refs[ref] != null) {

-						VersionedIdentifier id = refs[ref].getVersionedIdentifier();

-						if (identifier.equals(id)) {

-							// found a ISiteFeatureReference that matches our IIncludedFeatureReference

-							IncludedFeatureReference newRef = new IncludedFeatureReference(refs[ref]);

-							newRef.isOptional(include.isOptional());

-							if (include instanceof FeatureReferenceModel)	

-								newRef.setLabel(((FeatureReferenceModel)include).getLabel());

-							newRef.setMatchingRule(include.getMatch());

-							newRef.setSearchLocation(include.getSearchLocation());

-							return newRef;

-						}

-					}

-				}

-			}

-		}

-	

-		// instanciate by mapping it based on the site.xml

-		// in future we may ask for a factory to create the feature ref

-		IncludedFeatureReference newRef = new IncludedFeatureReference(include);

-		newRef.setSite(getSite());

-		IFeatureReference parentRef = getSite().getFeatureReference(this);

-		if (parentRef instanceof FeatureReference) {

-			newRef.setType(((FeatureReference) parentRef).getType());

-		}

-		String featureID = Site.DEFAULT_FEATURE_PATH + identifier.toString() + ".jar";

-		URL featureURL = getSite().getSiteContentProvider().getArchiveReference(featureID);

-		newRef.setURL(featureURL);

-		newRef.setFeatureIdentifier(identifier.getIdentifier());

-		newRef.setFeatureVersion(identifier.getVersion().toString());

-		try {

-			newRef.resolve(getSite().getURL(), null); // no need to get the bundle

-			return newRef;

-		} catch (Exception e) {

-			throw Utilities.newCoreException(Policy.bind("Feature.UnableToInitializeFeatureReference", identifier.toString()), e);

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private void debug(String trace) {

-		//DEBUG

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL) {

-			UpdateCore.debug(trace);

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private void setMonitorTaskName(IProgressMonitor monitor, String taskName) {

-		if (monitor != null)

-			monitor.setTaskName(taskName);

-	}

-

-	/*

-	 *

-	 */

-	private void monitorWork(IProgressMonitor monitor, int tick) throws CoreException {

-		if (monitor != null) {

-			monitor.worked(tick);

-			if (monitor.isCanceled()) {

-				abort();

-			}

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private void verifyReferences(IVerifier verifier, ContentReference[] references, InstallMonitor monitor, IVerificationListener verificationListener, boolean isFeature) throws CoreException {

-		IVerificationResult vr = null;

-		if (verifier != null) {

-			for (int j = 0; j < references.length; j++) {

-				vr = verifier.verify(this, references[j], isFeature, monitor);

-				if (vr != null) {

-					if (verificationListener == null)

-						return;

-

-					int result = verificationListener.prompt(vr);

-

-					if (result == IVerificationListener.CHOICE_ABORT) {

-						String msg = Policy.bind("JarVerificationService.CancelInstall"); //$NON-NLS-1$

-						Exception e = vr.getVerificationException();

-						throw new InstallAbortedException(msg, e);

-					}

-					if (result == IVerificationListener.CHOICE_ERROR) {

-						throw Utilities.newCoreException(Policy.bind("JarVerificationService.UnsucessfulVerification"),

-						//$NON-NLS-1$

-						vr.getVerificationException());

-					}

-				}

-			}

-		}

-	}

-

-	/*

-	 * returns reference if the same feature is installed on the site

-	 * [18867]

-	 */

-	private IFeatureReference featureAlreadyInstalled(ISite targetSite) {

-

-		ISiteFeatureReference[] references = targetSite.getFeatureReferences();

-		IFeatureReference currentReference = null;

-		for (int i = 0; i < references.length; i++) {

-			currentReference = references[i];

-			// do not compare URL

-			try {

-				if (this.equals(currentReference.getFeature(null)))

-					return currentReference; // 18867

-			} catch (CoreException e) {

-				UpdateCore.warn(null, e);

-			}

-		}

-

-		UpdateCore.warn("ValidateAlreadyInstalled:Feature " + this +" not found on site:" + this.getURL());

-		return null;

-	}

-

-	/*

-	 * re initialize children of the feature, invalidate the cache

-	 * @param result FeatureReference to reinitialize.

-	 */

-	private void reinitializeFeature(IFeatureReference referenceToReinitialize) {

-

-		if (referenceToReinitialize==null) return;

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-			UpdateCore.debug("Re initialize feature reference:" + referenceToReinitialize);

-

-		IFeature feature = null;

-		try {

-			feature = referenceToReinitialize.getFeature(null);

-			if (feature != null && feature instanceof Feature) {

-				((Feature) feature).initializeIncludedReferences();

-			}

-			// bug 24981 - recursively go into hierarchy

-			// only if site if file 

-			ISite site = referenceToReinitialize.getSite();

-			if (site==null) return;

-			URL url = site.getURL();

-			if (url==null) return;

-			if ("file".equals(url.getProtocol())){

-				IFeatureReference[] included = feature.getIncludedFeatureReferences();

-				for (int i = 0; i < included.length; i++) {
-					reinitializeFeature(included[i]);
-				}

-			}

-		} catch (CoreException e) {

-			UpdateCore.warn("", e);

-		}

-	}

-	

-	/**

-	 * @see org.eclipse.update.core.IFeature#getRawIncludedFeatureReferences()

-	 */

-	public IIncludedFeatureReference[] getIncludedFeatureReferences() throws CoreException {

-		return filterFeatures(getRawIncludedFeatureReferences());

-	}

-

-	/*

-	 * Method filterFeatures.

-	 * Also implemented in Site

-	 * 

-	 * @param list

-	 * @return List

-	 */

-	private IIncludedFeatureReference[] filterFeatures(IIncludedFeatureReference[] allIncluded) {

-		List list = new ArrayList();

-		if (allIncluded!=null){

-			for (int i = 0; i < allIncluded.length; i++) {

-				IIncludedFeatureReference included = allIncluded[i];

-				if (UpdateManagerUtils.isValidEnvironment(included))

-					list.add(included);

-				else{

-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS){

-						UpdateCore.warn("Filtered out feature reference:"+included);

-					}

-				}

-			}

-		}

-		

-		IIncludedFeatureReference[] result = new IIncludedFeatureReference[list.size()];

-		if (!list.isEmpty()){

-			list.toArray(result);

-		}

-		

-		return result;	

-	}

-

-	/**

-	 * @see org.eclipse.update.core.IFeature#getRawNonPluginEntries()

-	 */

-	public INonPluginEntry[] getNonPluginEntries() {

-		return filterNonPluginEntry(getRawNonPluginEntries());

-	}

-

-	/**

-	 * Method filterPluginEntry.

-	 * @param iNonPluginEntrys

-	 * @return INonPluginEntry[]

-	 */

-	private INonPluginEntry[] filterNonPluginEntry(INonPluginEntry[] all) {

-		List list = new ArrayList();

-		if (all!=null){

-			for (int i = 0; i < all.length; i++) {

-				if (UpdateManagerUtils.isValidEnvironment(all[i]))

-					list.add((INonPluginEntry)all[i]);

-			}

-		}

-		

-		INonPluginEntry[] result = new INonPluginEntry[list.size()];

-		if (!list.isEmpty()){

-			list.toArray(result);

-		}

-		

-		return result;

-	}

-

-

-	/**

-	 * @see org.eclipse.update.core.IFeature#getRawPluginEntries()

-	 */

-	public IPluginEntry[] getPluginEntries() {

-		return filterPluginEntry(getRawPluginEntries());

-	}

-

-	/**

-	 * @see org.eclipse.update.core.IFeature#getImports()

-	 */

-	public IImport[] getImports() {

-		return filterImports(getRawImports());

-	}

-	

-	/**

-	 * Method filterImports.

-	 * @param iImports

-	 * @return IImport[]

-	 */

-	private IImport[] filterImports(IImport[] all) {

-		List list = new ArrayList();

-		if (all!=null){

-			for (int i = 0; i < all.length; i++) {

-				if (UpdateManagerUtils.isValidEnvironment(all[i]))

-					list.add((IImport)all[i]);

-			}

-		}

-		

-		IImport[] result = new IImport[list.size()];

-		if (!list.isEmpty()){

-			list.toArray(result);

-		}

-		

-		return result;

-	}

-

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureContentProvider.java
deleted file mode 100644
index bbeffa1..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureContentProvider.java
+++ /dev/null
@@ -1,448 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.io.*;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.InternalSiteManager;

-import org.eclipse.update.internal.core.Policy;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Base implementation of a feature content provider.

- * This class provides a set of helper methods useful for implementing

- * feature content providers. In particular, methods dealing with

- * downloading and caching of feature files. 

- * <p>

- * This class must be subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IFeatureContentProvider

- * @since 2.0

- */

-public abstract class FeatureContentProvider implements IFeatureContentProvider {

-

-

-	private static final boolean SWITCH_COPY_LOCAL = true; 

-	

-	/**

-	 * 

-	 */

-	public class FileFilter {

-

-		private String filterString = null;

-		private IPath filterPath = null;

-

-		/**

-		 * Constructor for FileFilter.

-		 */

-		public FileFilter(String filter) {

-			super();

-			this.filterString = filter;

-			this.filterPath = new Path(filter);

-		}

-

-		/**

-		 * returns true if the name matches the rule

-		 */

-		public boolean accept(String name) {

-

-			if (name == null)

-				return false;

-

-			// no '*' pattern matching

-			// must be equals

-			IPath namePath = new Path(name);

-			if (filterPath.lastSegment().indexOf('*') == -1) {

-				return filterPath.equals(namePath);

-			}

-

-			// check same file extension  if extension exists (a.txt/*.txt)

-			// or same file name (a.txt,a.*)

-			String extension = filterPath.getFileExtension();

-			if (!extension.equals("*")) {

-				if (!extension.equalsIgnoreCase(namePath.getFileExtension()))

-					return false;

-			} else {

-				IPath noExtension = filterPath.removeFileExtension();

-				String fileName = noExtension.lastSegment();

-				if (!fileName.equals("*")) {

-					if (!namePath.lastSegment().startsWith(fileName))

-						return false;

-				}

-			}

-

-			// check same path

-			IPath p1 = namePath.removeLastSegments(1);

-			IPath p2 = filterPath.removeLastSegments(1);

-			return p1.equals(p2);

-		}

-

-	}

-

-	private URL base;

-	private IFeature feature;

-	private File tmpDir; // local work area for each provider

-	public static final String JAR_EXTENSION = ".jar"; //$NON-NLS-1$	

-

-	private static final String DOT_PERMISSIONS = "permissions.properties";

-	private static final String EXECUTABLES = "permissions.executable";

-

-	// lock

-	private final static Object lock = new Object();

-

-	/**

-	 * Feature content provider constructor

-	 * 

-	 * @param base feature URL. The interpretation of this URL 

-	 * is specific to each content provider.

-	 * @since 2.0

-	 */

-	public FeatureContentProvider(URL base) {

-		this.base = base;

-		this.feature = null;

-	}

-

-	/**

-	 * Returns the feature url. 

-	 * @see IFeatureContentProvider#getURL()

-	 */

-	public URL getURL() {

-		return base;

-	}

-

-	/**

-	 * Returns the feature associated with this content provider.

-	 * @see IFeatureContentProvider#getFeature()

-	 */

-	public IFeature getFeature() {

-		return feature;

-	}

-

-	/**

-	 * Sets the feature associated with this content provider.

-	 * @see IFeatureContentProvider#setFeature(IFeature)

-	 */

-	public void setFeature(IFeature feature) {

-		this.feature = feature;

-	}

-

-	/**

-	 * Returns the specified reference as a local file system reference.

-	 * If required, the file represented by the specified content

-	 * reference is first downloaded to the local system

-	 * 

-	 * @param ref content reference

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @exception IOException

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public ContentReference asLocalReference(ContentReference ref, InstallMonitor monitor) throws  IOException, CoreException {

-

-		// check to see if this is already a local reference

-		if (ref.isLocalReference())

-			return ref;

-

-		// check to see if we already have a local file for this reference

-		String key = ref.toString();

-

-		// need to synch as another thread my have created the file but

-		// is still copying into it

-		File localFile = null;

-		synchronized (lock) {

-

-			localFile = Utilities.lookupLocalFile(key);

-			if (localFile != null)

-				return ref.createContentReference(ref.getIdentifier(), localFile);

-			// 

-			// download the referenced file into local temporary area

-			InputStream is = null;

-			OutputStream os = null;

-			localFile = Utilities.createLocalFile(getWorkingDirectory(), null /*name*/

-			);

-			boolean sucess = false;

-			if (monitor != null) {

-				monitor.saveState();

-				monitor.setTaskName(Policy.bind("FeatureContentProvider.Downloading"));

-				//$NON-NLS-1$

-				monitor.subTask(ref.getIdentifier() + " "); //$NON-NLS-1$

-				monitor.setTotalCount(ref.getInputSize());

-				monitor.showCopyDetails(true);

-			}

-

-			try {

-				try {

-					is = ref.getInputStream();

-				} catch (IOException e) {

-					throw Utilities.newCoreException(Policy.bind("FeatureContentProvider.UnableToRetrieve", new Object[] { ref }), e);

-				}

-

-				try {

-					os = new BufferedOutputStream(new FileOutputStream(localFile));

-				} catch (FileNotFoundException e) {

-					throw Utilities.newCoreException(Policy.bind("FeatureContentProvider.UnableToCreate", new Object[] { localFile }), e);

-				}

-

-				Date start = new Date();				

-				Utilities.copy(is, os, monitor);

-				Date stop = new Date();

-				long timeInseconds = (stop.getTime()-start.getTime())/1000; // time in milliseconds /1000 = time in seconds

-				InternalSiteManager.downloaded(ref.getInputSize(),(timeInseconds),ref.asURL());

-				

-				sucess = true;

-				

-				// file is downloaded succesfully, map it 

-				Utilities.mapLocalFile(key,localFile);

-			} catch (ClassCastException e) {

-				throw Utilities.newCoreException(Policy.bind("FeatureContentProvider.UnableToCreate", new Object[] { localFile }), e);

-			} finally {

-				//Do not close IS if user cancel,

-				//closing IS will read the entire Stream until the end

-				if (sucess && is != null)

-					try {

-						is.close();

-					} catch (IOException e) {

-					}

-				if (os != null)

-					try {

-						os.close(); // should flush buffer stream

-					} catch (IOException e) {

-					}

-				if (monitor != null)

-					monitor.restoreState();

-			}

-		} // end lock

-		ContentReference reference = ref.createContentReference(ref.getIdentifier(), localFile);

-		return reference;

-	}

-

-	/**

-	 * Returns the specified reference as a local file.

-	 * If required, the file represented by the specified content

-	 * reference is first downloaded to the local system

-	 * 

-	 * @param ref content reference

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @exception IOException	

-	 * @exception CoreException  

-	 * @since 2.0

-	 */

-	public File asLocalFile(ContentReference ref, InstallMonitor monitor) throws IOException, CoreException {

-		File file = ref.asFile();

-		if (file != null && !SWITCH_COPY_LOCAL)

-			return file;

-		ContentReference localRef = asLocalReference(ref, monitor);

-		file = localRef.asFile();

-		return file;

-	}

-

-	/**

-	 * Returns working directory for this content provider

-	 * 

-	 * @return working directory

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	protected File getWorkingDirectory() throws IOException {

-		if (tmpDir == null)

-			tmpDir = Utilities.createWorkingDirectory();

-		return tmpDir;

-	}

-

-	/**

-	 * Returns the total size of all archives required for the

-	 * specified plug-in and non-plug-in entries (the "packaging" view).

-	 * @see IFeatureContentProvider#getDownloadSizeFor(IPluginEntry[], INonPluginEntry[])

-	 */

-	public long getDownloadSizeFor(IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries) {

-		long result = 0;

-

-		// if both are null or empty, return UNKNOWN size

-		if ((pluginEntries == null || pluginEntries.length == 0) && (nonPluginEntries == null || nonPluginEntries.length == 0)) {

-			return ContentEntryModel.UNKNOWN_SIZE;

-		}

-

-		// loop on plugin entries

-		long size = 0;

-		if (pluginEntries != null)

-			for (int i = 0; i < pluginEntries.length; i++) {

-				size = ((PluginEntryModel) pluginEntries[i]).getDownloadSize();

-				if (size == ContentEntryModel.UNKNOWN_SIZE) {

-					return ContentEntryModel.UNKNOWN_SIZE;

-				}

-				result += size;

-			}

-

-		// loop on non plugin entries

-		if (nonPluginEntries != null)

-			for (int i = 0; i < nonPluginEntries.length; i++) {

-				size = ((NonPluginEntryModel) nonPluginEntries[i]).getDownloadSize();

-				if (size == ContentEntryModel.UNKNOWN_SIZE) {

-					return ContentEntryModel.UNKNOWN_SIZE;

-				}

-				result += size;

-			}

-

-		return result;

-	}

-

-	/**

-	 * Returns the total size of all files required for the

-	 * specified plug-in and non-plug-in entries (the "logical" view).

-	 * @see IFeatureContentProvider#getInstallSizeFor(IPluginEntry[], INonPluginEntry[])

-	 */

-	public long getInstallSizeFor(IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries) {

-		long result = 0;

-

-		// if both are null or empty, return UNKNOWN size

-		if ((pluginEntries == null || pluginEntries.length == 0) && (nonPluginEntries == null || nonPluginEntries.length == 0)) {

-			return ContentEntryModel.UNKNOWN_SIZE;

-		}

-

-		// loop on plugin entries

-		long size = 0;

-		if (pluginEntries != null)

-			for (int i = 0; i < pluginEntries.length; i++) {

-				size = ((PluginEntryModel) pluginEntries[i]).getInstallSize();

-				if (size == ContentEntryModel.UNKNOWN_SIZE) {

-					return ContentEntryModel.UNKNOWN_SIZE;

-				}

-				result += size;

-			}

-

-		// loop on non plugin entries

-		if (nonPluginEntries != null)

-			for (int i = 0; i < nonPluginEntries.length; i++) {

-				size = ((NonPluginEntryModel) nonPluginEntries[i]).getInstallSize();

-				if (size == ContentEntryModel.UNKNOWN_SIZE) {

-					return ContentEntryModel.UNKNOWN_SIZE;

-				}

-				result += size;

-			}

-

-		return result;

-	}

-

-	/**

-	 * Returns the path identifier for a plugin entry.

-	 * <code>plugins/&lt;pluginId>_&lt;pluginVersion>.jar</code> 

-	 * @return the path identifier

-	 */

-	protected String getPathID(IPluginEntry entry) {

-		return Site.DEFAULT_PLUGIN_PATH + entry.getVersionedIdentifier().toString() + JAR_EXTENSION;

-	}

-

-	/**

-	 * Returns the path identifer for a non plugin entry.

-	 * <code>features/&lt;featureId>_&lt;featureVersion>/&lt;dataId></code>

-	 * @return the path identifier

-		 */

-	protected String getPathID(INonPluginEntry entry) {

-		String nonPluginBaseID = Site.DEFAULT_FEATURE_PATH + feature.getVersionedIdentifier().toString() + "/";

-		//$NON-NLS-1$

-		return nonPluginBaseID + entry.getIdentifier();

-	}

-

-	/**

-	 * Sets the permission of all the ContentReferences

-	 * Check for the .permissions contentReference and use it

-	 * to set the permissions of other ContentReference 

-	 * 

-	 * @return void

-		 */

-	protected void validatePermissions(ContentReference[] references) {

-

-		if (references == null || references.length == 0)

-			return;

-

-		Map permissions = getPermissions(references);

-		if (permissions.isEmpty())

-			return;

-

-		for (int i = 0; i < references.length; i++) {

-			ContentReference contentReference = references[i];

-			String id = contentReference.getIdentifier();

-			Object value = null;

-			if ((value = matchesOneRule(id, permissions)) != null) {

-				Integer permission = (Integer) value;

-				contentReference.setPermission(permission.intValue());

-			}

-		}

-	}

-

-	/**

-	 * Returns the value of the matching rule or <code>null</code> if none found.

-	 * A rule is matched if the id is equals to a key, or if the id is resolved by a key.

-	 * if the id is <code>/path/file.txt</code> it is resolved by <code>/path/*</code>

-	 * or <code>/path/*.txt</code>

-	 * 

-	 * @param id the identifier

-	 * @param permissions list of rules

-	 * @return Object the value of the matcing rule or <code>null</code>

-	 */

-	private Object matchesOneRule(String id, Map permissions) {

-

-		Set keySet = permissions.keySet();

-		Iterator iter = keySet.iterator();

-		while (iter.hasNext()) {

-			FileFilter rule = (FileFilter) iter.next();

-			if (rule.accept(id)) {

-				return permissions.get(rule);

-			}

-		}

-

-		return null;

-	}

-

-	/*

-	 * returns the permission MAP 

-	 */

-	private Map getPermissions(ContentReference[] references) {

-

-		Map result = new HashMap();

-		// search for .permissions

-		boolean notfound = true;

-		ContentReference permissionReference = null;

-		for (int i = 0; i < references.length && notfound; i++) {

-			ContentReference contentReference = references[i];

-			if (DOT_PERMISSIONS.equals(contentReference.getIdentifier())) {

-				notfound = false;

-				permissionReference = contentReference;

-			}

-		}

-		if (notfound)

-			return result;

-

-		Properties prop = new Properties();

-		try {

-			prop.load(permissionReference.getInputStream());

-		} catch (IOException e) {

-			UpdateCore.warn("", e);

-		}

-

-		String executables = prop.getProperty(EXECUTABLES);

-		if (executables == null)

-			return result;

-

-		StringTokenizer tokenizer = new StringTokenizer(executables, ",");

-		Integer defaultExecutablePermission = new Integer(ContentReference.DEFAULT_EXECUTABLE_PERMISSION);

-		while (tokenizer.hasMoreTokens()) {

-			FileFilter filter = new FileFilter(tokenizer.nextToken());

-			result.put(filter, defaultExecutablePermission);

-		}

-

-		return result;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureReference.java
deleted file mode 100644
index 1e7c7fc..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/FeatureReference.java
+++ /dev/null
@@ -1,290 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.List;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.model.FeatureReferenceModel;
-import org.eclipse.update.core.model.SiteModel;
-import org.eclipse.update.internal.core.*;
-
-/**
- * Convenience implementation of a feature reference.
- * <p>
- * This class may be instantiated or subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.IFeatureReference
- * @see org.eclipse.update.core.model.FeatureReferenceModel
- * @since 2.0
- */
-public class FeatureReference extends FeatureReferenceModel implements IFeatureReference, IPlatformEnvironment {
-
-	private List categories;
-	private VersionedIdentifier versionId;
-
-	//PERF: new instance variable
-	private IFeature exactFeature;
-
-	/**
-	 * Feature reference default constructor
-	 */
-	public FeatureReference() {
-		super();
-	}
-
-	/**
-	 * Constructor FeatureReference.
-	 * @param ref the reference to copy
-	 */
-	public FeatureReference(IFeatureReference ref) {
-		super((FeatureReferenceModel) ref);
-		try {
-			setURL(ref.getURL());
-		} catch (CoreException e) {
-			UpdateCore.warn("", e);
-		}
-	}
-
-	/**
-	 * Constructor FeatureReference.
-	 * @param ref the reference to copy
-	 */
-	public FeatureReference(FeatureReferenceModel ref) {
-		super(ref);
-		try {
-			setURL(ref.getURL());
-		} catch (CoreException e) {
-			UpdateCore.warn("", e);
-		}
-	}
-
-	/**
-	 * Returns the feature this reference points to 
-	 * @return the feature on the Site
-	 * @deprecated
-	 */
-	public IFeature getFeature() throws CoreException {
-		return getFeature(null);
-	}
-
-	/**
-	 * Returns the feature this reference points to 
-	 *  @return the feature on the Site
-	 */
-	public IFeature getFeature(IProgressMonitor monitor) throws CoreException {
-
-		if (exactFeature != null)
-			return exactFeature;
-		exactFeature = getFeature(this,monitor);
-		return exactFeature;
-	}
-
-	/**
-	 * Returns the feature the reference points to 
-	 * @param the feature reference
-	 * @return the feature on the Site
-	 */
-	protected IFeature getFeature(IFeatureReference ref,IProgressMonitor monitor) throws CoreException {
-
-		IFeature feature = null;
-		URL refURL = ref.getURL();
-		feature = createFeature(refURL,monitor);
-		return feature;
-	}
-
-	/*
-	 * create an instance of a concrete feature corresponding to this reference
-	 */
-	private IFeature createFeature(URL url,IProgressMonitor monitor) throws CoreException {
-		String type = getType();
-		ISite site = getSite();
-		// if the site exists, use the site factory
-		if (site != null) {
-			return site.createFeature(type, url, monitor);
-		}
-		
-		IFeatureFactory factory = FeatureTypeFactory.getInstance().getFactory(type);
-		return factory.createFeature(url, site, monitor);
-	}
-
-	/**
-	 * Returns the update site for the referenced feature
-	 * 
-	 * @see IFeatureReference#getSite()
-	 * @since 2.0 
-	 */
-	public ISite getSite() {
-		return (ISite) getSiteModel();
-	}
-
-	/** 
-	 * Sets the feature reference URL.
-	 * This is typically performed as part of the feature reference creation
-	 * operation. Once set, the url should not be reset.
-	 * 
-	 * @see IFeatureReference#setURL(URL)
-	 * @since 2.0 
-	 */
-	public void setURL(URL url) throws CoreException {
-		if (url != null) {
-			setURLString(url.toExternalForm());
-			try {
-				resolve(url, null);
-			} catch (MalformedURLException e) {
-				throw Utilities.newCoreException(Policy.bind("FeatureReference.UnableToResolveURL", url.toExternalForm()), e);
-				//$NON-NLS-1$
-			}
-		}
-	}
-
-	/**
-	 * Associates a site with the feature reference.
-	 * This is typically performed as part of the feature reference creation
-	 * operation. Once set, the site should not be reset.
-	 * 
-	 * @see IFeatureReference#setSite(ISite)
-	 * @since 2.0 
-	 */
-	public void setSite(ISite site) {
-		setSiteModel((SiteModel) site);
-	}
-
-	/**
-	* Returns the feature identifier.
-	* 
-	* @see IFeatureReference#getVersionedIdentifier()
-	* @since 2.0
-	*/
-	public VersionedIdentifier getVersionedIdentifier() {
-
-		if (versionId != null)
-			return versionId;
-
-		String id = getFeatureIdentifier();
-		String ver = getFeatureVersion();
-		if (id != null && ver != null) {
-			try {
-				versionId = new VersionedIdentifier(id, ver);
-				return versionId;
-			} catch (Exception e) {
-				UpdateCore.warn("Unable to create versioned identifier:" + id + ":" + ver);
-			}
-		}
-
-		// we need the exact match or we may have an infinite loop
-		versionId = new VersionedIdentifier(getURL().toExternalForm(), null);
-		try {
-			versionId = getFeature().getVersionedIdentifier();
-		} catch (CoreException e) {
-			UpdateCore.warn("", e);
-		}
-		return versionId;
-	}
-
-	/**
-	 * @see org.eclipse.update.core.IFeatureReference#getName()
-	 */
-	public String getName() {
-		if (super.getLabel() != null)
-			return super.getLabel();
-		try {
-			return getFeature().getLabel();
-		} catch (CoreException e) {
-			return getVersionedIdentifier().toString();
-		}
-	}
-
-	/**
-	 * Get optional operating system specification as a comma-separated string.
-	 *
-	 * @see org.eclipse.core.boot.BootLoader
-	 * @return the operating system specification string, or <code>null</code>.
-	 * @since 2.1
-	 */
-	public String getOS() {
-		if (super.getOS() == null && getURL()!=null)
-			try {
-				return getFeature().getOS();
-			} catch (CoreException e) {
-				return null;
-			}
-		return super.getOS();
-	}
-
-	/**
-	 * Get optional windowing system specification as a comma-separated string.
-	 *
-	 * @see org.eclipse.core.boot.BootLoader
-	 * @return the windowing system specification string, or <code>null</code>.
-	 * @since 2.1
-	 */
-	public String getWS() {
-		if (super.getWS() == null && getURL()!=null)
-			try {
-				return getFeature().getWS();
-			} catch (CoreException e) {
-				return null;
-			}
-		return super.getWS();
-	}
-
-	/**
-	 * Get optional system architecture specification as a comma-separated string.
-	 *
-	 * @see org.eclipse.core.boot.BootLoader
-	 * @return the system architecture specification string, or <code>null</code>.
-	 * @since 2.1
-	 */
-	public String getOSArch() {
-		if (super.getOSArch() == null && getURL()!=null)
-			try {
-				return getFeature().getOSArch();
-			} catch (CoreException e) {
-				return null;
-			}
-		return super.getOSArch();
-	}
-
-	/**
-	 * Get optional locale specification as a comma-separated string.
-	 *
-	 * @return the locale specification string, or <code>null</code>.
-	 * @since 2.1
-	 */
-	public String getNL() {
-		if (super.getNL() == null && getURL()!=null)
-			try {
-				return getFeature().getNL();
-			} catch (CoreException e) {
-				return null;
-			}
-		return super.getNL();
-	}
-
-	/**
-	 * Returns <code>true</code> if this feature is patching another feature,
-	 * <code>false</code> otherwise
-	 * @return boolean
-	 */
-	public boolean isPatch() {
-		if (super.getPatch() == null)
-			try {
-				return getFeature().isPatch();
-			} catch (CoreException e) {
-				return false;
-			}
-		return "true".equalsIgnoreCase(super.getPatch());
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IArchiveReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IArchiveReference.java
deleted file mode 100644
index cd8c482..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IArchiveReference.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Site archive interface.
- * Site archive is a representation of a packaged archive (file) located
- * on an update site. It allows a "symbolic" path used to identify
- * a plug-in or non-plug-in feature entry to be explicitly mapped
- * to a specific URL. 
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly instantiate or subclass the provided implementation of this 
- * interface.
- * </p>
- * @see org.eclipse.update.core.ArchiveReference
- * @since 2.0
- */
-public interface IArchiveReference extends IAdaptable {
-
-	/** 
-	 * 
-	 * @return the archive "symbolic" path, or <code>null</code>
-	 * @since 2.0 
-	 */
-	public String getPath();
-
-	/**
-	 * Retrieve the site archive URL 
-	 * 
-	 * @return the archive URL, or <code>null</code>
-	 * @since 2.0 
-	 */
-	public URL getURL();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ICategory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ICategory.java
deleted file mode 100644
index 331ec20..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ICategory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.IAdaptable;

-

-/**

- * Feature category definition.

- * A site can organize its features into categories. Categories

- * can be further organized into hierarchies. Each category name

- * is a composed of the name of its parent and a simple identifier

- * separated by a slash ("/"). For example <code>tools/utilities/print</code>

- * defines a category that is a child of <code>tools/utilities</code> and

- * grandchild of <code>tools</code>.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.Category

- * @since 2.0

- */

-public interface ICategory  extends IAdaptable{

-

-	/** 

-	 * Retrieve the name of the category. The name can be a simple

-	 * token (root category) or a number of slash-separated ("/") 

-	 * tokens.

-	 * 

-	 * @return the category name

-	 * @since 2.0 

-	 */

-	public String getName();

-

-	/**

-	 * Retrieve the displayable label for the category

-	 * 

-	 * @return displayable category label, or <code>null</code>

-	 * @since 2.0 

-	 */

-	public String getLabel();

-

-	/** 

-	 * Retrieve the detailed category description

-	 * 

-	 * @return category description, or <code>null</code>

-	 * @since 2.0 

-	 */

-	public IURLEntry getDescription();

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IContentConsumer.java
deleted file mode 100644
index 6ed3a76..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IContentConsumer.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-

-/**

- * Generic content consumer.

- * A generic content consumer is used to store plug-in and non-plug-in files

- * for a feature.

- * <p>

- * Clients may implement this interface. However, in most cases clients 

- * will only use the content consumer provided by the feature type(s)

- * implemented by the platform.

- * </p>

- * @see org.eclipse.update.core.IFeatureContentConsumer

- * @since 2.0

- */

-public interface IContentConsumer {

-

-	/**

-	 * Stores a file.

-	 * 

-	 * @see IFeatureContentConsumer#open(IPluginEntry)

-	 * @see IFeatureContentConsumer#open(INonPluginEntry)

-	 * @param ContentReference reference to the file to store

-	 * @param IProgressMonitor progress monitor, can be <code>null</code>

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Indicates successful completion of the store operations for this

-	 * consumer

-	 * 

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public void close() throws CoreException;

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeature.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeature.java
deleted file mode 100644
index ddabfcd..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeature.java
+++ /dev/null
@@ -1,477 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.model.InstallAbortedException;

-

-/**

- * Feature defines the packaging "container" for a group of related plug-ins,

- * plug-in fragments, and optionally non-plug-in files. 

- * <p>

- * Features are treated purely as an installation and packaging construct. 

- * They do not play a role during Eclipse plug-in execution.

- * They are simply an inclusive "manifest" of the plug-ins, fragments 

- * and other files that make up that feature. If features are logically made 

- * up of plug-ins from "sub-features", the top-level feature "manifest"

- * must be fully resolved at packaging time.

- * </p>

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.Feature

- * @since 2.0

- */

-public interface IFeature extends IAdaptable, IPlatformEnvironment {

-

-	/**

-	 * Indicates a 'happy' feature

-	 * A feature is considered to be 'happy' in the context of a local site

-	 * if all the plug-ins referenced by the feature are installed on the site and no other

-	 * version of any of the plug-ins are installed on any other site of the local site.

-	 * 

-	 * @see ILocalSite#getStatus(IFeature)

-	 * @since 2.0

-	 */

-	public static final int STATUS_HAPPY = 0;

-

-	/**

-	 * Indicates a 'happy' feature

-	 * A feature is considered to be 'ambiguous' in the context of a local site

-	 * if all the plug-ins referenced by the feature are installed on the site and other

-	 * version of any of the plug-ins are installed on any other site of the local site.

-	 * 

-	 * @see ILocalSite#getStatus(IFeature)

-	 * @since 2.0

-	 */	

-	public static final int STATUS_AMBIGUOUS = 1;

-	

-	/**

-	 * Indicates an 'unhappy' feature

-	 * A feature is considered to be 'unhappy' in the context of this site,

-	 * if some of the plug-ins referenced by the feature are not installed on this site.

-	 * 

-	 * @see ILocalSite#getStatus(IFeature)

-	 * @since 2.0

-	 */	

-	public static final int STATUS_UNHAPPY = 2;

-	

-	

-	/**

-	 * Indicates a disable feature

-	 * 

-	 * @see ILocalSite#getStatus(IFeature)

-	 * @since 2.0.2

-	 */	

-	public static final int STATUS_DISABLED = -1;

-		

-	/**

-	 * Indicates the one-click update will search the 

-	 * location of the nesting root feature.

-	 * 

-	 * @since 2.0.1

-	 */	

-	public static final int SEARCH_LOCATION_DEFAULT = 0;	

-

-	/**

-	 * Indicates the one-click update will search the 

-	 * location defined by the feature.

-	 * 

-	 * @since 2.0.1

-	 */	

-	public static final int SEARCH_LOCATION_FEATURE = 1;	

-

-	/**

-	 * Indicates the one-click update will search both the 

-	 * location of the nesting root feature and the 

-	 * location defined by the feature.

-	 * 

-	 * @since 2.0.1

-	 */	

-	public static final int SEARCH_LOCATION_BOTH = 2;	

-

-	

-	/**

-	 * Returns the feature identifier.

-	 * 

-	 * @return the feature identifier.

-	 * @since 2.0 

-	 */

-	public VersionedIdentifier getVersionedIdentifier();

-

-	/**

-	 * Returns the site this feature is associated with.

-	 * 

-	 * @return the site for this feature

-	 * @since 2.0 

-	 */

-	public ISite getSite();

-

-	/**

-	 * Returns the displayable label of the feature.

-	 * 

-	 * @return feature label, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getLabel();

-

-	/**

-	 * Returns the feature URL.

-	 * This is the URL that was used to create the feature. The interpretation

-	 * of the URL is dependent on the concrete feature implementation.  * 

-	 * 

-	 * @see IFeatureFactory#createFeature(URL, ISite)

-	 * @return feature URL

-	 * @since 2.0 

-	 */

-	public URL getURL();

-

-	/**

-	 * Returns an information entry referencing the location of the

-	 * feature update site. The update site can be accessed to obtain

-	 * feature updates for this feature.

-	 * 

-	 * @return update site entry, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public IURLEntry getUpdateSiteEntry();

-

-	/**

-	 * Return an array of information entries referencing locations of other

-	 * update sites. This mechanism can be used by features to distribute

-	 * location information about general update sites to clients.

-	 * 

-	 * @return an array of site entries, or an empty array.

-	 * @since 2.0 

-	 */

-	public IURLEntry[] getDiscoverySiteEntries();

-

-	/**

-	 * Returns a displayable label identifying the provider of this feature

-	 * 

-	 * @return provider label, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getProvider();

-

-	/**

-	 * Returns and optional custom install handler entry.

-	 * 

-	 * @return install handler entry, or <code>null</code> if

-	 * none was specified

-	 * @since 2.0

-	 */

-	public IInstallHandlerEntry getInstallHandlerEntry();

-

-	/**

-	 * Returns the feature description.

-	 * 

-	 * @return feature rescription, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public IURLEntry getDescription();

-

-	/**

-	 * Returns the copyright information for the feature.

-	 * 

-	 * @return copyright information, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public IURLEntry getCopyright();

-

-	/**

-	 * Returns the license information for the feature.

-	 * 

-	 * @return feature license, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public IURLEntry getLicense();

-

-	/**

-	 * Return optional image for the feature.

-	 * 

-	 * @return the URL pointing to the image, , or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public URL getImage();

-

-	/**

-	 * Return a list of plug-in dependencies for this feature. A plug-in

-	 * dependency is a reference to a plug-in required for feature execution

-	 * that is not packaged as part of the feature.

-	 * filtered by the operating system, windowing system and architecture system

-	 * set in <code>Sitemanager</code>

-	 * 

-	 * @return the list of required plug-in dependencies, or an empty array.

-	 * @since 2.0 

-	 */

-	public IImport[] getImports();

-

-	/**

-	 * Return a list of plug-in dependencies for this feature. A plug-in

-	 * dependency is a reference to a plug-in required for feature execution

-	 * that is not packaged as part of the feature.

- 	 * No filtering occurs

-	 * 

-	 * @return the list of required plug-in dependencies, or an empty array.

-	 * @since 2.1

-	 */

-	public IImport[] getRawImports();

-	

-	/**

-	 * Return the identifier of the primary plugin associated to this feature

-	 * or <code>null</code> if the feature is not a primary feature.

-	 * If the primary plugin id is not specified and the feature is a primary

-	 * feature, returns the feature identifier.

-	 * 

-	 * @return the identifier of the associated primary plugin or <code>null</code>

-	 * @since 2.1 

-	 */

-	public String getPrimaryPluginID();

-

-

-	/**

-	 * Install the contents of this feature into the specified target feature.

-	 * All optional features will be installed

-	 * 

-	 * @param targetFeature

-	 * @param verificationListener

-	 * @param monitor

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public IFeatureReference install(

-		IFeature targetFeature,

-		IVerificationListener verificationListener,

-		IProgressMonitor monitor)

-		throws InstallAbortedException,CoreException;

-

-	/**

-	 * Install the contents of this feature into the specified target feature.

-	 * Only the listed optional features will be installed.

-	 * 

-	 * @param targetFeature

-	 * @param optionalFeatures the optional features to be installed

-	 * @param verificationListener

-	 * @param monitor

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @since 2.0.1

-	 */

-	public IFeatureReference install(

-		IFeature targetFeature,

-		IFeatureReference[] optionalFeatures,

-		IVerificationListener verificationListener,

-		IProgressMonitor monitor)

-		throws InstallAbortedException,CoreException;

-

-	/**

-	 * Returns an array of feature references included by this feature

-	 * filtered by the operating system, windowing system and architecture system

-	 * set in <code>Sitemanager</code>

-	 * 

-	 * @return an erray of feature references, or an empty array.

-	 * @since 2.0

-	 */

-	public IIncludedFeatureReference[] getIncludedFeatureReferences() throws CoreException;

-

-	/**

-	 * Returns an array of feature references included by this feature

-	 * No filtering occurs

-	 * 

-	 * @return an erray of feature references, or an empty array.

-	 * @since 2.0

-	 */

-	public IIncludedFeatureReference[] getRawIncludedFeatureReferences() throws CoreException;

-

-	/**

-	 * Returns an array of plug-in entries referenced by this feature

-	 * filtered by the operating system, windowing system and architecture system

-	 * set in <code>Sitemanager</code>

-	 * 

-	 * @return an erray of plug-in entries, or an empty array.

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getPluginEntries();

-

-	/**

-	 * Returns an array of plug-in entries referenced by this feature

-	 * No filtering occurs

-	 * 

-	 * @return an erray of plug-in entries, or an empty array.

-	 * @since 2.1

-	 */

-	public IPluginEntry[] getRawPluginEntries();

-

-	/**

-	 * Returns the count of referenced plug-in entries.

-	 * 

-	 * @return plug-in entry count

-	 * @since 2.0

-	 */

-	public int getPluginEntryCount();

-

-	/**

-	 * Returns an array of non-plug-in entries referenced by this feature

-	 * filtered by the operating system, windowing system and architecture system

-	 * set in <code>Sitemanager</code>

-	 * 

-	 * @return an erray of non-plug-in entries, or an empty array.

-	 * @since 2.0

-	 */

-	public INonPluginEntry[] getNonPluginEntries();

-

-	/**

-	 * Returns an array of non-plug-in entries referenced by this feature

-	 * No filtering occurs

-	 * 

-	 * @return an erray of non-plug-in entries, or an empty array.

-	 * @since 2.1

-	 */

-	public INonPluginEntry[] getRawNonPluginEntries();

-

-	/**

-	 * Returns the count of referenced non-plug-in entries.

-	 * 

-	 * @return non-plug-in entry count

-	 * @since 2.0

-	 */

-	public int getNonPluginEntryCount();

-

-	/**

-	 * Returns the download size of the feature, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return download size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getDownloadSize();

-

-	/**

-	 * Returns the install size of the feature, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return install size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getInstallSize();

-

-	/**

-	 * Indicates whether the feature can be used as a primary feature.

-	 * 

-	 * @return <code>true</code> if this is a primary feature, 

-	 * otherwise <code>false</code>

-	 * @since 2.0 

-	 */

-	public boolean isPrimary();

-	

-	/**

-	 * Indicates whether the feature must be processed alone during installation

-	 * and configuration. Features that are not exclusive can be installed in a

-	 * batch.

-	 * 

-	 * @return <code>true</code> if feature requires exclusive processing,

-	 * <code>false</code> otherwise.

-	 * @since 2.1

-	 */

-	public boolean isExclusive();

-

-	/**

-	 * Returns an optional identifier of an application to be used when

-	 * starting up the platform with this feature as the primary feature.

-	 * The application identifier must represent a valid application registered

-	 * in the <code>org.eclipse.core.runtime.applications</code> extension point.

-	 * 

-	 * @return application identifier, or <code>null</code>

-	 * @since 2.0 

-	 */

-	public String getApplication();

-	

-	/**

-	 * Returns an optional identifier of a colocation affinity feature.

-	 * 

-	 * @return feature identifier, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getAffinityFeature();

-

-	/**

-	 * Returns the content provider for this feature. A content provider

-	 * is an abstraction of each feature internal packaging structure.

-	 * It allows the feature content to be accessed in a standard way

-	 * regardless of the internal packaging. All concrete features

-	 * need to be able to return a content provider.

-	 * 

-	 * @return feature content provider

-	 * @exception CoreExcepton

-	 * @since 2.0

-	 */

-	public IFeatureContentProvider getFeatureContentProvider()

-		throws CoreException;

-

-	/**

-	 * Returns the content consumer for this feature. A content consumer

-	 * is an abstraction of each feature internal packaging mechanism.

-	 * It allows content to be stored into a feature in a standard way

-	 * regardless of the packaging mechanism used. Only concrete features

-	 * that support storing need to implement a content consumer. The platform

-	 * implements at least one feature type supporting content consumer.

-	 * This is the feature type representing a locally-installed

-	 * feature.

-	 * 

-	 * @return feature content consumer

-	 * @exception CoreException

-	 * @exception UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public IFeatureContentConsumer getFeatureContentConsumer()

-		throws CoreException;

-

-	/**

-	 * Sets the site for this feature. This is typically performed as part

-	 * of the feature creation operation. Once set, the site

-	 * should not be reset.

-	 * 

-	 * @param site the site

-	 * @throws CoreException site for this feature is already set

-	 * @since 2.0 

-	 */

-	public void setSite(ISite site) throws CoreException;

-

-	/**

-	 * Sets the content provider for this feature. This is typically

-	 * performed as part of the feature creation operation. Once set, the 

-	 * provider should not be reset.

-	 * 

-	 * @see IFeatureFactory#createFeature(URL, ISite)

-	 * @param featureContentProvider content provider

-	 * @since 2.0

-	 */

-	public void setFeatureContentProvider(IFeatureContentProvider featureContentProvider);

-

-	/**

-	 * Returns <code>true</code> if this feature is patching another feature,

-	 * <code>false</code> otherwise

-	 * @return boolean

-	 * @since 2.1

-	 */

-	public boolean isPatch();

-

-

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentConsumer.java
deleted file mode 100644
index 1efa2d1..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentConsumer.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-

-/**

- * Feature content consumer.

- * A feature content consumer is an abstraction of each feature internal

- * packaging mechanism. It allows content to be stored into a feature in

- * a standard way regardless of the packaging mechanism used. Only concrete

- * features that support storing need to implement a content consumer. 

- * The platform implements at least one feature type supporting content

- * consumer. This is the feature type representing a locally-installed

- * feature.

- * <p>

- * A feature content consumer delegates the storage of plug-in and 

- * non-plug-in files to a generic content consumer.

- * </p>

- * <p>

- * Clients may implement this interface. However, in most cases clients 

- * will only use the feature content consumer provided by the feature type(s)

- * implemented by the platform.

- * </p>

- * @see org.eclipse.update.core.IContentConsumer

- * @since 2.0

- */

-public interface IFeatureContentConsumer {

-

-	

-	/**

-	 * Store a feature file.

-	 * Note that only the feature definition files should be stored using

-	 * this method. Plug-in files and non-plug-in data files should be

-	 * stored using the content consumers corresponding to their respective

-	 * entries.

-	 * 

-	 * @see #open(IPluginEntry)

-	 * @see #open(INonPluginEntry)	 

-	 * @param ContentReference content reference to feature file

-	 * @param IProgressMonitor progress monitor, can be <code>null</code>

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Opens a generic content consumer for the specified plug-in entry.

-	 * Plug-in files corresponding to this entry should be stored

-	 * using this content consumer.

-	 * 

-	 * @param nonPluginEntry non-plug-in entry

-	 * @return generic content consumer for the entry

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public IContentConsumer open(IPluginEntry pluginEntry) throws CoreException;

-

-	/**

-	 * Opens a generic content consumer for the specified non-plug-in entry.

-	 * Non-plug-in files corresponding to this entry should be stored

-	 * using this content consumer.

-	 * 

-	 * @param nonPluginEntry non-plug-in entry

-	 * @return generic content consumer for the entry

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public IContentConsumer open(INonPluginEntry nonPluginEntry)

-		throws CoreException;

-

-	/**

-	 * Closes this content consumer. This indicates a successful completion

-	 * of the store operations. The content consumer commits any changes

-	 * made by this consumer.

-	 * 

-	 * @return reference to the newly populated feature

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public IFeatureReference close() throws CoreException;

-

-	/**

-	 * Closes this content consumer, indicating the store operations should

-	 * be aborted. The content consumer attempts to back out any changes

-	 * made by this content consumer.

-	 * 

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public void abort() throws CoreException;

-

-	/**

-	 * Sets the feature for this content consumer.

-	 * In general, this method should only be called as part of

-	 * feature creation. Once set, the feature should not be reset.

-	 * 

-	 * @param feature feature for this content consumer

-	 * @since 2.0

-	 */

-	public void setFeature(IFeature feature);

-

-	/**

-	 * Returns the feature for this content consumer.

-	 *

-	 * @return the feature for this content consumer

-	 * @since 2.0

-	 */

-	public IFeature getFeature();

-

-	/**

-	 * Sets the parent for this content consumer.

-	 * In general, this method should only be called as part of

-	 * feature creation. Once set, the feature should not be reset.

-	 * 

-	 * @param parent parent feature content consumer.

-	 * @since 2.0 

-	 */

-	public void setParent(IFeatureContentConsumer parent);

-

-	/**

-	 * Returns the feature content consumer that opened

-	 * this feature content consumer, or <code>null</code>

-	 * if this feature content consumer is a root feature

-	 * content consumer.

-	 *

-	 * @return the parent feature content consumer, or null.

-	 * @since 2.0

-	 */

-	public IFeatureContentConsumer getParent();

-

-	/**

-	 * Link the content consumer of the feature as a child

-	 * content consumer

-	 * 

-	 * @param feature the child feature.

-	 * @throws CoreException 

-	 * @since 2.0 

-	 */

-	public void addChild(IFeature feature) throws CoreException;

-

-	/**

-	 * Returns the feature content consumers that

-	 * this feature content consumer opened

-	 *

-	 * @return an array of feature content consumer, or en empty array.

-	 * @since 2.0

-	 */

-	public IFeatureContentConsumer[] getChildren();

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentProvider.java
deleted file mode 100644
index 6823d18..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureContentProvider.java
+++ /dev/null
@@ -1,264 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-

-/**

- * Feature content provider.

- * A feature content provider is an abstraction of each feature internal 

- * packaging structure. It allows the feature content to be accessed in

- * a standard way regardless of the internal packaging. All concrete feature

- * implementations need to implement a feature content provider.

- * <p>

- * There are two ways of looking at a feature content:

- * <ol>

- * <li>the "logical" view, which is a representation of the actual files that

- * make up the feature. These include any files that describe the feature

- * itself, files that are the actual implementation of referenced plug-ins,

- * and files that are the non-plug-in data files associated with the feature

- * <li>the "packaged" view, which is a set of related archive files that

- * contain the "logical" files.

- * </ol>

- * It is the responsibility of a feature content provider to manage the

- * mapping between the "packaged" and "logical" views.

- * </p>

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.FeatureContentProvider

- * @since 2.0

- */

-public interface IFeatureContentProvider {

-

-	/**

-	 * Returns the feature url. 

-	 * The exact interpretation of this URL is specific to each content

-	 * provider. Typically, the URL is a reference to a file that can be 

-	 * used directly, or indirectly, to determine the content of the feature.

-	 * 

-	 * @return feature url

-	 * @since 2.0

-	 */

-	public URL getURL();

-

-	/**

-	 * Returns a content reference to the feature manifest. The feature manifest

-	 * is an xml file, whose format is specified by the platform. Typically

-	 * a feature will contain the manifest as one of the packaged files.

-	 * For features that do not contain the manifest, or contain a manifest

-	 * that does not follow the specified format, this method returns

-	 * a reference to a computed manifest in the appropriate platform

-	 * format.

-	 * 

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return feature manifest reference, or <code>null</code> if the manifest cannot be found.

-	 * @since 2.0

-	 */

-	public ContentReference getFeatureManifestReference(InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references of all the "packaged"

-	 * archives that make up this feature. 

-	 * <p>

-	 * The number of returned references is dependent on each feature 

-	 * content provider (ie. is dependent on the packaging mechanism used

-	 * by the particular feature type).

-	 * </p>

-	 * 

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of references, or an empty array if no references

-	 * are found

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public ContentReference[] getArchiveReferences(InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references of the "packaged"

-	 * archives that contain the feature descriptive information.

-	 * <p>

-	 * In general, the feature descriptive information should be packaged

-	 * separately from the "bulk" of the actual feature content.

-	 * The feature entry archive(s) must be downloaded from an update

-	 * site in order to present information about the feature to the

-	 * client. Consequently, keeping the number and size of the feature

-	 * entry archive(s) to a minimum will speed up the responsiveness of the

-	 * user interface.

-	 * </p>

-	 * <p>

-	 * The number of returned references is dependent on each feature

-	 * content provider (ie. is dependent on the packaging mechanism used

-	 * by the particular feature type).

-	 * </p>

-	 * 

-	 * @see IFeatureContentProvider#getFeatureEntryContentReferences(InstallMonitor)

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of references, or an empty array if no references

-	 * are found

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public ContentReference[] getFeatureEntryArchiveReferences(InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references of the "packaged"

-	 * archives that contain the files for the specified plug-in entry.

-	 * <p>

-	 * The number of returned references is dependent on each feature

-	 * content provider (ie. is dependent on the packaging mechanism used

-	 * by the particular feature type).

-	 * </p>

-	 * 

-	 * @see IFeatureContentProvider#getPluginEntryContentReferences(IPluginEntry, InstallMonitor)

-	 * @param pluginEntry plug-in entry

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of references, or an empty array if no references

-	 * are found

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public ContentReference[] getPluginEntryArchiveReferences(

-		IPluginEntry pluginEntry,

-		InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references of the "packaged"

-	 * archives that contain the files for the specified non-plug-in entry.

-	 * <p>

-	 * The number of returned references is dependent on each feature

-	 * content provider (ie. is dependent on the packaging mechanism used

-	 * by the particular feature type).

-	 * </p>

-	 * <p>

-	 * Note, that the platform does not interpret non-plug-in entries in any 

-	 * way, other that performing any required downloads. Non-plug-in entries

-	 * are handled by custom install handlers that must be specified for

-	 * the feature. Consequently, this interface does not make a distinction

-	 * between the "logical" and "packaged" views for non-plug-in entries.

-	 * The "packaged" view (returning references to the non-plug-in archives)

-	 * is the only one supported. It is the responsibility of the custom install

-	 * handler to understand the "logical" view of non-plug-in archives.

-	 * </p>

-	 * 

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of references, or an empty array if no references

-	 * are found

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public ContentReference[] getNonPluginEntryArchiveReferences(

-		INonPluginEntry nonPluginEntry,

-		InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references to the feature definition files

-	 * (ie. the "logical" view of the files defining the feature). These

-	 * are the files required to present information about the feature to the

-	 * client, and in general, should not contain references to plug-in and 

-	 * non-plug-in files.

-	 * 

-	 * @see IFeatureContentProvider#getFeatureEntryArchiveReferences(InstallMonitor)

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of ContentReference or an empty array if no references are found

-	 * @exception CoreException when an error occurs

-	 * @since 2.0 

-	 */

-	public ContentReference[] getFeatureEntryContentReferences(InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns an array of content references to the files implementing

-	 * the specified plug-in. (ie. the "logical" view of the plug-in).

-	 * 

-	 * @see IFeatureContentProvider#getPluginEntryArchiveReferences(IPluginEntry, InstallMonitor)

-	 * @param monitor progress monitor, can be <code>null</code>

-	 * @return an array of ContentReference or an empty array if no references are found

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public ContentReference[] getPluginEntryContentReferences(

-		IPluginEntry pluginEntry,

-		InstallMonitor monitor)

-		throws CoreException;

-

-	/**

-	 * Returns the total size of all archives required for the

-	 * specified plug-in and non-plug-in entries (the "packaging" view).

-	 * 

-	 * @param pluginEntries an array of plug-in entries

-	 * @param nonPluginEntries an array of non-plug-in entries

-	 * @return total download size, or an indication that size could not be

-	 * determined

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public long getDownloadSizeFor(

-		IPluginEntry[] pluginEntries,

-		INonPluginEntry[] nonPluginEntries);

-

-	/**

-	 * Returns the total size of all files required for the

-	 * specified plug-in and non-plug-in entries (the "logical" view).

-	 * 

-	 * @param pluginEntries an array of plug-in entries

-	 * @param nonPluginEntries an array of non-plug-in entries

-	 * @return total download size, or an indication that size could not be

-	 * determined

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public long getInstallSizeFor(

-		IPluginEntry[] pluginEntries,

-		INonPluginEntry[] nonPluginEntries);

-

-	/**

-	 * Returns the verifier for this feature.

-	 * If provided, the verifier is called at various point during

-	 * installation processing to verify downloaded archives. The

-	 * type of verification provided is dependent on the content

-	 * provider implementation.

-	 * 

-	 * @return verifier

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public IVerifier getVerifier() throws CoreException;

-

-	/**

-	 * Returns the feature associated with this content provider.

-	 * 

-	 * @return feature for this content provider

-	 * @since 2.0

-	 */

-	public IFeature getFeature();

-

-	/**

-	 * Sets the feature associated with this content provider.

-	 * In general, this method should only be called as part of

-	 * feature creation. Once set, the feature should not be reset.

-	 * 

-	 * @param feature feature for this content provider

-	 * @since 2.0

-	 */

-	public void setFeature(IFeature feature);

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureFactory.java
deleted file mode 100644
index 055080a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-

-/**

- * Feature factory interface.

- * A feature factory is used to construct new instances of concrete

- * features. 

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.BaseFeatureFactory

- * @since 2.0

- */

-public interface IFeatureFactory {

-

-	/**

-	 * Returns a feature defined by the supplied URL. The feature

-	 * is associated with the specified site.

-	 * <p>

-	 * The actual interpretation of the URL is feature-type specific.

-	 * In most cases the URL will point to some feature-specific

-	 * file that can be used (directly or indirectly) to construct

-	 * the feature object.

-	 * </p>

-	 * @param url URL interpreted by the feature

-	 * @param site site to be associated with the feature

-	 * @return concrete feature object

-	 * @exception CoreException

-	 * @deprecated use createFeature(URL, ISite, IProgressMonitor) instead

-	 * @since 2.0 

-	 */

-	public IFeature createFeature(URL url, ISite site) throws CoreException;

-	

-	/**

-	 * Returns a feature defined by the supplied URL. The feature

-	 * is associated with the specified site.

-	 * <p>

-	 * The actual interpretation of the URL is feature-type specific.

-	 * In most cases the URL will point to some feature-specific

-	 * file that can be used (directly or indirectly) to construct

-	 * the feature object.

-	 * </p>

-	 * @param url URL interpreted by the feature

-	 * @param site site to be associated with the feature

-	 * @return concrete feature object

-	 * @exception CoreException

-	 * @since 2.1 

-	 */

-	public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException;	

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureReference.java
deleted file mode 100644
index 5d35aac..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IFeatureReference.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IAdaptable;

-import org.eclipse.core.runtime.IProgressMonitor;

-

-/**

- * Feature reference.

- * A reference to a feature.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.FeatureReference

- * @since 2.0

- */

-public interface IFeatureReference extends IAdaptable,IPlatformEnvironment {

-

-	/**

-	 * Returns the referenced feature URL.

-	 * 

-	 * @return feature URL 

-	 * @since 2.0 

-	 */

-	public URL getURL();

-

-	/**

-	 * Returns the update site for the referenced feature

-	 * 

-	 * @return feature site

-	 * @since 2.0 

-	 */

-	public ISite getSite();

-

-	/**

-	 * Returns the label for the referenced feature

-	 *

-	 * @return the label

-	 * @since 2.1

-	 */

-	public String getName();

-

-

-	/**

-	 * Returns the referenced feature.

-	 * This is a factory method that creates the full feature object.

-	 * 

-	 * @return the referenced feature

-	 * @deprecated use getFeature(IProgressMonitor) instead

-	 * @since 2.0 

-	 */

-	public IFeature getFeature() throws CoreException;

-

-	/**

-	 * Returns the referenced feature.

-	 * This is a factory method that creates the full feature object.

-	 * 

-	 * @param monitor the progress monitor

-	 * @return the referenced feature

-	 * @since 2.1 

-	 */

-	public IFeature getFeature(IProgressMonitor monitor) throws CoreException;

-

-

-	/**

-	 * Returns the feature identifier.

-	 * 

-	 * @return the feature identifier.

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public VersionedIdentifier getVersionedIdentifier() throws CoreException;

-

-	/**

-	 * Sets the feature reference URL.

-	 * This is typically performed as part of the feature reference creation

-	 * operation. Once set, the url should not be reset.

-	 * 

-	 * @param url reference URL

-	 * @since 2.0 

-	 */

-	public void setURL(URL url) throws CoreException;

-

-	/**

-	 * Associates a site with the feature reference.

-	 * This is typically performed as part of the feature reference creation

-	 * operation. Once set, the site should not be reset.

-	 * 

-	 * @param site site for the feature reference

-	 * @since 2.0 

-	 */

-	public void setSite(ISite site);

-	

-	/**

-	 * Returns <code>true</code> if this feature is patching another feature,

-	 * <code>false</code> otherwise

-	 * @return boolean

-	 * @since 2.1

-	 */

-	public boolean isPatch();

-	

-	

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IImport.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IImport.java
deleted file mode 100644
index f0d8076..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IImport.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-

-import org.eclipse.core.runtime.IAdaptable;

-

-/**

- * Plug-in dependency entry.

- * Describes a feture dependency on a particular plug-in. The dependency 

- * can specify a specific plug-in version and a matching rule for 

- * satisfying the dependency.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.Import

- * @since 2.0

- */

-public interface IImport extends IAdaptable, IUpdateConstants, IPlatformEnvironment {

-

-	/**

-	 * The import relates to a plugin

-	 * @since 2.0.2

-	 */

-	public static final int KIND_PLUGIN = 0;

-	

-	/**

-	 * The import relates to a feature

-	 * @since 2.0.2

-	 */

-	public static final int KIND_FEATURE = 1;

-

-	/** 

-	 * Returns an identifier of the dependent plug-in.

-	 * 

-	 * @return plug-in identifier

-	 * @since 2.0 

-	 */

-	public VersionedIdentifier getVersionedIdentifier();

-

-	/**

-	 * Returns the matching rule for the dependency.

-	 * 

-	 * @return matching rule

-	 * @since 2.0 

-	 */

-	public int getRule();

-	

-	/**

-	 * Returns the matching rule for the dependency identifier.

-	 * 

-	 * @return matching id rule

-	 * @since 2.1 

-	 */

-	public int getIdRule();

-	

-	/**

-	 * Returns the dependency kind

-	 * 

-	 * @see KIND_PLUGIN

-	 * @see KIND_FEATURE

-	 * @return KIND_PLUGIN if the dependency relates to a plugin, 

-	 * KIND_FEATURE if the dependency relates to a feature.

-	 */

-	public int getKind();

-	

-	/**

-	 * Returns the patch mode. If the import is in patch mode,

-	 * the referenced feature is considered a patch target,

-	 * and the feature that owns the import is patch carrier.

-	 * Patch carrier and patched feature are linked in a

-	 * distinct way: if a patched feature is disabled,

-	 * all the patches are disabled with it.

-	 * @return true if the element represents a patch

-	 * reference, false otherwise.

-	 */

-	public boolean isPatch();

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IIncludedFeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IIncludedFeatureReference.java
deleted file mode 100644
index 0b64639..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IIncludedFeatureReference.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.update.configuration.IConfiguredSite;
-
-
-
-/**
- * Included Feature reference.
- * A reference to a included feature.
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly instantiate or subclass the provided implementation of this 
- * interface.
- * </p>
- * @see org.eclipse.update.core.FeatureReference
- * @since 2.0.1
- */
-public interface IIncludedFeatureReference extends IFeatureReference, IAdaptable {
-
-	/**
-	 * Returns the referenced feature.
-	 * This is a factory method that creates the full feature object.
-	 * equivalent to getFeature(false,null);
-	 * 
-	 * @return the referenced feature
-	 * @deprecated use getFeature(IProgressMonitor) instead
-	 * @since 2.0 
-	 */
-	public IFeature getFeature() throws CoreException;
-
-	/**
-	 * Returns the referenced feature.
-	 * This is a factory method that creates the full feature object.
-	 * 
-	 * @param perfectMatch <code>true</code> if the perfect match feature feature should be returned
-	 * <code>false</code> if the best match feature should be returned.
-	 * @param configuredSite the configured site to search for the Feature. If 
-	 * the configured site is <code>null</code> the search will be done in the current configured site.
-	 * @return the referenced feature
-	 * @deprecated use getFeature(boolean,IConfiguredSite,IProgressMonitor)
-	 * instead
-	 * @since 2.0.2
-	 * <b>Note:</b> This method is part of an interim API that is still under development and expected to
-	 * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
-	 * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
-	 * (repeatedly) as the API evolves.
-	 */
-	public IFeature getFeature(boolean perfectMatch,IConfiguredSite configuredSite) throws CoreException;
-
-	/**
-	 * Returns the referenced feature.
-	 * This is a factory method that creates the full feature object.
-	 * 
-	 * @param perfectMatch <code>true</code> if the perfect match feature feature should be returned
-	 * <code>false</code> if the best match feature should be returned.
-	 * @param configuredSite the configured site to search for the Feature. If 
-	 * the configured site is <code>null</code> the search will be done in the current configured site.
-	 * @param monitor the progress monitor
-	 * @return the referenced feature
-	 * @since 2.1
-	 * <b>Note:</b> This method is part of an interim API that is still under
-	 * development and expected to change significantly before reaching
-	 * stability. It is being made available at this early stage to solicit
-	 * feedback from pioneering adopters on the understanding that any code that
-	 * uses this API will almost certainly be broken (repeatedly) as the API
-	 * evolves.
-	 */
-	public IFeature getFeature(boolean perfectMatch,IConfiguredSite configuredSite, IProgressMonitor monitor) throws CoreException;
-
-
-	/**
-	 * Returns <code>true</code> if the feature is optional, <code>false</code> otherwise.
-	 * 
-	 * @return boolean
-	 * @since 2.0.1
-	 */
-	public boolean isOptional();
-
-	/**
-	 * Returns the matching rule for this included feature.
-	 * The rule will determine the ability of the included feature to move version 
-	 * without causing the overall feature to appear broken.
-	 * 
-	 * The default is <code>RULE_PERFECT</code>
-	 * 
-	 * @see IUpdateConstants#RULE_PERFECT
-	 * @see IUpdateConstants#RULE_EQUIVALENT
-	 * @see IUpdateConstants#RULE_COMPATIBLE
-	 * @see IUpdateConstants#RULE_GREATER_OR_EQUAL
-	 * @return int representation of feature matching rule.
-	 * @since 2.0.2
-	 */
-	public int getMatch();
-	
-	/**
-	 * Returns the search location for this included feature.
-	 * The location will be used to search updates for this feature.
-	 * 
-	 * The default is <code>SEARCH_ROOT</code>
-	 * 
-	 * @see IFeatureReference#SEARCH_ROOT
-	 * @see IFeatureReference#SEARCH_SELF
-	 * @return int representation of feature searching rule.
-	 * @since 2.0.2
-	 */
-
-	public int getSearchLocation();
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandler.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandler.java
deleted file mode 100644
index a3d82c6..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandler.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.CoreException;
-
-/**
- * Custom install handler.
- * Custom install handlers can optionally be associated with a feature.
- * The actual install handler implementation can be physically delivered
- * as part of the feature package, or can already be installed on the client
- * machine and registered via the <code>org.eclipse.update.core.installHandlers</code>
- * extension point. The install handler methods are called at predetermined
- * point during update actions.
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly subclass the provided implementation of this interface.
- * </p>
- * @see org.eclipse.update.core.BaseInstallHandler
- * @since 2.0
- */
-public interface IInstallHandler {
-
-	/**
-	 * Indicates the handler is being initialized for feature install.
-	 * @since 2.0
-	 */
-	public static final int HANDLER_ACTION_INSTALL = 1;
-
-	/**
-	 * Indicates the handler is being initialized for feature configure.
-	 * @since 2.0
-	 */
-	public static final int HANDLER_ACTION_CONFIGURE = 2;
-
-	/**
-	 * Indicates the handler is being initialized for feature unconfigure.
-	 * @since 2.0
-	 */
-	public static final int HANDLER_ACTION_UNCONFIGURE = 3;
-
-	/**
-	 * Indicates the handler is being initialized for feature uninstall.
-	 * @since 2.0
-	 */
-	public static final int HANDLER_ACTION_UNINSTALL = 4;
-
-	/**
-	 * Initialize the install handler.
-	 * Install handlers are always constructed using the default constructor.
-	 * The are initialized immediately following construction.
-	 * 
-	 * @param type update action type
-	 * @param feature the target of the action
-	 * @param entry model entry that defines this handler
-	 * @param monitor optional progress monitor, can be <code>null</code>
-	 * @exception CoreException
-	 * @since 2.0
-	 */
-	public void initialize(
-		int type,
-		IFeature feature,
-		IInstallHandlerEntry entry,
-		InstallMonitor monitor)
-		throws CoreException;
-
-	/**
-	 * Called at the start of the install action. At this point, no install
-	 * processing has taken place.
-	 * 
-	 * @see #HANDLER_ACTION_INSTALL
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void installInitiated() throws CoreException;
-
-	/**
-	 * Called after files corresponding to plug-in entries have been downloaded,
-	 * but before they are actully unpacked and installed.
-	 * 
-	 * @see #HANDLER_ACTION_INSTALL
-	 * @param plugins downloaded plug-in entries. Note this may be a subset
-	 * of the plug-ins actually references by the feature.
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void pluginsDownloaded(IPluginEntry[] plugins) throws CoreException;
-
-	/**
-	 * Called after files corresponding to non-plug-in entries have been 
-	 * downloaded. The custom install handler can perform any custom
-	 * verification of the non-plug-in entries (these are not interpreted
-	 * in any way by the platform (beyond downloading)).
-	 * 
-	 * @see #HANDLER_ACTION_INSTALL
-	 * @param nonPluginData downloaded non-plug-in entries.
-	 * @param listener verification listener, may be <code>null</code>.
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void nonPluginDataDownloaded(
-		INonPluginEntry[] nonPluginData,
-		IVerificationListener listener)
-		throws CoreException;
-
-	/**
-	 * Called after the feature files and any downloaded plug-ins have
-	 * been installed. Typically this is the point where the custom
-	 * install handler can install any non-plug-in entries (these are not 
-	 * interpreted in any way by the platform (beyond downloading)).
-	 * 
-	 * @see #HANDLER_ACTION_INSTALL
-	 * @param consumer content consumer for the feature. The install handler
-	 * can choose to use this consumer to install the non-plug-in data,
-	 * or can handle the data in any other way. If using the consumer,
-	 * the install handler should only call 
-	 * @see IFeatureContentConsumer#store(ContentReference, IProgressMonitor)
-	 * and @see IFeatureContentConsumer#open(INonPluginEntry)
-	 * methods of the consumer. 
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void completeInstall(IFeatureContentConsumer consumer)
-		throws CoreException;
-
-	/**
-	 * Called at the end of the install action.
-	 * 
-	 * @see #HANDLER_ACTION_INSTALL
-	 * @param success indicates action success. 
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void installCompleted(boolean success) throws CoreException;
-
-	/**
-	 * Called at the start of the configure action
-	 * 
-	 * @see #HANDLER_ACTION_CONFIGURE
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void configureInitiated() throws CoreException;
-
-	/**
-	 * Called after the feature has been configured. The install handler
-	 * should perform any completion tasks. No arguments are passed
-	 * to the method. If needed, the install handler can use arguments
-	 * passed on the initialization call.
-	 * 
-	 * @see #HANDLER_ACTION_CONFIGURE
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void completeConfigure() throws CoreException;
-
-	/**
-	 * Called at the end of the configure action.
-	 * 
-	 * @see #HANDLER_ACTION_CONFIGURE
-	 * @param success indicates action success. 
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void configureCompleted(boolean success) throws CoreException;
-
-	/**
-	 * Called at the start of the unconfigure action
-	 * 
-	 * @see #HANDLER_ACTION_UNCONFIGURE
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void unconfigureInitiated() throws CoreException;
-
-	/**
-	 * Called after the feature has been unconfigured. The install handler
-	 * should perform any completion tasks. No arguments are passed
-	 * to the method. If needed, the install handler can use arguments
-	 * passed on the initialization call.
-	 * 
-	 * @see #HANDLER_ACTION_UNCONFIGURE
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void completeUnconfigure() throws CoreException;
-
-	/**
-	 * Called at the end of the unconfigure action.
-	 * 
-	 * @see #HANDLER_ACTION_UNCONFIGURE
-	 * @param success indicates action success. 
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void unconfigureCompleted(boolean success) throws CoreException;
-
-	/**
-	 * Called at the start of the uninstall action
-	 * 
-	 * @see #HANDLER_ACTION_UNINSTALL
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void uninstallInitiated() throws CoreException;
-
-	/**
-	 * Called after the feature has been uninstalled. The install handler
-	 * should perform any completion tasks. No arguments are passed
-	 * to the method. If needed, the install handler can use arguments
-	 * passed on the initialization call. Note, that at this point
-	 * the feature files and any unreferenced plug-ins have been
-	 * removed.
-	 * 
-	 * @see #HANDLER_ACTION_UNINSTALL
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void completeUninstall() throws CoreException;
-
-	/**
-	 * Called at the end of the uninstall action.
-	 * 
-	 * @see #HANDLER_ACTION_UNINSTALL
-	 * @param success indicates action success. 
-	 * @exception CoreException terminates the action
-	 * @since 2.0
-	 */
-	public void uninstallCompleted(boolean success) throws CoreException;
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandlerEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandlerEntry.java
deleted file mode 100644
index fab0148..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IInstallHandlerEntry.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Install handler entry.
- * Associates an optional custom install handler with the feature.
- * Install handlers must implement the IInstallHandler interface.
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly instantiate or subclass the provided implementation of this 
- * interface.
- * </p>
- * @see org.eclipse.update.core.InstallHandlerEntry
- * @see org.eclipse.update.core.IInstallHandler
- * @since 2.0
- */
-public interface IInstallHandlerEntry extends IAdaptable {
-
-	/**
-	 * Returns optional URL used for browser-triggered installation handling.
-	 * 
-	 * @return url
-	 * @since 2.0 
-	 */
-	public URL getURL();
-
-	/**
-	 * Returns optional name of a library containing the install
-	 * handler classes. If specified, the referenced library
-	 * must be contained in the feature archive.
-	 * 
-	 * @return install handler library name
-	 * @since 2.0 
-	 */
-	public String getLibrary();
-
-	/**
-	 * Returns install handler name.
-	 * It is interpreted depending on the value of the library
-	 * specification. If library is not specified, the name
-	 * is intepreted as an identifier of a "global" install
-	 * handler registered in the <code>org.eclipse.update.core.installHandlers</code> 
-	 * extension point. If library is specified, the name is interpreted
-	 * as a fully qualified name of a class contained in the
-	 * library. In both cases, the resulting class must
-	 * implement IInstallHandler. The class is dynamically loaded and
-	 * called at specific points during feature processing.
-	 * The handler has visibility to the API classes from the update plug-in,
-	 * and plug-ins required by the update plugin. 
-	 * 
-	 * @see IInstallHandler
-	 * @return handler name
-	 * @since 2.0 
-	 */
-	public String getHandlerName();
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/INonPluginEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/INonPluginEntry.java
deleted file mode 100644
index 88be77c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/INonPluginEntry.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.IAdaptable;

-

-/**

- * Non-plug-in entry defines an arbitrary non-plug-in data file packaged

- * as part of a feature. Non-plug-in entries are not interpreted by the

- * platform (other than being downloaded as part of an install action).

- * They require a custom install handler to be specified as part of the

- * feature. Note, that defining a non-plug-in entry does not necessarily

- * indicate the non-plug-in file is packaged together with any other

- * feature files. The actual packaging details are determined by the

- * feature content provider for the feature.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.NonPluginEntry

- * @see org.eclipse.update.core.FeatureContentProvider

- * @since 2.0

- */

-public interface INonPluginEntry extends IPlatformEnvironment, IAdaptable {

-

-	/** 

-	 * Returns the identifier of this data entry. 

-	 * 

-	 * @return data entry identifier

-	 * @since 2.0 

-	 */

-	public String getIdentifier();

-

-	/**

-	 * Returns the download size of the entry, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return download size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getDownloadSize();

-

-	/**

-	 * Returns the install size of the feature, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return install size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getInstallSize();

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IPlatformEnvironment.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IPlatformEnvironment.java
deleted file mode 100644
index f911374..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IPlatformEnvironment.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Plug-in entry defines a packaging reference from a feature to a plug-in.
- * It indicates that the referenced plug-in is to be considered as
- * part of the feature. Note, that this does not necessarily indicate
- * that the plug-in files are packaged together with any other
- * feature files. The actual packaging details are determined by the
- * feature content provider for the feature.
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly instantiate or subclass the provided implementation of this 
- * interface.
- * </p>
- * @see org.eclipse.update.core.PluginEntry
- * @see org.eclipse.update.core.FeatureContentProvider
- * @since 2.0
- */
-public interface IPlatformEnvironment extends IAdaptable {
-
-
-	/**
-	 * Returns optional operating system specification.
-	 * A comma-separated list of os designators defined by the platform.
-	 * Indicates this entry should only be installed on one of the specified
-	 * os systems. If this attribute is not specified, or is <code>*</code>, the
-	 * entry can be installed on all systems (portable implementation). If the
-
-	 * This information is used as a hint by the installation and update
-	 * support.
-	 *
-	 * @see org.eclipse.core.boot.BootLoader 
-	 * @return the operating system specification, or <code>null</code>.
-	 * @since 2.0 
-	 */
-	public String getOS();
-
-	/**
-	 * Returns optional system architecture specification. 
-	 * A comma-separated list of arch designators defined by the platform.
-	 * Indicates this entry should only be installed on one of the specified
-	 * systems. If this attribute is not specified, or is <code>*</code>, the
-	 * entry can be installed on all systems (portable implementation).
-	 * 
-	 * This information is used as a hint by the installation and update
-	 * support.
-	 * 
-	 * @see org.eclipse.core.boot.BootLoader 
-	 * @return system architecture specification, or <code>null</code>.
-	 * @since 2.0 
-	 */
-	public String getWS();
-
-	/**
-	 * Returns optional system architecture specification. 
-	 * A comma-separated list of arch designators defined by the platform.
-	 * Indicates this entry should only be installed on one of the specified
-	 * systems. If this attribute is not specified, or is <code>*</code>, the
-	 * entry can be installed on all systems (portable implementation).
-	 * 
-	 * This information is used as a hint by the installation and update
-	 * support.
-	 * 
-	 * @see org.eclipse.core.boot.BootLoader 
-	 * @return system architecture specification, or <code>null</code>.
-	 * @since 2.0 
-	 */
-	public String getOSArch();
-
-	/**
-	 * Returns optional locale specification. 
-	 * A comma-separated list of locale designators defined by Java.
-	 * Indicates this entry should only be installed on a system running
-	 * with a compatible locale (using Java locale-matching rules).
-	 * If this attribute is not specified, or is <code>*</code>, the entry can
-	 * be installed on all systems (language-neutral implementation).
-	 * 
-	 * This information is used as a hint by the installation and update
-	 *  support.
-	 * 
-	 * @return the locale specification, or <code>null</code>.
-	 * @since 2.0 
-	 */
-	public String getNL();
-
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IPluginEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IPluginEntry.java
deleted file mode 100644
index b2d605e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IPluginEntry.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.IAdaptable;

-

-/**

- * Plug-in entry defines a packaging reference from a feature to a plug-in.

- * It indicates that the referenced plug-in is to be considered as

- * part of the feature. Note, that this does not necessarily indicate

- * that the plug-in files are packaged together with any other

- * feature files. The actual packaging details are determined by the

- * feature content provider for the feature.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.PluginEntry

- * @see org.eclipse.update.core.FeatureContentProvider

- * @since 2.0

- */

-public interface IPluginEntry extends IPlatformEnvironment,IAdaptable {

-

-	/** 

-	 * Returns the identifier of this plugin entry

-	 * 

-	 * @return plugin entry identifier

-	 * @since 2.0 

-	 */

-	public VersionedIdentifier getVersionedIdentifier();

-

-	/**

-	 * Returns an indication whethyer this entry represents a fragment.

-	 * 

-	 * @return <code>true</code> if the entry represents a plug-in fragment, 

-	 * <code>false</code> if the entry represents a plug-in

-	 * @since 2.0 

-	 */

-	public boolean isFragment();

-

-	/**

-	 * Returns the download size of the entry, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return download size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getDownloadSize();

-

-	/**

-	 * Returns the install size of the feature, if it can be determined.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @return install size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getInstallSize();

-

-	/** 

-	 * Sets the identifier of this plugin entry. 

-	 * This is typically performed as part of the plug-in entry creation

-	 * operation. Once set, the identifier should not be reset.

-	 * 

-	 * @param identifier plugin entry identifier

-	 * @since 2.0 

-	 */

-	public void setVersionedIdentifier(VersionedIdentifier identifier);

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISite.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ISite.java
deleted file mode 100644
index e46afb7..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISite.java
+++ /dev/null
@@ -1,324 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-import java.net.URL;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.configuration.IConfiguredSite;

-import org.eclipse.update.core.model.InstallAbortedException;

-

-/**

- * Site represents a location containing some number of features (packaged

- * or installed). Sites are treated purely as an installation and packaging

- * construct. They do not play a role during Eclipse plug-in execution. 

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.Site

- * @since 2.0

- */

-public interface ISite extends IAdaptable {

-

-	/**

-	 * Default type for an installed feature. Different concrete feature

-	 * implementations can be registered together with their corresponding type

-	 * using the <code>org.eclipse.update.core.featureTypes</code> 

-	 * extension point.

-	 * 

-	 * @since 2.0

-	 */

-	public static final String DEFAULT_INSTALLED_FEATURE_TYPE = "org.eclipse.update.core.installed";

-	//$NON-NLS-1$		

-

-	/**

-	 * Default type for a packaged feature. Different concrete feature

-	 * implementations can be registered together with their corresponding type

-	 * using the <code>org.eclipse.update.core.featureTypes</code> 

-	 * extension point.

-	 * 

-	 * @since 2.0

-	 */

-	public static final String DEFAULT_PACKAGED_FEATURE_TYPE = "org.eclipse.update.core.packaged";

-	//$NON-NLS-1$		

-

-	/**

-	 * If we are unable to access a site, the returned CoreException will contain

-	 * this return code.

-	 * 

-	 * @since 2.0.1

-	 */

-	public static final int SITE_ACCESS_EXCEPTION = 42;

-

-	/**

-	 * Returns the site URL

-	 * 

-	 * @return site URL

-	 * @since 2.0 

-	 */

-	public URL getURL();

-

-	/**

-	 * Return the site type. Different concrete site implementations can be

-	 * registered together with their corresponding type using the

-	 * <code>org.eclipse.update.core.siteTypes</code> extension point.

-	 * 

-	 * @return site type, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getType();

-

-	/**

-	 * Returns the site description.

-	 * 

-	 * @return site description, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public IURLEntry getDescription();

-

-	/**

-	 * Returns an array of categories defined by the site.

-	 * 

-	 * @return array of site categories, or an empty array.

-	 * @since 2.0 

-	 */

-	public ICategory[] getCategories();

-

-	/**

-	 * Returns the named site category.

-	 * 

-	 * @param name category name

-	 * @return named category, or <code>null</code> ifit does not exist

-	 * @since 2.0

-	 */

-	public ICategory getCategory(String name);

-

-	/**

-	 * Returns an array of references to features on this site.

-	 * 

-	 * @return an array of feature references, or an empty array.

-	 * @since 2.0 

-	 */

-	public ISiteFeatureReference[] getFeatureReferences();

-

-	/**

-	 * Returns an array of references to features on this site.

-	 * No filtering occurs.

-	 * 

-	 * @return an array of feature references, or an empty array..

-	 * @since 2.1

-	 */

-	public ISiteFeatureReference[] getRawFeatureReferences();

-	

-	/**

-	 * Returns a reference to the specified feature if 

-	 * it is installed on this site.

-	 * filtered by the operating system, windowing system and architecture

-	 * system set in <code>Sitemanager</code>

-	 * 

-	 * @param feature feature

-	 * @return feature reference, or <code>null</code> if this feature

-	 * cannot be located on this site.

-	 * @since 2.0

-	 */

-	public ISiteFeatureReference getFeatureReference(IFeature feature);

-

-	/**

-	 * Returns an array of plug-in and non-plug-in archives located

-	 * on this site

-	 * 

-	 * @return an array of archive references, or an empty array if there are

-	 * no archives known to this site. Note, that an empty array does not

-	 * necessarily indicate there are no archives accessible on this site.

-	 * It simply indicates the site has no prior knowledge of such archives.

-	 * @since 2.0 

-	 */

-	public IArchiveReference[] getArchives();

-

-	/**

-	 * Returns the content provider for this site. A content provider

-	 * is an abstraction of each site organization. It allows the 

-	 * content of the site to be accessed in a standard way

-	 * regardless of the organization. All concrete sites

-	 * need to be able to return a content provider.

-	 * 

-	 * @return site content provider

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public ISiteContentProvider getSiteContentProvider() throws CoreException;

-

-	/**

-	 * Returns the default type for a packaged feature supported by this site

-	 * 

-	 * @return feature type, as registered in the

-	 * <code>org.eclipse.update.core.featureTypes</code> extension point.

-	 * @since 2.0

-	 */

-	public String getDefaultPackagedFeatureType();

-

-	/**

-	 * Returns an array of entries corresponding to plug-ins installed

-	 * on this site.

-	 * 

-	 * @return array of plug-in entries,or an empty array.

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getPluginEntries();

-

-	/**

-	 * Returns the number of plug-ins installed on this site

-	 * 

-	 * @return number of installed plug-ins

-	 * @since 2.0

-	 */

-	public int getPluginEntryCount();

-

-	/**

-	 * Adds a new plug-in entry to this site.

-	 * 

-	 * @param pluginEntry plug-in entry

-	 * @since 2.0

-	 */

-	public void addPluginEntry(IPluginEntry pluginEntry);

-

-	/**

-	 * Returns an array of entries corresponding to plug-ins that are

-	 * installed on this site and are referenced only by the specified

-	 * feature. These are plug-ins that are not shared with any other

-	 * feature.

-	 * 

-	 * @param feature feature

-	 * @return an array of plug-in entries, or an empty array.

-	 * @exception CoreException

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature) throws CoreException;

-

-	/**

-	 * Returns the size of the files that need to be downloaded in order

-	 * to install the specified feature on this site, if it can be determined.

-	 * This method takes into account any plug-ins that are already

-	 * available on this site.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @param feature candidate feature

-	 * @return download size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getDownloadSizeFor(IFeature feature);

-

-	/**

-	 * Returns the size of the files that need to be installed

-	 * for the specified feature on this site, if it can be determined.

-	 * This method takes into account any plug-ins that are already

-	 * installed on this site.

-	 * 

-	 * @see org.eclipse.update.core.model.ContentEntryModel#UNKNOWN_SIZE

-	 * @param feature candidate feature

-	 * @return install size of the feature in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-	public long getInstallSizeFor(IFeature site);

-

-	/**

-	 * Installs the specified feature on this site.

-	 * 

-	 * @param feature feature to install

-	 * @param verificationListener install verification listener

-	 * @param monitor install monitor, can be <code>null</code>

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public IFeatureReference install(IFeature feature, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException;

-

-	/**

-	 * Installs the specified feature on this site.

-	 * Only optional features passed as parameter will be installed.

-	 * 

-	 * @param feature feature to install

-	 * @param optionalfeatures list of optional features to be installed

-	 * @param verificationListener install verification listener

-	 * @param monitor install monitor, can be <code>null</code>

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public IFeatureReference install(IFeature feature, IFeatureReference[] optionalfeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException;

-

-	/**

-	 * Removes (uninstalls) the specified feature from this site. This method

-	 * takes into account plug-in entries referenced by the specified fetaure

-	 * that continue to be required by other features installed on this site.

-	 * 

-	 * @param feature feature to remove

-	 * @param monitor progress monitor

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException;

-

-	/**

-	 * Sets the site content provider. This is typically performed

-	 * as part of the site creation operation. Once set, the 

-	 * provider should not be reset.

-	 * 

-	 * @param siteContentProvider site content provider

-	 * @since 2.0

-	 */

-	public void setSiteContentProvider(ISiteContentProvider siteContentProvider);

-

-	/** 

-	 * Returns the <code>IConfiguredSite</code> for this site in the current 

-	 * configuration or <code>null</code> if none found.

-	 * 

-	 * @since 2.0.2

-	 */

-	public IConfiguredSite getCurrentConfiguredSite();

-

-	/**

-	* Creates a new feature object. The feature must exist on this site

-	* or a core exception will be thrown. Concrete implementations 

-	* may elect to cache instances, in which case subsequent calls 

-	* to create a feature with the same URL will

-	* return the same instance.

-	* param type the feature type that will be used to select the factory. If

-	* <code>null</code> is passed, default feature type will be used.

-	* param url URL of the feature archive as listed in the site.

-	* return newly created feature object, or a cached value if

-	* caching is implemented by this site.

-	* @deprecated use createFeature(String,URL,IProgressMonitor) instead

-	* @since 2.0.2

-	*/

-	IFeature createFeature(String type, URL url) throws CoreException;

-

-	/**

-	* Creates a new feature object. The feature must exist on this site

-	* or a core exception will be thrown. Concrete implementations 

-	* may elect to cache instances, in which case subsequent calls 

-	* to create a feature with the same URL will

-	* return the same instance.

-	* param type the feature type that will be used to select the factory. If

-	* <code>null</code> is passed, default feature type will be used.

-	* param url URL of the feature archive as listed in the site.

-	* return newly created feature object, or a cached value if

-	* caching is implemented by this site.

-	* @param monitor the progress monitor

-	* @since 2.1

-	*/

-	IFeature createFeature(String type, URL url,IProgressMonitor monitor) throws CoreException;

-

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteContentProvider.java
deleted file mode 100644
index 54c4c95..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteContentProvider.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

- 

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-

-/**

- * Site content provider.

- * A site content provider is an abstraction of each site internal 

- * organization. It allows the site content to be accessed in

- * a standard way regardless of the internal organization. All concrete site

- * implementations need to implement a site content provider.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.SiteContentProvider

- * @since 2.0

- */

- 

-public interface ISiteContentProvider {

-	

-	/**

-	 * Returns the URL of this site

-	 * 

-	 * @return site URL

-	 * @since 2.0

-	 */	

-	public URL getURL();

-			

-	

-	/**

-	 * Returns a URL for the identified archive. 

-	 * 

-	 * @param id archive identifier

-	 * @return archive URL, or <code>null</code>.

-	 * @exception CoreException 

-	 * @since 2.0 

-	 */

-	public URL getArchiveReference(String id)  throws CoreException;

-

-	/**

-	 * Returns the site for this provider.

-	 * 

-	 * @return provider site

-	 * @since 2.0

-	 */

-	public ISite getSite();	

-	

-	/**

-	 * Sets the site for this provider.

-	 * In general, this method should only be called as part of

-	 * site creation. Once set, the site should not be reset.

-	 * 

-	 * @param site provider site

-	 * @since 2.0

-	 */

-	public void setSite(ISite site);

-}

-

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactory.java
deleted file mode 100644
index 32e3177..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.model.InvalidSiteTypeException;

-

-/**

- * Site factory interface.

- * A site factory is used to construct new instances of concrete

- * sites. 

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.BaseSiteFactory

- * @since 2.0

- */

-

-public interface ISiteFactory {

-

-	/**

-	 * Returns a site defined by the supplied URL. 

-	 * <p>

-	 * The actual interpretation of the URL is site-type specific.

-	 * In most cases the URL will point to some site-specific

-	 * file that can be used (directly or indirectly) to construct

-	 * the site object.

-	 * </p>

-	 * @param url URL interpreted by the site

-	 * @return site object

-	 * @exception CoreException

-	 * @exception InvalidSiteTypeException the referenced site type is

-	 * not a supported type for this factory 

-	 * @since 2.0 

-	 */

-	public ISite createSite(URL url)

-		throws CoreException, InvalidSiteTypeException;

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactoryExtension.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactoryExtension.java
deleted file mode 100644
index 343e252..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFactoryExtension.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.model.InvalidSiteTypeException;
-
-/**
- * <p>
- * This is an extension to the standard ISiteFactory interface.
- * If a factory implements this interface and is handling
- * URL connections, a progress monitor can be passed to 
- * allow canceling of frozen connections. 
- * </p>
- * <p>Input stream is obtained from the connection on
- * a separate thread. When connection is canceled, 
- * the thread is still active. It is allowed to terminate
- * when the connection times out on its own.
- * </p>
- * @see org.eclipse.update.core.BaseSiteFactory
- * @since 2.1
- */
-
-public interface ISiteFactoryExtension {
-	/**
-	 * Returns a site defined by the supplied URL. 
-	 * <p>
-	 * The actual interpretation of the URL is site-type specific.
-	 * In most cases the URL will point to some site-specific
-	 * file that can be used (directly or indirectly) to construct
-	 * the site object.
-	 * </p>
-	 * @param url URL interpreted by the site
-	 * @param monitor a progress monitor that can be canceled
-	 * @return site object
-	 * @exception CoreException
-	 * @exception InvalidSiteTypeException the referenced site type is
-	 * not a supported type for this factory 
-	 * @since 2.0 
-	 */
-	public ISite createSite(URL url, IProgressMonitor monitor)
-		throws CoreException, InvalidSiteTypeException;
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFeatureReference.java
deleted file mode 100644
index a624e63..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/ISiteFeatureReference.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.IAdaptable;
-
-/**
- * Site Feature reference.
- * A reference to a feature on a particular update site.
- * <p>
- * Clients may implement this interface. However, in most cases clients should 
- * directly instantiate or subclass the provided implementation of this 
- * interface.
- * </p>
- * @see org.eclipse.update.core.FeatureReference
- * @since 2.0
- */
-public interface ISiteFeatureReference extends IFeatureReference, IAdaptable {
-
-	/**
-	 * Returns an array of categories the referenced feature belong to.
-	 * 
-	 * @return an array of categories, or an empty array
-	 * @since 2.0 
-	 */
-	public ICategory[] getCategories();
-
-	/**
-	 * Adds a category to the referenced feature.
-	 * 
-	 * @param category new category
-	 * @since 2.0 
-	 */
-	public void addCategory(ICategory category);
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IURLEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IURLEntry.java
deleted file mode 100644
index 9d04f9b..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IURLEntry.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.IAdaptable;

-

-/**

- * URL entry is an annotated URL object. It allows descriptive text to be

- * associated with a URL. When used as description object, the annotation

- * typically corresponds to short descriptive text, with the URL reference

- * pointing to full browsable description.

- * <p>

- * Clients may implement this interface. However, in most cases clients should 

- * directly instantiate or subclass the provided implementation of this 

- * interface.

- * </p>

- * @see org.eclipse.update.core.URLEntry

- * @since 2.0

- */

-public interface IURLEntry extends IAdaptable {

-

-	public static final int UPDATE_SITE = 0;

-	public static final int WEB_SITE = 1;	

-

-	/** 

-	 * Returns the URL annotation or <code>null</code> if none

-	 * 

-	 * @return url annotation or <code>null</code> if none

-	 * @since 2.0 

-	 */

-	public String getAnnotation();

-

-	/**

-	 * Returns the actual URL.

-	 * 

-	 * @return url.

-	 * @since 2.0 

-	 */

-	public URL getURL();

-	

-	/**

-	 * Returns the type of the URLEntry

-	 * 

-	 * @see UPDATE_SITE

-	 * @see WEB_SITE

-	 * @return type

-	 * @since 2.0 

-	 */

-	public int getType();	

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IUpdateConstants.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IUpdateConstants.java
deleted file mode 100644
index dce3bcc..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IUpdateConstants.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
- 
-/**
- * Manages a list of static constants.
- * 
- * @since 2.0.2
- */
-public interface IUpdateConstants {
-	
-		/**
-	 * No matching rule specified 
-	 * @since 2.0
-	 */
-	public static final int RULE_NONE = 0;
-
-	/**
-	 * Dependency can be satisfied only with plug-in version matching 
-	 * exactly the specified version.
-	 * @since 2.0
-	 */
-	public static final int RULE_PERFECT = 1;
-
-	/**
-	 * Dependency can be satisfied only with plug-in version that is 
-	 * equivalent to the specified version (same major and minor version
-	 * identifier, greater than or equal service identifier).
-	 * @since 2.0
-	 */
-	public static final int RULE_EQUIVALENT = 2;
-
-	/**
-	 * Dependency can be satisfied only with plug-in version that is 
-	 * compatible with the specified version (either is equivalent,
-	 * or greater minor identifier (but same major identifier)).
-	 * @since 2.0
-	 */
-	public static final int RULE_COMPATIBLE = 3;
-
-	/**
-	 * Dependency can be satisfied only with plug-in version that is 
-	 * greater or equal to the specified version.
-	 * @since 2.0
-	 */
-	public static final int RULE_GREATER_OR_EQUAL = 4;
-	
-	/**
-	 * Dependency can be satisfied only if the required identifier
-	 * is a prefix of the specified identifier.
-	 * @since 2.1
-	 */
-	public static final int RULE_PREFIX = 1;
-
-	/**
-	 * The search location for updates is defined by the root feature.
-	 * @since 2.0.2
-	 */
-	public static final int SEARCH_ROOT = 1<<1;
-	
-	/**
-	 * The search location for updates is defined by this feature.
-	 * @since 2.0.2
-	 */
-	public static final int SEARCH_SELF = 1<<2;
-	
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationListener.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationListener.java
deleted file mode 100644
index a42a4c7..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationListener.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
- 
-/**
- * Verification listener. This interface abstract the user interaction
- * that may be required as a result of feature installation. In particular,
- * as feature archives are downloaded and verified, the user may need to 
- * indicate whether to accept any one of the archives, or abort the 
- * installation.
- * <p>
- * Clients may implement this interface.
- * </p>
- * @see org.eclipse.update.core.IVerificationResult
- * @see org.eclipse.update.core.IVerifier
- * @since 2.0
- */
-
-public interface IVerificationListener {
-	
-	/**
-	 * Indicate the action that resulted in this notification should be aborted.
-	 * 
-	 * @since 2.0
-	 */
-	public static final int CHOICE_ABORT = 0;
-	
-	/**
-	 * Indicate there was an error in processing the request.
-	 * The action that resulted in this notification should be aborted.
-	 * 
-	 * @since 2.0
-	 */
-	public static final int CHOICE_ERROR = 1;
-	
-	/**
-	 * Indicate that the target of the verification should be accepted,
-	 * but the information supplied with the verification result
-	 * should be trusted only for this request.
-	 * 
-	 * @since 2.0
-	 */
-	public static final int CHOICE_INSTALL_TRUST_ONCE = 2;
-	
-	/**
-	 * Indicate that the target of the verification should be accepted,
-	 * and the information supplied with the verification result
-	 * should be trusted for this request, and subsequent requests.
-	 * 
-	 * @since 2.0
-	 */
-	public static final int CHOICE_INSTALL_TRUST_ALWAYS = 3;
-	
-	/**
-	 * Determine if we should continue with the current action
-	 * based on the indicated verification results. Typically,
-	 * the implementation of this method will prompt the user
-	 * for the appropriate answer. However, other respose 
-	 * implementations can be provided.
-	 * 
-	 * @param result verification result 
-	 * @since 2.0
-	 */
-	public int prompt(IVerificationResult result);
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationResult.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationResult.java
deleted file mode 100644
index 0512a1f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerificationResult.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-/**
- * Verification result. An object implementing this interface represents
- * a token passed between the update framework and the verifier and verification
- * listener. The verifier uses the token to capture the result of the file
- * verification. It is then passed to the verification listener
- * to optionally present this information to the user (in an 
- * implementation-specific way). The verification listener in turn
- * uses this token to capture the desired response.
- * <p>
- * Clients may implement this interface.
- * </p>
- * @see 
- * @since 2.0
- */
-public interface IVerificationResult {
-
-	/**
-	 * Indicates the file type is recognized but the file is not signed
-	 * 
-	 * @see #TYPE_ENTRY_UNRECOGNIZED
-	 * @since 2.0
-	 */
-	public static final int TYPE_ENTRY_NOT_SIGNED = 1;
-
-	/**
-	 * Indicates the file has been modified since it was signed
-	 * 
-	 * @since 2.0
-	 */
-	public static final int TYPE_ENTRY_CORRUPTED = 2;
-
-	/**
-	 * Indicates the file is signed by a known signer
-	 * 
-	 * @since 2.0
-	 */
-	public static final int TYPE_ENTRY_SIGNED_RECOGNIZED = 3;
-
-	/**
-	 * Indicates the file is signed but the signer is not known
-	 * 
-	 * @since 2.0
-	 */
-	public static final int TYPE_ENTRY_SIGNED_UNRECOGNIZED = 5;
-
-	/**
-	 * Error occurred during verification
-	 * 
-	 * @since 2.0
-	 */
-	public static final int UNKNOWN_ERROR = 6;
-
-	/**
-	 * Verification was cancelled
-	 * 
-	 * @since 2.0
-	 */
-	public static final int VERIFICATION_CANCELLED = 7;
-
-	/**
-	 * Could not perform verification due to unrecognized file
-	 * 
-	 * @see #TYPE_ENTRY_NOT_SIGNED
-	 * @since 2.0
-	 */
-	public static final int TYPE_ENTRY_UNRECOGNIZED = 8;
-
-	/**
-	 * Returns the content reference that is the target of the verification.
-	 * 
-	 * @return content reference
-	 * @since 2.0
-	 */
-	public ContentReference getContentReference();
-
-	/**
-	 * Returns the feature the referenced file is part of.
-	 * 
-	 * @return feature
-	 * @since 2.0
-	 */
-	public IFeature getFeature();
-
-	/**
-	 * Returns the verification code.
-	 * 
-	 * @return verification code, as defined in this interface.
-	 * @since 2.0
-	 */
-	public int getVerificationCode();
-
-	/**
-	 * Returns any exception caught during verification
-	 * 
-	 * @return exception, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public Exception getVerificationException();
-
-	/**
-	 * Returns display text describing the result of the verification.
-	 * 
-	 * @return result text, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getText();
-
-	/**
-	 * Returns text describing the signer
-	 * 
-	 * @return signer information, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getSignerInfo();
-
-	/**
-	 * Returns text describing the authority that verified/ certified 
-	 * the signer
-	 * 
-	 * @return verifier information, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getVerifierInfo();
-
-	/**
-	 * Indicates whether the referenced file is part of the overall feature
-	 * definition, or one of its component plug-in or non-plug-in entries.
-	 * 
-	 * @return <code>true</code> if reference is a feature file, 
-	 * <code>false</code> if reference is a plug-in or non-plug-in file
-	 * @since 2.0
-	 */
-	public boolean isFeatureVerification();
-	
-	/**
-	 * Indicates whether the signer and verifier info have already been accepted by the user
-	 * during a previous verification of one of the file of the feature.
-	 * 
-	 * @return <code>true</code> if the result has already been accepted, <code>false</code>
-	 * if the result has not yet been accepted by the user
-	 * @since 2.0
-	 */
-	public boolean alreadySeen();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerifier.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerifier.java
deleted file mode 100644
index 98cd183..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IVerifier.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.CoreException;
-
-/**
- * Verifier. This interface abstracts the archive verification step
- * performed by specific feature implementations. The actual details
- * of the verification are the responsibility of the concrete implementation.
- * <p>
- * Clients may implement this interface.
- * </p>
- * @see org.eclipse.update.core.IVerificationResult
- * @see org.eclipse.update.core.IFeatureContentProvider#getVerifier()
- * @since 2.0
- */
-public interface IVerifier {
-
-	/**
-	 * Perform verification of the specified archive.
-	 * 
-	 * @param feature feature containing this archive
-	 * @param reference actual archive reference
-	 * @param isFeatureVerification <code>true</code> indicates the specified
-	 * reference should be considered as part of the feature description
-	 * information (ie. verifying the overall feature), 
-	 * <code>false</code> indicates the specified reference is a plug-in
-	 * or a non-plug-in archive file (ie. verifying a component of the
-	 * feature)
-	 * @param monitor progress monitor, can be <code>null</code>
-	 * @return verification result
-	 * @exception CoreException
-	 * @since 2.0
-	 */
-	public IVerificationResult verify(
-		IFeature feature,
-		ContentReference reference,
-		boolean isFeatureVerification,
-		InstallMonitor monitor)
-		throws CoreException;
-		
-	/**
-	 * Sets the parent verifier.
-	 * 
-	 * The parent verifier can only be set once by the parent feature.
-	 * It may used for different verification strategies. 
-	 * (for instance, you may decide that both the parent and current verifier
-	 * must sucessfully verify the content reference, or that only one of them must verify)
-	 * @param parentVerifier the parent verifier.
-	 */
-	public void setParent(IVerifier parentVerifier);
-	
-	/**
-	 * Returns the parent verifier
-	 * 
-	 * @return the parent verifier
-	 * @since 2.0
-	 */
-	public IVerifier getParent();
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Import.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Import.java
deleted file mode 100644
index 9a9ebbe..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Import.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-import org.eclipse.update.core.model.ImportModel;

-import org.eclipse.update.internal.core.UpdateCore;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-

-/**

- * Convenience implementation of a plug-in dependency.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IImport

- * @see org.eclipse.update.core.model.ImportModel

- * @since 2.0

- */

-public class Import extends ImportModel implements IImport {

-

-	//PERF: new instance variable

-	private VersionedIdentifier versionId;

-

-	/**

-	 * Returns an identifier of the dependent plug-in.

-	 * @see IImport#getIdentifier()

-	 */

-	public VersionedIdentifier getVersionedIdentifier() {

-		if (versionId != null)

-			return versionId;

-

-		String id = getIdentifier();

-		String ver = getVersion();

-		if (id != null && ver != null) {

-			try {

-				versionId = new VersionedIdentifier(id, ver);

-				return versionId;

-			} catch (Exception e) {

-				UpdateCore.warn("Unable to create versioned identifier:" + id + ":" + ver);

-			}

-		}

-

-		

-		versionId = new VersionedIdentifier("",null);

-		return versionId;		

-	}

-

-	/**

-	 * Returns the matching rule for the dependency.

-	 * @see IImport#getRule()

-	 */

-	public int getRule() {

-		return UpdateManagerUtils.getMatchingRule(getMatchingRuleName());

-	}

-	

-	/**

-	 * Returns the matching rule for the dependency identifier.

-	 * @see IImport#getIdRule()

-	 */

-	public int getIdRule() {

-		return UpdateManagerUtils.getMatchingIdRule(getMatchingIdRuleName());

-	}

-	

-	/**

-	 * 

-	 * @see org.eclipse.update.core.IImport#getKind()

-	 */

-

-	/**

-	 * Returns the dependency kind

-	 * @see org.eclipse.update.core.IImport#getKind()

-	 */

-	public int getKind() {

-		return isFeatureImport()?KIND_FEATURE:KIND_PLUGIN;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/IncludedFeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/IncludedFeatureReference.java
deleted file mode 100644
index 1068b08..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/IncludedFeatureReference.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.update.configuration.IConfiguredSite;
-import org.eclipse.update.core.model.IncludedFeatureReferenceModel;
-import org.eclipse.update.internal.core.UpdateCore;
-
-
-/**
- * This is a utility class representing the options of a nested feature.
- * Feature will include other features. This class will represent the options of the inclusion.
- * <p>
- * Clients may instantiate; not intended to be subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.VersionedIdentifier
- * @since 2.0.1
- */
-public class IncludedFeatureReference extends IncludedFeatureReferenceModel implements IIncludedFeatureReference {
-	
-	private IFeature bestMatchFeature;	 
-
-	/**
-	 * Construct a included feature reference
-	 * 
-	 * @since 2.1
-	 */
-	public IncludedFeatureReference() {
-		super();
-	}
-
-
-	/**
-	 * Construct a feature options 
-	 * 
-	 * @param name string representation of the feature
-	 * @param isOptional <code>true</code> if the feature is optional, <code>false</code> otherwise.
-	 * @param matchingRule the matching rule
-	 * @param searchLocation the location to search for this feature's updates.
-	 * @since 2.0.2
-	 */
-	public IncludedFeatureReference(IIncludedFeatureReference includedFeatureRef) {
-		super((IncludedFeatureReferenceModel)includedFeatureRef);
-	}
-
-	/**
-	 * Constructor IncludedFeatureReference.
-	 * @param iFeatureReference
-	 */
-	public IncludedFeatureReference(IFeatureReference featureReference) {
-		super(featureReference);
-	}
-
-
-	/**
-	* Method matches.
-	* @param identifier
-	* @param id
-	* @param options
-	* @return boolean
-	*/
-	private boolean matches(VersionedIdentifier baseIdentifier, VersionedIdentifier id) {
-		if (baseIdentifier == null || id == null)
-			return false;
-		if (!id.getIdentifier().equals(baseIdentifier.getIdentifier()))
-			return false;
-
-		switch (getMatch()) {
-			case IImport.RULE_PERFECT :
-				return id.getVersion().isPerfect(baseIdentifier.getVersion());
-			case IImport.RULE_COMPATIBLE :
-				return id.getVersion().isCompatibleWith(baseIdentifier.getVersion());
-			case IImport.RULE_EQUIVALENT :
-				return id.getVersion().isEquivalentTo(baseIdentifier.getVersion());
-			case IImport.RULE_GREATER_OR_EQUAL :
-				return id.getVersion().isGreaterOrEqualTo(baseIdentifier.getVersion());
-		}
-		UpdateCore.warn("Unknown matching rule:" + getMatch());
-		return false;
-	}
-
-
-	/*
-	 * Method retrieveEnabledFeatures.
-	 * @param site
-	 */
-	private IFeatureReference[] retrieveEnabledFeatures(ISite site) {
-		IConfiguredSite configuredSite = site.getCurrentConfiguredSite();
-		if (configuredSite == null)
-			return new IFeatureReference[0];
-		return configuredSite.getConfiguredFeatures();
-	}
-	
-	/*
-	 * Method isDisabled.
-	 * @return boolean
-	 */
-	private boolean isDisabled() {
-		/*IConfiguredSite cSite = getSite().getConfiguredSite();
-		if (cSite==null) return false;
-		IFeatureReference[] configured = cSite.getConfiguredFeatures();
-		for (int i = 0; i < configured.length; i++) {
-			if (this.equals(configured[i])) return false;
-		}
-		return true;*/
-		// FIXME: this code was never executed, should we remove it ?
-		return false;
-	}
-	
-	/**
-	 * @see org.eclipse.update.core.IFeatureReference#getFeature(boolean,
-	 * IConfiguredSite)
-	 * @deprecated
-	 */
-	public IFeature getFeature(boolean perfectMatch,IConfiguredSite configuredSite) throws CoreException {
-		return getFeature(perfectMatch,configuredSite,null);
-	}	
-	
-	/**
-	 * @see org.eclipse.update.core.IFeatureReference#getFeature(boolean,
-	 * IConfiguredSite,IProgressMonitor)
-	 */
-	public IFeature getFeature(boolean perfectMatch,IConfiguredSite configuredSite,IProgressMonitor monitor) throws CoreException {
-
-		// if perfect match is asked or if the feature is disabled
-		// we return the exact match 		
-		if (perfectMatch || getMatch() == IImport.RULE_PERFECT || isDisabled()) {
-			return super.getFeature(monitor);
-		} else {
-			if (bestMatchFeature == null) {
-				// find best match
-				if (configuredSite==null)
-					configuredSite = getSite().getCurrentConfiguredSite();
-				IFeatureReference bestMatchReference = getBestMatch(configuredSite);
-				IFeature localBestMatchFeature = getFeature(bestMatchReference,monitor);
-				// during reconciliation, we may not have the currentConfiguredSite yet
-				// do not preserve the best match
-				if (configuredSite==null) return localBestMatchFeature;
-				else bestMatchFeature = localBestMatchFeature;
-			}
-			return bestMatchFeature;
-		}
-	}
-	
-	/*
-	 * Method getBestMatch.
-	 * @param enabledFeatures
-	 * @param identifier
-	 * @param options
-	 * @return Object
-	 */
-	private IIncludedFeatureReference getBestMatch(IConfiguredSite configuredSite) throws CoreException {
-		IncludedFeatureReference newRef = null;
-
-		if (configuredSite==null) return this;
-		IFeatureReference[] enabledFeatures = configuredSite.getConfiguredFeatures();
-
-		// find the best feature based on match from enabled features
-		for (int ref = 0; ref < enabledFeatures.length; ref++) {
-			if (enabledFeatures[ref] != null) {
-				VersionedIdentifier id = enabledFeatures[ref].getVersionedIdentifier();
-				if (matches(getVersionedIdentifier(), id)) {
-					if (newRef == null || id.getVersion().isGreaterThan(newRef.getVersionedIdentifier().getVersion())) {
-						newRef = new IncludedFeatureReference(enabledFeatures[ref]);
-						newRef.setMatchingRule(getMatch());
-						newRef.isOptional(isOptional());
-						newRef.setLabel(getLabel());
-					}
-				}
-			}
-		}
-
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS){
-			UpdateCore.warn("Found best match feature:"+newRef+" for feature reference "+this.getURLString());
-		}
-
-		if (newRef != null)
-			return newRef;
-		else 
-			return this;
-	}			
-	/**
-	 * @see org.eclipse.update.core.IFeatureReference#getFeature()
-	 * @deprecated
-	 */
-	public IFeature getFeature() throws CoreException {
-		return getFeature(null);
-	}
-	/**
-	 * @see org.eclipse.update.core.IFeatureReference#getFeature
-	 * (IProgressMonitor)
-	 */
-	public IFeature getFeature(IProgressMonitor monitor) throws CoreException {
-		return getFeature(false,null,monitor);
-	}	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallHandlerEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallHandlerEntry.java
deleted file mode 100644
index a3b9a61..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallHandlerEntry.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import org.eclipse.update.core.model.InstallHandlerEntryModel;
-
-/**
- * Convenience implementation of an install handler entry.
- * <p>
- * This class may be instantiated or subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.IInstallHandlerEntry
- * @see org.eclipse.update.core.model.InstallHandlerEntryModel
- * @see org.eclipse.update.core.IInstallHandler
- * @since 2.0
- */
-public class InstallHandlerEntry
-	extends InstallHandlerEntryModel
-	implements IInstallHandlerEntry {
-
-	/**
-	 * Constructor for InstallHandlerEntry.
-	 * @since 2.0
-	 */
-	public InstallHandlerEntry() {
-		super();
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallMonitor.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallMonitor.java
deleted file mode 100644
index 4f68328..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/InstallMonitor.java
+++ /dev/null
@@ -1,254 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.util.Stack;

-

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.internal.core.Policy;

-

-/**

- * Install progress monitor

- * Delegating wrapper for IProgressMonitor used for installation handling.

- * 

- * @since 2.0

- */

-public class InstallMonitor implements IProgressMonitor {

-

-	private IProgressMonitor monitor;

-	private Stack tasks;

-

-	private String taskString;

-	private String subTaskString;

-	private boolean showDetails;

-	private long totalCopyCount;

-

-	private class MonitorState {

-

-		private String taskString;

-		private String subTaskString;

-		private boolean showDetails;

-		private long totalCopyCount;

-

-		private MonitorState(

-			String taskString,

-			String subTaskString,

-			boolean showDetails,

-			long totalCopyCount) {

-			this.taskString = taskString;

-			this.subTaskString = subTaskString;

-			this.showDetails = showDetails;

-			this.totalCopyCount = totalCopyCount;

-		}

-

-		private String getTaskString() {

-			return this.taskString;

-		}

-

-		private String getSubTaskString() {

-			return this.subTaskString;

-		}

-

-		private boolean getShowDetails() {

-			return this.showDetails;

-		}

-

-		private long getTotalCopyCount() {

-			return this.totalCopyCount;

-		}

-	}

-	

-	private InstallMonitor() {

-	}

-

-	/**

-	 * Install monitor constructor

-	 * 

-	 * @param monitor base install monitor

-	 * @since 2.0

-	 */

-	public InstallMonitor(IProgressMonitor monitor) {

-		this.monitor = monitor;

-		this.tasks = new Stack();

-		this.taskString = ""; //$NON-NLS-1$

-		this.subTaskString = ""; //$NON-NLS-1$

-		this.showDetails = false;

-		this.totalCopyCount = 0;

-	}

-

-	/**

-	 * Begin new monitor task.

-	 * 

-	 * @see IProgressMonitor#beginTask(String, int)

-	 * @since 2.0

-	 */

-	public void beginTask(String name, int totalWork) {

-		taskString = name;

-		monitor.beginTask(name, totalWork);

-	}

-

-	/**

-	 * Indicate completion of monitor activity.

-	 * 

-	 * @see IProgressMonitor#done()

-	 * @since 2.0

-	 */

-	public void done() {

-		monitor.done();

-	}

-

-	/**

-	 * Indicate monitor progress.

-	 * 

-	 * @see IProgressMonitor#internalWorked(double)

-	 * @since 2.0

-	 */

-	public void internalWorked(double work) {

-		monitor.internalWorked(work);

-	}

-

-	/**

-	 * Check is use indicated that the operation be cancelled.

-	 * 

-	 * @see IProgressMonitor#isCanceled()

-	 * @since 2.0

-	 */

-	public boolean isCanceled() {

-		return monitor.isCanceled();

-	}

-

-	/**

-	 * Set the cancellation state.

-	 * 

-	 * @see IProgressMonitor#setCanceled(boolean)

-	 * @since 2.0

-	 */

-	public void setCanceled(boolean value) {

-		monitor.setCanceled(value);

-	}

-

-	/**

-	 * Set task name.

-	 * 

-	 * @see IProgressMonitor#setTaskName(String)

-	 * @since 2.0

-	 */

-	public void setTaskName(String name) {

-		this.taskString = name;

-		this.subTaskString = ""; //$NON-NLS-1$

-		this.showDetails = false;

-		this.totalCopyCount = 0;

-		monitor.subTask(""); //$NON-NLS-1$

-		monitor.setTaskName(name);

-	}

-

-	/**

-	 * Set subtask name.

-	 * 

-	 * @see IProgressMonitor#subTask(String)

-	 * @since 2.0

-	 */

-	public void subTask(String name) {

-		this.subTaskString = name;

-		this.showDetails = false;

-		this.totalCopyCount = 0;

-		monitor.subTask(name);

-	}

-

-	/**

-	 * Indicate monitor progress.

-	 * 

-	 * @see IProgressMonitor#worked(int)

-	 * @since 2.0

-	 */

-	public void worked(int work) {

-		monitor.worked(work);

-	}

-

-	/**

-	 * Save the current monitor state.

-	 * The states are saved on a push-down stack. Prior states

-	 * can be restored by calling restorState()

-	 * 

-	 * @see #restoreState()

-	 * @since 2.0

-	 */

-	public void saveState() {

-		tasks.push(

-			new MonitorState(taskString, subTaskString, showDetails, totalCopyCount));

-	}

-

-	/**

-	 * Restore the monitor state.

-	 * 

-	 * @see #saveState()

-	 * @since 2.0

-	 */

-	public void restoreState() {

-		if (tasks.size() > 0) {

-			MonitorState state = (MonitorState) tasks.pop();

-			setTaskName(state.getTaskString());

-			subTask(state.getSubTaskString());

-			this.showDetails = state.getShowDetails();

-			this.totalCopyCount = state.getTotalCopyCount();

-		}

-	}

-

-	/**

-	 * Indicate whether the monitor subtask message should include

-	 * copy progress counts.

-	 * 

-	 * @see #setCopyCount(long)

-	 * @see #setTotalCount(long)

-	 * @param setting <code>true</code> to show the copy count,

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public void showCopyDetails(boolean setting) {

-		this.showDetails = setting;

-	}

-

-	/**

-	 * Sets the total number of bytes to copy.

-	 * 

-	 * @see #showCopyDetails(boolean)

-	 * @see #setCopyCount(long)

-	 * @param count total number of bytes to copy.

-	 * @since 2.0

-	 */

-	public void setTotalCount(long count) {

-		this.totalCopyCount = count;

-	}

-

-	/**

-	 * Sets the number of bytes already copied.

-	 * 

-	 * @see #showCopyDetails(boolean)

-	 * @see #setTotalCount(long)

-	 * @param count number of bytes already copied.

-	 * @since 2.0

-	 */

-	public void setCopyCount(long count) {

-		if (showDetails && count > 0) {

-			long countK = count / 1024;

-			long totalK = totalCopyCount / 1024;

-			String msg =

-				(totalK <= 0)

-					? Policy.bind("InstallMonitor.DownloadSize", Long.toString(countK))

-					: Policy.bind(

-						"InstallMonitor.DownloadSizeLong",

-						Long.toString(countK),

-						Long.toString(totalK));

-			//$NON-NLS-1$ //$NON-NLS-2$

-			monitor.subTask(subTaskString + msg);

-		}

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/JarContentReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/JarContentReference.java
deleted file mode 100644
index 23bb769..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/JarContentReference.java
+++ /dev/null
@@ -1,365 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.io.*;

-import java.net.URL;

-import java.util.*;

-import java.util.jar.JarEntry;

-import java.util.jar.JarFile;

-

-import org.eclipse.update.core.model.InstallAbortedException;

-import org.eclipse.update.internal.core.Policy;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Local .jar file content reference

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.ContentReference

- * @see org.eclipse.update.core.JarEntryContentReference

- * @since 2.0

- */

-

-public class JarContentReference extends ContentReference {

-

-	private static ArrayList referenceList = new ArrayList();

-	private JarFile jarFile;

-

-	/**

-	 * Content selector used in .jar operations.

-	 * Default implementation causes all file entries to be selected with

-	 * generated identifiers being the same as the original .jar entry name.

-	 * 

-	 * @since 2.0

-	 */

-	public static class ContentSelector {

-

-		/**

-		 * Indicates whether the .jar entry should be selected.

-		 * Default behavior is to select all non-directory entries.

-		 * 

-		 * @param entry .jar entry

-		 * @return <code>true</code> if entry is to be selected, 

-		 * <code>false</code> otherwise

-		 * @since 2.0

-		 */

-		public boolean include(JarEntry entry) {

-			return entry == null ? false : !entry.isDirectory();

-		}

-

-		/**

-		 * Defines the "symbolic" path identifier for the 

-		 * entry. Default identifier is the same as the jar entry name.

-		 * 

-		 * @param entry .jar entry

-		 * @return "symbolic" path identifier

-		 * @since 2.0

-		 */

-		public String defineIdentifier(JarEntry entry) {

-			return entry == null ? null : entry.getName();

-		}

-	}

-

-	/**

-	 * Create jar content reference from URL.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param url actual referenced URL

-	 * @since 2.0

-	 */

-	public JarContentReference(String id, URL url) {

-		super(id, url);

-		this.jarFile = null;

-		referenceList.add(this); // keep track of archives

-	}

-

-	/**

-	 * Create jar content reference from file.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param file actual referenced file

-	 * @since 2.0

-	 */

-	public JarContentReference(String id, File file) {

-		super(id, file);

-		this.jarFile = null;

-		referenceList.add(this); // keep track of archives

-	}

-

-	/**

-	 * A factory method to create a jar content reference.

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param file actual referenced file

-	 * @return jar content reference

-	 * @since 2.0

-	 */

-	public ContentReference createContentReference(String id, File file) {

-		return new JarContentReference(id, file,true);

-	}

-	/**

-	 * Constructor JarContentReference.

-	 * @param id

-	 * @param file

-	 * @param b

-	 */

-	public JarContentReference(String id, File file, boolean b) {

-		this(id,file);

-		setTempLocal(b);

-	}

-

-	/**

-	 * Returns the content reference as a jar file. Note, that this method

-	 * <b>does not</b> cause the file to be downloaded if it

-	 * is not already local.

-	 * 

-	 * @return reference as jar file

-	 * @exception IOException reference cannot be returned as jar file

-	 * @since 2.0

-	 */

-	protected JarFile asJarFile() throws IOException {

-		if (this.jarFile == null) {

-			File file = asFile();

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL)

-				UpdateCore.debug("asJarFile :" + file);

-			if (file != null && !file.exists()) {

-				UpdateCore.warn("JarFile does not exits:" + file);

-				throw new FileNotFoundException(file.getAbsolutePath());

-			}

-			this.jarFile = new JarFile(file);

-		}

-		return jarFile;

-	}

-

-	/**

-	 * Unpacks the referenced jar archive into the specified location.

-	 * Returns content references to the unpacked files.

-	 * 

-	 * @param dir location to unpack the jar into

-	 * @param selector selector, used to select entries to unpack, and to define

-	 * "symbolic" path identifiers for the entries.

-	 * @param monitor progress monitor 

-	 * @exception IOException

-	 * @exception InstallAbortedException

-	 * @since 2.0

-	 */

-	public ContentReference[] unpack(File dir, ContentSelector selector, InstallMonitor monitor) throws IOException, InstallAbortedException {

-

-		// make sure we have a selector

-		if (selector == null)

-			selector = new ContentSelector();

-

-		// get archive content

-		JarFile jarArchive = this.asJarFile();

-		List content = new ArrayList();

-		Enumeration entries = jarArchive.entries();

-

-		// run through the entries and unjar

-		String entryId;

-		JarEntry entry;

-		InputStream is;

-		OutputStream os;

-		File localFile;

-		try {

-			if (monitor != null) {

-				monitor.saveState();

-				monitor.setTaskName(Policy.bind("JarContentReference.Unpacking"));

-				//$NON-NLS-1$

-				monitor.subTask(this.getIdentifier());

-				monitor.showCopyDetails(false);

-			}

-			while (entries.hasMoreElements()) {

-				entry = (JarEntry) entries.nextElement();

-				if (entry != null && selector.include(entry)) {

-					is = null;

-					os = null;

-					entryId = selector.defineIdentifier(entry);

-					localFile = Utilities.createLocalFile(dir, entryId); // create temp file 

-					if (!entry.isDirectory()) {

-						try {

-							is = jarArchive.getInputStream(entry);

-							os = new FileOutputStream(localFile);

-							Utilities.copy(is, os, monitor);

-						} finally {

-							if (is != null)

-								try {

-									is.close();

-								} catch (IOException e) {

-								}

-							if (os != null)

-								try {

-									os.close();

-								} catch (IOException e) {

-								}

-						}

-						content.add(new ContentReference(entryId, localFile));

-					}

-				}

-			}

-		} finally {

-			if (monitor != null)

-				monitor.restoreState();

-		}

-		return (ContentReference[]) content.toArray(new ContentReference[0]);

-	}

-

-	/**

-	 * Unpacks the named jar entry into the specified location.

-	 * Returns content reference to the unpacked file.

-	 * 

-	 * @param dir location to unpack the jar into

-	 * @param entryName name of the jar entry

-	 * @param selector selector, used to define "symbolic" path identifier

-	 * for the entry

-	 * @param monitor progress monitor 

-	 * @exception IOException

-	 * @exception InstallAbortedException

-	 * @since 2.0

-	 */

-	public ContentReference unpack(File dir, String entryName, ContentSelector selector, InstallMonitor monitor) throws IOException, InstallAbortedException {

-

-		// make sure we have a selector

-		if (selector == null)

-			selector = new ContentSelector();

-

-		// unjar the entry

-		JarFile jarArchive = this.asJarFile();

-		entryName = entryName.replace(File.separatorChar, '/');

-		JarEntry entry = jarArchive.getJarEntry(entryName);

-		String entryId;

-		if (entry != null) {

-			InputStream is = null;

-			OutputStream os = null;

-			entryId = selector.defineIdentifier(entry);

-			File localFile = Utilities.createLocalFile(dir, entryId); // create temp file

-			if (!entry.isDirectory()) {

-				try {

-					is = jarArchive.getInputStream(entry);

-					os = new FileOutputStream(localFile);

-					Utilities.copy(is, os, monitor);

-				} finally {

-					if (is != null)

-						try {

-							is.close();

-						} catch (IOException e) {

-						}

-					if (os != null)

-						try {

-							os.close();

-						} catch (IOException e) {

-						}

-				}

-				return new ContentReference(entryId, localFile);

-			} else

-				return null; // entry was a directory

-		} else

-			throw new FileNotFoundException(this.asFile().getAbsolutePath() + " " + entryName);

-		//$NON-NLS-1$

-	}

-

-	/**

-	 * Peeks into the referenced jar archive.

-	 * Returns content references to the jar entries within the jar file.

-	 * 

-	 * @param selector selector, used to select entries to return, and to define

-	 * "symbolic" path identifiers for the entries.

-	 * @param monitor progress monitor 

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	public ContentReference[] peek(ContentSelector selector, InstallMonitor monitor) throws IOException {

-

-		// make sure we have a selector

-		if (selector == null)

-			selector = new ContentSelector();

-

-		// get archive content

-		JarFile jarArchive = this.asJarFile();

-		List content = new ArrayList();

-		Enumeration entries = jarArchive.entries();

-

-		// run through the entries and create content references

-		JarEntry entry;

-		String entryId;

-		while (entries.hasMoreElements()) {

-			entry = (JarEntry) entries.nextElement();

-			if (selector.include(entry)) {

-				entryId = selector.defineIdentifier(entry);

-				content.add(new JarEntryContentReference(entryId, this, entry));

-			}

-		}

-		return (ContentReference[]) content.toArray(new ContentReference[0]);

-	}

-

-	/**

-	 * Peeks into the referenced jar archive looking for the named entry.

-	 * Returns content reference to the jar entry within the jar file.

-	 * 

-	 * @param entryName name of the jar entry

-	 * @param selector selector, used to define "symbolic" path identifier

-	 * for the entry

-	 * @param monitor progress monitor 

-	 * @return the content reference ofr <code>null</null> if the entry doesn't exist

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	public ContentReference peek(String entryName, ContentSelector selector, InstallMonitor monitor) throws IOException {

-

-		// make sure we have a selector

-		if (selector == null)

-			selector = new ContentSelector();

-

-		// assume we have a reference that represents a jar archive.

-		JarFile jarArchive = this.asJarFile();

-		entryName = entryName.replace(File.separatorChar, '/');

-		JarEntry entry = jarArchive.getJarEntry(entryName);

-		if (entry == null)

-			return null;

-

-		String entryId = selector.defineIdentifier(entry);

-		return new JarEntryContentReference(entryId, this, entry);

-	}

-

-	/**

-	 * Closes the jar archive corresponding to this reference

-	 * 

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	public void closeArchive() throws IOException {

-		if (this.jarFile != null) {

-			this.jarFile.close();

-			this.jarFile = null;

-		}

-	}

-

-	/**

-	 * Perform shutdown processing for jar archive handling.

-	 * This method is called when platform is shutting down.

-	 * It is not intended to be called at any other time under

-	 * normal circumstances. A side-effect of calling this method

-	 * is that all jars referenced by JarContentReferences are closed.

-	 * 

-	 * @since 2.0

-	 */

-	public static void shutdown() {

-		for (int i = 0; i < referenceList.size(); i++) {

-			JarContentReference ref = (JarContentReference) referenceList.get(i);

-			try {

-				ref.closeArchive(); // ensure we are not leaving open jars

-			} catch (IOException e) {

-				// we tried, nothing we can do ...

-			}

-		}

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/JarEntryContentReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/JarEntryContentReference.java
deleted file mode 100644
index f6c594f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/JarEntryContentReference.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.io.*;

-import java.net.URL;

-import java.util.jar.JarEntry;

-

-/**

- * .jar file entry content reference

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.ContentReference

- * @see org.eclipse.update.core.JarContentReference

- * @since 2.0

- */

-public class JarEntryContentReference extends ContentReference {

-

-	private JarContentReference jarContentReference;

-	private JarEntry entry;

-

-	/**

-	 * Create jar entry content reference

-	 * 

-	 * @param id "symbolic" path identifier

-	 * @param jarContentReference jar file content reference

-	 * @param entry jar entry

-	 * @since 2.0

-	 */

-	public JarEntryContentReference(

-		String id,

-		JarContentReference jarContentReference,

-		JarEntry entry) {

-		super(id, (File) null);

-		this.jarContentReference = jarContentReference;

-		this.entry = entry;

-	}

-	

-	/**

-	 * Creates an input stream for the reference.

-	 * 

-	 * @return input stream

-	 * @exception IOException unable to create stream

-	 * @since 2.0

-	 */

-	public InputStream getInputStream() throws IOException {

-		return jarContentReference.asJarFile().getInputStream(entry);

-	}	

-	

-	/**

-	 * Returns the size of the referenced entry.

-	 * 

-	 * @return input size

-	 * @since 2.0

-	 */

-	public long getInputSize() {

-		return entry.getSize();

-	}

-	

-	/**

-	 * Indicates whether the reference is to a an entry within a local jar.

-	 * 

-	 * @return <code>true</code> if the reference is local, 

-	 * otherwise <code>false</code>

-	 * @since 2.0

-	 */

-	public boolean isLocalReference() {

-		return jarContentReference.isLocalReference();

-	}	

-		

-	/**

-	 * Returns the content reference as a URL.

-	 * 

-	 * @return reference as URL

-	 * @exception IOException reference cannot be returned as URL

-	 * @since 2.0

-	 */

-	public URL asURL() throws IOException {

-		String fileName =

-			jarContentReference.asFile().getAbsolutePath().replace(File.separatorChar, '/');

-		return new URL("jar:file:" + fileName + "!/" + entry.getName());

-		//$NON-NLS-1$ //$NON-NLS-2$

-	}

-			

-	/**

-	 * Return string representation of this reference.

-	 * 

-	 * @return string representation

-	 * @since 2.0

-	 */

-	public String toString() {

-		URL url;

-		try {

-			url = asURL();

-		} catch (IOException e) {

-			url = null;

-		}

-		if (url != null)

-			return url.toExternalForm();

-		else

-			return getClass().getName() + "@" + hashCode(); //$NON-NLS-1$

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/NonPluginEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/NonPluginEntry.java
deleted file mode 100644
index 9132f8e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/NonPluginEntry.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.update.core.model.NonPluginEntryModel;

-

-/**

- * Convenience implementation of non-plug-in entry.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.INonPluginEntry

- * @see org.eclipse.update.core.model.NonPluginEntryModel

- * @since 2.0

- */

-public class NonPluginEntry

-	extends NonPluginEntryModel

-	implements INonPluginEntry {

-

-	/**

-	 * Non-plug-in entry default constructor

-	 */

-	public NonPluginEntry() {

-		super();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/PluginEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/PluginEntry.java
deleted file mode 100644
index ad83841..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/PluginEntry.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.update.core.model.PluginEntryModel;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Convenience implementation of plug-in entry.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IPluginEntry

- * @see org.eclipse.update.core.model.PluginEntryModel

- * @since 2.0

- */

-public class PluginEntry extends PluginEntryModel implements IPluginEntry {

-	

-	// PERF: new instance variable

-	private VersionedIdentifier versionId;

-

-	/**

-	 * Plug-in entry default constructor

-	 */

-	public PluginEntry() {

-		super();

-	}

-

-	/**

-	 * Returns the identifier of this plugin entry

-	 * 

-	 * @see IPluginEntry#getIdentifier()

-	 * @since 2.0

-	 */

-	public VersionedIdentifier getVersionedIdentifier() {

-		if (versionId != null)

-			return versionId;

-

-		String id = getPluginIdentifier();

-		String ver = getPluginVersion();

-		if (id != null && ver != null) {

-			try {

-				versionId = new VersionedIdentifier(id, ver);

-				return versionId;

-			} catch (Exception e) {

-				UpdateCore.warn("Unable to create versioned identifier:" + id + ":" + ver);

-			}

-		}

-

-		versionId = new VersionedIdentifier("",null);

-		return versionId;

-	}

-

-	/**

-	 * Sets the identifier of this plugin entry. 

-	 * 

-	 * @see IPluginEntry#setVersionedIdentifier(VersionedIdentifier)

-	 * @since 2.0

-	 */

-	public void setVersionedIdentifier(VersionedIdentifier identifier) {

-		setPluginIdentifier(identifier.getIdentifier());

-		setPluginVersion(identifier.getVersion().toString());

-	}	

-

-	/**

-	 * Compares two plugin entries for equality

-	 * 

-	 * @param object plugin entry object to compare with

-	 * @return <code>true</code> if the two entries are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object object) {

-		if (!(object instanceof IPluginEntry))

-			return false;

-		IPluginEntry e = (IPluginEntry) object;

-		return getVersionedIdentifier().equals(e.getVersionedIdentifier());

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Site.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Site.java
deleted file mode 100644
index 834fbae..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Site.java
+++ /dev/null
@@ -1,522 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.configuration.IConfiguredSite;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.*;

-

-/**

- * Convenience implementation of a site.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.ISite

- * @see org.eclipse.update.core.model.SiteModel

- * @since 2.0

- */

-public class Site extends SiteModel implements ISite {

-

-	/**

-	 * Default installation path for features

-	 * 

-	 * @since 2.0

-	 */

-	public static final String DEFAULT_INSTALLED_FEATURE_PATH = "features/";

-	//$NON-NLS-1$

-

-	/**

-	 * Default installation path for plug-ins and plug-in fragments

-	 * 

-	 * @since 2.0

-	 */

-	public static final String DEFAULT_PLUGIN_PATH = "plugins/"; //$NON-NLS-1$

-

-	/**

-	 * Default path on a site where packaged features are located

-	 * 

-	 * @since 2.0

-	 */

-	public static final String DEFAULT_FEATURE_PATH = "features/"; //$NON-NLS-1$

-

-	/**

-	 * Default site manifest file name

-	 * 

-	 * @since 2.0

-	 */

-	public static final String SITE_FILE = "site"; //$NON-NLS-1$

-

-	/**

-	 * Default site manifest extension

-	 * 

-	 * @since 2.0

-	 */

-	public static final String SITE_XML = SITE_FILE + ".xml"; //$NON-NLS-1$

-

-	private ISiteContentProvider siteContentProvider;

-	

-	private Map featureCache = new HashMap(); // key=URLKey value=IFeature

-	

-	/**

-	 * Constructor for Site

-	 */

-	public Site() {

-		super();

-	}

-

-	/**

-	 * Compares two sites for equality

-	 * 

-	 * @param object site object to compare with

-	 * @return <code>true</code> if the two sites are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object obj) {

-		if (!(obj instanceof ISite))

-			return false;

-		if (getURL() == null)

-			return false;

-		ISite otherSite = (ISite) obj;

-

-		return UpdateManagerUtils.sameURL(getURL(), otherSite.getURL());

-	}

-

-	/**

-	 * Returns the site URL

-	 * 

-	 * @see ISite#getURL()

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		URL url = null;

-		try {

-			url = getSiteContentProvider().getURL();

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-		}

-		return url;

-	}

-

-	/**

-	 * Returns the site description.

-	 * 

-	 * @see ISite#getDescription()

-	 * @since 2.0

-	 */

-	public IURLEntry getDescription() {

-		return (IURLEntry) getDescriptionModel();

-	}

-

-	/**

-	 * Returns an array of categories defined by the site.

-	 * 

-	 * @see ISite#getCategories()

-	 * @since 2.0

-	 */

-	public ICategory[] getCategories() {

-		CategoryModel[] result = getCategoryModels();

-		if (result.length == 0)

-			return new ICategory[0];

-		else

-			return (ICategory[]) result;

-	}

-

-	/**

-	 * Returns the named site category.

-	 * 

-	 * @see ISite#getCategory(String)

-	 * @since 2.0

-	 */

-	public ICategory getCategory(String key) {

-		ICategory result = null;

-		boolean found = false;

-		int length = getCategoryModels().length;

-

-		for (int i = 0; i < length; i++) {

-			if (getCategoryModels()[i].getName().equals(key)) {

-				result = (ICategory) getCategoryModels()[i];

-				found = true;

-				break;

-			}

-		}

-

-		//DEBUG:

-		if (!found) {

-			String URLString = (this.getURL() != null) ? this.getURL().toExternalForm() : "<no site url>";

-			UpdateCore.warn(Policy.bind("Site.CannotFindCategory", key, URLString));

-			//$NON-NLS-1$ //$NON-NLS-2$

-			if (getCategoryModels().length <= 0)

-				UpdateCore.warn(Policy.bind("Site.NoCategories"));

-			//$NON-NLS-1$

-		}

-

-		return result;

-	}

-

-	/**

-	 * Returns an array of references to features on this site.

-	 * 

-	 * @see ISite#getFeatureReferences()

-	 * @since 2.0

-	 */

-	public ISiteFeatureReference[] getRawFeatureReferences() {

-		FeatureReferenceModel[] result = getFeatureReferenceModels();

-		if (result.length == 0)

-			return new ISiteFeatureReference[0];

-		else

-			return (ISiteFeatureReference[]) result;

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#getRawIncludedFeatureReferences()

-	 */

-	public ISiteFeatureReference[] getFeatureReferences() {

-		// only filter local site

-		if (getCurrentConfiguredSite()!=null)

-			return filterFeatures(getRawFeatureReferences());

-		else 

-			return getRawFeatureReferences();

-		

-	}

-

-	/*

-	 * Method filterFeatures.

-	 * Also implemented in Feature

-	 *  

-	 * @param list

-	 * @return List

-	 */

-	private ISiteFeatureReference[] filterFeatures(ISiteFeatureReference[] allIncluded) {

-		List list = new ArrayList();

-		if (allIncluded!=null){

-			for (int i = 0; i < allIncluded.length; i++) {

-				ISiteFeatureReference included = allIncluded[i];

-				if (UpdateManagerUtils.isValidEnvironment(included))

-					list.add(included);

-				else{

-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS){

-						UpdateCore.warn("Filtered out feature reference:"+included);

-					}

-				}

-			}

-		}

-		

-		ISiteFeatureReference[] result = new ISiteFeatureReference[list.size()];

-		if (!list.isEmpty()){

-			list.toArray(result);

-		}

-		

-		return result;	

-	}

-

-	/**

-	 * Returns a reference to the specified feature on this site.

-	 * 

-	 * @see ISite#getFeatureReference(IFeature)

-	 * @since 2.0

-	 */

-	public ISiteFeatureReference getFeatureReference(IFeature feature) {

-

-		if (feature == null) {

-			UpdateCore.warn("Site:getFeatureReference: The feature is null");

-			return null;

-		}

-

-		ISiteFeatureReference[] references = getFeatureReferences();

-		ISiteFeatureReference currentReference = null;

-		for (int i = 0; i < references.length; i++) {

-			currentReference = references[i];

-			if (UpdateManagerUtils.sameURL(feature.getURL(), currentReference.getURL()))

-				return currentReference;

-		}

-

-		UpdateCore.warn("Feature " + feature + " not found on site" + this.getURL());

-		return null;

-	}

-

-	/**

-	 * Returns an array of plug-in and non-plug-in archives located

-	 * on this site

-	 * 

-	 * @see ISite#getArchives()

-	 * @since 2.0

-	 */

-	public IArchiveReference[] getArchives() {

-		ArchiveReferenceModel[] result = getArchiveReferenceModels();

-		if (result.length == 0)

-			return new IArchiveReference[0];

-		else

-			return (IArchiveReference[]) result;

-	}

-

-	/**

-	 * Returns the content provider for this site.

-	 * 

-	 * @see ISite#getSiteContentProvider()

-	 * @since 2.0

-	 */

-	public ISiteContentProvider getSiteContentProvider() throws CoreException {

-		if (siteContentProvider == null) {

-			throw Utilities.newCoreException(Policy.bind("Site.NoContentProvider"), null);

-			//$NON-NLS-1$

-		}

-		return siteContentProvider;

-	}

-

-	/**

-	 * Returns the default type for a packaged feature supported by this site

-	 * 

-	 * @see ISite#getDefaultInstallableFeatureType()

-	 * @since 2.0

-	 */

-	public String getDefaultPackagedFeatureType() {

-		return DEFAULT_PACKAGED_FEATURE_TYPE;

-	}

-

-	/**

-	 * Returns an array of entries corresponding to plug-ins installed

-	 * on this site.

-	 * 

-	 * @see IPluginContainer#getPluginEntries()

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getPluginEntries() {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Returns the number of plug-ins installed on this site

-	 * 

-	 * @see IPluginContainer#getPluginEntryCount()

-	 * @since 2.0

-	 */

-	public int getPluginEntryCount() {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Returns an array of entries corresponding to plug-ins that are

-	 * installed on this site and are referenced only by the specified

-	 * feature. 

-	 * 

-	 * @see ISite#getPluginEntriesOnlyReferencedBy(IFeature)	 * 

-	 * @since 2.0

-	 */

-	public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature) throws CoreException {

-

-		IPluginEntry[] pluginsToRemove = new IPluginEntry[0];

-		if (feature == null)

-			return pluginsToRemove;

-

-		// get the plugins from the feature

-		IPluginEntry[] entries = feature.getPluginEntries();

-		if (entries != null) {

-			// get all the other plugins from all the other features

-			Set allPluginID = new HashSet();

-			ISiteFeatureReference[] features = getFeatureReferences();

-			if (features != null) {

-				for (int indexFeatures = 0; indexFeatures < features.length; indexFeatures++) {

-					IFeature featureToCompare = null;

-					try {

-						featureToCompare = features[indexFeatures].getFeature(null);

-					} catch (CoreException e) {

-						UpdateCore.warn(null, e);

-					}

-					if (!feature.equals(featureToCompare)) {

-						IPluginEntry[] pluginEntries = features[indexFeatures].getFeature(null).getPluginEntries();

-						if (pluginEntries != null) {

-							for (int indexEntries = 0; indexEntries < pluginEntries.length; indexEntries++) {

-								allPluginID.add(pluginEntries[indexEntries].getVersionedIdentifier());

-							}

-						}

-					}

-				}

-			}

-

-			// create the delta with the plugins that may be still used by other configured or unconfigured feature

-			List plugins = new ArrayList();

-			for (int indexPlugins = 0; indexPlugins < entries.length; indexPlugins++) {

-				if (!allPluginID.contains(entries[indexPlugins].getVersionedIdentifier())) {

-					plugins.add(entries[indexPlugins]);

-				}

-			}

-

-			// move List into Array

-			if (!plugins.isEmpty()) {

-				pluginsToRemove = new IPluginEntry[plugins.size()];

-				plugins.toArray(pluginsToRemove);

-			}

-		}

-

-		return pluginsToRemove;

-	}

-

-	/**

-	 * Adds a new plug-in entry to this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @see ISite#addPluginEntry(IPluginEntry)

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public void addPluginEntry(IPluginEntry pluginEntry) {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Get download size for the specified feature on this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @see ISite#getDownloadSizeFor(IFeature)

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public long getDownloadSizeFor(IFeature feature) {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Get install size for the specified feature on this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @see ISite#getInstallSizeFor(IFeature)

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public long getInstallSizeFor(IFeature feature) {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Install the specified feature and all optional features on this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @see ISite#install(IFeature, IVerificationListener, IProgressMonitor)

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Install the specified feature and listed optional features on this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @see ISite#install(IFeature, IVerificationListener, IProgressMonitor)

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalFeatures, IVerificationListener verificationListener, IProgressMonitor progress) throws InstallAbortedException, CoreException {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Install the specified feature on this site using the content consumer as 

-	 * a context to install the feature in.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the install action.

-	 * 

-	 * @param feature feature to install

-	 * @param parentContentConsumer content consumer of the parent feature

-	 * @param parentVerifier verifier of the parent feature

-	 * @param verificationListener install verification listener

-	 * @param monitor install monitor, can be <code>null</code>

-	 * @exception InstallAbortedException when the user cancels the install

-	 * @exception CoreException

-	 * @exception java.jang.UnsupportedOperationException 

-	 * @since 2.0 

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalFeatures, IFeatureContentConsumer parentContentConsumer, IVerifier parentVerifier, IVerificationListener verificationListener, IProgressMonitor progress)

-		throws CoreException {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Remove (uninstall) the specified feature from this site.

-	 * This implementation always throws UnsupportedOperationException

-	 * because this implementation does not support the remove action.

-	 * 

-	 * @see ISite#remove(IFeature, IProgressMonitor)

-	 * @exception java.jang.UnsupportedOperationException

-	 * @since 2.0

-	 */

-	public void remove(IFeature feature, IProgressMonitor progress) throws CoreException {

-		throw new UnsupportedOperationException();

-	}

-

-	/**

-	 * Sets the site content provider.

-	 * 

-	 * @see ISite#setSiteContentProvider(ISiteContentProvider)

-	 * @since 2.0

-	 */

-	public void setSiteContentProvider(ISiteContentProvider siteContentProvider) {

-		this.siteContentProvider = siteContentProvider;

-	}

-	/**

-	 * @see org.eclipse.update.core.model.SiteModel#getConfiguredSite()

-	 */

-	public IConfiguredSite getCurrentConfiguredSite() {

-		return (IConfiguredSite) getConfiguredSiteModel();

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#createFeature(String, URL)

-	 * @deprecated

-	 */

-	public IFeature createFeature(String type, URL url) throws CoreException {

-		return createFeature(type,url,null);

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#createFeature(String, URL,

-	 * IProgressMonitor)

-	 */

-	public IFeature createFeature(String type, URL url, IProgressMonitor monitor) throws CoreException {

-

-		// First check the cache

-		URLKey key = new URLKey(url);

-		IFeature feature = (IFeature) featureCache.get(key);

-		if (feature != null) return feature;

-

-		// Create a new one

-		if (type == null || type.equals("")) { //$NON-NLS-1$

-			// ask the Site for the default type

-			type = getDefaultPackagedFeatureType();

-		}

-

-		IFeatureFactory factory = FeatureTypeFactory.getInstance().getFactory(type);

-		feature = factory.createFeature(url, this, monitor);

-		if (feature != null) {

-			// Add the feature to the cache

-			featureCache.put(key, feature);

-		}

-		return feature;

-	}

-

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteContentProvider.java
deleted file mode 100644
index aae7363..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteContentProvider.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

- 

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.internal.core.Policy;

-

-/**

- * Base site content provider

- */

-public abstract class SiteContentProvider implements ISiteContentProvider {

-

-	private URL base;

-	private ISite site;

-

-	/**

-	 * Constructor for SiteContentProvider.

-	 */

-	public SiteContentProvider(URL url) {

-		super();

-		this.base = url;

-	}

-

-	/**

-	 * Returns the URL of this site

-	 * 

-	 * @see ISiteContentProvider#getURL()

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		return base;

-	}

-

-	/**

-	 * Returns a URL for the identified archive. 

-	 * 

-	 * @see ISiteContentProvider#getArchivesReferences(String)

-	 * @since 2.0

-	 */

-	public URL getArchiveReference(String archiveID) throws CoreException {

-		try {

-			return new URL(getURL(), archiveID);

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(

-					Policy.bind(

-						"SiteContentProvider.ErrorCreatingURLForArchiveID",

-						archiveID,

-						getURL().toExternalForm()),

-					e);

-			//$NON-NLS-1$

-		}

-	}

-

-	/**

-	 * Returns the site for this provider.

-	 * 

-	 * @see ISiteContentProvider#getSite()

-	 * @since 2.0

-	 */

-	public ISite getSite() {

-		return site;

-	}

-

-	/**

-	 * Sets the site for this provider.

-	 * 

-	 * @param site site for this provider

-	 * @since 2.0

-	 */

-	public void setSite(ISite site) {

-		this.site = site;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReference.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReference.java
deleted file mode 100644
index de3feff..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReference.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.update.internal.core.UpdateCore;
-
-/**
- * Convenience implementation of a feature reference.
- * <p>
- * This class may be instantiated or subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.IFeatureReference
- * @see org.eclipse.update.core.model.FeatureReferenceModel
- * @since 2.0
- */
-public class SiteFeatureReference extends SiteFeatureReferenceModel implements ISiteFeatureReference {
-
-	private List categories;
-	private VersionedIdentifier versionId;
-
-	/**
-	 * Feature reference default constructor
-	 */
-	public SiteFeatureReference() {
-		super();
-	}
-
-	/**
-	 * Constructor FeatureReference.
-	 * @param ref the reference to copy
-	 */
-	public SiteFeatureReference(ISiteFeatureReference ref) {
-		super(ref);
-	}
-
-	/**
-	 * Returns an array of categories the referenced feature belong to.
-	 * 
-	 * @see IFeatureReference#getCategories()
-	 * @since 2.0 
-	 */
-	public ICategory[] getCategories() {
-
-		if (categories == null) {
-			categories = new ArrayList();
-			String[] categoriesAsString = getCategoryNames();
-			for (int i = 0; i < categoriesAsString.length; i++) {
-				ICategory siteCat = getSite().getCategory(categoriesAsString[i]);
-				if (siteCat != null)
-					categories.add(siteCat);
-				else {
-					String siteURL = getSite().getURL() != null ? getSite().getURL().toExternalForm() : null;
-					UpdateCore.warn("Category " + categoriesAsString[i] + " not found in Site:" + siteURL);
-				}
-			}
-		}
-
-		ICategory[] result = new ICategory[0];
-
-		if (!(categories == null || categories.isEmpty())) {
-			result = new ICategory[categories.size()];
-			categories.toArray(result);
-		}
-		return result;
-	}
-
-	/**
-	 * Adds a category to the referenced feature.
-	 * 
-	 * @see IFeatureReference#addCategory(ICategory)
-	 * @since 2.0 
-	 */
-	public void addCategory(ICategory category) {
-		this.addCategoryName(category.getName());
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReferenceModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReferenceModel.java
deleted file mode 100644
index 700f244..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteFeatureReferenceModel.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.util.*;
-
-/**
- * Site Feature reference model object.
- * <p>
- * This class may be instantiated or subclassed by clients. However, in most 
- * cases clients should instead instantiate or subclass the provided 
- * concrete implementation of this model.
- * </p>
- * @see org.eclipse.update.core.FeatureReference
- * @since 2.1
- */
-public class SiteFeatureReferenceModel extends FeatureReference {
-
-	private List /* of String*/
-	categoryNames;
-
-	// [2.0.1]
-	private IncludedFeatureReference options;
-
-	/**
-	 * Creates an uninitialized feature reference model object.
-	 * 
-	 * @since 2.0
-	 */
-	public SiteFeatureReferenceModel() {
-		super();
-	}
-
-	/**
-	 * Constructor FeatureReferenceModel.
-	 * @param ref
-	 */
-	public SiteFeatureReferenceModel(ISiteFeatureReference ref) {
-		super(ref);
-		if (ref instanceof SiteFeatureReferenceModel) {
-			SiteFeatureReferenceModel refModel = (SiteFeatureReferenceModel) ref;
-			setCategoryNames(refModel.getCategoryNames());
-		}
-	}
-
-
-	/**
-	 * Returns the names of categories the referenced feature belongs to.
-	 * 
-	 * @return an array of names, or an empty array.
-	 * @since 2.0
-	 */
-	public String[] getCategoryNames() {
-		if (categoryNames == null)
-			return new String[0];
-
-		return (String[]) categoryNames.toArray(new String[0]);
-	}
-
-	/**
-	 * Sets the names of categories this feature belongs to.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param categoryNames an array of category names
-	 * @since 2.0
-	 */
-	public void setCategoryNames(String[] categoryNames) {
-		assertIsWriteable();
-		if (categoryNames == null)
-			this.categoryNames = null;
-		else
-			this.categoryNames = new ArrayList(Arrays.asList(categoryNames));
-	}
-
-	/**
-	 * Adds the name of a category this feature belongs to.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param categoryName category name
-	 * @since 2.0
-	 */
-	public void addCategoryName(String categoryName) {
-		assertIsWriteable();
-		if (this.categoryNames == null)
-			this.categoryNames = new ArrayList();
-		if (!this.categoryNames.contains(categoryName))
-			this.categoryNames.add(categoryName);
-	}
-	
-	/**
-	 * Removes the name of a categorys this feature belongs to.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param categoryName category name
-	 * @since 2.0
-	 */
-	public void removeCategoryName(String categoryName) {
-		assertIsWriteable();
-		if (this.categoryNames != null)
-			this.categoryNames.remove(categoryName);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteManager.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteManager.java
deleted file mode 100644
index 4f0876b..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/SiteManager.java
+++ /dev/null
@@ -1,316 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *     Laurent Fourrier (laurent@fourrier.nom.fr) - HTTP Proxy code and NetAccess Plugin 

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import java.net.URL;

-

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.configuration.ILocalSite;

-import org.eclipse.update.internal.core.InternalSiteManager;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Site Manager.

- * A helper class used for creating site instance. 

- * Site manager is a singleton class. It cannot be instantiated; 

- * all functionality is provided by static methods.

- * 

- * @see org.eclipse.update.core.ISite

- * @see org.eclipse.update.configuration.ILocalSite

- * @see org.eclipse.update.configuration.IConfiguredSite

- * @since 2.0

- */

-public class SiteManager {

-

-	private static String os;

-	private static String ws;

-	private static String arch;

-	private static String nl;

-	private static boolean isHttpProxyEnable;

-	

-	private static final String P_HTTP_HOST = "http.proxyHost";

-	private static final String P_HTTP_PORT = "http.proxyPort";	

-	private static final String P_HTTP_PROXY = "http.proxySet";

-

-	private SiteManager() {

-	}

-

-	/** 

-	 * Returns a site object for the site specified by the argument URL.

-	 * Typically, the URL references a site manifest file on an update 

-	 * site. An update site acts as a source of features for installation

-	 * actions.

-	 * 

-	 * @param siteURL site URL

-	 * @return site object for the url

-	 * @exception CoreException

-	 * @deprecated use getSite(URL,IPogressMonitor) instead

-	 * @since 2.0 

-	 */

-	public static ISite getSite(URL siteURL) throws CoreException {

-		return InternalSiteManager.getSite(siteURL, true,null);

-	}

-

-	/** 

-	 * Returns a site object for the site specified by the argument URL.

-	 * Typically, the URL references a site manifest file on an update 

-	 * site. An update site acts as a source of features for installation

-	 * actions.

-	 * 

-	 * @param siteURL site URL

-	 * @param monitor the progress monitor

-	 * @return site object for the url or <samp>null</samp> in case a 

-	 * user canceled the connection in the progress monitor.

-	 * @exception CoreException

-	 * @since 2.1 

-	 */

-	public static ISite getSite(URL siteURL, IProgressMonitor monitor) throws CoreException {

-		return InternalSiteManager.getSite(siteURL, true, monitor);

-	}

-

-	/** 

-	 * Returns a site object for the site specified by the argument URL.

-	 * Typically, the URL references a site manifest file on an update 

-	 * site. An update site acts as a source of features for installation

-	 * actions.

-	 * 

-	 * @param siteURL site URL

-	 * @param usesCache <code>false</code> if the cache should be refreshed, and the site entirely reparsed, <code>false</code> otherwise.

-	 * @return site object for the url

-	 * @exception CoreException

-	 * @deprecated use getSite(URL,boolean,IPogressMonitor) instead

-	 * @since 2.0 

-	 */

-	public static ISite getSite(URL siteURL, boolean usesCache) throws CoreException {

-		return InternalSiteManager.getSite(siteURL, usesCache,null);

-	}

-

-	/** 

-	 * Returns a site object for the site specified by the argument URL.

-	 * Typically, the URL references a site manifest file on an update 

-	 * site. An update site acts as a source of features for installation

-	 * actions.

-	 * 

-	 * @param siteURL site URL

-	 * @param usesCache <code>false</code> if the cache should be refreshed, and the site entirely reparsed, <code>false</code> otherwise.

-	 * @param monitor the progress monitor

-	 * @return site object for the url or <samp>null</samp> in case a 

-	 * user canceled the connection in the progress monitor.

-	 * @exception CoreException

-	 * @since 2.1

-	 */

-	public static ISite getSite(URL siteURL, boolean usesCache, IProgressMonitor monitor) throws CoreException {

-		return InternalSiteManager.getSite(siteURL, usesCache, monitor);

-	}

-

-

-	/**

-	 * Returns the "local site". A local site is a logical collection

-	 * of configuration information plus one or more file system 

-	 * installation directories, represented as intividual sites. 

-	 * These are potential targets for installation actions.

-	 * 

-	 * @return the local site

-	 * @exception CoreException

-	 * @since 2.0 

-	 */

-	public static ILocalSite getLocalSite() throws CoreException {

-		return InternalSiteManager.getLocalSite();

-	}

-

-	/**

-	 * Trigger handling of newly discovered features. This method

-	 * can be called by the executing application whenever it

-	 * is invoked with the -newUpdates command line argument.

-	 * 

-	 * @throws CoreException if an error occurs.

-	 * @since 2.0

-	 */

-	public static void handleNewChanges() throws CoreException {

-		InternalSiteManager.handleNewChanges();

-	}

-	/**

-	 * Returns system architecture specification. A comma-separated list of arch

-	 * designators defined by the platform. 

-	 * 

-	 * This information is used as a hint by the installation and update

-	 * support.

-	 * 

-	 * @see BootLoader#ARCH_LIST

-	 * @return system architecture specification

-	 * @since 2.1

-	 */

-	public static String getOSArch() {

-		if (arch == null)

-			arch = BootLoader.getOSArch();

-		return arch;

-	}

-

-	/**

-	 * Returns operating system specification. A comma-separated list of os

-	 * designators defined by the platform.

-	 * 

-	 * This information is used as a hint by the installation and update

-	 * support.

-	 *

-	 * @see BootLoader#OS_LIST

-	 * @return the operating system specification.

-	 * @since 2.1

-	 */

-	public static String getOS() {

-		if (os == null)

-			os = BootLoader.getOS();

-		return os;

-	}

-

-	/**

-	 * Returns system architecture specification. A comma-separated list of arch

-	 * designators defined by the platform. 

-	 * 

-	 * This information is used as a hint by the installation and update

-	 * support.

-	 * 

-	 * @see BootLoader#WS_LIST

-	 * @return system architecture specification.

-	 * @since 2.1

-	 */

-	public static String getWS() {

-		if (ws == null)

-			ws = BootLoader.getWS();

-		return ws;

-	}

-

-	/**

-	 * Sets the arch.

-	 * @param arch The arch to set

-	 */

-	public static void setOSArch(String arch) {

-		SiteManager.arch = arch;

-	}

-

-	/**

-	 * Sets the os.

-	 * @param os The os to set

-	 */

-	public static void setOS(String os) {

-		SiteManager.os = os;

-	}

-

-	/**

-	 * Sets the ws.

-	 * @param ws The ws to set

-	 */

-	public static void setWS(String ws) {

-		SiteManager.ws = ws;

-	}

-

-	/**

-	 * Sets the nl.

-	 * @param nl The nl to set

-	 */

-	public static void setNL(String nl) {

-		SiteManager.nl = nl;

-	}

-	

-	/**

-	 * Returns an estimate of bytes per second transfer rate for this URL

-	 * @param URL the URL of the site

-	 * @return long a bytes per second estimate rate

-	 * @since 2.1

- 	 */	

-	public static long getEstimatedTransferRate(URL site) {

-		if (site == null)

-			return 0;

-		return InternalSiteManager.getEstimatedTransferRate(site.getHost());

-	}

-

-	/**

-	 * Returns current locale

-	 * 

-	 * @see BootLoader#getNL()

-	 * @return the string name of the current locale or <code>null</code>

-	 * @since 2.1

-	 */

-	public static String getNL() {

-		if (nl == null)

-			nl = BootLoader.getNL();

-		return nl;

-	}

-

-	/**

-	 * Returns the HTTP Proxy Server or <code>null</code> if none

-	 * @return the HTTP proxy Server 

-	 */

-	public static String getHttpProxyServer() {

-		return System.getProperty(P_HTTP_HOST);

-	}

-	/**

-	 * Returns the HTTP Proxy Port or <code>null</code> if none

-	 * @return the HTTP proxy Port 

-	 */

-	public static String getHttpProxyPort() {

-		return System.getProperty(P_HTTP_PORT);

-	}

-	/**

-	 * Returns <code>true</code> if the connection should use the 

-	 * http proxy server, <code>false</code> otherwise

-	 * @return is the http proxy server enable

-	 */

-	public static boolean isHttpProxyEnable() {

-		return isHttpProxyEnable;

-	}

-	/**

-	 * Sets the HTTP Proxy information

-	 * Sets the HTTP proxy server for the HTTP proxy server 

-	 * Sets the HTTP proxy port for the HTTP proxy server 

-	 * If the proxy name is <code>null</code> or the proxy port is

-	 * <code>null</code> the connection will not use HTTP proxy server.

-	 * 

-	 * @param enable <code>true</code> if the connection should use an http

-	 * proxy server, <code>false </code> otherwise.

-	 * @param httpProxyServer the HTTP proxy server name or IP adress

-	 * @param httpProxyPort the HTTP proxy port

-	 */

-	public static void setHttpProxyInfo(boolean enable, String httpProxyServer, String httpProxyPort) {

-		isHttpProxyEnable = enable;

-

-		// if enable is false, or values are null,

-		// we should remove the properties and save the fact that proxy is disable 

-		if (!enable || httpProxyServer == null || httpProxyPort == null) {

-			System.getProperties().remove(P_HTTP_HOST);

-			System.getProperties().remove(P_HTTP_PORT);

-			System.getProperties().remove(P_HTTP_PROXY);

-			//if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)

-			UpdateCore.warn("Remove proxy server info");

-			UpdateCore.getPlugin().getPluginPreferences().setValue(UpdateCore.HTTP_PROXY_ENABLE, isHttpProxyEnable());

-			UpdateCore.getPlugin().savePluginPreferences();

-			return;

-		}

-		

-		//System.getProperties().put("proxySet", "true");

-		//System.getProperties().put("proxyHost", proxyHost);

-		//System.getProperties().put("proxyPort", proxyPort);

-		

-		System.getProperties().setProperty(P_HTTP_PROXY, enable?"true":"false");

-		System.getProperties().setProperty(P_HTTP_HOST, httpProxyServer);

-		System.getProperties().setProperty(P_HTTP_PORT, httpProxyPort);

-		//if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)

-		UpdateCore.warn("Added proxy server info:" + httpProxyServer + ":" + httpProxyPort);

-		UpdateCore.getPlugin().getPluginPreferences().setValue(UpdateCore.HTTP_PROXY_HOST, getHttpProxyServer());

-		UpdateCore.getPlugin().getPluginPreferences().setValue(UpdateCore.HTTP_PROXY_PORT, getHttpProxyPort());

-		UpdateCore.getPlugin().getPluginPreferences().setValue(UpdateCore.HTTP_PROXY_ENABLE, isHttpProxyEnable());

-		UpdateCore.getPlugin().savePluginPreferences();

-

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/URLEntry.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/URLEntry.java
deleted file mode 100644
index c105b5b..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/URLEntry.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.update.core.model.URLEntryModel;

-import org.eclipse.update.internal.core.Policy;

-

-/**

- * Convenience implementation of an annotated URL.

- * <p>

- * This class may be instantiated or subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.IURLEntry

- * @see org.eclipse.update.core.model.URLEntryModel

- * @since 2.0

- */

-public class URLEntry extends URLEntryModel implements IURLEntry {

-

-	/**

-	 * Default constructor for annotated URL

-	 * 

-	 * @since 2.0

-	 */

-	public URLEntry() {

-		super();

-	}

-

-	/**

-	 * Returns a string representation of an annotated URL.

-	 * 

-	 * @return annotated url as String

-	 * @since 2.0

-	 */

-	public String toString() {

-		String result = "IURLEntry: "; //$NON-NLS-1$

-		String URLString =

-			(getURL() == null) ? Policy.bind("Feature.NoURL") : getURL().toExternalForm();

-		//$NON-NLS-1$

-		result =

-			result

-				+ ((getAnnotation() == null) ? URLString : getAnnotation() + " : " + URLString);

-		//$NON-NLS-1$

-		return result;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Utilities.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Utilities.java
deleted file mode 100644
index 2a047a8..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Utilities.java
+++ /dev/null
@@ -1,353 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
-
-import java.io.*;
-import java.text.DateFormat;
-//import java.text.SimpleDateFormat;
-import java.util.*;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.model.InstallAbortedException;
-import org.eclipse.update.internal.core.Policy;
-import org.eclipse.update.internal.core.UpdateCore;
-
-/**
- * This class is a collection of utility functions that can be 
- * used for install processing
- */
-public class Utilities {
-
-	private static Map entryMap;
-	private static Map timerMap = new HashMap();
-	private static Stack bufferPool;
-	private static final int BUFFER_SIZE = 4096; //256K
-	private static final DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.getDefault());
-	private static long tmpseed = (new Date()).getTime();
-	private static String dirRoot = null;
-
-	/**
-	 * Returns a new working directory (in temporary space). Ensures
-	 * the directory exists. Any directory levels that had to be created
-	 * are marked for deletion on exit.
-	 * 
-	 * @return working directory
-	 * @exception IOException
-	 * @since 2.0
-	 */
-	public static synchronized File createWorkingDirectory() throws IOException {
-
-		if (dirRoot == null) {
-			dirRoot = System.getProperty("java.io.tmpdir"); //$NON-NLS-1$
-			// in Linux, returns '/tmp', we must add '/'
-			if (!dirRoot.endsWith(File.separator))
-				dirRoot += File.separator;
-
-			dirRoot += "eclipse" + File.separator + ".update" + File.separator + Long.toString(tmpseed) + File.separator;
-			//$NON-NLS-1$ //$NON-NLS-2$
-		}
-
-		String tmpName = dirRoot + Long.toString(++tmpseed) + File.separator;
-
-		File tmpDir = new File(tmpName);
-		verifyPath(tmpDir, false);
-		if (!tmpDir.exists())
-			throw new FileNotFoundException(tmpName);
-		return tmpDir;
-	}
-
-	/**
-	 * Create a new working file. The file is marked for deletion on exit.
-	 * 
-	 * @see #lookupLocalFile(String)
-	 * @param tmpDir directory location for new file. Any missing directory
-	 * levels are created (and marked for deletion on exit)
-	 * @param name optional file name, or <code>null</code>. If name is not
-	 * specified, a temporary name is generated.
-	 * @return created working file
-	 * @exception IOException
-	 * @since 2.0
-	 */
-	public static synchronized File createLocalFile(File tmpDir, String name) throws IOException {
-		// create the local file
-		File temp;
-		String filePath;
-		if (name != null) {
-			// create file with specified name
-			filePath = name.replace('/', File.separatorChar);
-			if (filePath.startsWith(File.separator))
-				filePath = filePath.substring(1);
-			temp = new File(tmpDir, filePath);
-		} else {
-			// create file with temp name
-			temp = File.createTempFile("eclipse", null, tmpDir); //$NON-NLS-1$
-		}
-		temp.deleteOnExit();
-		verifyPath(temp, true);
-
-		return temp;
-	}
-
-	/**
-	 * The file is associated with a lookup key.
-	 * @param key optional lookup key, or <code>null</code>.
-	 * @param temp the local working file
-	 * @since 2.0.2
-	 */
-	public synchronized static void mapLocalFile(String key, File temp) {
-		// create file association 
-		if (key != null) {
-			if (entryMap == null)
-				entryMap = new HashMap();
-			entryMap.put(key, temp);
-		}
-	}
-
-	/**
-	 * Returns a previously cached local file (in temporary area) matching the
-	 * specified key. 
-	 * 
-	 * @param key lookup key
-	 * @return cached file, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public static synchronized File lookupLocalFile(String key) {
-		if (entryMap == null)
-			return null;
-		return (File) entryMap.get(key);
-	}
-
-	/**
-	 * Flushes all the keys from the local file map.
-	 * Reinitialize the cache.
-     *
-	 * @since 2.1
-	 */
-	public synchronized static void flushLocalFile() {
-		entryMap = null;
-	}
-
-	/**
-	 * Removes the specified key from the local file map. The file is
-	 * not actually deleted until VM termination.
-	 * 
-	 * @param key lookup key
-	 * @since 2.0
-	 */
-	public static synchronized void removeLocalFile(String key) {
-		if (entryMap != null)
-			entryMap.remove(key);
-	}
-
-	/**
-	 * Copies specified input stream to the output stream. Neither stream
-	 * is closed as part of this operation.
-	 * 
-	 * @param is input stream
-	 * @param os output stream
-	 * @param monitor progress monitor
-	 * @exception IOException
-	 * @exception InstallAbortedException
-	 * @since 2.0
-	 */
-	public static void copy(InputStream is, OutputStream os, InstallMonitor monitor) throws IOException, InstallAbortedException {
-		byte[] buf = getBuffer();
-		try {
-			long currentLen = 0;
-			int len = is.read(buf);
-			while (len != -1) {
-				currentLen += len;
-				os.write(buf, 0, len);
-				if (monitor != null) {
-					monitor.setCopyCount(currentLen);
-					if (monitor.isCanceled()) {
-						String msg = Policy.bind("Feature.InstallationCancelled"); //$NON-NLS-1$
-						throw new InstallAbortedException(msg, null);
-					}
-				}
-				len = is.read(buf);
-			}
-		} finally {
-			freeBuffer(buf);
-		}
-	}
-
-	/**
-	 * Creates a CoreException from some other exception.
-	 * The type of the CoreException is <code>IStatus.ERROR</code>
-	 * If the exception passed as a parameter is also a CoreException,
-	 * the new CoreException will contain all the status of the passed
-	 * CoreException.
-	 * 
-	 * @see IStatus#ERROR
-	 * @param s exception string
-	 * @param code the code reported
-	 * @param e actual exception being reported
-	 * @return a CoreException
-	 * @since 2.0
-	 */
-	public static CoreException newCoreException(String s, int code, Throwable e) {
-		String id = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-
-		// check the case of a multistatus
-		IStatus status;
-		if (e instanceof CoreException) {
-			if (s == null)
-				s = "";
-			status = new MultiStatus(id, code, s, e);
-			IStatus childrenStatus = ((CoreException) e).getStatus();
-			((MultiStatus) status).add(childrenStatus);
-			((MultiStatus) status).addAll(childrenStatus);
-		} else {
-			StringBuffer completeString = new StringBuffer("");
-			if (s != null)
-				completeString.append(s);
-			if (e != null) {
-				completeString.append(" [");
-				String msg = e.getLocalizedMessage();
-				completeString.append(msg!=null?msg:e.toString());
-				completeString.append("]");
-			}
-			status = new Status(IStatus.ERROR, id, code, completeString.toString(), e);
-		}
-		return new CoreException(status); //$NON-NLS-1$
-	}
-
-	/**
-	 * Creates a CoreException from some other exception.
-	 * The type of the CoreException is <code>IStatus.ERROR</code>
-	 * If the exceptionpassed as a parameter is also a CoreException,
-	 * the new CoreException will contain all the status of the passed
-	 * CoreException.
-	 * 
-	 * @see IStatus#ERROR
-	 * @param s exception string
-	 * @param e actual exception being reported
-	 * @return a CoreException
-	 * @since 2.0
-	 */
-	public static CoreException newCoreException(String s, Throwable e) {
-		return newCoreException(s, IStatus.OK, e);
-	}
-
-	/**
-	 * Creates a CoreException from two other CoreException
-	 * 
-	 * @param s overall exception string
-	 * @param s1 string for first detailed exception
-	 * @param s2 string for second detailed exception
-	 * @param e1 first detailed exception
-	 * @param e2 second detailed exception
-	 * @return a CoreException with multi-status
-	 * @since 2.0
-	 */
-	public static CoreException newCoreException(String s, String s1, String s2, CoreException e1, CoreException e2) {
-		String id = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-		if (s == null)
-			s = "";
-
-		IStatus childStatus1 = ((CoreException) e1).getStatus();
-		IStatus childStatus2 = ((CoreException) e2).getStatus();
-		int code = (childStatus1.getCode() == childStatus2.getCode()) ? childStatus1.getCode() : IStatus.OK;
-		MultiStatus multi = new MultiStatus(id, code, s, null);
-
-		multi.add(childStatus1);
-		multi.addAll(childStatus1);
-		multi.add(childStatus2);
-		multi.addAll(childStatus2);
-
-		return new CoreException(multi); //$NON-NLS-1$
-	}
-
-	/**
-	 * Formats a Date based on the default Locale 
-	 * If teh Date is <code>null</code> returns an empty String
-	 * 
-	 * @param date the Date to format
-	 * @return the formatted Date as a String
-	 * @since 2.0
-	 */
-	public static String format(Date date) {
-		if (date == null)
-			return "";
-		return dateFormat.format(date);
-	}
-
-	/**
-	 * Perform shutdown processing for temporary file handling.
-	 * This method is called when platform is shutting down.
-	 * It is not intended to be called at any other time under
-	 * normal circumstances. A side-effect of calling this method
-	 * is that the contents of the temporary directory managed 
-	 * by this class are deleted. 
-	 * 
-	 * @since 2.0
-	 */
-	public static void shutdown() {
-		if (dirRoot == null)
-			return;
-
-		File temp = new File(dirRoot); // temp directory root for this run
-		cleanupTemp(temp);
-		temp.delete();
-	}
-
-	private static void cleanupTemp(File root) {
-		File[] files = root.listFiles();
-		for (int i = 0; files != null && i < files.length; i++) {
-			if (files[i].isDirectory())
-				cleanupTemp(files[i]);
-			files[i].delete();
-		}
-	}
-
-	private static void verifyPath(File path, boolean isFile) {
-		// if we are expecting a file back off 1 path element
-		if (isFile) {
-			if (path.getAbsolutePath().endsWith(File.separator)) {
-				// make sure this is a file
-				path = path.getParentFile();
-				isFile = false;
-			}
-		}
-
-		// already exists ... just return
-		if (path.exists())
-			return;
-
-		// does not exist ... ensure parent exists
-		File parent = path.getParentFile();
-		verifyPath(parent, false);
-
-		// ensure directories are made. Mark files or directories for deletion
-		if (!isFile)
-			path.mkdir();
-		path.deleteOnExit();
-	}
-
-	private static synchronized byte[] getBuffer() {
-		if (bufferPool == null) {
-			return new byte[BUFFER_SIZE];
-		}
-
-		try {
-			return (byte[]) bufferPool.pop();
-		} catch (EmptyStackException e) {
-			return new byte[BUFFER_SIZE];
-		}
-	}
-
-	private static synchronized void freeBuffer(byte[] buf) {
-		if (bufferPool == null)
-			bufferPool = new Stack();
-		bufferPool.push(buf);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/Verifier.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/Verifier.java
deleted file mode 100644
index 913f6a5..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/Verifier.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core;
- 
-import org.eclipse.core.runtime.CoreException;
-
-/**
- * Convenience implementation of a verifier.
- * <p>
- * This class may be subclassed by clients.
- * </p> 
- * @see org.eclipse.update.core.IVerifier
- * @since 2.0
- */
-public abstract class Verifier implements IVerifier {
-	
-	private IVerifier parent;
-
-	/**
-	 * @see IVerifier#verify(IFeature, ContentReference, boolean, InstallMonitor)
-	 */
-	public abstract IVerificationResult verify(
-		IFeature feature,
-		ContentReference reference,
-		boolean isFeatureVerification,
-		InstallMonitor monitor)
-		throws CoreException ;
-
-	/**
-	 * @see IVerifier#verify(IFeature, ContentReference, boolean, InstallMonitor)
-	 */
-	public void setParent(IVerifier parentVerifier){
-		if (this.parent==null){
-			this.parent = parentVerifier;
-		}
-	}
-	
-	/**
-	 * Returns the parent verifier
-	 * 
-	 * @return the parent verifier
-	 * @since 2.0
-	 */
-	public IVerifier getParent(){
-		return parent;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/VersionedIdentifier.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/VersionedIdentifier.java
deleted file mode 100644
index bedf91c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/VersionedIdentifier.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core;

-

-import org.eclipse.core.runtime.PluginVersionIdentifier;

-import org.eclipse.update.internal.core.Policy;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Versioned Identifier. This is a utility class combining an identification

- * string with a version.

- * <p>

- * Clients may instantiate; not intended to be subclassed by clients.

- * </p> 

- * @see org.eclipse.update.core.Version

- * @since 2.0

- */

-public class VersionedIdentifier {

-	private String id;

-	private PluginVersionIdentifier version;

-	private static final String SEPARATOR = "_"; //$NON-NLS-1$

-

-	/**

-	 * Construct a versioned identifier from an identifier and a string

-	 * representation of a version

-	 * 

-	 * @see Version#toString()

-	 * @param id identifier string

-	 * @param versionName string representation of version

-	 * @since 2.0

-	 */

-	public VersionedIdentifier(String id, String versionName) {

-		if (id == null	|| (id = id.trim()).equals("")) //$NON-NLS-1$

-			throw new IllegalArgumentException(

-				Policy.bind("VersionedIdentifier.IdOrVersionNull", id, versionName));

-		//$NON-NLS-1$

-		this.id = id;

-		// 15707

-		if (versionName != null){

-			// if (PluginVersionIdentifier.validateVersionIdentifier(versionName).isOk())

-			try {

-				this.version = new PluginVersionIdentifier(versionName);

-			} catch (RuntimeException e){

-				UpdateCore.warn("Invalid Version:"+versionName,e);

-			}

-		}

-		if (this.version==null)

-			version = new PluginVersionIdentifier(0, 0, 0);

-	}

-

-	/**

-	 * Returns the identifier

-	 * 

-	 * @return identifier

-	 * @since 2.0

-	 */

-	public String getIdentifier() {

-		return id;

-	}

-

-	/**

-	 * Returns the version

-	 * 

-	 * @return version

-	 * @since 2.0

-	 */

-	public PluginVersionIdentifier getVersion() {

-		return version;

-	}

-

-	/**

-	 * Returns a string representation of the versioned identifier.

-	 * 

-	 * @return string representation of versioned identifier. The resulting 

-	 * string is <id>_<version>, where <id> is the identifier and 

-	 * <version> is the string representation of the version

-	 * @since 2.0

-	 */

-	public String toString() {

-		return id.equals("") ? "" : id + SEPARATOR + version.toString();

-		//$NON-NLS-1$ //$NON-NLS-2$

-	}

-

-	/**

-	 * Compares two versioned identifiers for equality

-	 * 

-	 * @param obj other versioned identifier to compare to

-	 * @return <code>true</code> if the two objects are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object obj) {

-		if (!(obj instanceof VersionedIdentifier))

-			return false;

-		VersionedIdentifier vid = (VersionedIdentifier) obj;

-		if (!this.id.equals(vid.id))

-			return false;

-		return this.version.equals(vid.version);

-	}

-

-	/**

-	 * Returns a computed hashcode for the versioned identifier.

-	 * 

-	 * @return hash code

-	 * @since 2.0

-	 */

-	public int hashCode() {

-		return toString().hashCode();

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ArchiveReferenceModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ArchiveReferenceModel.java
deleted file mode 100644
index 8883f25..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ArchiveReferenceModel.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.net.MalformedURLException;

-import java.net.URL;

-

-/**

- * Site archive model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.ArchiveReference

- * @since 2.0

- */

-public class ArchiveReferenceModel extends ModelObject {

-

-	private String path;

-	private String urlString;

-	private URL url;

-

-	/**

-	 * Creates a uninitialized model object.

-	 *  

-	 * @since 2.0

-	 */

-	public ArchiveReferenceModel() {

-		super();

-	}

-

-	/**

-	 * Retrieve the site archive "symbolic" path

-	 *

-	 * @return path, or <code>null</code>

-	 * @since 2.0

-	 */

-	public String getPath() {

-		return path;

-	}

-

-	/**

-	 * Returns the unresolved URL string for the archive.

-	 *

-	 * @return url string, or <code>null</code>

-	 * @since 2.0

-	 */

-	public String getURLString() {

-		return urlString;

-	}

-

-	/**

-	 * Returns the resolved URL for the archive.

-	 * 

-	 * @return url, or <code>null</code>

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		return url;

-	}

-

-	/**

-	 * Sets the site archive "symbolic" path.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param path archive "symbolic" path.

-	 * @since 2.0

-	 */

-	public void setPath(String path) {

-		assertIsWriteable();

-		this.path = path;

-	}

-

-	/**

-	 * Sets the unresolved URL string for the archive.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param urlString unresolved url string.

-	 * @since 2.0

-	 */

-	public void setURLString(String urlString) {

-		assertIsWriteable();

-		this.urlString = urlString;

-		this.url = null;

-	}

-

-	/**

-	 * Resolve the model object.

-	 * Any URL strings in the model are resolved relative to the 

-	 * base URL argument. Any translatable strings in the model that are

-	 * specified as translation keys are localized using the supplied 

-	 * resource bundle.

-	 * 

-	 * @param base URL

-	 * @param bundle resource bundle

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	public void resolve(URL base,URL bundleURL)

-		throws MalformedURLException {

-		// resolve local elements

-		url = resolveURL(base, bundleURL, urlString);

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/CategoryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/CategoryModel.java
deleted file mode 100644
index b8d1666..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/CategoryModel.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core.model;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Comparator;
-
-import org.eclipse.update.core.Site;
-
-/**
- * Feature category definition model object.
- * <p>
- * This class may be instantiated or subclassed by clients. However, in most 
- * cases clients should instead instantiate or subclass the provided 
- * concrete implementation of this model.
- * </p>
- * @see org.eclipse.update.core.Category
- * @since 2.0
- */
-
-public class CategoryModel extends ModelObject {
-
-	private String name;
-	private String label;
-	private String localizedLabel;
-	private URLEntryModel description;
-	private static Comparator comp;
-
-	/**
-	 * Creates an uninitialized model object.
-	 * 
-	 * @since 2.0
-	 */
-	public CategoryModel() {
-		super();
-	}
-
-	/**
-	 * Retrieve the name of the category.
-	 * 
-	 * @return category name, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * Retrieve the displayable label for the category. If the model
-	 * object has been resolved, the label is localized.
-	 * 
-	 * @return displayable label, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getLabel() {
-		if (localizedLabel != null)
-			return localizedLabel;
-		else
-			return label;
-	}
-
-	/**
-	 * Retrieve the non-localized displayable label for the category.
-	 * 
-	 * @return non-localized displayable label, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getLabelNonLocalized() {
-		return label;
-	}
-
-	/**
-	 * Retrieve the detailed category description
-	 * 
-	 * @return category description, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public URLEntryModel getDescriptionModel() {
-		return description;
-	}
-
-	/**
-	 * Sets the category displayable label.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param label displayable label, or resource key
-	 * @since 2.0
-	 */
-	public void setLabel(String label) {
-		assertIsWriteable();
-		this.label = label;
-		this.localizedLabel = null;
-	}
-
-	/**
-	 * Sets the category name.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param name category name
-	 * @since 2.0
-	 */
-	public void setName(String name) {
-		assertIsWriteable();
-		this.name = name;
-	}
-
-	/**
-	 * Sets the category description.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param description category description
-	 * @since 2.0
-	 */
-	public void setDescriptionModel(URLEntryModel description) {
-		assertIsWriteable();
-		this.description = description;
-	}
-
-	/**
-	 * Marks the model object as read-only.
-	 * 
-	 * @since 2.0
-	 */
-	public void markReadOnly() {
-		super.markReadOnly();
-		markReferenceReadOnly(getDescriptionModel());
-	}
-
-	/**
-	 * Resolve the model object.
-	 * Any URL strings in the model are resolved relative to the 
-	 * base URL argument. Any translatable strings in the model that are
-	 * specified as translation keys are localized using the supplied 
-	 * resource bundle.
-	 * 
-	 * @param base URL
-	 * @param bundle resource bundle
-	 * @exception MalformedURLException
-	 * @since 2.0
-	 */
-	public void resolve(URL base,URL bundleURL)
-		throws MalformedURLException {
-		// resolve local elements
-		localizedLabel = resolveNLString(bundleURL, label);
-
-		// delegate to references
-		resolveReference(getDescriptionModel(),base, bundleURL);
-	}
-
-	/**
-	 * Compare two category models for equality.
-	 * 
-	 * @see Object#equals(Object)
-	 * @since 2.0
-	 */
-	public boolean equals(Object obj) {
-		boolean result = false;
-		if (obj instanceof CategoryModel) {
-			CategoryModel otherCategory = (CategoryModel) obj;
-			result = getName().equalsIgnoreCase(otherCategory.getName());
-		}
-		return result;
-	}
-
-	/**
-	 * Compute hash code for category model.
-	 * 
-	 * @see Object#hashCode()
-	 * @since 2.0
-	 */
-	public int hashCode() {
-		return getName().hashCode();
-	}
-
-	/**
-	 * Returns a comparator for category models.
-	 * 
-	 * @return comparator
-	 * @since 2.0
-	 */
-	public static Comparator getComparator() {
-		if (comp == null) {
-			comp = new Comparator() {
-				/*
-				 * @see Comparator#compare(Object,Object)
-				 * Returns 0 if versions are equal.
-				 * Returns -1 if object1 is after than object2.
-				 * Returns +1 if object1 is before than object2.
-				 */
-				public int compare(Object o1, Object o2) {
-
-					CategoryModel cat1 = (CategoryModel) o1;
-					CategoryModel cat2 = (CategoryModel) o2;
-
-					if (cat1.equals(cat2))
-						return 0;
-					return cat1.getName().compareTo(cat2.getName());
-				}
-			};
-		}
-		return comp;
-	}
-	
-	/**
-	 * @see org.eclipse.update.core.model.ModelObject#getPropertyName()
-	 */
-	protected String getPropertyName() {
-		return Site.SITE_FILE;
-	}	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ContentEntryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ContentEntryModel.java
deleted file mode 100644
index 72ebd43..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ContentEntryModel.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-

-/**

- * Content entry model object.

- * This is the base class for plug-in and non-plug-in entry models.

- * <p>

- * This class must be subclassed by clients. 

- * </p>

- * @see org.eclipse.update.core.model.PluginEntryModel

- * @see org.eclipse.update.core.model.NonPluginEntryModel

- * @since 2.0

- */

-public abstract class ContentEntryModel extends ModelObject {

-

-	/**

-	 * An indication the size could not be determined

-	 * 

-	 * @since 2.0

-	 */

-	public static final long UNKNOWN_SIZE = -1;

-

-	private long downloadSize = UNKNOWN_SIZE;

-	private long installSize = UNKNOWN_SIZE;

-	private String os;

-	private String ws;

-	private String nl;

-	private String arch;

-

-	/**

-	 * Creates a uninitialized content entry model object.

-	 * 

-	 * @since 2.0

-	 */

-	protected ContentEntryModel() {

-		super();

-	}

-

-	/**

-	 * Returns the download size of the entry, if it can be determined.

-	 * 

-	 * @return download size of the entry in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0 

-	 */

-

-	public long getDownloadSize() {

-		return downloadSize;

-	}

-

-	/**

-	 * Returns the install size of the entry, if it can be determined.

-	 * 

-	 * @return install size of the entry in KiloBytes, or an indication 

-	 * the size could not be determined

-	 * @since 2.0

-	 */

-	public long getInstallSize() {

-		return installSize;

-	}

-

-	/**

-	 * Returns optional operating system specification.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the operating system specification or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getOS() {

-		return os;

-	}

-

-	/**

-	 * Returns optional windowing system specification.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the windowing system specification or <code>null</code>.

-	 * @since 2.0 

-	 */

-

-	public String getWS() {

-		return ws;

-	}

-

-	/**

-	 * Returns optional system architecture specification. 

-	 *

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the system architecture specification or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getOSArch() {

-		return arch;

-	}

-

-	/**

-	 * Returns optional locale specification.

-	 *

-	 * @return the locale specification, or <code>null</code>.

-	 * @since 2.0 

-	 */

-	public String getNL() {

-		return nl;

-	}

-

-	/**

-	 * Sets the download size of the entry.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param downloadSize download size of the entry in KiloBytes

-	 * @since 2.0 

-	 */

-	public void setDownloadSize(long downloadSize) {

-		assertIsWriteable();

-		if (downloadSize < 0)

-			this.downloadSize = UNKNOWN_SIZE;

-		else

-			this.downloadSize = downloadSize;

-	}

-

-	/**

-	 * Sets the install size of the entry.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param installSize install size of the entry in KiloBytes

-	 * @since 2.0

-	 */

-	public void setInstallSize(long installSize) {

-		assertIsWriteable();

-		if (installSize < 0)

-			this.installSize = UNKNOWN_SIZE;

-		else

-			this.installSize = installSize;

-	}

-

-	/**

-	 * Sets the operating system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @param os comma-separated list of OS identifiers as defined by Eclipse.

-	 * @since 2.0

-	 */

-	public void setOS(String os) {

-		assertIsWriteable();

-		this.os = os;

-	}

-

-	/**

-	 * Sets the windowing system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @param ws comma-separated list of WS identifiers as defined by Eclipse.

-	 * @since 2.0

-	 */

-	public void setWS(String ws) {

-		assertIsWriteable();

-		this.ws = ws;

-	}

-

-	/**

-	 * Sets the system architecture specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @param arch comma-separated list of arch identifiers as defined by Eclipse.

-	 * @since 2.0

-	 */

-	public void setArch(String arch) {

-		assertIsWriteable();

-		this.arch = arch;

-	}

-

-	/**

-	 * Sets the locale specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param nl comma-separated list of locale identifiers.

-	 * @since 2.0

-	 */

-	public void setNL(String nl) {

-		assertIsWriteable();

-		this.nl = nl;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultFeatureParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultFeatureParser.java
deleted file mode 100644
index a54f614..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultFeatureParser.java
+++ /dev/null
@@ -1,1266 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-

-import java.io.IOException;

-import java.io.InputStream;

-import java.util.Iterator;

-import java.util.Stack;

-

-import org.apache.xerces.parsers.SAXParser;

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.xml.sax.*;

-import org.xml.sax.helpers.DefaultHandler;

-

-/**

- * Default feature parser.

- * Parses the feature manifest file as defined by the platform. Defers

- * to a model factory to create the actual concrete model objects. The 

- * update framework supplies two factory implementations:

- * <ul>

- * <li>@see org.eclipse.update.core.model.FeatureModelFactory

- * <li>@see org.eclipse.update.core.BaseFeatureFactory

- * </ul>

- * 

- * @since 2.0

- */

-public class DefaultFeatureParser extends DefaultHandler {

-

-	private SAXParser parser;

-	private FeatureModelFactory factory;

-	private MultiStatus status;

-

-	private boolean URL_ALREADY_SEEN = false;

-

-	private static final int STATE_IGNORED_ELEMENT = -1;

-	private static final int STATE_INITIAL = 0;

-	private static final int STATE_INCLUDES = 1;

-	private static final int STATE_FEATURE = 2;

-	private static final int STATE_HANDLER = 3;

-	private static final int STATE_DESCRIPTION = 4;

-	private static final int STATE_COPYRIGHT = 5;

-	private static final int STATE_LICENSE = 6;

-	private static final int STATE_URL = 7;

-	private static final int STATE_UPDATE = 8;

-	private static final int STATE_DISCOVERY = 9;

-	private static final int STATE_REQUIRES = 10;

-	private static final int STATE_IMPORT = 11;

-	private static final int STATE_PLUGIN = 12;

-	private static final int STATE_DATA = 13;

-	private static final String PLUGIN_ID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-

-	private static final String FEATURE = "feature"; //$NON-NLS-1$

-	private static final String INCLUDES = "includes"; //$NON-NLS-1$

-	private static final String HANDLER = "install-handler"; //$NON-NLS-1$

-	private static final String DESCRIPTION = "description"; //$NON-NLS-1$

-	private static final String COPYRIGHT = "copyright"; //$NON-NLS-1$

-	private static final String LICENSE = "license"; //$NON-NLS-1$

-	private static final String URL = "url"; //$NON-NLS-1$

-	private static final String UPDATE = "update"; //$NON-NLS-1$

-	private static final String DISCOVERY = "discovery"; //$NON-NLS-1$

-	private static final String REQUIRES = "requires"; //$NON-NLS-1$

-	private static final String IMPORT = "import"; //$NON-NLS-1$

-	private static final String PLUGIN = "plugin"; //$NON-NLS-1$

-	private static final String DATA = "data"; //$NON-NLS-1$

-	// Current State Information

-	Stack stateStack = new Stack();

-

-	// Current object stack (used to hold the current object we are

-	// populating in this plugin descriptor

-	Stack objectStack = new Stack();

-

-	private int currentState;

-

-	/**

-	 * Constructs a feature parser.

-	 * 

-	 * @param factory feature model factory

-	 * @since 2.0

-	 */

-	public DefaultFeatureParser() {

-		super();

-		this.parser = new SAXParser();

-		try {

-			parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);

-		} catch (SAXException e) {

-		}

-		this.parser.setContentHandler(this);

-		this.parser.setErrorHandler(this); // 18350		

-	}

-

-	public void init(FeatureModelFactory factory) {

-		// PERF: separate instance creation from parsing

-		this.factory = factory;

-		stateStack = new Stack();

-		objectStack = new Stack();

-		status = null;

-		URL_ALREADY_SEEN = false;

-		//parser.reset();

-	}

-

-	/**

-	 * Parses the specified input steam and constructs a feature model.

-	 * The input stream is not closed as part of this operation.

-	 * 

-	 * @param in input stream

-	 * @return feature model

-	 * @exception SAXException

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	public FeatureModel parse(InputStream in) throws SAXException, IOException {

-		stateStack.push(new Integer(STATE_INITIAL));

-		currentState = ((Integer) stateStack.peek()).intValue();

-		parser.parse(new InputSource(in));

-		if (objectStack.isEmpty())

-			throw new SAXException(Policy.bind("DefaultFeatureParser.NoFeatureTag"));

-		//$NON-NLS-1$

-		else {

-			if (objectStack.peek() instanceof FeatureModel) {

-				return (FeatureModel) objectStack.pop();

-			} else {

-				String stack = ""; //$NON-NLS-1$

-				Iterator iter = objectStack.iterator();

-				while (iter.hasNext()) {

-					stack = "\r\n" + iter.next().toString() + stack; //$NON-NLS-1$

-				}

-				throw new SAXException(Policy.bind("DefaultFeatureParser.WrongParsingStack", stack));

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/**

-	 * Returns all status objects accumulated by the parser.

-	 *

-	 * @return multi-status containing accumulated status, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public MultiStatus getStatus() {

-		return status;

-	}

-

-	/**

-	 * Handle start of element tags

-	 * @see DefaultHandler#startElement(String, String, String, Attributes)

-	 * @since 2.0

-	 */

-	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Start Element: uri:" + uri + " local Name:" + localName + " qName:" + qName);

-		//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-

-		switch (currentState) {

-			case STATE_IGNORED_ELEMENT :

-				internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", localName, getState(currentState)));

-				//$NON-NLS-1$

-				break;

-

-			case STATE_INITIAL :

-				handleInitialState(localName, attributes);

-				break;

-

-			case STATE_FEATURE :

-			case STATE_INCLUDES :

-			case STATE_HANDLER :

-			case STATE_DESCRIPTION :

-			case STATE_COPYRIGHT :

-			case STATE_LICENSE :

-				handleFeatureState(localName, attributes);

-				break;

-

-			case STATE_URL :

-				if (URL_ALREADY_SEEN)

-					internalError(Policy.bind("DefaultFeatureParser.TooManyURLtag")); //$NON-NLS-1$

-				handleURLState(localName, attributes);

-				break;

-

-			case STATE_UPDATE :

-			case STATE_DISCOVERY :

-				handleUpdateDiscoveryState(localName, attributes);

-				break;

-

-			case STATE_REQUIRES :

-				handleRequiresState(localName, attributes);

-				break;

-

-			case STATE_IMPORT :

-				handleImportState(localName,attributes);

-				break;

-				

-			case STATE_PLUGIN :

-			case STATE_DATA :

-				handleFeatureState(localName, attributes);

-				break;

-

-			default :

-				internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownStartState", Integer.toString(currentState)));

-				//$NON-NLS-1$

-				break;

-		}

-

-		int newState = ((Integer) stateStack.peek()).intValue();

-		if (newState != STATE_IGNORED_ELEMENT)

-			currentState = newState;

-

-	}

-

-	/**

-	 * Handle end of element tags

-	 * @see DefaultHandler#endElement(String, String, String)

-	 * @since 2.0

-	 */

-	public void endElement(String uri, String localName, String qName) {

-

-		// variables used

-		URLEntryModel info = null;

-		FeatureModel featureModel = null;

-		String text = null;

-		int innerState = 0;

-

-		int state = ((Integer) stateStack.peek()).intValue();

-		switch (state) {

-			case STATE_IGNORED_ELEMENT :

-				stateStack.pop();

-				break;

-

-			case STATE_INITIAL :

-				internalError(Policy.bind("DefaultFeatureParser.ParsingStackBackToInitialState"));

-				//$NON-NLS-1$

-				break;

-

-			case STATE_FEATURE :

-				stateStack.pop();

-				if (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop();

-					FeatureModel feature = (FeatureModel) objectStack.peek();

-					feature.getDescriptionModel().setAnnotation(text);

-				}

-				//do not pop

-				break;

-

-			case STATE_INCLUDES :

-				stateStack.pop();

-				if (objectStack.peek() instanceof IncludedFeatureReferenceModel) {

-					IncludedFeatureReferenceModel includedFeatureRefModel = ((IncludedFeatureReferenceModel) objectStack.pop());

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						featureModel.addIncludedFeatureReferenceModel(includedFeatureRefModel);

-					}

-				}

-				break;

-

-			case STATE_HANDLER :

-				stateStack.pop();

-				if (objectStack.peek() instanceof InstallHandlerEntryModel) {

-					InstallHandlerEntryModel handlerModel = (InstallHandlerEntryModel) objectStack.pop();

-					featureModel = (FeatureModel) objectStack.peek();

-					if (featureModel.getInstallHandlerModel() != null)

-						internalError(Policy.bind("DefaultFeatureParser.ElementAlreadySet", getState(state)));

-					//$NON-NLS-1$

-					//$NON-NLS-1$

-					else

-						featureModel.setInstallHandlerModel(handlerModel);

-				}

-				break;

-

-			case STATE_DESCRIPTION :

-				stateStack.pop();

-

-				text = ""; //$NON-NLS-1$

-				while (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop() + text;

-				}

-				if (objectStack.peek() instanceof URLEntryModel) {

-					info = (URLEntryModel) objectStack.pop();

-					text = cleanupText(text);

-					if (text != null)

-						info.setAnnotation(text);

-

-					innerState = ((Integer) stateStack.peek()).intValue();

-					switch (innerState) {

-						case STATE_FEATURE :

-							if (objectStack.peek() instanceof FeatureModel) {

-								featureModel = (FeatureModel) objectStack.peek();

-								if (featureModel.getDescriptionModel() != null)

-									internalError(Policy.bind("DefaultFeatureParser.ElementAlreadySet", getState(state)));

-								//$NON-NLS-1$

-								else

-									featureModel.setDescriptionModel(info);

-							}

-							break;

-

-						default :

-							internalError(Policy.bind("DefaultFeatureParser.StateIncludeWrongElement", getState(innerState), getState(state)));

-							//$NON-NLS-1$

-							//$NON-NLS-1$

-							break;

-

-					}

-				}

-				break;

-

-			case STATE_COPYRIGHT :

-				stateStack.pop();

-				text = ""; //$NON-NLS-1$

-				while (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop() + text;

-				}

-				if (objectStack.peek() instanceof URLEntryModel) {

-					info = (URLEntryModel) objectStack.pop();

-					text = cleanupText(text);

-					if (text != null) {

-						info.setAnnotation(text);

-					}

-

-					innerState = ((Integer) stateStack.peek()).intValue();

-					switch (innerState) {

-						case STATE_FEATURE :

-							if (objectStack.peek() instanceof FeatureModel) {

-								featureModel = (FeatureModel) objectStack.peek();

-								if (featureModel.getCopyrightModel() != null)

-									internalError(Policy.bind("DefaultFeatureParser.ElementAlreadySet", getState(state)));

-								//$NON-NLS-1$

-								else

-									featureModel.setCopyrightModel(info);

-							}

-							break;

-

-						default :

-							internalError(Policy.bind("DefaultFeatureParser.StateIncludeWrongElement", getState(innerState), getState(state)));

-							//$NON-NLS-1$

-							break;

-

-					}

-				}

-				break;

-

-			case STATE_LICENSE :

-				stateStack.pop();

-

-				text = ""; //$NON-NLS-1$

-				while (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop() + text;

-				}

-				if (objectStack.peek() instanceof URLEntryModel) {

-					info = (URLEntryModel) objectStack.pop();

-					text = cleanupText(text);

-					if (text != null) {

-						info.setAnnotation(text);

-					}

-

-					innerState = ((Integer) stateStack.peek()).intValue();

-					switch (innerState) {

-						case STATE_FEATURE :

-							if (objectStack.peek() instanceof FeatureModel) {

-								featureModel = (FeatureModel) objectStack.peek();

-								if (featureModel.getLicenseModel() != null)

-									internalError(Policy.bind("DefaultFeatureParser.ElementAlreadySet", getState(state)));

-								//$NON-NLS-1$

-								else

-									featureModel.setLicenseModel(info);

-							}

-							break;

-

-						default :

-							internalError(Policy.bind("DefaultFeatureParser.StateIncludeWrongElement", getState(innerState), getState(state)));

-							//$NON-NLS-1$

-							break;

-

-					}

-				}

-				break;

-

-			case STATE_URL :

-				stateStack.pop();

-				URL_ALREADY_SEEN = true;

-				break;

-

-			case STATE_UPDATE :

-				stateStack.pop();

-				if (objectStack.peek() instanceof URLEntryModel) {

-					info = (URLEntryModel) objectStack.pop();

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						if (featureModel.getUpdateSiteEntryModel() != null) {

-							internalError(Policy.bind("DefaultFeatureParser.ElementAlreadySet", getState(state)));

-							//$NON-NLS-1$

-						} else {

-							featureModel.setUpdateSiteEntryModel(info);

-						}

-					}

-				}

-				break;

-

-			case STATE_DISCOVERY :

-				stateStack.pop();

-				if (objectStack.peek() instanceof URLEntryModel) {

-					info = (URLEntryModel) objectStack.pop();

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						featureModel.addDiscoverySiteEntryModel(info);

-					}

-				}

-				break;

-

-			case STATE_REQUIRES :

-				stateStack.pop();

-				if (objectStack.peek() instanceof FeatureModel) {

-					featureModel = (FeatureModel) objectStack.peek();

-					ImportModel[] importModels = featureModel.getImportModels();

-					if (importModels.length == 0) {

-						internalError(Policy.bind("DefaultFeatureParser.RequireStateWithoutImportElement"));

-						//$NON-NLS-1$

-						//$NON-NLS-1$

-					} else {

-						boolean patchMode = false;

-						for (int i = 0; i < importModels.length; i++) {

-							ImportModel importModel = importModels[i];

-							if (importModel.isPatch()) {

-								if (patchMode == false)

-									patchMode = true;

-								else {

-									internalError(Policy.bind("DefaultFeatureParser.MultiplePatchImports"));

-									break;

-								}

-							}

-						}

-					}

-				}

-				break;

-

-			case STATE_IMPORT :

-				stateStack.pop();

-				if (objectStack.peek() instanceof ImportModel) {

-					ImportModel importModel = (ImportModel) objectStack.pop();

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						featureModel.addImportModel(importModel);

-					}

-				}

-				break;

-

-			case STATE_PLUGIN :

-				stateStack.pop();

-				if (objectStack.peek() instanceof PluginEntryModel) {

-					PluginEntryModel pluginEntry = (PluginEntryModel) objectStack.pop();

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						featureModel.addPluginEntryModel(pluginEntry);

-					}

-				}

-				break;

-

-			case STATE_DATA :

-				stateStack.pop();

-				if (objectStack.peek() instanceof NonPluginEntryModel) {

-					NonPluginEntryModel nonPluginEntry = (NonPluginEntryModel) objectStack.pop();

-					if (objectStack.peek() instanceof FeatureModel) {

-						featureModel = (FeatureModel) objectStack.peek();

-						featureModel.addNonPluginEntryModel(nonPluginEntry);

-					}

-				}

-				break;

-

-			default :

-				internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownEndState") + state);

-				//$NON-NLS-1$

-				//$NON-NLS-1$

-				break;

-

-		}

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End Element:" + uri + ":" + localName + ":" + qName);

-		//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-	}

-	

-	/*

-	 * Method cleanupText.

-	 * Removes pre white space and post white space

-	 * return null if the text only contains whitespaces (\t \r\n and spaces)

-	 * 

-	 * @param text or null

-	 * @return String

-	 */

-	private String cleanupText(String text) {

-		text = text.trim();

-		if ("".equals(text)) return null;

-		return text;

-	}

-

-	/**

-	 * Handle character text

-	 * @see DefaultHandler#characters(char[], int, int)

-	 * @since 2.0

-	 */

-	public void characters(char[] ch, int start, int length) {

-		String text = "";

-		boolean valid = true;

-

-		if (valid) {

-			text = new String(ch, start, length);

-		}

-

-		//only push if not unknown state

-		int state = ((Integer) stateStack.peek()).intValue();

-		if (state == STATE_DESCRIPTION || state == STATE_COPYRIGHT || state == STATE_LICENSE)

-			objectStack.push(text);

-	}

-

-	/**

-	 * Handle errors

-	 * @see DefaultHandler#error(SAXParseException)

-	 * @since 2.0

-	 */

-	public void error(SAXParseException ex) {

-		logStatus(ex);

-	}

-

-	/**

-	 * Handle fatal errors

-	 * @see DefaultHandler#fatalError(SAXParseException)

-	 * @exception SAXException

-	 * @since 2.0

-	 */

-	public void fatalError(SAXParseException ex) throws SAXException {

-		logStatus(ex);

-		throw ex;

-	}

-

-	private void handleInitialState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(FEATURE)) {

-			stateStack.push(new Integer(STATE_FEATURE));

-			processFeature(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-	private void handleFeatureState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(HANDLER)) {

-			stateStack.push(new Integer(STATE_HANDLER));

-			processHandler(attributes);

-		} else if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION));

-			processInfo(attributes);

-		} else if (elementName.equals(COPYRIGHT)) {

-			stateStack.push(new Integer(STATE_COPYRIGHT));

-			processInfo(attributes);

-		} else if (elementName.equals(LICENSE)) {

-			stateStack.push(new Integer(STATE_LICENSE));

-			processInfo(attributes);

-		} else if (elementName.equals(URL)) {

-			stateStack.push(new Integer(STATE_URL));

-			//No process as URL tag does not contain any element itself

-		} else if (elementName.equals(INCLUDES)) {

-			stateStack.push(new Integer(STATE_INCLUDES));

-			processIncludes(attributes);

-		} else if (elementName.equals(REQUIRES)) {

-			stateStack.push(new Integer(STATE_REQUIRES));

-			processRequire(attributes);

-		} else if (elementName.equals(PLUGIN)) {

-			stateStack.push(new Integer(STATE_PLUGIN));

-			processPlugin(attributes);

-		} else if (elementName.equals(DATA)) {

-			stateStack.push(new Integer(STATE_DATA));

-			processData(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-	private void handleDescriptionState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(COPYRIGHT)) {

-			stateStack.push(new Integer(STATE_COPYRIGHT));

-			processInfo(attributes);

-		} else if (elementName.equals(LICENSE)) {

-			stateStack.push(new Integer(STATE_LICENSE));

-			processInfo(attributes);

-		} else if (elementName.equals(URL)) {

-			stateStack.push(new Integer(STATE_URL));

-			//No process as URL tag does not contain any element itself

-		} else if (elementName.equals(INCLUDES)) {

-			stateStack.push(new Integer(STATE_INCLUDES));

-			processIncludes(attributes);

-		} else if (elementName.equals(REQUIRES)) {

-			stateStack.push(new Integer(STATE_REQUIRES));

-			processRequire(attributes);

-		} else if (elementName.equals(PLUGIN)) {

-			stateStack.push(new Integer(STATE_PLUGIN));

-			processPlugin(attributes);

-		} else if (elementName.equals(DATA)) {

-			stateStack.push(new Integer(STATE_DATA));

-			processData(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-	private void handleURLState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(UPDATE)) {

-			stateStack.push(new Integer(STATE_UPDATE));

-			processURLInfo(attributes);

-		} else if (elementName.equals(DISCOVERY)) {

-			stateStack.push(new Integer(STATE_DISCOVERY));

-			processURLInfo(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-	private void handleRequiresState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(IMPORT)) {

-			stateStack.push(new Integer(STATE_IMPORT));

-			processImport(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-	private void handleUpdateDiscoveryState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(HANDLER)) {

-			stateStack.push(new Integer(STATE_HANDLER));

-			processHandler(attributes);

-		} else if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION));

-			processInfo(attributes);

-		} else if (elementName.equals(COPYRIGHT)) {

-			stateStack.push(new Integer(STATE_COPYRIGHT));

-			processInfo(attributes);

-		} else if (elementName.equals(LICENSE)) {

-			stateStack.push(new Integer(STATE_LICENSE));

-			processInfo(attributes);

-		} else if (elementName.equals(URL)) {

-			stateStack.push(new Integer(STATE_URL));

-			//No process as URL tag does not contain any element itself

-		} else if (elementName.equals(INCLUDES)) {

-			stateStack.push(new Integer(STATE_INCLUDES));

-			processIncludes(attributes);

-		} else if (elementName.equals(REQUIRES)) {

-			stateStack.push(new Integer(STATE_REQUIRES));

-			processRequire(attributes);

-		} else if (elementName.equals(PLUGIN)) {

-			stateStack.push(new Integer(STATE_PLUGIN));

-			processPlugin(attributes);

-		} else if (elementName.equals(DATA)) {

-			stateStack.push(new Integer(STATE_DATA));

-			processData(attributes);

-		} else if (elementName.equals(UPDATE)) {

-			stateStack.push(new Integer(STATE_UPDATE));

-			processURLInfo(attributes);

-		} else if (elementName.equals(DISCOVERY)) {

-			stateStack.push(new Integer(STATE_DISCOVERY));

-			processURLInfo(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-

-

-	private void handleImportState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(HANDLER)) {

-			stateStack.push(new Integer(STATE_HANDLER));

-			processHandler(attributes);

-		} else if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION));

-			processInfo(attributes);

-		} else if (elementName.equals(COPYRIGHT)) {

-			stateStack.push(new Integer(STATE_COPYRIGHT));

-			processInfo(attributes);

-		} else if (elementName.equals(LICENSE)) {

-			stateStack.push(new Integer(STATE_LICENSE));

-			processInfo(attributes);

-		} else if (elementName.equals(URL)) {

-			stateStack.push(new Integer(STATE_URL));

-			//No process as URL tag does not contain any element itself

-		} else if (elementName.equals(INCLUDES)) {

-			stateStack.push(new Integer(STATE_INCLUDES));

-			processIncludes(attributes);

-		} else if (elementName.equals(REQUIRES)) {

-			stateStack.push(new Integer(STATE_REQUIRES));

-			processRequire(attributes);

-		} else if (elementName.equals(PLUGIN)) {

-			stateStack.push(new Integer(STATE_PLUGIN));

-			processPlugin(attributes);

-		} else if (elementName.equals(DATA)) {

-			stateStack.push(new Integer(STATE_DATA));

-			processData(attributes);

-		} else if (elementName.equals(IMPORT)) {

-			stateStack.push(new Integer(STATE_IMPORT));

-			processImport(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultFeatureParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$

-	}

-

-	/*

-	 * Process feature information

-	 */

-	private void processFeature(Attributes attributes) {

-

-		// identifier and version

-		String id = attributes.getValue("id"); //$NON-NLS-1$

-		String ver = attributes.getValue("version"); //$NON-NLS-1$

-

-		if (id == null || id.trim().equals("") //$NON-NLS-1$

-		|| ver == null || ver.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultFeatureParser.IdOrVersionInvalid", new String[] { id, ver, getState(currentState)}));

-			//$NON-NLS-1$

-		} else {

-			// create feature model

-			FeatureModel feature = factory.createFeatureModel();

-

-			feature.setFeatureIdentifier(id);

-			feature.setFeatureVersion(ver);

-

-			// label

-			String label = attributes.getValue("label"); //$NON-NLS-1$

-			feature.setLabel(label);

-

-			// provider

-			String provider = attributes.getValue("provider-name"); //$NON-NLS-1$

-			feature.setProvider(provider);

-

-			//image

-			String imageURL = attributes.getValue("image"); //$NON-NLS-1$

-			feature.setImageURLString(imageURL);

-

-			// OS

-			String os = attributes.getValue("os"); //$NON-NLS-1$

-			feature.setOS(os);

-

-			// WS

-			String ws = attributes.getValue("ws"); //$NON-NLS-1$

-			feature.setWS(ws);

-

-			// NL

-			String nl = attributes.getValue("nl"); //$NON-NLS-1$

-			feature.setNL(nl);

-

-			// arch

-			String arch = attributes.getValue("arch"); //$NON-NLS-1$

-			feature.setArch(arch);

-

-			// primary

-			String primary = attributes.getValue("primary"); //$NON-NLS-1$

-			feature.setPrimary(primary != null && primary.trim().equalsIgnoreCase("true"));

-

-			// exclusive

-			String exclusive = attributes.getValue("exclusive"); //$NON-NLS-1$

-			feature.setExclusive(exclusive != null && exclusive.trim().equalsIgnoreCase("true"));

-			//$NON-NLS-1$

-

-			// application

-			String application = attributes.getValue("application"); //$NON-NLS-1$

-			feature.setApplication(application);

-

-			// affinity

-			String affinity = attributes.getValue("colocation-affinity"); //$NON-NLS-1$

-			feature.setAffinityFeature(affinity);

-

-			// primary plugin

-			String plugin = attributes.getValue("plugin");

-			feature.setPrimaryPluginID(plugin);

-

-			objectStack.push(feature);

-

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-				debug("End process DefaultFeature tag: id:" //$NON-NLS-1$

-				+id + " ver:" //$NON-NLS-1$

-				+ver + " label:" //$NON-NLS-1$

-				+label + " provider:" //$NON-NLS-1$

-				+provider);

-				debug("End process DefaultFeature tag: image:" + imageURL); //$NON-NLS-1$

-				debug("End process DefaultFeature tag: ws:" //$NON-NLS-1$

-				+ws + " os:" //$NON-NLS-1$

-				+os + " nl:" //$NON-NLS-1$

-				+nl + " application:" //$NON-NLS-1$

-				+application);

-			}

-		}

-	}

-

-	/* 

-	 * process URL info with element text

-	 */

-	private void processHandler(Attributes attributes) {

-		InstallHandlerEntryModel handler = factory.createInstallHandlerEntryModel();

-

-		String handlerURL = attributes.getValue("url"); //$NON-NLS-1$

-		handler.setURLString(handlerURL);

-

-		String library = attributes.getValue("library"); //$NON-NLS-1$

-		handler.setLibrary(library);

-

-		String clazz = attributes.getValue("handler"); //$NON-NLS-1$

-		handler.setHandlerName(clazz);

-

-		objectStack.push(handler);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Processed Handler: url:" //$NON-NLS-1$

-			+handlerURL + " library:" //$NON-NLS-1$

-			+library + " class:" //$NON-NLS-1$

-			+clazz);

-	}

-

-	/* 

-	 * process URL info with element text

-	 */

-	private void processInfo(Attributes attributes) {

-		URLEntryModel inf = factory.createURLEntryModel();

-		String infoURL = attributes.getValue("url"); //$NON-NLS-1$

-		inf.setURLString(infoURL);

-

-		objectStack.push(inf);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Processed Info: url:" + infoURL); //$NON-NLS-1$

-	}

-

-	/*

-	 * Process includes information

-	 */

-	private void processIncludes(Attributes attributes) {

-

-		// identifier and version

-		String id = attributes.getValue("id"); //$NON-NLS-1$

-		String ver = attributes.getValue("version"); //$NON-NLS-1$

-

-		if (id == null || id.trim().equals("") //$NON-NLS-1$

-		|| ver == null || ver.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultFeatureParser.IdOrVersionInvalid", new String[] { id, ver, getState(currentState)}));

-			//$NON-NLS-1$

-		}

-

-		IncludedFeatureReferenceModel includedFeature = factory.createIncludedFeatureReferenceModel();

-		includedFeature.setFeatureIdentifier(id);

-		includedFeature.setFeatureVersion(ver);

-

-		// name

-		String name = attributes.getValue("name");

-		includedFeature.setLabel(name);

-

-		// optional

-		String optional = attributes.getValue("optional");

-		boolean isOptional = "true".equalsIgnoreCase(optional);

-		includedFeature.isOptional(isOptional);

-

-		// match

-		String ruleName = attributes.getValue("match");

-		int rule = UpdateManagerUtils.getMatchingRule(ruleName);

-		includedFeature.setMatchingRule(rule);

-

-		// search location

-		String locationName = attributes.getValue("search-location");

-		// bug 27030

-		if (locationName == null)

-			locationName = attributes.getValue("search_location");

-		int searchLocation = IUpdateConstants.SEARCH_ROOT;

-		if ("both".equalsIgnoreCase(locationName))

-			searchLocation = IUpdateConstants.SEARCH_ROOT & IUpdateConstants.SEARCH_SELF;

-		if ("self".equalsIgnoreCase(locationName))

-			searchLocation = IUpdateConstants.SEARCH_SELF;				

-		includedFeature.setSearchLocation(searchLocation);

-

-		// os arch ws

-		String os = attributes.getValue("os");

-		includedFeature.setOS(os);

-

-		String ws = attributes.getValue("ws");

-		includedFeature.setWS(ws);

-

-		String arch = attributes.getValue("arch");

-		includedFeature.setArch(arch);

-

-		objectStack.push(includedFeature);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-			debug("End process Includes tag: id:" //$NON-NLS-1$

-			+id + " ver:" + ver); //$NON-NLS-1$

-			debug("name =" + name + " optional=" + optional + " match=" + ruleName + " search-location=" + locationName);

-			debug("os=" + os + " ws=" + ws + " arch=" + arch);

-		}

-	}

-

-	/* 

-	 * process URL info with label attribute

-	 */

-	private void processURLInfo(Attributes attributes) {

-		URLEntryModel inf = factory.createURLEntryModel();

-		String infoURL = attributes.getValue("url"); //$NON-NLS-1$

-		String label = attributes.getValue("label"); //$NON-NLS-1$

-		String type = attributes.getValue("type"); //$NON-NLS-1$

-		inf.setURLString(infoURL);

-		inf.setAnnotation(label);

-		

-		if ("web".equalsIgnoreCase(type))

-			inf.setType(IURLEntry.WEB_SITE);

-		else 

-			inf.setType(IURLEntry.UPDATE_SITE);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Processed URLInfo: url:" + infoURL + " label:" + label+" type:"+type);

-		//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-

-		objectStack.push(inf);

-	}

-

-	/* 

-	 * process import info

-	 */

-	private void processImport(Attributes attributes) {

-		String pluginID = attributes.getValue("plugin"); //$NON-NLS-1$

-		String featureID = attributes.getValue("feature"); //$NON-NLS-1$

-		String idMatch = attributes.getValue("id-match"); //$NON-NLS-1$

-

-		if (!(pluginID == null ^ featureID == null)) {

-			internalError(Policy.bind("DefaultFeatureParser.PluginAndFeatureId"));

-			return;

-		}

-

-		// since 2.0.2 , manage feature and plugin import

-		String id = null;

-		if (pluginID == null) {

-			id = featureID;

-		} else {

-			id = pluginID;

-		}

-

-		if (id == null || id.trim().equals("")) //$NON-NLS-1$

-			internalError(Policy.bind("DefaultFeatureParser.MissingId", getState(currentState)));

-		//$NON-NLS-1$

-		//$NON-NLS-1$

-		else {

-			ImportModel imp = factory.createImportModel();

-			String ver = attributes.getValue("version"); //$NON-NLS-1$

-			String match = attributes.getValue("match"); //$NON-NLS-1$

-			String patch = attributes.getValue("patch");

-

-			imp.setPatch(patch != null && patch.equalsIgnoreCase("true"));

-

-			if (ver == null) {

-				if (imp.isPatch()) {

-					internalError(Policy.bind("DefaultFeatureParser.MissingPatchVersion"));

-				}

-				ver = "0.0.0";

-				match = "greaterOrEqual";

-			} else if (match == null) {

-				if (imp.isPatch())

-					match = "perfect";

-				else

-					match = "compatible";

-			}

-

-			imp.setIdentifier(id);

-			imp.setVersion(ver);

-			imp.setFeatureImport(featureID != null);

-			imp.setMatchingRuleName(match);

-			imp.setMatchingIdRuleName(idMatch);

-

-			if (imp.isPatch()) {

-				// patch reference must be perfect.

-				if (match != null && !match.equalsIgnoreCase("perfect")) {

-					internalError(Policy.bind("DefaultFeatureParser.wrongMatchForPatch"));

-				}

-				if (imp.isFeatureImport() == false) {

-					imp.setPatch(false);

-					internalError(Policy.bind("DefaultFeatureParser.patchWithPlugin"));

-				}

-			}

-

-			// os arch ws

-			String os = attributes.getValue("os");

-			imp.setOS(os);

-

-			String ws = attributes.getValue("ws");

-			imp.setWS(ws);

-

-			String arch = attributes.getValue("arch");

-			imp.setOSArch(arch);

-

-			objectStack.push(imp);

-

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-				debug("Processed import: id:" + id + " ver:" + ver);

-				//$NON-NLS-1$ //$NON-NLS-2$

-				debug("Processed import: match:" + match); //$NON-NLS-1$

-			}

-

-		}

-	}

-

-	/* 

-	 * process import info

-	 */

-	private void processRequire(Attributes attributes) {

-	}

-

-	/* 

-	 * process plugin entry info

-	 */

-	private void processPlugin(Attributes attributes) {

-		String id = attributes.getValue("id"); //$NON-NLS-1$

-		String ver = attributes.getValue("version"); //$NON-NLS-1$

-		if (id == null || id.trim().equals("") //$NON-NLS-1$

-		|| ver == null || ver.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultFeatureParser.IdOrVersionInvalid", new String[] { id, ver, getState(currentState)}));

-			//$NON-NLS-1$

-		} else {

-			PluginEntryModel pluginEntry = factory.createPluginEntryModel();

-			pluginEntry.setPluginIdentifier(id);

-			pluginEntry.setPluginVersion(ver);

-

-			String fragment = attributes.getValue("fragment"); //$NON-NLS-1$

-			pluginEntry.isFragment(fragment != null && fragment.trim().equalsIgnoreCase("true"));

-			//$NON-NLS-1$			

-

-			//setOS

-			String os = attributes.getValue("os"); //$NON-NLS-1$

-			pluginEntry.setOS(os);

-

-			//setWS

-			String ws = attributes.getValue("ws"); //$NON-NLS-1$

-			pluginEntry.setWS(ws);

-

-			//setNL

-			String nl = attributes.getValue("nl"); //$NON-NLS-1$

-			pluginEntry.setNL(nl);

-

-			// setArch

-			String arch = attributes.getValue("arch"); //$NON-NLS-1$

-			pluginEntry.setArch(arch);

-

-			// download size

-			long download_size = ContentEntryModel.UNKNOWN_SIZE;

-			String download = attributes.getValue("download-size"); //$NON-NLS-1$

-			if (download != null && !download.trim().equals("")) { //$NON-NLS-1$

-				try {

-					download_size = Long.valueOf(download).longValue();

-				} catch (NumberFormatException e) {

-					// use UNKNOWN_SIZE

-				}

-			}

-			pluginEntry.setDownloadSize(download_size);

-

-			// install size	

-			long install_size = ContentEntryModel.UNKNOWN_SIZE;

-			String install = attributes.getValue("install-size"); //$NON-NLS-1$

-			if (install != null && !install.trim().equals("")) { //$NON-NLS-1$

-				try {

-					install_size = Long.valueOf(install).longValue();

-				} catch (NumberFormatException e) {

-					// use UNKNOWN_SIZE

-				}

-			}

-			pluginEntry.setInstallSize(install_size);

-

-			objectStack.push(pluginEntry);

-

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-				debug("Processed Plugin: id:" + id + " ver:" + ver + " fragment:" + fragment);

-				//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-				debug("Processed Plugin: os:" + os + " ws:" + ws + " nl:" + nl);

-				//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-				debug("Processed Plugin: download size:" //$NON-NLS-1$

-				+download_size + " install size:" //$NON-NLS-1$

-				+install_size);

-			}

-

-		}

-	}

-

-	/* 

-	 * process non-plug-in entry info

-	 */

-	private void processData(Attributes attributes) {

-		String id = attributes.getValue("id"); //$NON-NLS-1$

-		if (id == null || id.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultFeatureParser.MissingId", getState(currentState)));

-			//$NON-NLS-1$

-			//$NON-NLS-1$

-		} else {

-			NonPluginEntryModel dataEntry = factory.createNonPluginEntryModel();

-			dataEntry.setIdentifier(id);

-

-			//setOS

-			String os = attributes.getValue("os"); //$NON-NLS-1$

-			dataEntry.setOS(os);

-

-			//setWS

-			String ws = attributes.getValue("ws"); //$NON-NLS-1$

-			dataEntry.setWS(ws);

-

-			//setNL

-			String nl = attributes.getValue("nl"); //$NON-NLS-1$

-			dataEntry.setNL(nl);

-

-			// setArch

-			String arch = attributes.getValue("arch"); //$NON-NLS-1$

-			dataEntry.setArch(arch);

-

-			// download size

-			long download_size = ContentEntryModel.UNKNOWN_SIZE;

-			String download = attributes.getValue("download-size"); //$NON-NLS-1$

-			if (download != null && !download.trim().equals("")) { //$NON-NLS-1$

-				try {

-					download_size = Long.valueOf(download).longValue();

-				} catch (NumberFormatException e) {

-					// use UNKNOWN_SIZE

-				}

-			}

-			dataEntry.setDownloadSize(download_size);

-

-			// install size	

-			long install_size = ContentEntryModel.UNKNOWN_SIZE;

-			String install = attributes.getValue("install-size"); //$NON-NLS-1$

-			if (install != null && !install.trim().equals("")) { //$NON-NLS-1$

-				try {

-					install_size = Long.valueOf(install).longValue();

-				} catch (NumberFormatException e) {

-					// use UNKNOWN_SIZE

-				}

-			}

-			dataEntry.setInstallSize(install_size);

-

-			objectStack.push(dataEntry);

-

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-				debug("Processed Data: id:" + id); //$NON-NLS-1$

-				debug("Processed Data: download size:" //$NON-NLS-1$

-				+download_size + " install size:" //$NON-NLS-1$

-				+install_size);

-			}

-

-		}

-	}

-

-	private void debug(String s) {

-		UpdateCore.debug("DefaultFeatureParser: " + s); //$NON-NLS-1$

-	}

-

-	private void logStatus(SAXParseException ex) {

-		String name = ex.getSystemId();

-		if (name == null)

-			name = ""; //$NON-NLS-1$

-		else

-			name = name.substring(1 + name.lastIndexOf("/")); //$NON-NLS-1$

-

-		String msg;

-		if (name.equals("")) { //$NON-NLS-1$

-			msg = Policy.bind("DefaultFeatureParser.ErrorParsing", ex.getMessage());

-			//$NON-NLS-1$

-		} else {

-			String[] values = new String[] { name, Integer.toString(ex.getLineNumber()), Integer.toString(ex.getColumnNumber()), ex.getMessage()};

-			msg = Policy.bind("DefaultFeatureParser.ErrorlineColumnMessage", values);

-			//$NON-NLS-1$

-		}

-		error(new Status(IStatus.ERROR, PLUGIN_ID, Platform.PARSE_PROBLEM, msg, ex));

-	}

-

-	/*

-	 * Handles an error state specified by the status.  The collection of all logged status

-	 * objects can be accessed using <code>getStatus()</code>.

-	 *

-	 * @param error a status detailing the error condition

-	 */

-	private void error(IStatus error) {

-

-		if (status == null) {

-			status = new MultiStatus(PLUGIN_ID, Platform.PARSE_PROBLEM, Policy.bind("DefaultFeatureParser.ErrorParsingFeature"), null);

-			//$NON-NLS-1$

-		}

-

-		status.add(error);

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			UpdateCore.log(error);

-	}

-

-	private void internalErrorUnknownTag(String msg) {

-		stateStack.push(new Integer(STATE_IGNORED_ELEMENT));

-		internalError(msg);

-	}

-

-	private void internalError(String message) {

-		error(new Status(IStatus.ERROR, PLUGIN_ID, Platform.PARSE_PROBLEM, message, null));

-	}

-

-	/*

-	 * return the state as String

-	 */

-	private String getState(int state) {

-

-		switch (state) {

-			case STATE_IGNORED_ELEMENT :

-				return "Ignored"; //$NON-NLS-1$

-

-			case STATE_INITIAL :

-				return "Initial"; //$NON-NLS-1$

-

-			case STATE_FEATURE :

-				return "Feature"; //$NON-NLS-1$

-

-			case STATE_HANDLER :

-				return "Install Handler"; //$NON-NLS-1$

-

-			case STATE_DESCRIPTION :

-				return "description"; //$NON-NLS-1$

-

-			case STATE_INCLUDES :

-				return "includes"; //$NON-NLS-1$

-

-			case STATE_COPYRIGHT :

-				return "Copyright"; //$NON-NLS-1$

-

-			case STATE_LICENSE :

-				return "License"; //$NON-NLS-1$

-

-			case STATE_URL :

-				return "URL"; //$NON-NLS-1$

-

-			case STATE_UPDATE :

-				return "Update URL"; //$NON-NLS-1$

-

-			case STATE_DISCOVERY :

-				return "Discovery URL"; //$NON-NLS-1$

-

-			case STATE_REQUIRES :

-				return "Require"; //$NON-NLS-1$

-

-			case STATE_IMPORT :

-				return "Import"; //$NON-NLS-1$

-

-			case STATE_PLUGIN :

-				return "Plugin"; //$NON-NLS-1$

-

-			case STATE_DATA :

-				return "Data"; //$NON-NLS-1$

-

-			default :

-				return Policy.bind("DefaultFeatureParser.UnknownState", Integer.toString(state));

-				//$NON-NLS-1$

-		}

-

-	}

-

-	/**

-	 * @see org.xml.sax.ContentHandler#ignorableWhitespace(char, int, int)

-	 */

-	public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException {

-		super.ignorableWhitespace(arg0, arg1, arg2);

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultSiteParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultSiteParser.java
deleted file mode 100644
index 5280fd0..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/DefaultSiteParser.java
+++ /dev/null
@@ -1,713 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.io.*;

-import java.util.Iterator;

-import java.util.Stack;

-

-import org.apache.xerces.parsers.SAXParser;

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.SiteFeatureReferenceModel;

-import org.eclipse.update.internal.core.Policy;

-import org.eclipse.update.internal.core.UpdateCore;

-import org.xml.sax.*;

-import org.xml.sax.helpers.DefaultHandler;

-

-/**

- * Default site parser.

- * Parses the site manifest file as defined by the platform. Defers

- * to a model factory to create the actual concrete model objects. The 

- * update framework supplies two factory implementations:

- * <ul>

- * <li>@see org.eclipse.update.core.model.SiteModelFactory

- * <li>@see org.eclipse.update.core.BaseSiteFactory

- * </ul>

- * 

- * @since 2.0

- */

-public class DefaultSiteParser extends DefaultHandler {

-

-	private SAXParser parser;

-	private SiteModelFactory factory;

-

-	private MultiStatus status;

-

-	private boolean DESCRIPTION_SITE_ALREADY_SEEN = false;

-

-	private static final int STATE_IGNORED_ELEMENT = -1;

-	private static final int STATE_INITIAL = 0;

-	private static final int STATE_SITE = 1;

-	private static final int STATE_FEATURE = 2;

-	private static final int STATE_ARCHIVE = 3;

-	private static final int STATE_CATEGORY = 4;

-	private static final int STATE_CATEGORY_DEF = 5;

-	private static final int STATE_DESCRIPTION_SITE = 6;

-	private static final int STATE_DESCRIPTION_CATEGORY_DEF = 7;

-	private static final String PLUGIN_ID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-

-	private static final String SITE = "site"; //$NON-NLS-1$

-	private static final String FEATURE = "feature"; //$NON-NLS-1$

-	private static final String ARCHIVE = "archive"; //$NON-NLS-1$

-	private static final String CATEGORY_DEF = "category-def"; //$NON-NLS-1$

-	private static final String CATEGORY = "category"; //$NON-NLS-1$

-	private static final String DESCRIPTION = "description"; //$NON-NLS-1$

-

-	private static final String DEFAULT_INFO_URL = "index.html"; //$NON-NLS-1$

-

-	// Current State Information

-	Stack stateStack = new Stack();

-

-	// Current object stack (used to hold the current object we are

-	// populating in this plugin descriptor

-	Stack objectStack = new Stack();

-

-	private int currentState;

-

-	/**

-	 * Constructs a site parser.

-	 * 

-	 * @param factory site model factory

-	 */

-	public DefaultSiteParser() {

-		super();

-		this.parser = new SAXParser();

-		try {

-			parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);

-		} catch (SAXException e) {

-		}

-		this.parser.setContentHandler(this);

-		this.parser.setErrorHandler(this); // 18350

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Created"); //$NON-NLS-1$

-	}

-

-	public void init(SiteModelFactory factory) {

-		// PERF: separate instance creation from parsing

-		this.factory = factory;

-		stateStack = new Stack();

-		objectStack = new Stack();

-		status = null;

-		DESCRIPTION_SITE_ALREADY_SEEN = false;

-	}

-

-	/**

-	 * Parses the specified input steam and constructs a site model.

-	 * The input stream is not closed as part of this operation.

-	 * 

-	 * @param in input stream

-	 * @return site model

-	 * @exception SAXException

-	 * @exception IOException

-	 * @since 2.0

-	 */

-	public SiteModel parse(InputStream in) throws SAXException, IOException {

-		stateStack.push(new Integer(STATE_INITIAL));

-		currentState = ((Integer) stateStack.peek()).intValue();

-		parser.parse(new InputSource(in));

-		if (objectStack.isEmpty())

-			throw new SAXException(Policy.bind("DefaultSiteParser.NoSiteTag"));

-		//$NON-NLS-1$

-		else {

-			if (objectStack.peek() instanceof SiteModel) {

-				return (SiteModel) objectStack.pop();

-			} else {

-				String stack = ""; //$NON-NLS-1$

-				Iterator iter = objectStack.iterator();

-				while (iter.hasNext()) {

-					stack = stack + iter.next().toString() + "\r\n"; //$NON-NLS-1$

-				}

-				throw new SAXException(Policy.bind("DefaultSiteParser.WrongParsingStack", stack));

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/**

-	 * Returns all status objects accumulated by the parser.

-	 *

-	 * @return multi-status containing accumulated status, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public MultiStatus getStatus() {

-		return status;

-	}

-

-	/**

-	 * Handle start of element tags

-	 * @see DefaultHandler#startElement(String, String, String, Attributes)

-	 * @since 2.0

-	 */

-	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-			debug("State: " + currentState); //$NON-NLS-1$

-			debug("Start Element: uri:" + uri + " local Name:" + localName + " qName:" + qName);

-			//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-		}

-

-		switch (currentState) {

-			case STATE_IGNORED_ELEMENT :

-				internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", localName, getState(currentState)));

-				//$NON-NLS-1$

-				break;

-			case STATE_INITIAL :

-				handleInitialState(localName, attributes);

-				break;

-

-			case STATE_SITE :

-				handleSiteState(localName, attributes);

-				break;

-

-			case STATE_FEATURE :

-				handleFeatureState(localName, attributes);

-				break;

-

-			case STATE_ARCHIVE :

-				handleSiteState(localName, attributes);

-				break;

-

-			case STATE_CATEGORY :

-				handleCategoryState(localName, attributes);

-				break;

-

-			case STATE_CATEGORY_DEF :

-				handleCategoryDefState(localName, attributes);

-				break;

-

-			case STATE_DESCRIPTION_SITE :

-				handleSiteState(localName, attributes);

-				break;

-

-			case STATE_DESCRIPTION_CATEGORY_DEF :

-				handleSiteState(localName, attributes);

-				break;

-

-			default :

-				internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownStartState", getState(currentState)));

-				//$NON-NLS-1$

-				break;

-		}

-		int newState = ((Integer) stateStack.peek()).intValue();

-		if (newState != STATE_IGNORED_ELEMENT)

-			currentState = newState;

-

-	}

-

-	/**

-	 * Handle end of element tags

-	 * @see DefaultHandler#endElement(String, String, String)

-	 * @since 2.0

-	 */

-	public void endElement(String uri, String localName, String qName) {

-

-		String text = null;

-		URLEntryModel info = null;

-

-		int state = ((Integer) stateStack.peek()).intValue();

-		switch (state) {

-			case STATE_IGNORED_ELEMENT :

-			case STATE_ARCHIVE :

-			case STATE_CATEGORY :

-				stateStack.pop();

-				break;

-

-			case STATE_INITIAL :

-				internalError(Policy.bind("DefaultSiteParser.ParsingStackBackToInitialState"));

-				//$NON-NLS-1$

-				break;

-

-			case STATE_SITE :

-				stateStack.pop();

-				if (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop();

-					SiteModel site = (SiteModel) objectStack.peek();

-					site.getDescriptionModel().setAnnotation(text);

-				}

-				//do not pop the object

-				break;

-

-			case STATE_FEATURE :

-				stateStack.pop();

-				objectStack.pop();

-				break;

-

-			case STATE_CATEGORY_DEF :

-				stateStack.pop();

-				if (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop();

-					CategoryModel category = (CategoryModel) objectStack.peek();

-					category.getDescriptionModel().setAnnotation(text);

-				}

-				objectStack.pop();

-				break;

-

-			case STATE_DESCRIPTION_SITE :

-				stateStack.pop();

-				text = ""; //$NON-NLS-1$

-				while (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop() + text;

-				}

-

-				info = (URLEntryModel) objectStack.pop();

-				if (text != null)

-					info.setAnnotation(text);

-

-				SiteModel siteModel = (SiteModel) objectStack.peek();

-				// override description.

-				// do not raise error as previous description may be default one

-				// when parsing site tag

-				if (DESCRIPTION_SITE_ALREADY_SEEN)

-					debug(Policy.bind("DefaultSiteParser.ElementAlreadySet", getState(state)));

-				//$NON-NLS-1$

-				siteModel.setDescriptionModel(info);

-				DESCRIPTION_SITE_ALREADY_SEEN = true;

-				break;

-

-			case STATE_DESCRIPTION_CATEGORY_DEF :

-				stateStack.pop();

-				text = ""; //$NON-NLS-1$

-				while (objectStack.peek() instanceof String) {

-					text = (String) objectStack.pop() + text;

-				}

-

-				info = (URLEntryModel) objectStack.pop();

-				if (text != null)

-					info.setAnnotation(text);

-

-				CategoryModel category = (CategoryModel) objectStack.peek();

-				if (category.getDescriptionModel() != null)

-					internalError(Policy.bind("DefaultSiteParser.ElementAlreadySet2", getState(state), category.getLabel()));

-				//$NON-NLS-1$

-				else

-					category.setDescriptionModel(info);

-				break;

-

-			default :

-				internalError(Policy.bind("DefaultSiteParser.UnknownEndState", getState(state)));

-				//$NON-NLS-1$

-				break;

-		}

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End Element:" + uri + ":" + localName + ":" + qName);

-		//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-	}

-

-	/**

-	 * Handle character text

-	 * @see DefaultHandler#characters(char[], int, int)

-	 * @since 2.0

-	 */

-	public void characters(char[] ch, int start, int length) {

-		String text = new String(ch, start, length).trim();

-		//only push if description

-		int state = ((Integer) stateStack.peek()).intValue();

-		if (state == STATE_DESCRIPTION_SITE || state == STATE_DESCRIPTION_CATEGORY_DEF)

-			objectStack.push(text);

-

-	}

-

-	/**

-	 * Handle errors

-	 * @see DefaultHandler#error(SAXParseException)

-	 * @since 2.0

-	 */

-	public void error(SAXParseException ex) {

-		logStatus(ex);

-	}

-

-	/**

-	 * Handle fatal errors

-	 * @see DefaultHandler#fatalError(SAXParseException)

-	 * @exception SAXException

-	 * @since 2.0

-	 */

-	public void fatalError(SAXParseException ex) throws SAXException {

-		logStatus(ex);

-		throw ex;

-	}

-

-	private void handleInitialState(String elementName, Attributes attributes) throws SAXException {

-		if (elementName.equals(SITE)) {

-			stateStack.push(new Integer(STATE_SITE));

-			processSite(attributes);

-		} else {

-			internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", elementName, getState(currentState)));

-			//$NON-NLS-1$

-			// what we received was not a site.xml, no need to continue

-			throw new SAXException(Policy.bind("DefaultSiteParser.InvalidXMLStream")); //$NON-NLS-1$

-		}

-

-	}

-

-	private void handleSiteState(String elementName, Attributes attributes) {

-		if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION_SITE));

-			processInfo(attributes);

-		} else if (elementName.equals(FEATURE)) {

-			stateStack.push(new Integer(STATE_FEATURE));

-			processFeature(attributes);

-		} else if (elementName.equals(ARCHIVE)) {

-			stateStack.push(new Integer(STATE_ARCHIVE));

-			processArchive(attributes);

-		} else if (elementName.equals(CATEGORY_DEF)) {

-			stateStack.push(new Integer(STATE_CATEGORY_DEF));

-			processCategoryDef(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$ 			

-	}

-

-	private void handleFeatureState(String elementName, Attributes attributes) {

-		if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION_SITE));

-			processInfo(attributes);

-		} else if (elementName.equals(FEATURE)) {

-			stateStack.push(new Integer(STATE_FEATURE));

-			processFeature(attributes);

-		} else if (elementName.equals(ARCHIVE)) {

-			stateStack.push(new Integer(STATE_ARCHIVE));

-			processArchive(attributes);

-		} else if (elementName.equals(CATEGORY_DEF)) {

-			stateStack.push(new Integer(STATE_CATEGORY_DEF));

-			processCategoryDef(attributes);

-		} else if (elementName.equals(CATEGORY)) {

-			stateStack.push(new Integer(STATE_CATEGORY));

-			processCategory(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$ 			

-	}

-

-	private void handleCategoryDefState(String elementName, Attributes attributes) {

-		if (elementName.equals(FEATURE)) {

-			stateStack.push(new Integer(STATE_FEATURE));

-			processFeature(attributes);

-		} else if (elementName.equals(ARCHIVE)) {

-			stateStack.push(new Integer(STATE_ARCHIVE));

-			processArchive(attributes);

-		} else if (elementName.equals(CATEGORY_DEF)) {

-			stateStack.push(new Integer(STATE_CATEGORY_DEF));

-			processCategoryDef(attributes);

-		} else if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION_CATEGORY_DEF));

-			processInfo(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$ 			

-	}

-

-	private void handleCategoryState(String elementName, Attributes attributes) {

-		if (elementName.equals(DESCRIPTION)) {

-			stateStack.push(new Integer(STATE_DESCRIPTION_SITE));

-			processInfo(attributes);

-		} else if (elementName.equals(FEATURE)) {

-			stateStack.push(new Integer(STATE_FEATURE));

-			processFeature(attributes);

-		} else if (elementName.equals(ARCHIVE)) {

-			stateStack.push(new Integer(STATE_ARCHIVE));

-			processArchive(attributes);

-		} else if (elementName.equals(CATEGORY_DEF)) {

-			stateStack.push(new Integer(STATE_CATEGORY_DEF));

-			processCategoryDef(attributes);

-		} else if (elementName.equals(CATEGORY)) {

-			stateStack.push(new Integer(STATE_CATEGORY));

-			processCategory(attributes);

-		} else

-			internalErrorUnknownTag(Policy.bind("DefaultSiteParser.UnknownElement", elementName, getState(currentState)));

-		//$NON-NLS-1$ 			

-	}

-

-	/* 

-	 * process site info

-	 */

-	private void processSite(Attributes attributes) throws SAXException {

-		// create site map

-		SiteModel site = factory.createSiteMapModel();

-

-		// if URL is specified, it replaces the URL of the site

-		// used to calculate the location of features and archives

-		String siteURL = attributes.getValue("url"); //$NON-NLS-1$

-		if (siteURL != null && !("".equals(siteURL.trim()))) { //$NON-NLS-1$

-			if (!siteURL.endsWith("/") && !siteURL.endsWith(File.separator)) { //$NON-NLS-1$

-				siteURL += "/"; //$NON-NLS-1$

-			}

-			site.setLocationURLString(siteURL);

-		}

-

-		// provide default description URL

-		// If <description> is specified, for the site,  it takes precedence		

-		URLEntryModel description = factory.createURLEntryModel();

-		description.setURLString(DEFAULT_INFO_URL);

-		site.setDescriptionModel(description);

-

-		// verify we can parse the site ...if the site has

-		// a different type throw an exception to force reparsing

-		// with the matching parser

-		String type = attributes.getValue("type"); //$NON-NLS-1$

-		if (!factory.canParseSiteType(type)) {

-			throw new SAXException(new InvalidSiteTypeException(type));

-		}

-		site.setType(type);

-		objectStack.push(site);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End process Site tag: siteURL:" + siteURL + " type:" + type);

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-	}

-

-	/* 

-	 * process feature info

-	 */

-	private void processFeature(Attributes attributes) {

-		SiteFeatureReferenceModel feature = factory.createFeatureReferenceModel();

-		String urlInfo = attributes.getValue("url"); //$NON-NLS-1$

-		if (urlInfo == null || urlInfo.trim().equals("")) //$NON-NLS-1$

-			internalError(Policy.bind("DefaultSiteParser.Missing", "url", getState(currentState)));

-		//$NON-NLS-1$  //$NON-NLS-2$

-

-		feature.setURLString(urlInfo);

-

-		String type = attributes.getValue("type"); //$NON-NLS-1$

-		feature.setType(type);

-

-		// identifier and version

-		String id = attributes.getValue("id"); //$NON-NLS-1$

-		String ver = attributes.getValue("version"); //$NON-NLS-1$

-

-		// if one is null, and not the other

-		if ((id == null || id.trim().equals("")) //$NON-NLS-1$

-		^ (ver == null || ver.trim().equals(""))) { //$NON-NLS-1$

-			String[] values = new String[] { id, ver, getState(currentState)};

-			UpdateCore.warn(Policy.bind("DefaultFeatureParser.IdOrVersionInvalid", values));

-			//$NON-NLS-1$

-		} else {

-			feature.setFeatureIdentifier(id);

-			feature.setFeatureVersion(ver);

-		}

-

-		// get label if it exists

-		String label = attributes.getValue("label"); //$NON-NLS-1$

-		if (label != null) {

-			if ("".equals(label.trim()))

-				label = null;

-		}

-		feature.setLabel(label);

-

-		// OS

-		String os = attributes.getValue("os"); //$NON-NLS-1$

-		feature.setOS(os);

-

-		// WS

-		String ws = attributes.getValue("ws"); //$NON-NLS-1$

-		feature.setWS(ws);

-

-		// NL

-		String nl = attributes.getValue("nl"); //$NON-NLS-1$

-		feature.setNL(nl);

-

-		// arch

-		String arch = attributes.getValue("arch"); //$NON-NLS-1$

-		feature.setArch(arch);

-

-		//patch

-		String patch = attributes.getValue("patch");

-		feature.setPatch(patch);

-

-		SiteModel site = (SiteModel) objectStack.peek();

-		site.addFeatureReferenceModel(feature);

-		feature.setSiteModel(site);

-

-		objectStack.push(feature);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End Processing DefaultFeature Tag: url:" + urlInfo + " type:" + type);

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-	}

-

-	/* 

-	 * process archive info

-	 */

-	private void processArchive(Attributes attributes) {

-		ArchiveReferenceModel archive = factory.createArchiveReferenceModel();

-		String id = attributes.getValue("path"); //$NON-NLS-1$

-		if (id == null || id.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultSiteParser.Missing", "path", getState(currentState)));

-			//$NON-NLS-1$  //$NON-NLS-2$

-		}

-

-		archive.setPath(id);

-

-		String url = attributes.getValue("url"); //$NON-NLS-1$

-		if (url == null || url.trim().equals("")) { //$NON-NLS-1$

-			internalError(Policy.bind("DefaultSiteParser.Missing", "archive", getState(currentState)));

-			//$NON-NLS-1$  //$NON-NLS-2$

-		} else {

-			archive.setURLString(url);

-

-			SiteModel site = (SiteModel) objectStack.peek();

-			site.addArchiveReferenceModel(archive);

-		}

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End processing Archive: path:" + id + " url:" + url);

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-	}

-

-	/* 

-	 * process the Category  info

-	 */

-	private void processCategory(Attributes attributes) {

-		String category = attributes.getValue("name"); //$NON-NLS-1$

-		SiteFeatureReferenceModel feature = (SiteFeatureReferenceModel) objectStack.peek();

-		feature.addCategoryName(category);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End processing Category: name:" + category); //$NON-NLS-1$

-	}

-

-	/* 

-	 * process category def info

-	 */

-	private void processCategoryDef(Attributes attributes) {

-		CategoryModel category = factory.createSiteCategoryModel();

-		String name = attributes.getValue("name"); //$NON-NLS-1$

-		String label = attributes.getValue("label"); //$NON-NLS-1$

-		category.setName(name);

-		category.setLabel(label);

-

-		SiteModel site = (SiteModel) objectStack.peek();

-		site.addCategoryModel(category);

-		objectStack.push(category);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("End processing CategoryDef: name:" + name + " label:" + label);

-		//$NON-NLS-1$ //$NON-NLS-2$

-	}

-

-	/* 

-	 * process URL info with element text

-	 */

-	private void processInfo(Attributes attributes) {

-		URLEntryModel inf = factory.createURLEntryModel();

-		String infoURL = attributes.getValue("url"); //$NON-NLS-1$

-		inf.setURLString(infoURL);

-

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			debug("Processed Info: url:" + infoURL); //$NON-NLS-1$

-

-		objectStack.push(inf);

-	}

-

-	/*

-	 * 

-	 */

-	private void debug(String s) {

-		UpdateCore.debug("DefaultSiteParser" + s);

-	}

-

-	/*

-	 * 

-	 */

-	private void logStatus(SAXParseException ex) {

-		String name = ex.getSystemId();

-		if (name == null)

-			name = ""; //$NON-NLS-1$

-		else

-			name = name.substring(1 + name.lastIndexOf("/")); //$NON-NLS-1$

-

-		String msg;

-		if (name.equals("")) //$NON-NLS-1$

-			msg = Policy.bind("DefaultSiteParser.ErrorParsing", ex.getMessage());

-		//$NON-NLS-1$

-		else {

-			String[] values = new String[] { name, Integer.toString(ex.getLineNumber()), Integer.toString(ex.getColumnNumber()), ex.getMessage()};

-			msg = Policy.bind("DefaultSiteParser.ErrorLineColumnMessage", values);

-			//$NON-NLS-1$

-		}

-		error(new Status(IStatus.ERROR, PLUGIN_ID, Platform.PARSE_PROBLEM, msg, ex));

-	}

-

-	/*

-	 * Handles an error state specified by the status.  The collection of all logged status

-	 * objects can be accessed using <code>getStatus()</code>.

-	 *

-	 * @param error a status detailing the error condition

-	 */

-	private void error(IStatus error) {

-

-		if (status == null) {

-			status = new MultiStatus(PLUGIN_ID, Platform.PARSE_PROBLEM, Policy.bind("DefaultSiteParser.ErrorParsingSite"), null);

-			//$NON-NLS-1$

-		}

-

-		status.add(error);

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING)

-			UpdateCore.log(error);

-	}

-

-	/*

-	 * 

-	 */

-	private void internalErrorUnknownTag(String msg) {

-		stateStack.push(new Integer(STATE_IGNORED_ELEMENT));

-		internalError(msg);

-	}

-

-	/*

-	 * 

-	 */

-	private void internalError(String message) {

-		error(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));

-	}

-

-	/*

-	 * return the state as String

-	 */

-	private String getState(int state) {

-

-		switch (state) {

-			case STATE_IGNORED_ELEMENT :

-				return "Ignored"; //$NON-NLS-1$

-

-			case STATE_INITIAL :

-				return "Initial"; //$NON-NLS-1$

-

-			case STATE_SITE :

-				return "Site"; //$NON-NLS-1$

-

-			case STATE_FEATURE :

-				return "Feature"; //$NON-NLS-1$

-

-			case STATE_ARCHIVE :

-				return "Archive"; //$NON-NLS-1$

-

-			case STATE_CATEGORY :

-				return "Category"; //$NON-NLS-1$

-

-			case STATE_CATEGORY_DEF :

-				return "Category Def"; //$NON-NLS-1$

-

-			case STATE_DESCRIPTION_CATEGORY_DEF :

-				return "Description / Category Def"; //$NON-NLS-1$

-

-			case STATE_DESCRIPTION_SITE :

-				return "Description / Site"; //$NON-NLS-1$

-

-			default :

-				return Policy.bind("DefaultSiteParser.UnknownState"); //$NON-NLS-1$

-		}

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModel.java
deleted file mode 100644
index a679e1a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModel.java
+++ /dev/null
@@ -1,949 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-

-package org.eclipse.update.core.model;

-

-

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.update.core.IIncludedFeatureReference;

-import org.eclipse.update.core.VersionedIdentifier;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Feature model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.Feature

- * @since 2.0

- */

-public class FeatureModel extends ModelObject {

-

-	private String featureId;

-	private String featureVersion;

-	private String label;

-	private String localizedLabel;

-	private String provider;

-	private String localizedProvider;

-	private String imageURLString;

-	private URL imageURL;

-	private String os;

-	private String ws;

-	private String nl;

-	private String arch;

-	private boolean primary = false;

-	private boolean exclusive=false;

-	private String primaryPluginID;

-	private String application;

-	private String affinity;

-	private InstallHandlerEntryModel installHandler;

-	private URLEntryModel description;

-	private URLEntryModel copyright;

-	private URLEntryModel license;

-	private URLEntryModel updateSiteInfo;

-	private List /*of InfoModel*/

-	discoverySiteInfo;

-	private List /*of ImportModel*/

-	imports;

-	private List /*of PluginEntryModel*/

-	pluginEntries;

-	private List /*of IncludedFeatureReferenceModel */

-	featureIncludes;

-	private List /*of NonPluginEntryModel*/

-	nonPluginEntries;

-	private List /*of ContentGroupModel*/

-	groupEntries;

-

-	// performance

-	private URL bundleURL;

-	private URL base;

-	private boolean resolved = false;

-

-	/**

-	 * Creates an uninitialized feature object.

-	 * 

-	 * @since 2.0

-	 */

-	public FeatureModel() {

-		super();

-	}

-

-	/**

-	 * Compares 2 feature models for equality

-	 *  

-	 * @param obj feature model to compare with

-	 * @return <code>true</code> if the two models are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object obj) {

-		if (!(obj instanceof FeatureModel))

-			return false;

-		FeatureModel model = (FeatureModel) obj;

-

-		return (featureId.toLowerCase().equals(model.getFeatureIdentifier()) && featureVersion.toLowerCase().equals(model.getFeatureVersion()));

-	}

-

-	/**

-	 * Returns the feature identifier as a string

-	 * 

-	 * @see org.eclipse.update.core.IFeature#getVersionedIdentifier()

-	 * @return feature identifier

-	 * @since 2.0

-	 */

-	public String getFeatureIdentifier() {

-		//delayedResolve(); no delay

-		return featureId;

-	}

-

-	/**

-	 * Returns the feature version as a string

-	 * 

-	 * @see org.eclipse.update.core.IFeature#getVersionedIdentifier()

-	 * @return feature version 

-	 * @since 2.0

-	 */

-	public String getFeatureVersion() {

-		//delayedResolve(); no delay

-		return featureVersion;

-	}

-

-	/**

-	 * Retrieve the displayable label for the feature. If the model

-	 * object has been resolved, the label is localized.

-	 * 

-	 * @return displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getLabel() {

-		delayedResolve();

-		if (localizedLabel != null)

-			return localizedLabel;

-		else

-			return label;

-	}

-

-	/**

-	 * Retrieve the non-localized displayable label for the feature.

-	 * 

-	 * @return non-localized displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getLabelNonLocalized() {

-		return label;

-	}

-

-	/**

-	 * Retrieve the displayable label for the feature provider. If the model

-	 * object has been resolved, the label is localized.

-	 * 

-	 * @return displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getProvider() {

-		delayedResolve();

-		if (localizedProvider != null)

-			return localizedProvider;

-		else

-			return provider;

-	}

-

-	/**

-	 * Retrieve the non-localized displayable label for the feature provider.

-	 * 

-	 * @return non-localized displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getProviderNonLocalized() {

-		return provider;

-	}

-

-	/**

-	 * Returns the unresolved URL string for the feature image.

-	 *

-	 * @return url string, or <code>null</code>

-	 * @since 2.0

-	 */

-	public String getImageURLString() {

-		delayedResolve();

-		return imageURLString;

-	}

-

-	/**

-	 * Returns the resolved URL for the image.

-	 * 

-	 * @return url, or <code>null</code>

-	 * @since 2.0

-	 */

-	public URL getImageURL() {

-		delayedResolve();

-		return imageURL;

-	}

-

-	/**

-	 * Get optional operating system specification as a comma-separated string.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the operating system specification string, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getOS() {

-		return os;

-	}

-

-	/**

-	 * Get optional windowing system specification as a comma-separated string.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the windowing system specification string, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getWS() {

-		return ws;

-	}

-

-	/**

-	 * Get optional system architecture specification as a comma-separated string.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader 

-	 * @return the system architecture specification string, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getOSArch() {

-		return arch;

-	}

-

-	/**

-	 * Get optional locale specification as a comma-separated string.

-	 * 

-	 * @return the locale specification string, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getNL() {

-		return nl;

-	}

-

-	/**

-	 * Indicates whether the feature can be used as a primary feature.

-	 * 

-	 * @return <code>true</code> if this is a primary feature, 

-	 * otherwise <code>false</code>

-	 * @since 2.0

-	 */

-	public boolean isPrimary() {

-		return primary;

-	}

-	

-	/**

-	 * Indicates whether the feature must be processed alone

-	 * during installation and configuration. Features that

-	 * are not exclusive can be installed in a batch.

-	 * 

-	 * @return <code>true</code> if feature requires

-	 * exclusive processing, <code>false</code> otherwise.

-	 * @since 2.1

-	 */

-	public boolean isExclusive() {

-		return exclusive;

-	}

-

-	/**

-	 * Returns an optional identifier for the feature application

-	 * 

-	 * @return application identifier, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getApplication() {

-		return application;

-	}

-

-	/**

-	 * Returns an optional identifier for the colocation affinity feature

-	 * 

-	 * @return feature identifier, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getAffinityFeature() {

-		return affinity;

-	}

-

-	/**

-	 * Returns and optional custom install handler entry.

-	 * 

-	 * @return install handler entry, or <code>null</code> if

-	 * none was specified

-	 * @since 2.0

-	 */

-	public InstallHandlerEntryModel getInstallHandlerModel() {

-		//delayedResolve(); no delay

-		return installHandler;

-	}

-

-	/**

-	 * Returns the feature description.

-	 * 

-	 * @return feature rescription, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public URLEntryModel getDescriptionModel() {

-		//delayedResolve(); no delay

-		return description;

-	}

-

-	/**

-	 * Returns the copyright information for the feature.

-	 * 

-	 * @return copyright information, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public URLEntryModel getCopyrightModel() {

-		//delayedResolve(); no delay

-		return copyright;

-	}

-

-	/**

-	 * Returns the license information for the feature.

-	 * 

-	 * @return feature license, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public URLEntryModel getLicenseModel() {

-		//delayedResolve(); no delay;

-		return license;

-	}

-

-	/**

-	 * Returns an information entry referencing the location of the

-	 * feature update site.

-	 * 

-	 * @return update site entry, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public URLEntryModel getUpdateSiteEntryModel() {

-		//delayedResolve(); no delay;

-		return updateSiteInfo;

-	}

-

-	/**

-	 * Return an array of information entries referencing locations of other

-	 * update sites. 

-	 * 

-	 * @return an array of site entries, or an empty array.

-	 * @since 2.0 

-	 * @since 2.0

-	 */

-	public URLEntryModel[] getDiscoverySiteEntryModels() {

-		//delayedResolve(); no delay;

-		if (discoverySiteInfo == null)

-			return new URLEntryModel[0];

-

-		return (URLEntryModel[]) discoverySiteInfo.toArray(arrayTypeFor(discoverySiteInfo));

-	}

-

-	/**

-	 * Return a list of plug-in dependencies for this feature.

-	 * 

-	 * @return the list of required plug-in dependencies, or an empty array.

-	 * @since 2.0

-	 */

-	public ImportModel[] getImportModels() {

-		//delayedResolve(); no delay;

-		if (imports == null)

-			return new ImportModel[0];

-

-		return (ImportModel[]) imports.toArray(arrayTypeFor(imports));

-	}

-

-	/**

-	 * Returns an array of plug-in entries referenced by this feature

-	 * 

-	 * @return an erray of plug-in entries, or an empty array.

-	 * @since 2.0

-	 */

-	public PluginEntryModel[] getPluginEntryModels() {

-		if (pluginEntries == null)

-			return new PluginEntryModel[0];

-

-		return (PluginEntryModel[]) pluginEntries.toArray(arrayTypeFor(pluginEntries));

-	}

-

-	/**

-	 * Returns an array of versioned identifier referenced by this feature

-	 * 

-	 * @return an array of versioned identifier, or an empty array.

-	 * @deprecated use getFeatureIncludeIdentifier instead.

-	 * @since 2.0

-	 */

-	public VersionedIdentifier[] getFeatureIncludeVersionedIdentifier() {

-		//delayedResolve(); no delay

-		if (featureIncludes == null)

-			return new VersionedIdentifier[0];

-

-		//

-		Iterator iter = featureIncludes.iterator();

-		VersionedIdentifier[] versionIncluded = new VersionedIdentifier[featureIncludes.size()];

-		int index = 0;

-		while (iter.hasNext()) {

-			IncludedFeatureReferenceModel model = (IncludedFeatureReferenceModel) iter.next();

-			versionIncluded[index] = model.getVersionedIdentifier();

-			index++;

-		}

-		return versionIncluded;

-	}

-

-	/**

-	 * Returns an array of included feature reference model referenced by this feature.

-	 *

-	 * @return an array of included feature reference model, or an empty array.

-	 * @since 2.0

-	 */

-	public IIncludedFeatureReference[] getFeatureIncluded() {

-		//delayedResolve(); no delay

-		if (featureIncludes == null)

-			return new IIncludedFeatureReference[0];

-		return (IIncludedFeatureReference[]) featureIncludes.toArray(arrayTypeFor(featureIncludes));

-	}

-

-	/**

-	 * Returns an array of non-plug-in entries referenced by this feature

-	 * 

-	 * @return an erray of non-plug-in entries, or an empty array.

-	 * @since 2.0

-	 */

-	public NonPluginEntryModel[] getNonPluginEntryModels() {

-		if (nonPluginEntries == null)

-			return new NonPluginEntryModel[0];

-

-		return (NonPluginEntryModel[]) nonPluginEntries.toArray(arrayTypeFor(nonPluginEntries));

-	}

-

-	/**

-	 * Sets the feature identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param featureId feature identifier

-	 * @since 2.0

-	 */

-	public void setFeatureIdentifier(String featureId) {

-		assertIsWriteable();

-		this.featureId = featureId;

-	}

-

-	/**

-	 * Sets the feature version.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param featureVersion feature version

-	 * @since 2.0

-	 */

-	public void setFeatureVersion(String featureVersion) {

-		assertIsWriteable();

-		this.featureVersion = featureVersion;

-	}

-

-	/**

-	 * Sets the feature displayable label.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param label displayable label

-	 * @since 2.0

-	 */

-	public void setLabel(String label) {

-		assertIsWriteable();

-		this.label = label;

-		this.localizedLabel = null;

-	}

-

-	/**

-	 * Sets the feature provider displayable label.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param provider provider displayable label

-	 * @since 2.0

-	 */

-	public void setProvider(String provider) {

-		assertIsWriteable();

-		this.provider = provider;

-		this.localizedProvider = null;

-	}

-

-	/**

-	 * Sets the unresolved URL for the feature image.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param imageURLString unresolved URL string

-	 * @since 2.0

-	 */

-	public void setImageURLString(String imageURLString) {

-		assertIsWriteable();

-		this.imageURLString = imageURLString;

-		this.imageURL = null;

-	}

-

-	/**

-	 * Sets the operating system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param os operating system specification as a comma-separated list

-	 * @since 2.0

-	 */

-	public void setOS(String os) {

-		assertIsWriteable();

-		this.os = os;

-	}

-

-	/**

-	 * Sets the windowing system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param ws windowing system specification as a comma-separated list

-	 * @since 2.0

-	 */

-	public void setWS(String ws) {

-		assertIsWriteable();

-		this.ws = ws;

-	}

-

-	/**

-	 * Sets the locale specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param nl locale specification as a comma-separated list

-	 * @since 2.0

-	 */

-	public void setNL(String nl) {

-		assertIsWriteable();

-		this.nl = nl;

-	}

-

-	/**

-	 * Sets the system architecture specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param arch system architecture specification as a comma-separated list

-	 * @since 2.0

-	 */

-	public void setArch(String arch) {

-		assertIsWriteable();

-		this.arch = arch;

-	}

-

-	/**

-	 * Indicates whether this feature can act as a primary feature.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param primary <code>true</code> if this feature can act as primary,

-	 * <code>false</code> otherwise

-	 * 

-	 * @since 2.0

-	 */

-	public void setPrimary(boolean primary) {

-		assertIsWriteable();

-		this.primary = primary;

-	}

-	

-	/**

-	 * Indicates whether this feature can act as a primary feature.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param exclusive <code>true</code> if this feature must be

-	 * processed independently from other features, <code>false</code> 

-	 * if feature can be processed in a batch with other features.

-	 * 

-	 * @since 2.1

-	 */

-	public void setExclusive(boolean exclusive) {

-		assertIsWriteable();

-		this.exclusive = exclusive;

-	}

-

-	/**

-	 * Sets the feature application identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param application feature application identifier

-	 * @since 2.0

-	 */

-	public void setApplication(String application) {

-		assertIsWriteable();

-		this.application = application;

-	}

-

-	/**

-	 * Sets the identifier of the Feature this feature should be

-	 * installed with.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param affinity the identifier of the Feature

-	 * @since 2.0

-	 */

-	public void setAffinityFeature(String affinity) {

-		assertIsWriteable();

-		this.affinity = affinity;

-	}

-

-	/**

-	 * Sets the custom install handler for the feature.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param installHandler install handler entry

-	 * @since 2.0

-	 */

-	public void setInstallHandlerModel(InstallHandlerEntryModel installHandler) {

-		assertIsWriteable();

-		this.installHandler = installHandler;

-	}

-

-	/**

-	 * Sets the feature description information.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param description feature description information

-	 * @since 2.0

-	 */

-	public void setDescriptionModel(URLEntryModel description) {

-		assertIsWriteable();

-		this.description = description;

-	}

-

-	/**

-	 * Sets the feature copyright information.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param copyright feature copyright information

-	 * @since 2.0

-	 */

-	public void setCopyrightModel(URLEntryModel copyright) {

-		assertIsWriteable();

-		this.copyright = copyright;

-	}

-

-	/**

-	 * Sets the feature license information.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param license feature license information

-	 * @since 2.0

-	 */

-	public void setLicenseModel(URLEntryModel license) {

-		assertIsWriteable();

-		this.license = license;

-	}

-

-	/**

-	 * Sets the feature update site reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param updateSiteInfo feature update site reference

-	 * @since 2.0

-	 */

-	public void setUpdateSiteEntryModel(URLEntryModel updateSiteInfo) {

-		assertIsWriteable();

-		this.updateSiteInfo = updateSiteInfo;

-	}

-

-	/**

-	 * Sets additional update site references.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param discoverySiteInfo additional update site references

-	 * @since 2.0

-	 */

-	public void setDiscoverySiteEntryModels(URLEntryModel[] discoverySiteInfo) {

-		assertIsWriteable();

-		if (discoverySiteInfo == null)

-			this.discoverySiteInfo = null;

-		else

-			this.discoverySiteInfo = new ArrayList(Arrays.asList(discoverySiteInfo));

-	}

-

-	/**

-	 * Sets the feature plug-in dependency information.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param imports feature plug-in dependency information

-	 * @since 2.0

-	 */

-	public void setImportModels(ImportModel[] imports) {

-		assertIsWriteable();

-		if (imports == null)

-			this.imports = null;

-		else

-			this.imports = new ArrayList(Arrays.asList(imports));

-	}

-

-	/**

-	 * Sets the feature plug-in references.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param pluginEntries feature plug-in references

-	 * @since 2.0

-	 */

-	public void setPluginEntryModels(PluginEntryModel[] pluginEntries) {

-		assertIsWriteable();

-		if (pluginEntries == null)

-			this.pluginEntries = null;

-		else

-			this.pluginEntries = new ArrayList(Arrays.asList(pluginEntries));

-	}

-

-	/**

-	 * Sets the feature non-plug-in data references.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param nonPluginEntries feature non-plug-in data references

-	 * @since 2.0

-	 */

-	public void setNonPluginEntryModels(NonPluginEntryModel[] nonPluginEntries) {

-		assertIsWriteable();

-		if (nonPluginEntries == null)

-			this.nonPluginEntries = null;

-		else

-			this.nonPluginEntries = new ArrayList(Arrays.asList(nonPluginEntries));

-	}

-

-	/**

-	 * Adds an additional update site reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param discoverySiteInfo update site reference

-	 * @since 2.0

-	 */

-	public void addDiscoverySiteEntryModel(URLEntryModel discoverySiteInfo) {

-		assertIsWriteable();

-		if (this.discoverySiteInfo == null)

-			this.discoverySiteInfo = new ArrayList();

-		if (!this.discoverySiteInfo.contains(discoverySiteInfo))

-			this.discoverySiteInfo.add(discoverySiteInfo);

-	}

-

-	/**

-	 * Adds a plug-in dependency entry.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param importEntry plug-in dependency entry

-	 * @since 2.0

-	 */

-	public void addImportModel(ImportModel importEntry) {

-		assertIsWriteable();

-		if (this.imports == null)

-			this.imports = new ArrayList();

-		if (!this.imports.contains(importEntry))

-			this.imports.add(importEntry);

-	}

-

-	/**

-	 * Adds a plug-in reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param pluginEntry plug-in reference

-	 * @since 2.0

-	 */

-	public void addPluginEntryModel(PluginEntryModel pluginEntry) {

-		assertIsWriteable();

-		if (this.pluginEntries == null)

-			this.pluginEntries = new ArrayList();

-		//PERF: no ListContains()

-		//if (!this.pluginEntries.contains(pluginEntry))

-		this.pluginEntries.add(pluginEntry);

-	}

-

-	/**

-	 * Adds a feature identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param identifier feature identifer

-	 * @param options the options associated with the nested feature

-	 * @since 2.1

-	 */

-	public void addIncludedFeatureReferenceModel(IncludedFeatureReferenceModel include) {

-		assertIsWriteable();

-		if (this.featureIncludes == null)

-			this.featureIncludes = new ArrayList();

-		//PERF: no ListContains()

-		//if (!this.featureIncludes.contains(include))

-		this.featureIncludes.add(include);

-	}

-

-	/**

-	 * Adds a non-plug-in data reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param nonPluginEntry non-plug-in data reference

-	 * @since 2.0

-	 */

-	public void addNonPluginEntryModel(NonPluginEntryModel nonPluginEntry) {

-		assertIsWriteable();

-		if (this.nonPluginEntries == null)

-			this.nonPluginEntries = new ArrayList();

-		//PERF: no ListContains()

-		//if (!this.nonPluginEntries.contains(nonPluginEntry))

-		this.nonPluginEntries.add(nonPluginEntry);

-	}

-

-	/**

-	 * Removes an update site reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param discoverySiteInfo update site reference

-	 * @since 2.0

-	 */

-	public void removeDiscoverySiteEntryModel(URLEntryModel discoverySiteInfo) {

-		assertIsWriteable();

-		if (this.discoverySiteInfo != null)

-			this.discoverySiteInfo.remove(discoverySiteInfo);

-	}

-

-	/**

-	 * Removes a plug-in dependency entry.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param importEntry plug-in dependency entry

-	 * @since 2.0

-	 */

-	public void removeImportModel(ImportModel importEntry) {

-		assertIsWriteable();

-		if (this.imports != null)

-			this.imports.remove(importEntry);

-	}

-

-	/**

-	 * Removes a plug-in reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param pluginEntry plug-in reference

-	 * @since 2.0

-	 */

-	public void removePluginEntryModel(PluginEntryModel pluginEntry) {

-		assertIsWriteable();

-		if (this.pluginEntries != null)

-			this.pluginEntries.remove(pluginEntry);

-	}

-

-	/**

-	 * Removes a non-plug-in data reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param nonPluginEntry non-plug-in data reference

-	 * @since 2.0

-	 */

-	public void removeNonPluginEntryModel(NonPluginEntryModel nonPluginEntry) {

-		assertIsWriteable();

-		if (this.nonPluginEntries != null)

-			this.nonPluginEntries.remove(nonPluginEntry);

-	}

-

-	/**

-	 * Marks the model object as read-only.

-	 * 

-	 * @since 2.0

-	 */

-	public void markReadOnly() {

-		super.markReadOnly();

-		markReferenceReadOnly(getDescriptionModel());

-		markReferenceReadOnly(getCopyrightModel());

-		markReferenceReadOnly(getLicenseModel());

-		markReferenceReadOnly(getUpdateSiteEntryModel());

-		markListReferenceReadOnly(getDiscoverySiteEntryModels());

-		markListReferenceReadOnly(getImportModels());

-		markListReferenceReadOnly(getPluginEntryModels());

-		markListReferenceReadOnly(getNonPluginEntryModels());

-	}

-

-	/**

-	 * Resolve the model object.

-	 * Any URL strings in the model are resolved relative to the 

-	 * base URL argument. Any translatable strings in the model that are

-	 * specified as translation keys are localized using the supplied 

-	 * resource bundle.

-	 * 

-	 * @param base URL

-	 * @param bundle resource bundle

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	public void resolve(URL base,URL bundleURL) throws MalformedURLException {

-		this.bundleURL = bundleURL;

-		this.base = base;

-

-		// plugin entry and nonpluginentry are optimized too

-		resolveListReference(getPluginEntryModels(), base, bundleURL);

-		resolveListReference(getNonPluginEntryModels(), base, bundleURL);

-		

-		//URLSiteModel are optimized

-		resolveReference(getDescriptionModel(),base, bundleURL);

-		resolveReference(getCopyrightModel(),base, bundleURL);

-		resolveReference(getLicenseModel(),base, bundleURL);

-		resolveReference(getUpdateSiteEntryModel(),base, bundleURL);

-		resolveListReference(getDiscoverySiteEntryModels(),base, bundleURL);

-		

-		// Import Models are optimized

-		resolveListReference(getImportModels(),base, bundleURL);

-	}

-

-	private void delayedResolve() {

-

-		// PERF: delay resolution

-		if (resolved)

-			return;

-

-		resolved = true;

-		// resolve local elements

-		localizedLabel = resolveNLString(bundleURL, label);

-		localizedProvider = resolveNLString(bundleURL, provider);

-		try {

-			imageURL = resolveURL(base,bundleURL, imageURLString);

-		} catch (MalformedURLException e){

-			UpdateCore.warn("",e);

-		}

-	}

-

-	/**

-	 * Method setPrimaryPlugin.

-	 * @param plugin

-	 */

-	public void setPrimaryPluginID(String plugin) {

-		if (primary && primaryPluginID == null) {

-			primaryPluginID = featureId;

-		}

-		primaryPluginID = plugin;

-	}

-	/**

-	 * Returns the primaryPluginID.

-	 * @return String

-	 */

-	public String getPrimaryPluginID() {

-		return primaryPluginID;

-	}

-

-	/**

-	 * Returns <code>true</code> if this feature is patching another feature,

-	 * <code>false</code> otherwise

-	 * @return boolean

-	 */

-	public boolean isPatch() {

-		ImportModel[] imports = getImportModels();

-

-		for (int i = 0; i < imports.length; i++) {

-			if (imports[i].isPatch())

-				return true;

-		}

-		return false;

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModelFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModelFactory.java
deleted file mode 100644
index 673375c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureModelFactory.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.io.IOException;

-import java.io.InputStream;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IStatus;

-import org.eclipse.update.core.Utilities;

-import org.eclipse.update.internal.core.Policy;

-import org.xml.sax.SAXException;

-

-/**

- * Default feature model factory.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead subclass the provided base implementation 

- * of this factory.

- * </p>

- * @see org.eclipse.update.core.BaseFeatureFactory

- * @since 2.0

- */

-

-public class FeatureModelFactory {

-

-

-	private static DefaultFeatureParser parser = new DefaultFeatureParser();

-

-	/**

-	 * Creates a default model factory.

-	 * 

-	 * @since 2.0

-	 */

-	public FeatureModelFactory() {

-		super();

-	}

-

-	/**

-	 * Creates and populates a default feature from stream.

-	 * The parser assumes the stream contains a default feature manifest

-	 * (feature.xml) as documented by the platform.

-	 * 

-	 * @param stream feature stream

-	 * @return populated feature model

-	 * @exception ParsingException

-	 * @exception IOException

-	 * @exception SAXException

-	 * @since 2.0

-	 */

-	public FeatureModel parseFeature(InputStream stream)

-		throws CoreException, SAXException {

-		parser.init(this);

-		FeatureModel featureModel = null;

-		try {

-			featureModel = parser.parse(stream);

-			if (parser.getStatus()!=null) {

-				// some internalError were detected

-				IStatus status = parser.getStatus();

-				throw new CoreException(status);

-			}

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("FeatureModelFactory.ErrorAccesingFeatureStream"), e); //$NON-NLS-1$

-		}

-		return featureModel;

-	}

-

-	/**

-	 * Create a default feature model.

-	 * 

-	 * @see FeatureModel

-	 * @return feature model

-	 * @since 2.0

-	 */

-	public FeatureModel createFeatureModel() {

-		return new FeatureModel();

-	}

-

-	/**

-	 * Create a default included feature reference model.

-	 * 

-	 * @see IncludedFeatureReferenceModel

-	 * @return feature model

-	 * @since 2.1

-	 */

-	public IncludedFeatureReferenceModel createIncludedFeatureReferenceModel() {

-		return new IncludedFeatureReferenceModel();

-	}

-

-

-	/**

-	 * Create a default install handler model.

-	 * 

-	 * @see InstallHandlerEntryModel

-	 * @return install handler entry model

-	 * @since 2.0

-	 */

-	public InstallHandlerEntryModel createInstallHandlerEntryModel() {

-		return new InstallHandlerEntryModel();

-	}

-

-	/**

-	 * Create a default import dependency model.

-	 * 

-	 * @see ImportModel

-	 * @return import dependency model

-	 * @since 2.0

-	 */

-	public ImportModel createImportModel() {

-		return new ImportModel();

-	}

-

-	/**

-	 * Create a default plug-in entry model.

-	 * 

-	 * @see PluginEntryModel

-	 * @return plug-in entry model

-	 * @since 2.0

-	 */

-	public PluginEntryModel createPluginEntryModel() {

-		return new PluginEntryModel();

-	}

-

-	/**

-	 * Create a default non-plug-in entry model.

-	 * 

-	 * @see NonPluginEntryModel

-	 * @return non-plug-in entry model

-	 * @since 2.0

-	 */

-	public NonPluginEntryModel createNonPluginEntryModel() {

-		return new NonPluginEntryModel();

-	}

-

-	/**

-	 * Create a default annotated URL model.

-	 * 

-	 * @see URLEntryModel

-	 * @return annotated URL model

-	 * @since 2.0

-	 */

-	public URLEntryModel createURLEntryModel() {

-		return new URLEntryModel();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureReferenceModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureReferenceModel.java
deleted file mode 100644
index 1ad9f0c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/FeatureReferenceModel.java
+++ /dev/null
@@ -1,424 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.update.core.Site;

-import org.eclipse.update.internal.core.UpdateCore;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-

-/**

- * Feature reference model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.FeatureReference

- * @since 2.0

- */

-public class FeatureReferenceModel extends ModelObject {

-

-	private String type;

-	private URL url;

-	private String urlString;

-	private String featureId;

-	private String featureVersion;

-	private SiteModel site;

-	private String label;

-	private String localizedLabel;

-

-	// performance

-	private URL bundleURL;

-	private URL base;

-	private boolean resolved = false;

-	private String os;

-	private String ws;

-	private String nl;

-	private String arch;

-	private String patch;	

-

-	/**

-	 * Creates an uninitialized feature reference model object.

-	 * 

-	 * @since 2.0

-	 */

-	public FeatureReferenceModel() {

-		super();

-	}

-

-	/**

-	 * Constructor FeatureReferenceModel.

-	 * @param ref

-	 */

-	public FeatureReferenceModel(FeatureReferenceModel ref) {

-		setFeatureIdentifier(ref.getFeatureIdentifier());

-		setFeatureVersion(ref.getFeatureVersion());

-		setType(ref.getType());

-		setSiteModel(ref.getSiteModel());

-		setLabel(ref.getLabel());

-		setWS(ref.getWS());

-		setOS(ref.getOS());

-		setArch(ref.getOSArch());

-		setNL(getNL());

-	}

-

-	/**

-	 * Compares 2 feature reference models for equality

-	 *  

-	 * @param object feature reference model to compare with

-	 * @return <code>true</code> if the two models are equal, 

-	 * <code>false</code> otherwise

-	 * @since 2.0 

-	 */

-	public boolean equals(Object object) {

-

-		if (object == null)

-			return false;

-		if (getURL() == null)

-			return false;

-

-		if (!(object instanceof FeatureReferenceModel))

-			return false;

-

-		FeatureReferenceModel f = (FeatureReferenceModel) object;

-

-		return UpdateManagerUtils.sameURL(getURL(), f.getURL());

-	}

-

-	/**

-	 * Returns the referenced feature type.

-	 * 

-	 * @return feature type, or <code>null</code> representing the default

-	 * feature type for the site

-	 * @since 2.0

-	 */

-	public String getType() {

-		return type;

-	}

-

-	/**

-	 * Returns the site model for the reference.

-	 * 

-	 * @return site model

-	 * @since 2.0

-	 */

-	public SiteModel getSiteModel() {

-		return site;

-	}

-

-	/**

-	 * Returns the unresolved URL string for the reference.

-	 *

-	 * @return url string

-	 * @since 2.0

-	 */

-	public String getURLString() {

-		return urlString;

-	}

-

-	/**

-	 * Returns the resolved URL for the feature reference.

-	 * 

-	 * @return url string

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		delayedResolve();

-		return url;

-	}

-

-	/**

-	 * Returns the feature identifier as a string

-	 * 

-	 * @see org.eclipse.update.core.IFeatureReference#getVersionedIdentifier()

-	 * @return feature identifier

-	 * @since 2.0

-	 */

-	public String getFeatureIdentifier() {

-		return featureId;

-	}

-

-	/**

-	 * Returns the feature version as a string

-	 * 

-	 * @see org.eclipse.update.core.IFeatureReference#getVersionedIdentifier()

-	 * @return feature version 

-	 * @since 2.0

-	 */

-	public String getFeatureVersion() {

-		return featureVersion;

-	}

-

-	/**

-	 * Sets the referenced feature type.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param type referenced feature type

-	 * @since 2.0

-	 */

-	public void setType(String type) {

-		assertIsWriteable();

-		this.type = type;

-	}

-

-	/**

-	 * Sets the site for the referenced.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param site site for the reference

-	 * @since 2.0

-	 */

-	public void setSiteModel(SiteModel site) {

-		assertIsWriteable();

-		this.site = site;

-	}

-

-	/**

-	 * Sets the unresolved URL for the feature reference.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param urlString unresolved URL string

-	 * @since 2.0

-	 */

-	public void setURLString(String urlString) {

-		assertIsWriteable();

-		this.urlString = urlString;

-		this.url = null;

-	}

-

-	/**

-	 * Sets the feature identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param featureId feature identifier

-	 * @since 2.0

-	 */

-	public void setFeatureIdentifier(String featureId) {

-		assertIsWriteable();

-		this.featureId = featureId;

-	}

-

-	/**

-	 * Sets the feature version.

-	 * Throws a runtime exception if this object is marked read-only.

-	 * 

-	 * @param featureVersion feature version

-	 * @since 2.0

-	 */

-	public void setFeatureVersion(String featureVersion) {

-		assertIsWriteable();

-		this.featureVersion = featureVersion;

-	}

-

-	/**

-	 * Resolve the model object.

-	 * Any URL strings in the model are resolved relative to the 

-	 * base URL argument. Any translatable strings in the model that are

-	 * specified as translation keys are localized using the supplied 

-	 * resource bundle.

-	 * 

-	 * @param base URL

-	 * @param bundleURL resource bundle URL

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	public void resolve(URL base,URL bundleURL) throws MalformedURLException {

-		this.base = base;

-		this.bundleURL = bundleURL;

-	}

-

-	private void delayedResolve() {

-

-		// PERF: delay resolution

-		if (resolved)

-			return;

-

-		resolved = true;

-		// resolve local elements

-		localizedLabel = resolveNLString(bundleURL, label);

-		try {

-			url = resolveURL(base, bundleURL, urlString);

-		} catch (MalformedURLException e){

-			UpdateCore.warn("",e);

-		}

-	}

-

-	/**

-	 * @see Object#toString()

-	 */

-	public String toString() {

-		StringBuffer buffer = new StringBuffer();

-		buffer.append(getClass().toString() + " :");

-		buffer.append(" at ");

-		if (url != null)

-			buffer.append(url.toExternalForm());

-		return buffer.toString();

-	}

-

-	/**

-	 * @see org.eclipse.update.core.model.ModelObject#getPropertyName()

-	 */

-	protected String getPropertyName() {

-		return Site.SITE_FILE;

-	}

-	

-	/**

-	 * Retrieve the displayable label for the feature reference. If the model

-	 * object has been resolved, the label is localized.

-	 *

-	 * @return displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getLabel() {

-		delayedResolve();

-		if (localizedLabel != null)

-			return localizedLabel;

-		else

-			return label;

-	}

-

-	/**

-	 * Retrieve the non-localized displayable label for the feature reference.

-	 *

-	 * @return non-localized displayable label, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getLabelNonLocalized() {

-		return label;

-	}

-

-	/**

-	 * Sets the label.

-	 * @param label The label to set

-	 */

-	public void setLabel(String label) {

-		this.label = label;

-	}

-

-	/**

-	 * Get optional operating system specification as a comma-separated string.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @return the operating system specification string, or <code>null</code>.

-	 * @since 2.1

-	 */

-	public String getOS() {

-		return os;

-	}

-

-

-	/**

-	 * Get optional windowing system specification as a comma-separated string.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @return the windowing system specification string, or <code>null</code>.

-	 * @since 2.1

-	 */

-	public String getWS() {

-		return ws;

-	}

-

-

-	/**

-	 * Get optional system architecture specification as a comma-separated string.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @return the system architecture specification string, or <code>null</code>.

-	 * @since 2.1

-	 */

-	public String getOSArch() {

-		return arch;

-	}

-

-

-	/**

-	 * Get optional locale specification as a comma-separated string.

-	 *

-	 * @return the locale specification string, or <code>null</code>.

-	 * @since 2.1

-	 */

-	public String getNL() {

-		return nl;

-	}

-

-	/**

-	 * Sets the operating system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param os operating system specification as a comma-separated list

-	 * @since 2.1

-	 */

-	public void setOS(String os) {

-		assertIsWriteable();

-		this.os = os;

-	}

-

-

-	/**

-	 * Sets the windowing system specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param ws windowing system specification as a comma-separated list

-	 * @since 2.1

-	 */

-	public void setWS(String ws) {

-		assertIsWriteable();

-		this.ws = ws;

-	}

-

-

-	/**

-	 * Sets the locale specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param nl locale specification as a comma-separated list

-	 * @since 2.1

-	 */

-	public void setNL(String nl) {

-		assertIsWriteable();

-		this.nl = nl;

-	}

-

-

-	/**

-	 * Sets the system architecture specification.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @see org.eclipse.core.boot.BootLoader

-	 * @param arch system architecture specification as a comma-separated list

-	 * @since 2.1

-	 */

-	public void setArch(String arch) {

-		assertIsWriteable();

-		this.arch = arch;

-	}

-

-	/**

-	 * Returns the patch mode.

-	 */

-	public String getPatch() {

-		return patch;

-	}

-

-

-	/**

-	 * Sets the patch mode.

-	 */

-	public void setPatch(String patch) {

-		this.patch = patch;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ImportModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ImportModel.java
deleted file mode 100644
index 95dc761..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ImportModel.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-/**

- * Plug-in dependency model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.Import

- * @since 2.0

- */

-public class ImportModel extends ModelObject {

-

-	private String id;

-	private String version;

-	private String matchingIdRuleName;

-	private String matchingRuleName;

-	private boolean featureImport;

-	private boolean patch;

-	private String osArch;

-	private String ws;

-	private String os;

-	private String nl;

-

-	/**

-	 * Creates a uninitialized plug-in dependency model object.

-	 * 

-	 * @since 2.0

-	 */

-	public ImportModel() {

-		super();

-	}

-

-	/**

-	 * Returns the dependent plug-in identifier.

-	 *

-	 * @deprecated use getIdentifier() instead

-	 * @return plug-in identifier, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getPluginIdentifier() {

-		return id;

-	}

-

-	/**

-	 * Returns the dependent identifier.

-	 *

-	 * @return  identifier, or <code>null</code>.

-	 * @since 2.0.2

-	 */

-	public String getIdentifier() {

-		return id;

-	}

-

-	/**

-	 * Returns the dependent plug-in version.

-	 *

-	 * @deprecated use getVersion() instead

-	 * @return plug-in version, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getPluginVersion() {

-		return version;

-	}

-

-	/**

-	 * Returns the dependent version.

-	 *

-	 * @return version, or <code>null</code>.

-	 * @since 2.0.2

-	 */

-	public String getVersion() {

-		return version;

-	}

-	

-	/**

-	 * Returns the dependent version matching rule name.

-	 *

-	 * @return matching rule name, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getMatchingRuleName() {

-		return matchingRuleName;

-	}

-	

-	/**

-	 * Returns the dependent id matching rule name.

-	 *

-	 * @return matching rule name, or <code>null</code>.

-	 * @since 2.1

-	 */

-	public String getMatchingIdRuleName() {

-		return matchingIdRuleName;

-	}

-

-	/**

-	 * Sets the dependent plug-in identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @deprecated use setIdentifier()

-	 * @param pluginId dependent plug-in identifier

-	 * @since 2.0

-	 */

-	public void setPluginIdentifier(String pluginId) {

-		assertIsWriteable();

-		this.id = pluginId;

-	}

-

-	/**

-	 * Sets the dependent plug-in version.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @deprecated use setVersion()

-	 * @param pluginVersion dependent plug-in version

-	 * @since 2.0

-	 */

-	public void setPluginVersion(String pluginVersion) {

-		assertIsWriteable();

-		this.version = pluginVersion;

-	}

-

-	/**

-	 * Sets the dependent identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param id dependent identifier

-	 * @since 2.0.2

-	 */

-	public void setIdentifier(String id) {

-		assertIsWriteable();

-		this.id = id;

-	}

-

-	/**

-	 * Sets the dependent version.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param version dependent version

-	 * @since 2.0.2

-	 */

-	public void setVersion(String version) {

-		assertIsWriteable();

-		this.version = version;

-	}

-	

-	/**

-	 * Sets the dependent version matching rule name. 

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param matchingRuleName dependent version matching rule.

-	 * @since 2.0

-	 */

-	public void setMatchingRuleName(String matchingRuleName) {

-		assertIsWriteable();

-		this.matchingRuleName = matchingRuleName;

-	}

-	/**

-	 * Sets the dependent id matching rule name. 

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param matchingIdRuleName dependent id matching rule.

-	 * @since 2.1

-	 */

-	public void setMatchingIdRuleName(String matchingIdRuleName) {

-		assertIsWriteable();

-		this.matchingIdRuleName = matchingIdRuleName;

-	}

-	/**

-	 * Returns the isFeatureImport.

-	 * @return boolean

-	 */

-	public boolean isFeatureImport() {

-		return featureImport;

-	}

-	

-	/**

-	 * Sets the featureImport.

-	 * @param featureImport The featureImport to set

-	 */

-	public void setFeatureImport(boolean featureImport) {

-		this.featureImport = featureImport;

-	}

-	

-	/**

-	 * Returns the patch mode.

-	 */

-	public boolean isPatch() {

-		return patch;

-	}

-	

-	/**

-	 * Sets the patch mode.

-	 */

-	public void setPatch(boolean patch) {

-		this.patch = patch;

-	}

-	/**

-	 * Returns the os.

-	 * @return String

-	 */

-	public String getOS() {

-		return os;

-	}

-

-	/**

-	 * Returns the osArch.

-	 * @return String

-	 */

-	public String getOSArch() {

-		return osArch;

-	}

-

-	/**

-	 * Returns the ws.

-	 * @return String

-	 */

-	public String getWS() {

-		return ws;

-	}

-

-	/**

-	 * Sets the os.

-	 * @param os The os to set

-	 */

-	public void setOS(String os) {

-		this.os = os;

-	}

-

-	/**

-	 * Sets the osArch.

-	 * @param osArch The osArch to set

-	 */

-	public void setOSArch(String osArch) {

-		this.osArch = osArch;

-	}

-

-	/**

-	 * Sets the ws.

-	 * @param ws The ws to set

-	 */

-	public void setWS(String ws) {

-		this.ws = ws;

-	}

-

-	/**

-	 * Returns the nl.

-	 * @return String

-	 */

-	public String getNL() {

-		return nl;

-	}

-

-	/**

-	 * Sets the nl.

-	 * @param nl The nl to set

-	 */

-	public void setNL(String nl) {

-		this.nl = nl;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/IncludedFeatureReferenceModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/IncludedFeatureReferenceModel.java
deleted file mode 100644
index 0a4cf51..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/IncludedFeatureReferenceModel.java
+++ /dev/null
@@ -1,220 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core.model;
-
-import org.eclipse.update.core.*;
-
-
-/**
- * Included Feature reference model object.
- * <p>
- * This class may be instantiated or subclassed by clients. However, in most 
- * cases clients should instead instantiate or subclass the provided 
- * concrete implementation of this model.
- * </p>
- * @see org.eclipse.update.core.IncludedFeatureReference
- * @since 2.1
- */
-public class IncludedFeatureReferenceModel extends FeatureReference {
-
-	// since 2.0.2
-	private boolean isOptional;
-	private int matchingRule;
-	private int searchLocation;
-	
-	// since 2.1
-	private String os;
-	private String ws;
-	private String arch;
-	private String nl;
-	
-	/**
-	 * Construct a included feature reference
-	 * 
-	 * @since 2.1
-	 */
-	public IncludedFeatureReferenceModel() {
-		super();
-		isOptional(false);
-		setMatchingRule(IImport.RULE_PERFECT);
-		setSearchLocation(IUpdateConstants.SEARCH_ROOT);
-	}
-	
-	
-	
-	/**
-	 * Construct a included feature reference model
-	 * 
-	 * @param includedFeatureRef the included reference model to copy
-	 * @since 2.1
-	 */
-	public IncludedFeatureReferenceModel(IncludedFeatureReferenceModel includedFeatureRef) {
-		super((FeatureReferenceModel)includedFeatureRef);
-		isOptional(includedFeatureRef.isOptional());
-		setLabel(includedFeatureRef.getLabel());
-		setMatchingRule(includedFeatureRef.getMatch());
-		setSearchLocation(includedFeatureRef.getSearchLocation());
-		setArch(includedFeatureRef.getOSArch());
-		setWS(includedFeatureRef.getWS());
-		setOS(includedFeatureRef.getOS());
-	}
-
-	/**
-	 * Constructor IncludedFeatureReferenceModel.
-	 * @param featureReference
-	 */
-	public IncludedFeatureReferenceModel(IFeatureReference featureReference) {
-		super((FeatureReferenceModel)featureReference);
-		isOptional(false);
-		setMatchingRule(IImport.RULE_PERFECT);
-		setSearchLocation(IUpdateConstants.SEARCH_ROOT);
-		setLabel(getLabel());		
-	}
-
-		
-	/**
-	 * Returns the matching rule for this included feature.
-	 * The rule will determine the ability of the included feature to move version 
-	 * without causing the overall feature to appear broken.
-	 * 
-	 * The default is <code>MATCH_PERFECT</code>
-	 * 
-	 * @see IImport#RULE_PERFECT
-	 * @see IImport#RULE_EQUIVALENT
-	 * @see IImport#RULE_COMPATIBLE
-	 * @see IImport#RULE_GREATER_OR_EQUAL
-	 * @return int representation of feature matching rule.
-	 * @since 2.0.2
-	 */
-	public int getMatch(){
-		return matchingRule;
-	}
-
-	/**
-	 * Returns the search location for this included feature.
-	 * The location will be used to search updates for this feature.
-	 * 
-	 * The default is <code>SEARCH_ROOT</code>
-	 * 
-	 * @see IFeatureReference#SEARCH_ROOT
-	 * @see IFeatureReference#SEARCH_SELF
-	 * @return int representation of feature searching rule.
-	 * @since 2.0.2
-	 */
-
-	public int getSearchLocation(){
-		return searchLocation;
-	}
-	
-
-
-	/**
-	 * Returns the isOptional
-	 * 
-	 * @return isOptional
-	 * @since 2.0.1
-	 */
-	public boolean isOptional() {
-		return isOptional;
-	}
-
-
-	
-
-	/**
-	 * Sets the isOptional.
-	 * @param isOptional The isOptional to set
-	 */
-	public void isOptional(boolean isOptional) {
-		this.isOptional = isOptional;
-	}
-
-	/**
-	 * Sets the matchingRule.
-	 * @param matchingRule The matchingRule to set
-	 */
-	public void setMatchingRule(int matchingRule) {
-		this.matchingRule = matchingRule;
-	}
-
-	/**
-	 * Sets the searchLocation.
-	 * @param searchLocation The searchLocation to set
-	 */
-	public void setSearchLocation(int searchLocation) {
-		this.searchLocation = searchLocation;
-	}
-
-	/**
-	 * Returns the arch.
-	 * @return String
-	 */
-	public String getOSArch() {
-		return arch;
-	}
-
-	/**
-	 * Returns the os.
-	 * @return String
-	 */
-	public String getOS() {
-		return os;
-	}
-
-	/**
-	 * Returns the ws.
-	 * @return String
-	 */
-	public String getWS() {
-		return ws;
-	}
-
-	/**
-	 * Sets the arch.
-	 * @param arch The arch to set
-	 */
-	public void setArch(String arch) {
-		this.arch = arch;
-	}
-
-	/**
-	 * Sets the os.
-	 * @param os The os to set
-	 */
-	public void setOS(String os) {
-		this.os = os;
-	}
-
-	/**
-	 * Sets the ws.
-	 * @param ws The ws to set
-	 */
-	public void setWS(String ws) {
-		this.ws = ws;
-	}
-
-	/**
-	 * Returns the nl.
-	 * @return String
-	 */
-	public String getNL() {
-		return nl;
-	}
-
-	/**
-	 * Sets the nl.
-	 * @param nl The nl to set
-	 */
-	public void setNL(String nl) {
-		this.nl = nl;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallAbortedException.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallAbortedException.java
deleted file mode 100644
index 5e962bc..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallAbortedException.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core.model;
-
-import org.eclipse.core.runtime.*;
-
-/**
- * Exception thrown when the user cancelled an installation.
- * 
- * @see org.eclipse.update.core.Feature#install(IFeature, IVerificationListener, IProgressMonitor)
- * @since 2.0
- */
-public class InstallAbortedException extends CoreException {
-
-	/**
-	 * Construct the exception indicating enclosing CoreException
-	 * 
-	 * @since 2.0
-	 */
-	public InstallAbortedException(String msg,Exception e) {
-		super(new Status(IStatus.INFO,"org.eclipse.update.core",IStatus.OK,msg,e));
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallHandlerEntryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallHandlerEntryModel.java
deleted file mode 100644
index a629caf..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InstallHandlerEntryModel.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core.model;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-/**
- * Install handler entry model object.
- * An object which represents the definition of a custom install handler
- * <p>
- * This class may be instantiated or subclassed by clients. However, in most 
- * cases clients should instead instantiate or subclass the provided 
- * concrete implementation of this model.
- * </p>
- * @see org.eclipse.update.core.InstallHandlerEntry
- * @since 2.0
- */
-public class InstallHandlerEntryModel extends ModelObject {
-
-	private String urlString;
-	private URL url;
-	private String library;
-	private String name;
-
-	/**
-	 * Creates a uninitialized install handler entry model object.
-	 * 
-	 * @since 2.0
-	 */
-	public InstallHandlerEntryModel() {
-		super();
-	}
-
-	/**
-	 * Returns the URL string used for browser-triggered installation handling.
-	 *
-	 * @return url string or <code>null</code>
-	 * @since 2.0
-	 */
-	public String getURLString() {
-		return urlString;
-	}
-
-	/**
-	 * Returns the resolved URL used for browser-triggered installation handling.
-	 * 
-	 * @return url, or <code>null</code>
-	 * @since 2.0
-	 */
-	public URL getURL() {
-		return url;
-	}
-
-	/**
-	 * Returns the name of the custom installer library.
-	 *
-	 * @return library path, or <code>null</code>
-	 * @since 2.0
-	 */
-	public String getLibrary() {
-		return library;
-	}
-
-	/**
-	 * Returns the name of the custom installer.
-	 *
-	 * @return handler name, or <code>null</code>
-	 * @since 2.0
-	 */
-	public String getHandlerName() {
-		return name;
-	}
-
-	/**
-	 * Sets URL string used for browser-triggered installation handling.
-	 * Throws a runtime exception if this object is marked read-only.
-	 *
-	 * @param urlString trigget page URL string, may be <code>null</code>.
-	 * @since 2.0
-	 */
-	public void setURLString(String urlString) {
-		assertIsWriteable();
-		this.urlString = urlString;
-		this.url = null;
-	}
-
-	/**
-	 * Sets the custom install handler library name.
-	 * Throws a runtime exception if this object is marked read-only.
-	 *
-	 * @param library name, may be <code>null</code>.
-	 * @since 2.0
-	 */
-	public void setLibrary(String library) {
-		assertIsWriteable();
-		this.library = library;
-	}
-
-	/**
-	 * Sets the name of the custom install handler.
-	 * Throws a runtime exception if this object is marked read-only.
-	 *
-	 * @param name name of the install handler, may be <code>null</code>.
-	 * @since 2.0
-	 */
-	public void setHandlerName(String name) {
-		assertIsWriteable();
-		this.name = name;
-	}
-
-	/**
-	 * Resolve the model object.
-	 * Any URL strings in the model are resolved relative to the 
-	 * base URL argument. Any translatable strings in the model that are
-	 * specified as translation keys are localized using the supplied 
-	 * resource bundle.
-	 * 
-	 * @param base URL
-	 * @param bundleURL resource bundle URL
-	 * @exception MalformedURLException
-	 * @since 2.0
-	 */
-	public void resolve(URL base,URL bundleURL)
-		throws MalformedURLException {
-		// resolve local elements
-		url = resolveURL(base,bundleURL, urlString);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InvalidSiteTypeException.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InvalidSiteTypeException.java
deleted file mode 100644
index bd6f965..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/InvalidSiteTypeException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-/**

- * Exception thrown when the type of the site discovered in the site manifest

- * does not correspond to the type expected by the concrete site factory.

- * 

- * @see org.eclipse.update.core.model.SiteModelFactory#canParseSiteType(String)

- * @since 2.0

- */

-

-public class InvalidSiteTypeException extends Exception {

-

-	private String newSiteType;

-

-	/**

-	 * Construct the exception indicating the detected site type

-	 * 

-	 * @since 2.0

-	 */

-	public InvalidSiteTypeException(String newType) {

-		super();

-		newSiteType = newType;

-	}

-

-	/**

-	 * Returns the site type detected in the parsed site manifest

-	 * 

-	 * @return site type

-	 * @since 2.0

-	 */

-	public String getNewType() {

-		return newSiteType;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ModelObject.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ModelObject.java
deleted file mode 100644
index 56db859..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/ModelObject.java
+++ /dev/null
@@ -1,380 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.lang.reflect.Array;

-import java.net.*;

-import java.util.*;

-

-import org.eclipse.core.runtime.IPath;

-import org.eclipse.core.runtime.Path;

-import org.eclipse.core.runtime.PlatformObject;

-import org.eclipse.update.core.Feature;

-import org.eclipse.update.core.SiteManager;

-import org.eclipse.update.internal.core.*;

-

-/**

- * Root model object. Extended by all model objects.

- * <p>

- * This class cannot be instantiated and must be subclassed.

- * </p>

- */

-public abstract class ModelObject extends PlatformObject {

-

-	private boolean readOnly = false;

-

-	private static final String KEY_PREFIX = "%"; //$NON-NLS-1$

-	private static final String KEY_DOUBLE_PREFIX = KEY_PREFIX + KEY_PREFIX;

-

-	private static Map bundles;

-

-	/**

-	 * Creates a base model object.

-	 * 

-	 * @since 2.0

-	 */

-	protected ModelObject() {

-	}

-

-	/**

-	 * Checks that this model object is writeable.  A runtime exception

-	 * is thrown if it is not.

-	 * 

-	 * @since 2.0

-	 */

-	protected final void assertIsWriteable() {

-		Assert.isTrue(!isReadOnly(), Policy.bind("ModelObject.ModelReadOnly"));

-		//$NON-NLS-1$

-	}

-

-	/**

-	 * Sets this model object and all of its descendents to be read-only.

-	 * Subclasses may extend this implementation.

-	 * 

-	 * @see #isReadOnly

-	 * @since 2.0

-	 */

-	public void markReadOnly() {

-		readOnly = true;

-	}

-

-	/**

-	 * Returns whether or not this model object is read-only.

-	 * 

-	 * @return <code>true</code> if this model object is read-only,

-	 *		<code>false</code> otherwise

-	 * @see #markReadOnly

-	 * @since 2.0

-	 */

-	public boolean isReadOnly() {

-		return readOnly;

-	}

-

-	/**

-	 * Delegate setting of read-only

-	 *

-	 * @param o object to delegate to. Must be of type ModelObject.

-	 * @see #isReadOnly

-	 * @since 2.0

-	 */

-	protected void markReferenceReadOnly(ModelObject o) {

-		if (o == null)

-			return;

-		o.markReadOnly();

-	}

-

-	/**

-	 * Delegate setting of read-only

-	 *

-	 * @param o object array to delegate to. Each element must be of type ModelObject.

-	 * @see #isReadOnly

-	 * @since 2.0

-	 */

-	protected void markListReferenceReadOnly(ModelObject[] o) {

-		if (o == null)

-			return;

-		for (int i = 0; i < o.length; i++) {

-			o[i].markReadOnly();

-		}

-	}

-

-	/**

-	 * Resolve the model element. This method allows any relative URL strings

-	 * to be resolved to actual URL. It also allows any translatable strings

-	 * to be localized.

-	 * 

-	 * Subclasses need to override this method to perform the actual resolution.

-	 * @param base base URL.

-	 * @param bundleURL resource bundle URL.

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	public void resolve(URL base, URL bundleURL) throws MalformedURLException {

-		return;

-	}

-

-	/**

-	 * Delegate resolution to referenced model

-	 *

-	 * @param o object to delegate to. Must be of type ModelObject.

-	 * @param base base URL.

-	 * @param bundle resource bundle.

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	protected void resolveReference(ModelObject o, URL url, URL bundleURL) throws MalformedURLException {

-		if (o == null)

-			return;

-		o.resolve(url, bundleURL);

-	}

-

-	/**

-	 * Delegate resolution to list of referenced models

-	 *

-	 * @param o object array to delegate to. Each element must be of type ModelObject.

-	 * @param base base URL.

-	 * @param bundle resource bundle.

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	protected void resolveListReference(ModelObject[] o, URL url, URL bundleURL) throws MalformedURLException {

-		if (o == null)

-			return;

-		for (int i = 0; i < o.length; i++) {

-			o[i].resolve(url, bundleURL);

-		}

-	}

-

-	/**

-	 * Resolve a URL based on context

-	 *

-	 * @param base base URL.

-	 * @param bundle resource bundle.

-	 * @param urlString url string from model.

-	 * @return URL, or <code>null</code>.

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	protected URL resolveURL(URL context, URL bundleURL, String urlString) throws MalformedURLException {

-

-		// URL string was not specified

-		if (urlString == null || urlString.trim().equals("")) //$NON-NLS-1$

-			return null;

-

-		// check to see if we have NL-sensitive URL

-		String resolvedUrlString = resolveNLString(bundleURL, urlString);

-

-		resolvedUrlString = resolvePlatfromConfiguration(resolvedUrlString);

-

-		// if we don't have a base url, use only the supplied string

-		if (context == null)

-			return new URL(resolvedUrlString);

-

-		// otherwise return new URL in context of base URL

-		return new URL(context, resolvedUrlString);

-	}

-	/**

-	 * Resolves the URL based on platfrom Configuration

-	 * $os$\$ws$\license.txt will become

-	 * win32\win32\license.txt on a system where os=win32 and ws=win32

-	 * 

-	 * @param resolvedUrlString

-	 * @return String

-	 */

-	private String resolvePlatfromConfiguration(String resolvedUrlString) {

-		int osIndex = resolvedUrlString.indexOf("$os$");

-		if (osIndex != -1)

-			return getExtendedString(resolvedUrlString);

-

-		int wsIndex = resolvedUrlString.indexOf("$ws$");

-		if (wsIndex != -1)

-			return getExtendedString(resolvedUrlString);

-

-		int nlIndex = resolvedUrlString.indexOf("$nl$");

-		if (nlIndex != -1)

-			return getExtendedString(resolvedUrlString);

-

-		int archIndex = resolvedUrlString.indexOf("$arch$");

-		if (archIndex != -1)

-			return getExtendedString(resolvedUrlString);

-

-		return resolvedUrlString;

-	}

-

-	private String getExtendedString(String resolvedUrlString) {

-		IPath path = new Path(resolvedUrlString);

-		path = getExpandedPath(path);

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS) {

-			UpdateCore.warn("Resolved :" + resolvedUrlString + " as:" + path.toOSString());

-		}

-

-		return path.toOSString();

-	}

-

-	private IPath getExpandedPath(IPath path) {

-		String first = path.segment(0);

-		if (first != null) {

-			IPath rest = getExpandedPath(path.removeFirstSegments(1));

-			if (first.equals("$ws$")) {

-				path = new Path(SiteManager.getWS()).append(rest);

-			} else if (first.equals("$os$")) {

-				path = new Path(SiteManager.getOS()).append(rest);

-			} else if (first.equals("$nl$")) {

-				path = new Path(SiteManager.getNL()).append(rest);

-			} else if (first.equals("$arch$")) {

-				path = new Path(SiteManager.getOSArch()).append(rest);

-			}

-		}

-		return path;

-	}

-

-	/**

-	 * Returns a resource string corresponding to the given argument 

-	 * value and bundle.

-	 * If the argument value specifies a resource key, the string

-	 * is looked up in the given resource bundle. If the argument does not

-	 * specify a valid key, the argument itself is returned as the

-	 * resource string. The key lookup is performed against the

-	 * specified resource bundle. If a resource string 

-	 * corresponding to the key is not found in the resource bundle

-	 * the key value, or any default text following the key in the

-	 * argument value is returned as the resource string.

-	 * A key is identified as a string begining with the "%" character.

-	 * Note that the "%" character is stripped off prior to lookup

-	 * in the resource bundle.

-	 * <p>

-	 * For example, assume resource bundle plugin.properties contains

-	 * name = Project Name

-	 * <pre>

-	 *     resolveNLString(b,"Hello World") returns "Hello World"</li>

-	 *     resolveNLString(b,"%name") returns "Project Name"</li>

-	 *     resolveNLString(b,"%name Hello World") returns "Project Name"</li>

-	 *     resolveNLString(b,"%abcd Hello World") returns "Hello World"</li>

-	 *     resolveNLString(b,"%abcd") returns "%abcd"</li>

-	 *     resolveNLString(b,"%%name") returns "%name"</li>

-	 * </pre>

-	 * </p>

-	 * 

-	 * @param bundle resource bundle.

-	 * @param s translatable string from model

-	 * @return string, or <code>null</code>

-	 * @since 2.0

-	 */

-	protected String resolveNLString(URL bundleURL, String string) {

-

-		if (string == null)

-			return null;

-

-		String s = string.trim();

-

-		if (s.equals("")) //$NON-NLS-1$

-			return string;

-

-		if (!s.startsWith(KEY_PREFIX))

-			return string;

-

-		if (s.startsWith(KEY_DOUBLE_PREFIX))

-			return s.substring(1);

-

-		int ix = s.indexOf(" "); //$NON-NLS-1$

-		String key = ix == -1 ? s : s.substring(0, ix);

-		String dflt = ix == -1 ? s : s.substring(ix + 1);

-

-		ResourceBundle b = getResourceBundle(bundleURL);

-

-		if (b == null)

-			return dflt;

-

-		try {

-			return b.getString(key.substring(1));

-		} catch (MissingResourceException e) {

-			return dflt;

-		}

-	}

-

-	/**

-	 * Returns a concrete array type for the elements of the specified

-	 * list. The method assumes all the elements of the list are the same

-	 * concrete type as the first element in the list.

-	 * 

-	 * @param l list

-	 * @return concrete array type, or <code>null</code> if the array type

-	 * could not be determined (the list is <code>null</code> or empty)

-	 * @since 2.0

-	 */

-	protected Object[] arrayTypeFor(List l) {

-		if (l == null || l.size() == 0)

-			return null;

-		return (Object[]) Array.newInstance(l.get(0).getClass(), 0);

-	}

-

-	/**

-	 * Returns a concrete array type for the elements of the specified

-	 * set. The method assumes all the elements of the set are the same

-	 * concrete type as the first element in the set.

-	 * 

-	 * @param s set

-	 * @return concrete array type, or <code>null</code> if the array type

-	 * could not be determined (the set is <code>null</code> or empty)

-	 * @since 2.0

-	 */

-	protected Object[] arrayTypeFor(Set s) {

-		if (s == null || s.size() == 0)

-			return null;

-		Iterator i = s.iterator();

-		return (Object[]) Array.newInstance(i.next().getClass(), 0);

-	}

-

-	/**

-		* Helper method to access resouce bundle for feature. The default 

-		* implementation attempts to load the appropriately localized 

-		* feature.properties file.

-		* 

-		* @param url base URL used to load the resource bundle.

-		* @return resource bundle, or <code>null</code>.

-		* @since 2.0

-		*/

-	protected ResourceBundle getResourceBundle(URL url) {

-

-		if (url == null)

-			return null;

-

-		if (bundles == null) {

-			bundles = new HashMap();

-		} else {

-			ResourceBundle bundle = (ResourceBundle) bundles.get(url.toExternalForm());

-			if (bundle != null)

-				return bundle;

-		}

-

-		ResourceBundle bundle = null;

-		try {

-			url = UpdateManagerUtils.asDirectoryURL(url);

-			ClassLoader l = new URLClassLoader(new URL[] { url }, null);

-			bundle = ResourceBundle.getBundle(getPropertyName(), Locale.getDefault(), l);

-			bundles.put(url.toExternalForm(), bundle);

-		} catch (MissingResourceException e) {

-			UpdateCore.warn(e.getLocalizedMessage() + ":" + url.toExternalForm()); //$NON-NLS-1$

-		} catch (MalformedURLException e) {

-			UpdateCore.warn(e.getLocalizedMessage()); //$NON-NLS-1$

-		}

-		return bundle;

-	}

-

-	/**

-	 * Method getPropertyName.

-	 * @return String

-	 */

-	protected String getPropertyName() {

-		return Feature.FEATURE_FILE;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/NonPluginEntryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/NonPluginEntryModel.java
deleted file mode 100644
index 970c903..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/NonPluginEntryModel.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-/**

- * Non-plug-in entry model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.NonPluginEntry

- * @since 2.0

- */

-public class NonPluginEntryModel extends ContentEntryModel {

-

-	private String id = null;

-

-	/**

-	 * Creates a uninitialized non-plug-in entry model object.

-	 * 

-	 * @since 2.0

-	 */

-	public NonPluginEntryModel() {

-		super();

-	}

-

-	/**

-	 * Returns the entry identifier.

-	 *

-	 * @return entry identifier, or <code>null</code>

-	 * @since 2.0

-	 */

-	public String getIdentifier() {

-		return id;

-	}

-

-	/**

-	 * Sets the entry identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param id entry identifier.

-	 * @since 2.0

-	 */

-	public void setIdentifier(String id) {

-		assertIsWriteable();

-		this.id = id;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/PluginEntryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/PluginEntryModel.java
deleted file mode 100644
index 9a903ae..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/PluginEntryModel.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-

-/**

- * Plug-in entry model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.PluginEntry

- * @since 2.0

- */

-public class PluginEntryModel extends ContentEntryModel {

-

-	private String pluginId;

-	private String pluginVersion;

-	private boolean isFragment = false;

-	

-	/**

-	 * Creates a uninitialized plug-in entry model object.

-	 * 

-	 * @since 2.0

-	 */

-	public PluginEntryModel() {

-		super();

-	}

-

-	/**

-	 * Compares two plug-in models for equality

-	 * 

-	 * @param obj other model to compare to

-	 * @return <code>true</code> if the models are equal, <code>false</code> otherwise

-	 * @since 2.0

-	 */

-	public boolean equals(Object obj) {

-		if (!(obj instanceof PluginEntryModel))

-			return false;

-		PluginEntryModel model = (PluginEntryModel) obj;

-		

-		return (

-			(getPluginIdentifier().equals(model.getPluginIdentifier()))

-				&& (getPluginVersion().equals(model.getPluginVersion()))

-				&& (isFragment() == model.isFragment()));

-	}

-

-	/**

-	 * Returns the plug-in identifier for this entry.

-	 * 

-	 * @return the plug-in identifier, or <code>null</code>

-	 * @since 2.0 

-	 */

-	public String getPluginIdentifier() {

-		return pluginId;

-	}

-

-	/**

-	 * Returns the plug-in version for this entry.

-	 * 

-	 * @return the plug-in version, or <code>null</code>

-	 * @since 2.0 

-	 */

-	public String getPluginVersion() {

-		return pluginVersion;

-	}

-

-	/**

-	 * Indicates whether the entry describes a full plug-in, or 

-	 * a plug-in fragment.

-	 * 

-	 * @return <code>true</code> if the entry is a plug-in fragment, 

-	 * <code>false</code> if the entry is a plug-in

-	 * @since 2.0 

-	 */

-	public boolean isFragment() {

-		return isFragment;

-	}

-

-	/**

-	 * Sets the entry plug-in identifier.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param pluginId the entry identifier.

-	 * @since 2.0

-	 */

-	public void setPluginIdentifier(String pluginId) {

-		assertIsWriteable();

-		this.pluginId = pluginId;

-	}

-

-	/**

-	 * Sets the entry plug-in version.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param pluginVersion the entry version.

-	 * @since 2.0

-	 */

-	public void setPluginVersion(String pluginVersion) {

-		assertIsWriteable();

-		this.pluginVersion = pluginVersion;

-	}

-

-	/**

-	 * Indicates whether this entry represents a fragment or plug-in.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param isFragment fragment setting

-	 * @since 2.0

-	 */

-	public void isFragment(boolean isFragment) {

-		assertIsWriteable();

-		this.isFragment = isFragment;

-	}

-

-	/**

-	 * @see Object#toString()

-	 */

-	public String toString() {

-		String msg = (getPluginIdentifier()!=null)?getPluginIdentifier().toString():"";

-		msg += getPluginVersion()!=null?" "+getPluginVersion().toString():"";

-		msg += isFragment()?" fragment":" plugin";

-		return msg;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModel.java
deleted file mode 100644
index 9eb3c9f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModel.java
+++ /dev/null
@@ -1,363 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.core.model;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.update.core.Site;
-import org.eclipse.update.core.SiteFeatureReferenceModel;
-import org.eclipse.update.internal.model.ConfiguredSiteModel;
-
-/**
- * Site model object.
- * <p>
- * This class may be instantiated or subclassed by clients. However, in most 
- * cases clients should instead instantiate or subclass the provided 
- * concrete implementation of this model.
- * </p>
- * @see org.eclipse.update.core.Site
- * @since 2.0
- */
-public class SiteModel extends ModelObject {
-
-	private String type;
-	private URLEntryModel description;
-	private List /*of FeatureReferenceModel*/
-	featureReferences;
-	private List /*of ArchiveReferenceModel*/
-	archiveReferences;
-	private Set /*of CategoryModel*/
-	categories;
-	private String locationURLString;
-	private URL locationURL;
-	private ConfiguredSiteModel configuredSiteModel;
-
-	/**
-	 * Creates an uninitialized site model object.
-	 * 
-	 * @since 2.0
-	 */
-	public SiteModel() {
-		super();
-	}
-
-	/** 
-	 * Returns the site type.
-	 * 
-	 * @return site type, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public String getType() {
-		return type;
-	}
-
-	/**
-	 * Returns the site description.
-	 * 
-	 * @return site description, or <code>null</code>.
-	 * @since 2.0
-	 */
-	public URLEntryModel getDescriptionModel() {
-		return description;
-	}
-
-	/**
-	 * Returns an array of feature reference models on this site.
-	 * 
-	 * @return an array of feature reference models, or an empty array.
-	 * @since 2.0
-	 */
-	public SiteFeatureReferenceModel[] getFeatureReferenceModels() {
-		if (featureReferences == null)
-			return new SiteFeatureReferenceModel[0];
-
-		return (SiteFeatureReferenceModel[]) featureReferences.toArray(arrayTypeFor(featureReferences));
-	}
-
-	/**
-	 * Returns an array of plug-in and non-plug-in archive reference models
-	 * on this site
-	 * 
-	 * @return an array of archive reference models, or an empty array if there are
-	 * no archives known to this site.
-	 * @since 2.0
-	 */
-	public ArchiveReferenceModel[] getArchiveReferenceModels() {
-		if (archiveReferences == null)
-			return new ArchiveReferenceModel[0];
-
-		return (ArchiveReferenceModel[]) archiveReferences.toArray(arrayTypeFor(archiveReferences));
-	}
-
-	/**
-	 * Returns an array of category models for this site.
-	 * 
-	 * @return array of site category models, or an empty array.
-	 * @since 2.0
-	 */
-	public CategoryModel[] getCategoryModels() {
-		if (categories == null)
-			return new CategoryModel[0];
-
-		return (CategoryModel[]) categories.toArray(arrayTypeFor(categories));
-	}
-
-	/**
-	 * Returns the unresolved URL string for the site.
-	 *
-	 * @return url string, or <code>null</code>
-	 * @since 2.0
-	 */
-	public String getLocationURLString() {
-		return locationURLString;
-	}
-
-	/**
-	 * Returns the resolved URL for the site.
-	 * 
-	 * @return url, or <code>null</code>
-	 * @since 2.0
-	 */
-	public URL getLocationURL() {
-		return locationURL;
-	}
-
-	/**
-	 * Sets the site type.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param type site type
-	 * @since 2.0
-	 */
-	public void setType(String type) {
-		assertIsWriteable();
-		this.type = type;
-	}
-
-	/**
-	 * Sets the site description.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param description site description
-	 * @since 2.0
-	 */
-	public void setDescriptionModel(URLEntryModel description) {
-		assertIsWriteable();
-		this.description = description;
-	}
-
-	/**
-	 * Sets the feature references for this site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param featureReferences an array of feature reference models
-	 * @since 2.0
-	 */
-	public void setFeatureReferenceModels(FeatureReferenceModel[] featureReferences) {
-		assertIsWriteable();
-		if (featureReferences == null)
-			this.featureReferences = null;
-		else
-			this.featureReferences = new ArrayList(Arrays.asList(featureReferences));
-	}
-
-	/**
-	 * Sets the archive references for this site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param archiveReferences an array of archive reference models
-	 * @since 2.0
-	 */
-	public void setArchiveReferenceModels(ArchiveReferenceModel[] archiveReferences) {
-		assertIsWriteable();
-		if (archiveReferences == null)
-			this.archiveReferences = null;
-		else
-			this.archiveReferences = new ArrayList(Arrays.asList(archiveReferences));
-	}
-
-	/**
-	 * Sets the site categories.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param categories an array of category models
-	 * @since 2.0
-	 */
-	public void setCategoryModels(CategoryModel[] categories) {
-		assertIsWriteable();
-		if (categories == null)
-			this.categories = null;
-		else {
-			this.categories = new TreeSet(CategoryModel.getComparator());
-			this.categories.addAll(Arrays.asList(categories));
-		}
-	}
-
-	/**
-	 * Sets the unresolved URL for the site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param locationURLString url for the site (as a string)
-	 * @since 2.0
-	 */
-	public void setLocationURLString(String locationURLString) {
-		assertIsWriteable();
-		this.locationURLString = locationURLString;
-	}
-
-	/**
-	 * Adds a feature reference model to site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param featureReference feature reference model
-	 * @since 2.0
-	 */
-	public void addFeatureReferenceModel(SiteFeatureReferenceModel featureReference) {
-		assertIsWriteable();
-		if (this.featureReferences == null)
-			this.featureReferences = new ArrayList();
-		// PERF: do not check if already present 
-		//if (!this.featureReferences.contains(featureReference))
-			this.featureReferences.add(featureReference);
-	}
-
-	/**
-	 * Adds an archive reference model to site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param archiveReference archive reference model
-	 * @since 2.0
-	 */
-	public void addArchiveReferenceModel(ArchiveReferenceModel archiveReference) {
-		assertIsWriteable();
-		if (this.archiveReferences == null)
-			this.archiveReferences = new ArrayList();
-		if (!this.archiveReferences.contains(archiveReference))
-			this.archiveReferences.add(archiveReference);
-	}
-
-	/**
-	 * Adds a category model to site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param category category model
-	 * @since 2.0
-	 */
-	public void addCategoryModel(CategoryModel category) {
-		assertIsWriteable();
-		if (this.categories == null)
-			this.categories = new TreeSet(CategoryModel.getComparator());
-		if (!this.categories.contains(category))
-			this.categories.add(category);
-	}
-
-	/**
-	 * Removes a feature reference model from site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param featureReference feature reference model
-	 * @since 2.0
-	 */
-	public void removeFeatureReferenceModel(FeatureReferenceModel featureReference) {
-		assertIsWriteable();
-		if (this.featureReferences != null)
-			this.featureReferences.remove(featureReference);
-	}
-
-	/**
-	 * Removes an archive reference model from site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param archiveReference archive reference model
-	 * @since 2.0
-	 */
-	public void removeArchiveReferenceModel(ArchiveReferenceModel archiveReference) {
-		assertIsWriteable();
-		if (this.archiveReferences != null)
-			this.archiveReferences.remove(archiveReference);
-	}
-
-	/**
-	 * Removes a category model from site.
-	 * Throws a runtime exception if this object is marked read-only.
-	 * 
-	 * @param category category model
-	 * @since 2.0
-	 */
-	public void removeCategoryModel(CategoryModel category) {
-		assertIsWriteable();
-		if (this.categories != null)
-			this.categories.remove(category);
-	}
-
-	/**
-	 * Marks the model object as read-only.
-	 * 
-	 * @since 2.0
-	 */
-	public void markReadOnly() {
-		super.markReadOnly();
-		markReferenceReadOnly(getDescriptionModel());
-		markListReferenceReadOnly(getFeatureReferenceModels());
-		markListReferenceReadOnly(getArchiveReferenceModels());
-		markListReferenceReadOnly(getCategoryModels());
-	}
-
-	/**
-	 * Resolve the model object.
-	 * Any URL strings in the model are resolved relative to the 
-	 * base URL argument. Any translatable strings in the model that are
-	 * specified as translation keys are localized using the supplied 
-	 * resource bundle.
-	 * 
-	 * @param base URL
-	 * @param bundleURL resource bundle URL
-	 * @exception MalformedURLException
-	 * @since 2.0
-	 */
-	public void resolve(URL base, URL bundleURL) throws MalformedURLException {
-
-		// Archives and feature are relative to location URL
-		// if the Site element has a URL tag: see spec	
-		locationURL = resolveURL(base, bundleURL, getLocationURLString());
-		if (locationURL == null)
-			locationURL = base;
-		resolveListReference(getFeatureReferenceModels(), locationURL, bundleURL);
-		resolveListReference(getArchiveReferenceModels(), locationURL, bundleURL);
-
-		resolveReference(getDescriptionModel(), base, bundleURL);
-		resolveListReference(getCategoryModels(), base, bundleURL);
-	}
-
-	/**
-	 * 
-	 */
-	public ConfiguredSiteModel getConfiguredSiteModel() {
-		return this.configuredSiteModel;
-	}
-
-	/**
-	 * @see org.eclipse.update.core.ISite#setConfiguredSite(IConfiguredSite)
-	 */
-	public void setConfiguredSiteModel(ConfiguredSiteModel configuredSiteModel) {
-		this.configuredSiteModel = configuredSiteModel;
-	}
-
-	/**
-	 * @see org.eclipse.update.core.model.ModelObject#getPropertyName()
-	 */
-	protected String getPropertyName() {
-		return Site.SITE_FILE;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModelFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModelFactory.java
deleted file mode 100644
index 9f2d4b8..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/SiteModelFactory.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.io.IOException;

-import java.io.InputStream;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IStatus;

-import org.eclipse.update.core.SiteFeatureReferenceModel;

-import org.eclipse.update.core.Utilities;

-import org.eclipse.update.internal.core.Policy;

-import org.xml.sax.SAXException;

-

-/**

- * Default site model factory.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead subclass the provided base implementation 

- * of this factory.

- * </p>

- * @see org.eclipse.update.core.BaseSiteFactory

- * @since 2.0

- */

-public class SiteModelFactory {

-	

-	private static DefaultSiteParser parser = new DefaultSiteParser();

-

-	/**

-	 * Creates a default site factory.

-	 * 

-	 * @since 2.0

-	 */

-	public SiteModelFactory() {

-		super();

-	}

-

-	/**

-	 * Indicates whether this factory can handle the specified site type. This

-	 * method is intended to be overridden by subclasses.

-	 * 

-	 * @param type site type identifier

-	 * @return <code>true</code> if the type can be handled, otherwise <code>false</code>

-	 * @since 2.0

-	 */

-	public boolean canParseSiteType(String type) {

-		// return true if type was not specified (ie. is null or empty string)

-		return (type == null || type.trim().equals("")); //$NON-NLS-1$

-	}

-

-	/**

-	 * Creates and populates a default site from stream.

-	 * The parser assumes the stream contains a default site manifest

-	 * (site.xml) as documented by the platform.

-	 * 

-	 * @param stream site stream

-	 * @return populated site model

-	 * @exception ParsingException

-	 * @exception IOException

-	 * @exception SAXException

-	 * @since 2.0

-	 */

-	public SiteModel parseSite(InputStream stream)

-		throws CoreException, InvalidSiteTypeException {

-		SiteModel result = null;

-		try {

-			parser.init(this);

-			result = parser.parse(stream);

-			if (parser.getStatus()!=null) {

-				// some internalError were detected

-				IStatus status = parser.getStatus();

-				throw new CoreException(status);

-			}

-		} catch (SAXException e) {

-			if (e instanceof SAXException) {

-				SAXException exception = (SAXException) e;

-				// invalid Site type

-				if (exception.getException() instanceof InvalidSiteTypeException) {

-					throw (InvalidSiteTypeException) exception.getException();

-				}

-			}

-

-			throw Utilities.newCoreException(Policy.bind("SiteModelObject.ErrorParsingSiteStream"),e); //$NON-NLS-1$

-		} catch (IOException e){

-			throw Utilities.newCoreException(Policy.bind("SiteModelObject.ErrorAccessingSiteStream"),e); //$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/**

-	 * Create a default site model.

-	 * 

-	 * @see SiteModel

-	 * @return site model

-	 * @since 2.0

-	 */

-	public SiteModel createSiteMapModel() {

-		return new SiteModel();

-	}

-

-	/**

-	 * Create a default site feature reference model.

-	 * 

-	 * @see SiteFeatureReferenceModel

-	 * @return site feature reference model

-	 * @since 2.0

-	 */

-	public SiteFeatureReferenceModel createFeatureReferenceModel() {

-		return new SiteFeatureReferenceModel();

-	}

-

-	/**

-	 * Create a default archive reference model.

-	 * 

-	 * @see ArchiveReferenceModel

-	 * @return archive reference model

-	 * @since 2.0

-	 */

-	public ArchiveReferenceModel createArchiveReferenceModel() {

-		return new ArchiveReferenceModel();

-	}

-

-	/**

-	 * Create a default annotated URL model.

-	 * 

-	 * @see URLEntryModel

-	 * @return annotated URL model

-	 * @since 2.0

-	 */

-	public URLEntryModel createURLEntryModel() {

-		return new URLEntryModel();

-	}

-

-	/**

-	 * Create a default category model.

-	 * 

-	 * @see CategoryModel

-	 * @return category model

-	 * @since 2.0

-	 */

-	public CategoryModel createSiteCategoryModel() {

-		return new CategoryModel();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/URLEntryModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/URLEntryModel.java
deleted file mode 100644
index 8fe29b7..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/URLEntryModel.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.core.model;

-

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.update.core.IURLEntry;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * Annotated URL model object.

- * <p>

- * This class may be instantiated or subclassed by clients. However, in most 

- * cases clients should instead instantiate or subclass the provided 

- * concrete implementation of this model.

- * </p>

- * @see org.eclipse.update.core.URLEntry

- * @since 2.0

- */

-

-public class URLEntryModel extends ModelObject {

-	

-	private String annotation;

-	private String localizedAnnotation;

-	private String urlString;

-	private URL url;

-	

-	private int type = IURLEntry.UPDATE_SITE;

-	

-	//performance

-	private URL bundleURL;

-	private URL base;

-	private boolean resolved=false;

-	

-	/**

-	 * Creates a uninitialized annotated URL model object.

-	 * 

-	 * @since 2.0

-	 */

-	public URLEntryModel() {

-		super();

-	}

-		

-	/**

-	 * Returns the url annotation. If the model object has been resolved, 

-	 * the annotation is localized.

-	 * 

-	 * @return url annotation, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getAnnotation() {

-		delayedResolve();

-		if (localizedAnnotation != null)

-			return localizedAnnotation;

-		else

-			return annotation;

-	}

-		

-	/**

-	 * returns the non-localized url annotation.

-	 * 

-	 * @return non-localized url annotation, or <code>null</code>.

-	 * @since 2.0

-	 */

-	public String getAnnotationNonLocalized() {

-		return annotation;

-	}

-

-	/**

-	 * Returns the unresolved url string.

-	 *

-	 * @return url string, or <code>null</code>

-	 * @since 2.0

-	 */

-	public String getURLString() {

-		delayedResolve();

-		return urlString;

-	}

-	

-	/**

-	 * Returns the resolved URL.

-	 * 

-	 * @return url, or <code>null</code>

-	 * @since 2.0

-	 */

-	public URL getURL() {

-		delayedResolve();

-		return url;

-	}

-	

-	/**

-	 * Sets the annotation.

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param annotation annotation

-	 * @since 2.0

-	 */	

-	public void setAnnotation(String annotation) {

-		assertIsWriteable();

-		this.annotation = annotation;

-		this.localizedAnnotation = null;

-	}

-	

-	/**

-	 * Sets the url string

-	 * Throws a runtime exception if this object is marked read-only.

-	 *

-	 * @param url url string

-	 * @since 2.0

-	 */	

-	public void setURLString(String urlString) {

-		assertIsWriteable();

-		this.urlString = urlString;

-		this.url = null;

-	}

-	

-	/**

-	 * Resolve the model object.

-	 * Any URL strings in the model are resolved relative to the 

-	 * base URL argument. Any translatable strings in the model that are

-	 * specified as translation keys are localized using the supplied 

-	 * resource bundle.

-	 * 

-	 * @param base URL

-	 * @param bundle resource bundle

-	 * @exception MalformedURLException

-	 * @since 2.0

-	 */

-	public void resolve(URL base, URL bundleURL) throws MalformedURLException {

-		this.base = base;

-		this.bundleURL = bundleURL;

-	}

-

-

-	private void delayedResolve() {

-		

-		//PERF: delay resolution

-		if (resolved)return;

-		

-		resolved= true;

-		// resolve local elements

-		localizedAnnotation = resolveNLString(bundleURL, annotation);

-		try {

-			url = resolveURL(base,bundleURL, urlString);

-		} catch (MalformedURLException e){

-			UpdateCore.warn("",e);

-		}

-	}

-

-	/**

-	 * Returns the specified type.

-	 * 

-	 * @since 2.1

-	 */

-	public int getType() {

-		return type;

-	}

-

-	/**

-	 * Method setType.

-	 * @param i

-	 */

-	public void setType(int i) {

-		type = i;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/package.html b/update/org.eclipse.update.core/src/org/eclipse/update/core/model/package.html
deleted file mode 100644
index c8a665d..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/model/package.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

-<html>

-<head>

-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

-   <meta name="Author" content="IBM">

-   <meta name="GENERATOR" content="Mozilla/4.72 [en] (Windows NT 5.0; U) [Netscape]">

-   <title>Package-level Javadoc</title>

-</head>

-<body>

-Provides model support for extending the base installation

-and update services.

-<h2>

-Package Specification</h2>

-This package provides a convenience implementation of the default model

-objects and parsers used for writing pluggable support of alternate feature

-packaging schemes and update site access mechanisms. In general, most developers

-do not need to directly use the classes defined in this package. Instead,

-they can use the corresponding derived implementation classes contained

-in package <b>org.eclipse.update.core</b>.

-<p>Classes in this package would typically only be used directly when writing

-and alternate set of model objects for a feature and type implementation.

-</body>

-</html>

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/core/package.html b/update/org.eclipse.update.core/src/org/eclipse/update/core/package.html
deleted file mode 100644
index 6c41140..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/core/package.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

-<html>

-<head>

-   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

-   <meta name="Author" content="IBM">

-   <meta name="GENERATOR" content="Mozilla/4.72 [en] (Windows NT 5.0; U) [Netscape]">

-   <title>Package-level Javadoc</title>

-</head>

-<body>

-Provides support for extending the base installation

-and update services.

-<h2>

-Package Specification</h2>

-This package specifies the API required for writing pluggable support of

-alternate feature packaging schemes and update site access mechanisms.

-For the most part, the classes and interfaces in this package implement

-a code pattern <tt>class Foo extends FooModel implements IFoo</tt>. The

-interface (<tt>IFoo</tt> in the pattern) defines the actual API. The convenience

-classes (<tt>Foo</tt> in the pattern) provide a reference implementation

-of the API based on a model (<tt>IFooModel</tt> in the pattern) contained

-in package <b>org.eclipse.update.core.model</b>. In general, developers

-should extend the convenience classes rather than completely reimplementing

-the specified interfaces.

-</body>

-</html>

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Assert.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Assert.java
deleted file mode 100644
index 9377b0f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Assert.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

- 

-/**

- * <code>Assert</code> is useful for for embedding runtime sanity checks

- * in code. The static predicate methods all test a condition and throw some

- * type of unchecked exception if the condition does not hold.

- * <p>

- * Assertion failure exceptions, like most runtime exceptions, are

- * thrown when something is misbehaving. Assertion failures are invariably

- * unspecified behavior; consequently, clients should never rely on

- * these being thrown (or not thrown). <b>If you find yourself in the

- * position where you need to catch an assertion failure, you have most 

- * certainly written your program incorrectly.</b>

- * </p>

- */

-public final class Assert {

-	

-	/**

-	 * <code>AssertionFailedException</code> is a runtime exception thrown

-	 * by some of the methods in <code>Assert</code>.

-	 * <p>

-	 * This class is not declared public to prevent some misuses; programs that catch 

-	 * or otherwise depend on assertion failures are susceptible to unexpected

-	 * breakage when assertions in the code are added or removed.

-	 * </p>

-	 */

-	private static class AssertionFailedException extends RuntimeException {

-

-		/**

-		 * Constructs a new exception.

-		 */

-		public AssertionFailedException() {

-		}

-		

-		/**

-		 * Constructs a new exception with the given message.

-		 */

-		public AssertionFailedException(String detail) {

-		    super(detail);

-		}

-	}

-/* This class is not intended to be instantiated. */

-private Assert() {

-}

-/**

- * Asserts that an argument is legal. If the given boolean is

- * not <code>true</code>, an <code>IllegalArgumentException</code>

- * is thrown.

- *

- * @param expression the outcome of the check

- * @return <code>true</code> if the check passes (does not return

- *    if the check fails)

- * @exception IllegalArgumentException if the legality test failed

- */

-public static boolean isLegal(boolean expression) {

-	// succeed as quickly as possible

-	if (expression) {

-		return true;

-	}

-	return isLegal(expression, "");//$NON-NLS-1$

-}

-/**

- * Asserts that an argument is legal. If the given boolean is

- * not <code>true</code>, an <code>IllegalArgumentException</code>

- * is thrown.

- * The given message is included in that exception, to aid debugging.

- *

- * @param expression the outcome of the check

- * @param message the message to include in the exception

- * @return <code>true</code> if the check passes (does not return

- *    if the check fails)

- * @exception IllegalArgumentException if the legality test failed

- */

-public static boolean isLegal(boolean expression, String message) {

-	if (!expression)

-		throw new IllegalArgumentException(message);

-	return expression;

-}

-/**

- * Asserts that the given object is not <code>null</code>. If this

- * is not the case, some kind of unchecked exception is thrown.

- * <p>

- * As a general rule, parameters passed to API methods must not be

- * <code>null</code> unless <b>explicitly</b> allowed in the method's

- * specification. Similarly, results returned from API methods are never

- * <code>null</code> unless <b>explicitly</b> allowed in the method's

- * specification. Implementations are encouraged to make regular use of 

- * <code>Assert.isNotNull</code> to ensure that <code>null</code> 

- * parameters are detected as early as possible.

- * </p>

- * 

- * @param object the value to test

- * @exception Throwable an unspecified unchecked exception if the object

- *   is <code>null</code>

- */

-public static void isNotNull(Object object) {

-	// succeed as quickly as possible

-	if (object != null) {

-		return;

-	}

-	isNotNull(object, "");//$NON-NLS-1$

-}

-/**

- * Asserts that the given object is not <code>null</code>. If this

- * is not the case, some kind of unchecked exception is thrown.

- * The given message is included in that exception, to aid debugging.

- * <p>

- * As a general rule, parameters passed to API methods must not be

- * <code>null</code> unless <b>explicitly</b> allowed in the method's

- * specification. Similarly, results returned from API methods are never

- * <code>null</code> unless <b>explicitly</b> allowed in the method's

- * specification. Implementations are encouraged to make regular use of 

- * <code>Assert.isNotNull</code> to ensure that <code>null</code> 

- * parameters are detected as early as possible.

- * </p>

- * 

- * @param object the value to test

- * @param message the message to include in the exception

- * @exception Throwable an unspecified unchecked exception if the object

- *   is <code>null</code>

- */

-public static void isNotNull(Object object, String message) {

-	if (object == null)

-		throw new AssertionFailedException("null argument;" + message);//$NON-NLS-1$

-}

-/**

- * Asserts that the given boolean is <code>true</code>. If this

- * is not the case, some kind of unchecked exception is thrown.

- *

- * @param expression the outcome of the check

- * @return <code>true</code> if the check passes (does not return

- *    if the check fails)

- */

-public static boolean isTrue(boolean expression) {

-	// succeed as quickly as possible

-	if (expression) {

-		return true;

-	}

-	return isTrue(expression, "");//$NON-NLS-1$

-}

-/**

- * Asserts that the given boolean is <code>true</code>. If this

- * is not the case, some kind of unchecked exception is thrown.

- * The given message is included in that exception, to aid debugging.

- *

- * @param expression the outcome of the check

- * @param message the message to include in the exception

- * @return <code>true</code> if the check passes (does not return

- *    if the check fails)

- */

-public static boolean isTrue(boolean expression, String message) {

-	if (!expression)

-		throw new AssertionFailedException("assertion failed; "+message);//$NON-NLS-1$

-	return expression;

-}

-}

-

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/BaseSiteLocalFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/BaseSiteLocalFactory.java
deleted file mode 100644
index ac39623..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/BaseSiteLocalFactory.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import org.eclipse.update.core.model.SiteModel;

-import org.eclipse.update.internal.model.*;

-/**

- * 

- */

-public class BaseSiteLocalFactory {

-	/*

-	 * 

-	 */

-	public InstallConfigurationModel createInstallConfigurationModel() {

-		return new InstallConfiguration();

-	}

-	/*

-	 * 

-	 */

-	public ConfigurationActivityModel createConfigurationActivityModel() {

-		return new ConfigurationActivity();

-	}

-	/*

-	 * 

-	 */

-	public ConfiguredSiteModel createConfigurationSiteModel() {

-		return new ConfiguredSite();

-	}

-	/*

-	 * 

-	 */

-	public ConfigurationPolicyModel createConfigurationPolicyModel() {

-		return new ConfigurationPolicy();

-	}

-	/**

-	 * 

-	 */

-	public ConfiguredSiteModel createConfigurationSiteModel(SiteModel site, int policy) {

-		//create config site

-		ConfiguredSiteModel configSite = this.createConfigurationSiteModel();

-		configSite.setSiteModel(site);

-		ConfigurationPolicyModel policyModel = this.createConfigurationPolicyModel();

-		policyModel.setPolicy(policy);

-		configSite.setConfigurationPolicyModel(policyModel);

-		((ConfigurationPolicy) policyModel).setConfiguredSiteModel(configSite);

-		return configSite;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationActivity.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationActivity.java
deleted file mode 100644
index f5acc1d..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationActivity.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.PrintWriter;

-import org.eclipse.update.configuration.IActivity;

-import org.eclipse.update.configuration.IInstallConfiguration;

-import org.eclipse.update.internal.model.ConfigurationActivityModel;

-import org.eclipse.update.internal.model.InstallConfigurationParser;

-public class ConfigurationActivity

-	extends ConfigurationActivityModel

-	implements IActivity, IWritable {

-		

-	/**

-	 * Default constructor

-	 */		

-	public ConfigurationActivity() {

-	}

-	

-	/**

-	 * Constructor with action

-	 */

-	public ConfigurationActivity(int action) {

-		super();

-		setAction(action);

-		setStatus(STATUS_NOK);

-	}

-	

-	/*

-	 * @see IWritable#write(int, PrintWriter)

-	 */

-	public void write(int indent, PrintWriter w) {

-		String gap= ""; //$NON-NLS-1$

-		for (int i= 0; i < indent; i++)

-			gap += " "; //$NON-NLS-1$

-		String increment= ""; //$NON-NLS-1$

-		for (int i= 0; i < IWritable.INDENT; i++)

-			increment += " "; //$NON-NLS-1$

-			

-		// ACTIVITY	

-		w.print(gap + "<" + InstallConfigurationParser.ACTIVITY + " ");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		w.println("action=\"" + getAction() + "\" "); //$NON-NLS-1$ //$NON-NLS-2$

-		if (getLabel() != null) {

-			w.println(gap + increment+ "label=\"" + UpdateManagerUtils.Writer.xmlSafe(getLabel()) + "\" ");

-			//$NON-NLS-1$ //$NON-NLS-2$

-		}

-		w.println(gap + increment+"date=\"" + getDate().getTime() + "\" ");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		w.println(gap + increment+"status=\"" + getStatus() + "\">"); //$NON-NLS-1$ //$NON-NLS-2$

-

-		// end

-		w.println(gap + "</" + InstallConfigurationParser.ACTIVITY + ">");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		w.println(""); //$NON-NLS-1$		

-	}

-	

-	/*

-	 * @see IActivity#getInstallConfiguration()

-	 */

-	public IInstallConfiguration getInstallConfiguration() {

-		return (IInstallConfiguration) getInstallConfigurationModel();

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationPolicy.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationPolicy.java
deleted file mode 100644
index 854df27..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfigurationPolicy.java
+++ /dev/null
@@ -1,516 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.File;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.configuration.IActivity;

-import org.eclipse.update.configuration.IConfiguredSite;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.FeatureReferenceModel;

-import org.eclipse.update.internal.model.ConfigurationPolicyModel;

-

-/**

- * 

- */

-public class ConfigurationPolicy extends ConfigurationPolicyModel {

-

-	/**

-	 * Constructor for ConfigurationPolicyModel.

-	 */

-	public ConfigurationPolicy() {

-	}

-

-	/**

-	 * Copy Constructor for ConfigurationPolicyModel.

-	 */

-	public ConfigurationPolicy(ConfigurationPolicy configPolicy) {

-		super();

-		setPolicy(configPolicy.getPolicy());

-		setConfiguredFeatureReferences(configPolicy.getConfiguredFeatures());

-		setUnconfiguredFeatureReferences(configPolicy.getUnconfiguredFeatures());

-		setConfiguredSiteModel(configPolicy.getConfiguredSiteModel());

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	private boolean isUnconfigured(IFeatureReference featureReference) {

-

-		if (featureReference == null)

-			return false;

-

-		// returns true if the feature is part of the configured list

-		IFeatureReference[] refs = getUnconfiguredFeatures();

-		for (int i = 0; i < refs.length; i++) {

-			if (featureReference.equals(refs[i])) {

-				return true;

-			}

-		}

-		return false;

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public boolean isConfigured(IFeatureReference featureReference) {

-

-		if (featureReference == null)

-			return false;

-

-		// returns true if the feature is part of the configured list

-		IFeatureReference[] refs = getConfiguredFeatures();

-		for (int i = 0; i < refs.length; i++) {

-			if (featureReference.equals(refs[i])) {

-				return true;

-			}

-		}

-		return false;

-	}

-

-	/**

-	 * adds the feature to the list of features if the policy is USER_INCLUDE

-	 */

-	public void configure(IFeatureReference featureReference, boolean callInstallHandler, boolean createActivity) throws CoreException {

-

-		if (isConfigured(featureReference)) // already configured

-			return;

-

-		if (featureReference == null) {

-			UpdateCore.warn("The feature reference to configure is null");

-			return;

-		}

-

-		IFeature feature = null;

-		try {

-			feature = featureReference.getFeature(null);

-		} catch (CoreException e) {

-			if (!UpdateManagerUtils.isOptional(featureReference)) {

-				URL url = featureReference.getURL();

-				String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";

-				UpdateCore.warn("Error retrieving feature:" + urlString, e);

-				return;

-			}

-		}

-		if (feature == null) {

-			URL url = featureReference.getURL();

-			String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";

-			UpdateCore.warn("The feature to unconfigure is null: feature reference is:" + urlString);

-		}

-

-		// Setup optional install handler

-		InstallHandlerProxy handler = null;

-		if (callInstallHandler && feature.getInstallHandlerEntry() != null)

-			handler = new InstallHandlerProxy(IInstallHandler.HANDLER_ACTION_CONFIGURE, feature, feature.getInstallHandlerEntry(), null);

-		boolean success = false;

-		Throwable originalException = null;

-

-		// do the configure action

-		try {

-			if (handler != null)

-				handler.configureInitiated();

-

-			ConfigurationActivity activity = null;

-			if (createActivity) {

-				activity = new ConfigurationActivity(IActivity.ACTION_CONFIGURE);

-				activity.setLabel(feature.getVersionedIdentifier().toString());

-				activity.setDate(new Date());

-			}

-

-			addConfiguredFeatureReference((FeatureReferenceModel) featureReference);

-

-			// everything done ok

-			if (activity != null) {

-				InstallConfiguration installConfig = (InstallConfiguration) SiteManager.getLocalSite().getCurrentConfiguration();

-				activity.setStatus(IActivity.STATUS_OK);

-				installConfig.addActivity(activity);

-			}

-

-			if (handler != null)

-				handler.completeConfigure();

-

-			success = true;

-		} catch (Throwable t) {

-			originalException = t;

-		} finally {

-			Throwable newException = null;

-			try {

-				if (handler != null)

-					handler.configureCompleted(success);

-			} catch (Throwable t) {

-				newException = t;

-			}

-			if (originalException != null) // original exception wins

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), originalException);

-			if (newException != null)

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), newException);

-		}

-	}

-

-	/**

-	 * check if the plugins to unconfigure are required by other configured feature and

-	 * adds the feature to the list of unconfigured features 

-	 */

-	public boolean unconfigure(IFeatureReference featureReference, boolean callInstallHandler, boolean createActivity) throws CoreException {

-

-		if (isUnconfigured(featureReference)) {

-			UpdateCore.warn("Feature already unconfigured");

-			return true;

-		}

-

-		if (featureReference == null) {

-			UpdateCore.warn("The feature reference to unconfigure is null");

-			return false;

-		}

-

-		IFeature feature = null;

-		try {

-			feature = featureReference.getFeature(null);

-		} catch (CoreException e) {

-			if (!UpdateManagerUtils.isOptional(featureReference)) {

-				URL url = featureReference.getURL();

-				String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";

-				UpdateCore.warn("Error retrieving feature:" + urlString, e);

-				return false;

-			}

-		}

-

-		if (feature == null) {

-			URL url = featureReference.getURL();

-			String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";

-			UpdateCore.warn("The feature to unconfigure is null: feature reference is:" + urlString);

-			return false;

-		}

-

-		// Setup optional install handler

-		InstallHandlerProxy handler = null;

-		if (callInstallHandler && feature.getInstallHandlerEntry() != null) {

-			handler = new InstallHandlerProxy(IInstallHandler.HANDLER_ACTION_UNCONFIGURE, feature, feature.getInstallHandlerEntry(), null);

-		}

-

-		boolean success = false;

-		Throwable originalException = null;

-

-		// do the unconfigure action

-		try {

-

-			ConfigurationActivity activity = null;

-			if (createActivity) {

-				activity = new ConfigurationActivity(IActivity.ACTION_UNCONFIGURE);

-				activity.setLabel(feature.getVersionedIdentifier().toString());

-				activity.setDate(new Date());

-			}

-

-			InstallConfiguration installConfig = null;

-

-			// only ask for install config is activity created.

-			// prevents loops during reconciliation

-			if (activity != null)

-				installConfig = ((InstallConfiguration) SiteManager.getLocalSite().getCurrentConfiguration());

-

-			// Allow unconfigure if the feature is optional from all the parents

-			// or if the feature is mandatory and non of its parent are configured

-			// removed, not a core issue (so deep down)

-			//if (validateNoConfiguredParents(feature)) {

-			if (handler != null)

-				handler.unconfigureInitiated();

-			addUnconfiguredFeatureReference((FeatureReferenceModel) featureReference);

-			if (handler != null)

-				handler.completeUnconfigure();

-

-			// everything done ok

-			if (activity != null) {

-				activity.setStatus(IActivity.STATUS_OK);

-				installConfig.addActivity(activity);

-			}

-			success = true;

-			//} else {

-			//	if (activity != null) {

-			//		activity.setStatus(IActivity.STATUS_NOK);

-			//		installConfig.addActivityModel((ConfigurationActivityModel) activity);

-			//	}

-			//}

-		} catch (Throwable t) {

-			originalException = t;

-		} finally {

-			Throwable newException = null;

-			try {

-				if (handler != null)

-					handler.unconfigureCompleted(success);

-			} catch (Throwable t) {

-				newException = t;

-			}

-			if (originalException != null) // original exception wins

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), originalException);

-			if (newException != null)

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), newException);

-		}

-

-		if (!success) {

-			URL url = featureReference.getURL();

-			String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";

-			UpdateCore.warn("Unable to unconfigure:" + urlString);

-		}

-		return success;

-	}

-

-	/**

-	 * Calculates the plugin list for the policy. 

-	 * For "INCLUDE" policy, this corresponds to the plugins for 

-	 * configured features. For "EXCLUDE" policy, this corresponds to the

-	 * plugins for unconfigured features that are not referenced

-	 * by any configured features.

-	 */

-	public String[] getPluginPath(ISite site, String[] pluginRead) throws CoreException {

-

-		String[] result;

-		String[] pluginsToWrite;

-

-		if (getPolicy() == IPlatformConfiguration.ISitePolicy.USER_EXCLUDE) {

-			//	EXCLUDE: return unconfigured plugins MINUS any plugins that

-			//           are configured

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-				UpdateCore.warn("UNCONFIGURED PLUGINS");

-			String[] unconfigured = getPluginString(site, getUnconfiguredFeatures());

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-				UpdateCore.warn("CONFIGURED PLUGINS");

-			String[] configured = getPluginString(site, getConfiguredFeatures());

-			if (isEnabled())

-				pluginsToWrite = delta(configured, unconfigured);

-			else

-				pluginsToWrite = union(configured, unconfigured);

-		} else {

-			// INCLUDE: return configured plugins

-			if (isEnabled())

-				pluginsToWrite = getPluginString(site, getConfiguredFeatures());

-			else

-				pluginsToWrite = new String[0];

-		}

-

-		//TRACE

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {

-			UpdateCore.debug("GetPluginPath for: " + ((site == null) ? "<No site>" : site.getURL().toString()));

-			for (int i = 0; i < pluginsToWrite.length; i++) {

-				UpdateCore.debug("To write:" + pluginsToWrite[i]);

-			}

-		}

-

-		// Calculate which plugins we read should still be written out

-		// (pluginNotToWrite-pluginRead = delta that should be written out)

-		// pluginsToWrite+delta = all that should be written out

-		/*IFeatureReference[] arrayOfFeatureRef = null;		

-		if (getPolicy() == IPlatformConfiguration.ISitePolicy.USER_EXCLUDE) {

-			if (getConfiguredFeatures() != null)

-				arrayOfFeatureRef = getConfiguredFeatures();

-		} else {

-			if (getUnconfiguredFeatures() != null)

-				arrayOfFeatureRef = getUnconfiguredFeatures();

-		}

-		String[] pluginsNotToWrite = getPluginString(site, arrayOfFeatureRef);

-		//TRACE

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER){

-			for (int i = 0; i < pluginsNotToWrite.length; i++) {

-				UpdateCore.debug("Not to write:"+pluginsNotToWrite[i]);

-			}

-		}		

-		

-		String[] included = delta(pluginsNotToWrite, pluginRead);

-		//TRACE

-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER){

-			if (included!=null)

-			for (int i = 0; i < included.length; i++) {

-				UpdateCore.debug("Delta with read:"+included[i]);

-			}

-		}		

-		result = union(included, pluginsToWrite);*/

-

-		result = pluginsToWrite;

-

-		return result;

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public IFeatureReference[] getConfiguredFeatures() {

-		FeatureReferenceModel[] result = getConfiguredFeaturesModel();

-		if (result.length == 0)

-			return new IFeatureReference[0];

-		else

-			return (IFeatureReference[]) result;

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public IFeatureReference[] getUnconfiguredFeatures() {

-		FeatureReferenceModel[] result = getUnconfiguredFeaturesModel();

-		if (result.length == 0)

-			return new IFeatureReference[0];

-		else

-			return (IFeatureReference[]) result;

-	}

-

-	/**

-	 * Gets the configuredSite.

-	 * @return Returns a IConfiguredSite

-	 */

-	public IConfiguredSite getConfiguredSite() {

-		return (IConfiguredSite) getConfiguredSiteModel();

-	}

-

-	/**

-	 * removes a feature reference

-	 */

-	public void removeFeatureReference(IFeatureReference featureRef) {

-		if (featureRef instanceof FeatureReferenceModel) {

-			removeFeatureReference((FeatureReferenceModel) featureRef);

-		}

-	}

-

-	/**

-	 * return an array of plugin path for the array of feature reference

-	 * Each plugin path only appears once [bug 21750]

-	 */

-	private String[] getPluginString(ISite site, IFeatureReference[] arrayOfFeatureRef) throws CoreException {

-

-		String[] result = new String[0];

-

-		// obtain path for each feature

-		if (arrayOfFeatureRef != null) {

-			//[bug 21750] replace the List by a Set

-			Set pluginsString = new HashSet();

-			for (int i = 0; i < arrayOfFeatureRef.length; i++) {

-				IFeatureReference element = arrayOfFeatureRef[i];

-				IFeature feature = null;

-				try {

-					feature = element.getFeature(null);

-				} catch (CoreException e) {

-					UpdateCore.warn(null, e);

-				};

-				IPluginEntry[] entries = null;

-				if (feature == null) {

-					UpdateCore.warn("Null Feature", new Exception());

-					entries = new IPluginEntry[0];

-				} else {

-					entries = feature.getPluginEntries();

-				}

-

-				for (int index = 0; index < entries.length; index++) {

-					IPluginEntry entry = entries[index];

-

-					// obtain the path of the plugin directories on the site

-					ContentReference[] featureContentReference = null;

-					try {

-						featureContentReference = feature.getFeatureContentProvider().getPluginEntryArchiveReferences(entry, null /*IProgressMonitor*/

-						);

-					} catch (CoreException e) {

-						UpdateCore.warn(null, e);

-					}

-

-					// transform into a valid String

-					if (featureContentReference != null) {

-						for (int j = 0; j < featureContentReference.length; j++) {

-							URL url = site.getSiteContentProvider().getArchiveReference(featureContentReference[j].getIdentifier());

-							if (url != null) {

-								// make it relative to the site

-								String path = UpdateManagerUtils.getURLAsString(site.getURL(), url);

-								// add end "/"

-								path += (path.endsWith(File.separator) || path.endsWith("/")) ? "" : "/";

-								//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

-								// add plugin.xml or fragment.xml

-								path += entry.isFragment() ? "fragment.xml" : "plugin.xml";

-								//$NON-NLS-1$ //$NON-NLS-2$

-								pluginsString.add(path);

-								if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-									UpdateCore.warn("Add plugin: " + path + " to the list");

-							}

-						}

-					}

-				}

-			}

-

-			// transform in String[]

-			if (!pluginsString.isEmpty()) {

-				result = new String[pluginsString.size()];

-				pluginsString.toArray(result);

-			}

-		}

-		return result;

-	}

-

-	/**

-	*	 we need to figure out which plugin SHOULD NOT be written and

-	*	 remove them from include

-	*	 we can compare the String of the URL

-	*/

-	private String[] delta(String[] pluginsToRemove, String[] allPlugins) {

-		// No plugins to remove, return allPlugins 

-		if (pluginsToRemove == null || pluginsToRemove.length == 0) {

-			return allPlugins;

-		}

-

-		// We didn't read any plugins in platform.cfg

-		if (allPlugins == null || allPlugins.length == 0) {

-			return new String[0];

-		}

-

-		// if a String from pluginsToRemove IS in

-		// allPlugins, remove it from allPlugins

-		List list1 = new ArrayList();

-		list1.addAll(Arrays.asList(allPlugins));

-		for (int i = 0; i < pluginsToRemove.length; i++) {

-			if (list1.contains(pluginsToRemove[i])) {

-				list1.remove(pluginsToRemove[i]);

-			}

-		}

-

-		String[] resultEntry = new String[list1.size()];

-		if (list1.size() > 0)

-			list1.toArray(resultEntry);

-

-		return resultEntry;

-	}

-

-	/**

-	 * Returns and array with the union of plugins

-	*/

-	private String[] union(String[] targetArray, String[] sourceArray) {

-

-		// No string 

-		if (sourceArray == null || sourceArray.length == 0) {

-			return targetArray;

-		}

-

-		// No string

-		if (targetArray == null || targetArray.length == 0) {

-			return sourceArray;

-		}

-

-		// if a String from sourceArray is NOT in

-		// targetArray, add it to targetArray

-		List list1 = new ArrayList();

-		list1.addAll(Arrays.asList(targetArray));

-		for (int i = 0; i < sourceArray.length; i++) {

-			if (!list1.contains(sourceArray[i]))

-				list1.add(sourceArray[i]);

-		}

-

-		String[] resultEntry = new String[list1.size()];

-		if (list1.size() > 0)

-			list1.toArray(resultEntry);

-

-		return resultEntry;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfiguredSite.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfiguredSite.java
deleted file mode 100644
index 62c1211..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConfiguredSite.java
+++ /dev/null
@@ -1,1215 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import java.io.*;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration;
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.configuration.*;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.model.InstallAbortedException;
-import org.eclipse.update.internal.model.ConfiguredSiteModel;
-import org.eclipse.update.internal.model.InstallConfigurationParser;
-
-/**
- * A Configured site manages the Configured and unconfigured features of a Site
- */
-public class ConfiguredSite extends ConfiguredSiteModel implements IConfiguredSite, IWritable {
-
-	private static final String PRODUCT_SITE_MARKER = ".eclipseproduct";
-	private static final String EXTENSION_SITE_MARKER = ".eclipseextension";
-	private static final String PRIVATE_SITE_MARKER = ".eclipseUM";
-
-	// listeners	
-	private ListenersList listeners = new ListenersList();
-
-	// verification status
-	private IStatus verifyStatus;
-
-	// transient: true if the site was just created so we can remove it
-	private transient boolean justCreated = false;
-
-	/*
-	 * Default Constructor
-	 */
-	public ConfiguredSite() {
-	}
-
-	/*
-	 * Copy Constructor
-	 * As of now, configSite can only be of type ConfiguredSite
-	 */
-	public ConfiguredSite(IConfiguredSite configSite) {
-		ConfiguredSite cSite = (ConfiguredSite) configSite;
-		setSiteModel(cSite.getSiteModel());
-		setConfigurationPolicyModel(new ConfigurationPolicy(cSite.getConfigurationPolicy()));
-		setUpdatable(cSite.isUpdatable());
-		setEnabled(cSite.isEnabled());
-		setPreviousPluginPath(cSite.getPreviousPluginPath());
-		setPlatformURLString(cSite.getPlatformURLString());
-	}
-
-	/*
-	 *  Adds a listener
-	 */
-	public void addConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener) {
-		synchronized (listeners) {
-			listeners.add(listener);
-		}
-	}
-
-	/*
-	 * Removes a listener
-	 */
-	public void removeConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener) {
-		synchronized (listeners) {
-			listeners.remove(listener);
-		}
-	}
-
-	/*
-	 * @see IWritable#write(int, PrintWriter)
-	 */
-	public void write(int indent, PrintWriter w) {
-		String gap = ""; //$NON-NLS-1$
-		for (int i = 0; i < indent; i++)
-			gap += " "; //$NON-NLS-1$
-		String increment = ""; //$NON-NLS-1$
-		for (int i = 0; i < IWritable.INDENT; i++)
-			increment += " "; //$NON-NLS-1$
-
-		// CONFIGURATION SITE	
-		w.print(gap + "<" + InstallConfigurationParser.CONFIGURATION_SITE + " ");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		w.println("url=\"" + getSite().getURL().toExternalForm() + "\"");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		w.println(gap + increment + "platformURL=\"" + getPlatformURLString() + "\"");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		w.println(gap + increment + "enable=\"" + (isEnabled() ? "true" : "false") + "\"");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		w.println(gap + increment + "policy=\"" + getConfigurationPolicy().getPolicy() + "\" >");
-		//$NON-NLS-1$ //$NON-NLS-2$
-
-		// configured features ref
-		IFeatureReference[] featuresReferences = getRawConfiguredFeatures();
-		if (featuresReferences != null) {
-			for (int index = 0; index < featuresReferences.length; index++) {
-				IFeatureReference element = featuresReferences[index];
-				w.print(gap + increment + "<" + InstallConfigurationParser.FEATURE + " ");
-				//$NON-NLS-1$ //$NON-NLS-2$
-				// configured = true
-				w.print("configured = \"true\" "); //$NON-NLS-1$
-				// feature URL
-				String URLInfoString = null;
-				if (element.getURL() != null) {
-					ISite featureSite = element.getSite();
-					URLInfoString = UpdateManagerUtils.getURLAsString(featureSite.getURL(), element.getURL());
-					w.print("url=\"" + UpdateManagerUtils.Writer.xmlSafe(URLInfoString) + "\" ");
-					//$NON-NLS-1$ //$NON-NLS-2$
-				}
-				w.println("/>"); //$NON-NLS-1$
-			}
-		}
-
-		// unconfigured features ref
-		featuresReferences = getConfigurationPolicy().getUnconfiguredFeatures();
-		if (featuresReferences != null) {
-			for (int index = 0; index < featuresReferences.length; index++) {
-				IFeatureReference element = featuresReferences[index];
-				w.print(gap + increment + "<" + InstallConfigurationParser.FEATURE + " ");
-				//$NON-NLS-1$ //$NON-NLS-2$
-				// configured = true
-				w.print("configured = \"false\" "); //$NON-NLS-1$
-				// feature URL
-				String URLInfoString = null;
-				if (element.getURL() != null) {
-					ISite featureSite = element.getSite();
-					URLInfoString = UpdateManagerUtils.getURLAsString(featureSite.getURL(), element.getURL());
-					w.print("url=\"" + UpdateManagerUtils.Writer.xmlSafe(URLInfoString) + "\" ");
-					//$NON-NLS-1$ //$NON-NLS-2$
-				}
-				w.println("/>"); //$NON-NLS-1$
-			}
-		}
-
-		// end
-		w.println(gap + "</" + InstallConfigurationParser.CONFIGURATION_SITE + ">");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		w.println(""); //$NON-NLS-1$		
-	}
-
-	/*
-	 * @see IConfiguredSite#install(IFeature,IVerificationListener, IProgressMonitor)
-	 */
-	public IFeatureReference install(IFeature feature, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException {
-		return install(feature, null, verificationListener, monitor);
-	}
-
-	/*
-	 * @see IConfiguredSite#install(IFeature, IFeatureReference, IVerificationListener, IProgressMonitor)
-	 */
-	public IFeatureReference install(IFeature feature, IFeatureReference[] optionalFeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException {
-
-		// change the status if justCreated
-		if (justCreated) justCreated=false;
-
-		// ConfigSite is read only 
-		if (!isUpdatable()) {
-			String errorMessage = Policy.bind("ConfiguredSite.NonInstallableSite", getSite().getURL().toExternalForm());
-			//$NON-NLS-1$
-			throw Utilities.newCoreException(errorMessage, null);
-		}
-
-		// feature is null
-		if (feature == null) {
-			String errorMessage = Policy.bind("ConfiguredSite.NullFeatureToInstall");
-			//$NON-NLS-1$
-			throw Utilities.newCoreException(errorMessage, null);
-		}
-
-		// feature reference to return
-		IFeatureReference installedFeatureRef;
-		IFeature installedFeature = null;
-
-		// create the Activity (INSTALL)
-		ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_FEATURE_INSTALL);
-		activity.setLabel(feature.getVersionedIdentifier().toString());
-		activity.setDate(new Date());
-
-		try {
-			installedFeatureRef = getSite().install(feature, optionalFeatures, verificationListener, monitor);
-
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL) {
-				UpdateCore.debug("Sucessfully installed: " + installedFeatureRef.getURL().toExternalForm());
-			}
-
-			if (installedFeatureRef != null) {
-				try {
-					installedFeature = installedFeatureRef.getFeature(null);
-				} catch (CoreException e) {
-					UpdateCore.warn(null, e);
-				}
-			}
-
-			// everything done ok
-			activity.setStatus(IActivity.STATUS_OK);
-
-			// notify listeners
-			Object[] siteListeners = listeners.getListeners();
-			for (int i = 0; i < siteListeners.length; i++) {
-				if (installedFeature != null) {
-					IConfiguredSiteChangedListener listener = ((IConfiguredSiteChangedListener) siteListeners[i]);
-					listener.featureInstalled(installedFeature);
-				}
-			}
-		} catch (CoreException e) {
-			// not ok, set Activity status
-			activity.setStatus(IActivity.STATUS_NOK);
-			throw e;
-		} finally {
-			IInstallConfiguration current = SiteManager.getLocalSite().getCurrentConfiguration();
-			((InstallConfiguration) current).addActivity(activity);
-		}
-		// call the configure task	
-		if (installedFeature != null)
-			configure(installedFeature, optionalFeatures, false);
-		/*callInstallHandler*/
-
-		return installedFeatureRef;
-	}
-
-	/*
-	 * @see IConfiguredSite#remove(IFeature, IProgressMonitor)
-	 */
-	public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException {
-
-		// ConfigSite is read only
-		if (!isUpdatable()) {
-			String errorMessage = Policy.bind("ConfiguredSite.NonUninstallableSite", getSite().getURL().toExternalForm());
-			//$NON-NLS-1$
-			throw Utilities.newCoreException(errorMessage, null);
-		}
-
-		// create the Activity
-		ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_FEATURE_REMOVE);
-		activity.setLabel(feature.getVersionedIdentifier().toString());
-		activity.setDate(new Date());
-
-		try {
-			IFeatureReference referenceToRemove = null;
-			ISiteFeatureReference[] featureRef = getSite().getFeatureReferences();
-			ISiteFeatureReference ref = getSite().getFeatureReference(feature);
-			for (int i = 0; i < featureRef.length; i++) {
-				if (featureRef[i].equals(ref)) {
-					referenceToRemove = featureRef[i];
-					break;
-				}
-			}
-
-			// we found a feature reference on the site matching the feature			
-			if (referenceToRemove != null) {
-				// Check if feature is unconfigured before we remove it
-				// our UI will check.
-				// For non-UI application, throw error is feature is configured
-				if (getConfigurationPolicy().isConfigured(referenceToRemove)) {
-					IFeature featureToRemove = ((IFeatureReference) referenceToRemove).getFeature(null);
-					String featureLabel = (featureToRemove == null) ? null : featureToRemove.getLabel();
-					throw Utilities.newCoreException(Policy.bind("ConfiguredSite.UnableToRemoveConfiguredFeature"
-					//$NON-NLS-1$
-					, featureLabel), null);
-				}
-			} else {
-				throw Utilities.newCoreException(Policy.bind("ConfiguredSite.UnableToFindFeature", feature.getURL().toString()),
-				//$NON-NLS-1$
-				null);
-			}
-
-			// remove the feature
-			getSite().remove(feature, monitor);
-			getConfigurationPolicy().removeFeatureReference(referenceToRemove);
-			// everything done ok
-			activity.setStatus(IActivity.STATUS_OK);
-			// notify listeners
-			Object[] siteListeners = listeners.getListeners();
-			for (int i = 0; i < siteListeners.length; i++) {
-				((IConfiguredSiteChangedListener) siteListeners[i]).featureRemoved(feature);
-			}
-		} catch (CoreException e) {
-			activity.setStatus(IActivity.STATUS_NOK);
-			throw e;
-		} finally {
-			IInstallConfiguration current = SiteManager.getLocalSite().getCurrentConfiguration();
-			((InstallConfiguration) current).addActivity(activity);
-		}
-	}
-
-	/*
-	 * @see IConfiguredSite#configure(IFeature) 
-	 */
-	public void configure(IFeature feature) throws CoreException {
-		configure(feature, null, true /*callInstallHandler*/
-		);
-	}
-
-	/*
-	 * 
-	 */
-	private void configure(IFeature feature, IFeatureReference[] optionalFeatures, boolean callInstallHandler) throws CoreException {
-
-		if (feature == null) {
-			UpdateCore.warn("Attempting to configure a null feature in site:" + getSite().getURL().toExternalForm());
-			return;
-		}
-
-		ConfigurationPolicy configPolicy = getConfigurationPolicy();
-		if (configPolicy == null)
-			return;
-
-		// bottom up approach, same configuredSite
-		IIncludedFeatureReference[] childrenRef = feature.getIncludedFeatureReferences();
-		if (optionalFeatures != null) {
-			childrenRef = childrenToConfigure(childrenRef, optionalFeatures);
-		}
-
-		for (int i = 0; i < childrenRef.length; i++) {
-			try {
-				IFeature child = childrenRef[i].getFeature(null);
-				configure(child, optionalFeatures, callInstallHandler);
-			} catch (CoreException e) {
-				// will skip any bad children
-				if (!childrenRef[i].isOptional())
-					UpdateCore.warn("Unable to configure child feature: " + childrenRef[i] + " " + e);
-			}
-		}
-
-		// configure root feature 	
-		IFeatureReference featureReference = getSite().getFeatureReference(feature);
-		configPolicy.configure(featureReference, callInstallHandler, true);
-
-		// notify listeners
-		Object[] siteListeners = listeners.getListeners();
-		for (int i = 0; i < siteListeners.length; i++) {
-			((IConfiguredSiteChangedListener) siteListeners[i]).featureConfigured(feature);
-		}
-	}
-
-	/*
-	 * Return the optional children to configure
-	 * 
-	 * @param children all the nested features
-	 * @param optionalfeatures optional features to install
-	 * @return IFeatureReference[]
-	 */
-	private IIncludedFeatureReference[] childrenToConfigure(IIncludedFeatureReference[] children, IFeatureReference[] optionalfeatures) {
-
-		List childrenToInstall = new ArrayList();
-		for (int i = 0; i < children.length; i++) {
-			IIncludedFeatureReference optionalFeatureToConfigure = children[i];
-			if (!optionalFeatureToConfigure.isOptional()) {
-				childrenToInstall.add(optionalFeatureToConfigure);
-			} else {
-				for (int j = 0; j < optionalfeatures.length; j++) {
-					// must compare feature as optionalFeatures are from the install site
-					// where children are on the local site
-					try {
-						IFeature installedChildren = optionalfeatures[j].getFeature(null);
-						if (installedChildren.equals(optionalFeatureToConfigure.getFeature(true, null, null))) {
-							childrenToInstall.add(optionalFeatureToConfigure);
-							break;
-						}
-					} catch (CoreException e) {
-						UpdateCore.warn("", e);
-					}
-				}
-			}
-		}
-
-		IIncludedFeatureReference[] result = new IIncludedFeatureReference[childrenToInstall.size()];
-		if (childrenToInstall.size() > 0) {
-			childrenToInstall.toArray(result);
-		}
-
-		return result;
-	}
-
-	/*
-	 * @see IConfiguredSite#unconfigure(IFeature)
-	 */
-	public boolean unconfigure(IFeature feature) throws CoreException {
-		// the first call sould disable without checking for enable parent
-		return unconfigure(feature, true, false);
-	}
-
-	private boolean unconfigure(IFeature feature, boolean includePatches, boolean verifyEnableParent) throws CoreException {
-		IFeatureReference featureReference = getSite().getFeatureReference(feature);
-
-		if (featureReference == null) {
-			UpdateCore.warn("Unable to retrieve Feature Reference for feature" + feature);
-			return false;
-		}
-
-		ConfigurationPolicy configPolicy = getConfigurationPolicy();
-		if (configPolicy == null)
-			return false;
-
-		// verify no enable parent
-		if (verifyEnableParent && !validateNoConfiguredParents(feature)) {
-			UpdateCore.warn("The feature " + feature.getVersionedIdentifier() + " to disable is needed by another enable feature");
-			return false;
-		}
-
-		boolean sucessfullyUnconfigured = false;
-		try {
-			sucessfullyUnconfigured = configPolicy.unconfigure(featureReference, true, true);
-		} catch (CoreException e) {
-			URL url = featureReference.getURL();
-			String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";
-			UpdateCore.warn("Unable to unconfigure" + urlString, e);
-			throw e;
-		}
-		if (sucessfullyUnconfigured) {
-			// 2.0.2: unconfigure patches that reference this feature.
-			// A patch is a feature that contains an import
-			// statement with patch="true" and an id/version
-			// that matches an already installed and configured
-			// feature. When patched feature is unconfigured,
-			// all the patches that reference it must be 
-			// unconfigured as well
-			// (in contrast, patched features can be
-			// configured without the patches).
-			if (includePatches)
-				unconfigurePatches(feature);
-
-			// top down approach, same configuredSite
-			IIncludedFeatureReference[] childrenRef = feature.getIncludedFeatureReferences();
-			for (int i = 0; i < childrenRef.length; i++) {
-				try {
-					IFeature child = childrenRef[i].getFeature(true, null, null); // disable the exact feature
-					unconfigure(child, includePatches, true); // check for parent as we should be the only parent.
-				} catch (CoreException e) {
-					// skip any bad children
-					UpdateCore.warn("Unable to unconfigure child feature: " + childrenRef[i] + " " + e);
-				}
-			}
-
-			// notify listeners
-			Object[] siteListeners = listeners.getListeners();
-			for (int i = 0; i < siteListeners.length; i++) {
-				IConfiguredSiteChangedListener listener = ((IConfiguredSiteChangedListener) siteListeners[i]);
-				listener.featureUnconfigured(feature);
-			}
-
-			return true;
-		} else {
-			URL url = featureReference.getURL();
-			String urlString = (url != null) ? url.toExternalForm() : "<no feature reference url>";
-			UpdateCore.warn("Unable to unconfigure:" + urlString);
-			return false;
-		}
-	}
-
-	/*
-	 * Look for features that have an import reference
-	 * that points to this feature and where patch=true.
-	 * Unconfigure all the matching patches, but
-	 * do not do the same lookup for them
-	 * because patches cannot have patches themselves.
-	 */
-
-	private void unconfigurePatches(IFeature feature) {
-		IFeatureReference[] frefs = getConfiguredFeatures();
-		for (int i = 0; i < frefs.length; i++) {
-			IFeatureReference fref = frefs[i];
-			try {
-				IFeature candidate = fref.getFeature(null);
-				if (candidate.equals(feature))
-					continue;
-
-				IImport[] imports = candidate.getImports();
-				for (int j = 0; j < imports.length; j++) {
-					IImport iimport = imports[j];
-					if (iimport.isPatch()) {
-						if (iimport.getVersionedIdentifier().equals(feature.getVersionedIdentifier())) {
-							// bingo - unconfigure this patch
-							unconfigure(candidate, false, false);
-							break;
-						}
-					}
-				}
-			} catch (CoreException e) {
-				UpdateCore.warn("", e);
-			}
-		}
-	}
-
-	/*
-	 * @see IConfiguredSite#getConfiguredFeatures()
-	 */
-	public IFeatureReference[] getConfiguredFeatures() {
-		if (isEnabled())
-			return getRawConfiguredFeatures();
-		else
-			return new ISiteFeatureReference[0];
-	}
-
-	/*
-	 * @see IConfiguredSite#getConfiguredFeatures()
-	 */
-	private IFeatureReference[] getRawConfiguredFeatures() {
-		ConfigurationPolicy configPolicy = getConfigurationPolicy();
-		if (configPolicy == null)
-			return new ISiteFeatureReference[0];
-
-		return configPolicy.getConfiguredFeatures();
-	}
-
-	/*
-	 * adds configured and unconfigured feature references
-	 */
-	public IFeatureReference[] getFeatureReferences() {
-
-		ConfigurationPolicy configPolicy = getConfigurationPolicy();
-		if (configPolicy == null)
-			return new ISiteFeatureReference[0];
-
-		IFeatureReference[] configuredFeatures = getConfiguredFeatures();
-		int confLen = configuredFeatures.length;
-		IFeatureReference[] unconfiguredFeatures = configPolicy.getUnconfiguredFeatures();
-		int unconfLen = unconfiguredFeatures.length;
-
-		IFeatureReference[] result = new IFeatureReference[confLen + unconfLen];
-		if (confLen > 0) {
-			System.arraycopy(configuredFeatures, 0, result, 0, confLen);
-		}
-		if (unconfLen > 0) {
-			System.arraycopy(unconfiguredFeatures, 0, result, confLen, unconfLen);
-		}
-
-		return result;
-	}
-
-	/*
-	 * Configure and unconfigure appropriate feature to
-	 * become 'like' currentConfiguration which is the configuration
-	 * the user wants to revert to.
-	 * 
-	 * All features from currentConfiguration should be configured
-	 */
-	public void revertTo(IConfiguredSite oldConfiguration, IProgressMonitor monitor, IProblemHandler handler) throws CoreException, InterruptedException {
-
-		ConfiguredSite oldConfiguredSite = (ConfiguredSite) oldConfiguration;
-
-		// retrieve the feature that were configured
-		IFeatureReference[] configuredFeatures = oldConfiguredSite.validConfiguredFeatures(handler);
-
-		for (int i = 0; i < configuredFeatures.length; i++) {
-			getConfigurationPolicy().configure(configuredFeatures[i], true, true);
-		}
-
-		// calculate all the features we have to unconfigure from the current state to this state
-		// in the history. 				
-		List featureToUnconfigure = oldConfiguredSite.calculateUnconfiguredFeatures(configuredFeatures);
-
-		// for each unconfigured feature check if it still exists
-		// if so add as unconfigured
-		Iterator iter = featureToUnconfigure.iterator();
-		while (iter.hasNext()) {
-			IFeatureReference element = (IFeatureReference) iter.next();
-			try {
-				// do not log activity
-				getConfigurationPolicy().unconfigure(element, true, true);
-			} catch (CoreException e) {
-				// log no feature to unconfigure
-				String url = element.getURL().toString();
-				ISite site = element.getSite();
-				String siteString = (site != null) ? site.getURL().toExternalForm() : Policy.bind("ConfiguredSite.NoSite"); //$NON-NLS-1$
-				UpdateCore.warn(Policy.bind("ConfiguredSite.CannotFindFeatureToUnconfigure", url, siteString), e); //$NON-NLS-1$ 
-			}
-		}
-		//} // end USER_EXCLUDE
-	}
-
-	/*
-	 * We have to keep our configured feature
-	 * check if they are all valid
-	 * Return the valid configured features
-	 */
-	private IFeatureReference[] validConfiguredFeatures(IProblemHandler handler) throws InterruptedException {
-
-		IFeatureReference[] configuredFeatures = getConfiguredFeatures();
-		if (configuredFeatures != null) {
-			for (int i = 0; i < configuredFeatures.length; i++) {
-				IFeature feature = null;
-
-				// attempt to access the feature
-				try {
-					feature = configuredFeatures[i].getFeature(null);
-				} catch (CoreException e) {
-					// notify we cannot find the feature
-					UpdateCore.warn(null, e);
-					String featureString = configuredFeatures[i].getURL().toExternalForm();
-					if (!handler.reportProblem(Policy.bind("ConfiguredSite.CannotFindFeatureToConfigure", featureString))) { //$NON-NLS-1$
-						throw new InterruptedException();
-					}
-				}
-
-				// verify all the plugins still exist
-				if (feature != null) {
-					// get plugin identifier
-					List sitePluginIdentifiers = new ArrayList();
-					ISite site = feature.getSite();
-					IPluginEntry[] sitePluginEntries = null;
-
-					if (site != null) {
-						sitePluginEntries = site.getPluginEntries();
-						for (int index = 0; index < sitePluginEntries.length; index++) {
-							IPluginEntry entry = sitePluginEntries[index];
-							sitePluginIdentifiers.add(entry.getVersionedIdentifier());
-						}
-					}
-
-					if (sitePluginEntries.length > 0) {
-						IPluginEntry[] featurePluginEntries = feature.getPluginEntries();
-						for (int index = 0; index < featurePluginEntries.length; index++) {
-							IPluginEntry currentFeaturePluginEntry = featurePluginEntries[index];
-							if (!contains(currentFeaturePluginEntry.getVersionedIdentifier(), sitePluginIdentifiers)) {
-								// the plugin defined by the feature
-								// doesn't seem to exist on the site
-								String msg = "Error verifying existence of plugin:" + currentFeaturePluginEntry.getVersionedIdentifier().toString();
-								//$NON-NLS-1$
-								UpdateCore.log(msg, new Exception());
-
-								String siteString = (site != null) ? site.getURL().toExternalForm() : Policy.bind("ConfiguredSite.NoSite");
-								//$NON-NLS-1$
-								String errorLabel = Policy.bind("ConfiguredSite.CannotFindPluginEntry", currentFeaturePluginEntry.getVersionedIdentifier().toString(), siteString);
-								//$NON-NLS-1$ //$NON-NLS-2$
-								if (handler == null) {
-									throw new InterruptedException(errorLabel);
-								}
-								if (!handler.reportProblem(Policy.bind(errorLabel))) {
-									//$NON-NLS-1$ //$NON-NLS-2$
-									throw new InterruptedException();
-								}
-							} // end if not found in site
-						} // end for
-					}
-				}
-			} // end for configured feature
-		}
-		return configuredFeatures;
-	}
-
-	/*
-	 * We are in the process of calculating the delta between what was configured in the current
-	 * configuration that is not configured now
-	 * 
-	 * we have to figure out what feature have been unconfigured for the whole
-	 * history between current and us... 
-	 * 
-	 * is it as simple as  get all configured, and unconfigured,
-	 * the do the delta with what should be configured
-	 * 
-	 */
-	private List calculateUnconfiguredFeatures(IFeatureReference[] configuredFeatures) throws CoreException {
-
-		Set featureToUnconfigureSet = new HashSet();
-
-		// loop for all history
-		// try to see if the configured site existed
-		// if it does, get the unconfigured features 
-		// and the configured one
-		IInstallConfiguration[] history = SiteManager.getLocalSite().getConfigurationHistory();
-
-		for (int i = 0; i < history.length; i++) {
-			IInstallConfiguration element = history[i];
-			IConfiguredSite[] configSites = element.getConfiguredSites();
-			for (int j = 0; j < configSites.length; j++) {
-				ConfiguredSite configSite = (ConfiguredSite) configSites[j];
-				if (configSite.getSite().equals(getSite())) {
-					featureToUnconfigureSet.addAll(Arrays.asList(configSite.getConfigurationPolicy().getUnconfiguredFeatures()));
-					featureToUnconfigureSet.addAll(Arrays.asList(configSite.getConfigurationPolicy().getConfiguredFeatures()));
-				}
-			}
-		}
-
-		// remove the unconfigured feature we found that are now to be configured 
-		// (they may have been unconfigured in the past, but the revert makes them configured)
-		List featureToUnconfigureList = remove(configuredFeatures, featureToUnconfigureSet);
-
-		return featureToUnconfigureList;
-	}
-
-	/*
-	 * Utilities: Remove an array of feature references
-	 * from a list
-	 */
-	private List remove(IFeatureReference[] featureRefs, Set set) {
-		List result = new ArrayList();
-
-		if (set == null)
-			return result;
-
-		// if an element of the list is NOT found in the array,
-		// add it to the result list			
-		Iterator iter = set.iterator();
-		while (iter.hasNext()) {
-			IFeatureReference element = (IFeatureReference) iter.next();
-			boolean found = false;
-			for (int i = 0; i < featureRefs.length; i++) {
-				if (element.equals(featureRefs[i])) {
-					found = true;
-				}
-			}
-
-			if (!found)
-				result.add(element);
-		}
-		return result;
-	}
-
-	/*
-	 * I have issues when running list.contain(versionedIdentifier)
-	 * The code runs the Object.equals instead of the VersionedIdentifier.equals
-	 */
-	private boolean contains(VersionedIdentifier id, List list) {
-		boolean found = false;
-		if (list != null && !list.isEmpty()) {
-			Iterator iter = list.iterator();
-			while (iter.hasNext() && !found) {
-				VersionedIdentifier element = (VersionedIdentifier) iter.next();
-				if (element.equals(id)) {
-					found = true;
-				}
-			}
-		}
-		return found;
-	}
-
-	/*
-	 * 
-	 */
-	public ConfigurationPolicy getConfigurationPolicy() {
-		return (ConfigurationPolicy) getConfigurationPolicyModel();
-	}
-
-	/*
-	 * 
-	 */
-	public ISite getSite() {
-		return (ISite) getSiteModel();
-	}
-
-	/*
-	 * 
-	 */
-	public IInstallConfiguration getInstallConfiguration() {
-		return (IInstallConfiguration) getInstallConfigurationModel();
-	}
-
-	/*
-	 * 
-	 */
-	public IStatus getBrokenStatus(IFeature feature) {
-
-		IStatus featureStatus = createStatus(IStatus.OK, IFeature.STATUS_HAPPY, "", null);
-
-		// check the Plugins of all the features
-		// every plugin of the feature must be on the site
-		IPluginEntry[] siteEntries = getSite().getPluginEntries();
-		IPluginEntry[] featuresEntries = feature.getPluginEntries();
-		IPluginEntry[] result = UpdateManagerUtils.diff(featuresEntries, siteEntries);
-		if (result != null && (result.length != 0)) {
-			String msg = Policy.bind("SiteLocal.FeatureUnHappy");
-			MultiStatus multi = new MultiStatus(featureStatus.getPlugin(), IFeature.STATUS_UNHAPPY, msg, null);
-
-			for (int k = 0; k < result.length; k++) {
-				VersionedIdentifier id = result[k].getVersionedIdentifier();
-				Object[] values = new String[] { "", "" };
-				if (id != null) {
-					values = new Object[] { id.getIdentifier(), id.getVersion()};
-				}
-				String msg1 = Policy.bind("ConfiguredSite.MissingPluginsBrokenFeature", values);
-				//$NON-NLS-1$
-				UpdateCore.warn(msg1);
-				IStatus status = createStatus(IStatus.ERROR, IFeature.STATUS_UNHAPPY, msg1, null);
-				multi.add(status);
-			}
-			return multi;
-		}
-
-		// check os, arch, and ws
-
-		String msg = Policy.bind("SiteLocal.FeatureHappy");
-		return createStatus(IStatus.OK, IFeature.STATUS_HAPPY, msg, null);
-	}
-
-	/*
-	 * 
-	 */
-	public boolean isConfigured(IFeature feature) {
-		if (!isEnabled())
-			return false;
-
-		if (getConfigurationPolicy() == null)
-			return false;
-		IFeatureReference featureReference = getSite().getFeatureReference(feature);
-		if (featureReference == null) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)
-				UpdateCore.warn("Unable to retrieve featureReference for feature:" + feature);
-			return false;
-		}
-		return getConfigurationPolicy().isConfigured(featureReference);
-	}
-
-	/**
-	 * @see Object#toString()
-	 */
-	public String toString() {
-		if (getSite() == null)
-			return "No Site";
-		if (getSite().getURL() == null)
-			return "No URL";
-		return getSite().getURL().toExternalForm();
-	}
-
-	/**
-	 * @see IConfiguredSite#verifyUpdatableStatus()
-	 */
-	public IStatus verifyUpdatableStatus() {
-
-		if (verifyStatus != null)
-			return verifyStatus;
-
-		URL siteURL = getSite().getURL();
-		if (siteURL == null) {
-			verifyStatus = createStatus(IStatus.ERROR, Policy.bind("ConfiguredSite.SiteURLNull"), null); //$NON-NLS-1$
-			return verifyStatus;
-		}
-
-		if (!"file".equalsIgnoreCase(siteURL.getProtocol())) {
-			verifyStatus = createStatus(IStatus.ERROR, Policy.bind("ConfiguredSite.NonLocalSite"), null); //$NON-NLS-1$
-			return verifyStatus;
-		}
-
-		String siteLocation = siteURL.getFile();
-		File file = new File(siteLocation);
-
-		// get the product name of the private marker
-		// if there is no private marker, check if the site is contained in another site
-		// if there is a marker and this is a different product, return false
-		// otherwise don't check if we are contained in another site
-		String productName = getProductName(file);
-		if (productName != null) {
-			if (!productName.equals(getProductIdentifier("id", getProductFile()))) {
-				verifyStatus = createStatus(IStatus.ERROR, Policy.bind("ConfiguredSite.NotSameProductId", productName), null); //$NON-NLS-1$
-				return verifyStatus;
-			}
-		} else {
-			File container = getSiteContaining(file);
-			if (container != null) {
-				verifyStatus = createStatus(IStatus.ERROR, Policy.bind("ConfiguredSite.ContainedInAnotherSite", container.getAbsolutePath()), null); //$NON-NLS-1$
-				return verifyStatus;
-			}
-		}
-
-		if (!canWrite(file)) {
-			verifyStatus = createStatus(IStatus.ERROR, Policy.bind("ConfiguredSite.ReadOnlySite"), null); //$NON-NLS-1$
-			return verifyStatus;
-		}
-
-		verifyStatus = createStatus(IStatus.OK, "", null);
-		setUpdatable(true);
-		return verifyStatus;
-	}
-
-	/*
-	 * Verify we can write on the file system
-	 */
-	private static boolean canWrite(File file) {
-		if (!file.isDirectory() && file.getParentFile() != null) {
-			file = file.getParentFile();
-		}
-
-		File tryFile = null;
-		FileOutputStream out = null;
-		try {
-			tryFile = new File(file, "toDelete");
-			out = new FileOutputStream(tryFile);
-			out.write(0);
-		} catch (IOException e) {
-			return false;
-		} finally {
-			try {
-				if (out != null)
-					out.close();
-			} catch (IOException e) {
-			};
-			if (tryFile != null)
-				tryFile.delete();
-		}
-		return true;
-	}
-
-	/*
-	 * Check if the directory contains a marker
-	 * if not ask all directory children to check
-	 * if one validates the condition, returns the marker
-	 */
-	private static File getSiteContaining(File file) {
-
-		if (file == null)
-			return null;
-
-		UpdateCore.warn("IsContained: Checking for markers at:" + file);
-		if (file.exists() && file.isDirectory()) {
-			File productFile = new File(file, PRODUCT_SITE_MARKER);
-			File extensionFile = new File(file, EXTENSION_SITE_MARKER);
-			if (productFile.exists() || extensionFile.exists())
-				return file;
-			// do not check if a marker exists in the current but start from the parent
-			// the current is analyze by getProductname()
-			if (file.getParentFile() != null) {
-				File privateFile = new File(file.getParentFile(), PRIVATE_SITE_MARKER);
-				if (privateFile.exists())
-					return file.getParentFile();
-			}
-		}
-		return getSiteContaining(file.getParentFile());
-	}
-
-	/*
-	 * Returns the name of the product if the identifier of the private Site markup is not
-	 * the same as the identifier of the product the workbench was started with.
-	 * If the product is the same, return null.
-	 */
-	private static String getProductName(File file) {
-
-		if (file == null)
-			return null;
-
-		File markerFile = new File(file, PRIVATE_SITE_MARKER);
-		if (!markerFile.exists()) {
-			return null;
-		}
-
-		File productFile = getProductFile();
-		String productId = null;
-		String privateId = null;
-		if (productFile != null) {
-			productId = getProductIdentifier("id", productFile);
-			privateId = getProductIdentifier("id", markerFile);
-			if (productId == null) {
-				UpdateCore.warn("Product ID is null at:" + productFile);
-				return null;
-			}
-			if (!productId.equalsIgnoreCase(privateId)) {
-				UpdateCore.warn("Product id at" + productFile + " Different than:" + markerFile);
-				String name = getProductIdentifier("name", markerFile);
-				String version = getProductIdentifier("version", markerFile);
-				String markerID = (name == null) ? version : name + ":" + version;
-				if (markerID == null)
-					markerID = "";
-				return markerID;
-			} else {
-				return privateId;
-			}
-		} else {
-			UpdateCore.warn("Product Marker doesn't exist:" + productFile);
-		}
-
-		return null;
-	}
-
-	/*
-	 * Returns the identifier of the product from the property file
-	 */
-	private static String getProductIdentifier(String identifier, File propertyFile) {
-		String result = null;
-		if (identifier == null)
-			return result;
-		try {
-			InputStream in = new FileInputStream(propertyFile);
-			PropertyResourceBundle bundle = new PropertyResourceBundle(in);
-			result = bundle.getString(identifier);
-		} catch (IOException e) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL)
-				UpdateCore.debug("Exception reading property file:" + propertyFile);
-		} catch (MissingResourceException e) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL)
-				UpdateCore.debug("Exception reading '" + identifier + "' from property file:" + propertyFile);
-		}
-		return result;
-	}
-
-	/*
-	 * Returns the identifier of the product from the property file
-	 */
-	private static File getProductFile() {
-
-		String productInstallDirectory = BootLoader.getInstallURL().getFile();
-		if (productInstallDirectory != null) {
-			File productFile = new File(productInstallDirectory, PRODUCT_SITE_MARKER);
-			if (productFile.exists()) {
-				return productFile;
-			} else {
-				UpdateCore.warn("Product marker doesn't exist:" + productFile);
-			}
-		} else {
-			UpdateCore.warn("Cannot retrieve install URL from BootLoader");
-		}
-		return null;
-	}
-
-	/*
-	 * 
-	 */
-	/*package*/
-	boolean createPrivateSiteMarker() {
-		URL siteURL = getSite().getURL();
-		if (siteURL == null) {
-			UpdateCore.warn("Unable to create marker. The Site url is null.");
-			return false;
-		}
-
-		if (!"file".equalsIgnoreCase(siteURL.getProtocol())) {
-			UpdateCore.warn("Unable to create private marker. The Site is not on the local file system.");
-			return false;
-		}
-
-		String siteLocation = siteURL.getFile();
-		File productFile = getProductFile();
-		boolean success = false;
-		if (productFile != null) {
-			String productId = getProductIdentifier("id", productFile);
-			String productName = getProductIdentifier("name", productFile);
-			String productVer = getProductIdentifier("version", productFile);
-			if (productId != null) {
-				File file = new File(siteLocation, PRIVATE_SITE_MARKER);
-				if (!file.exists()) {
-					PrintWriter w = null;
-					try {
-						OutputStream out = new FileOutputStream(file);
-						OutputStreamWriter outWriter = new OutputStreamWriter(out, "UTF8"); //$NON-NLS-1$
-						BufferedWriter buffWriter = new BufferedWriter(outWriter);
-						w = new PrintWriter(buffWriter);
-						w.println("id=" + productId);
-						if (productName != null)
-							w.println("name=" + productName);
-						if (productVer != null)
-							w.println("version=" + productVer);
-						success = true;
-						justCreated = true;
-					} catch (Exception e) {
-						UpdateCore.warn("Unable to create private Marker at:" + file, e);
-					} finally {
-						if (w != null)
-							w.close();
-					}
-				}
-			}
-		}
-		return success;
-	}
-
-	/*
-	 * 
-	 */
-	/*package*/
-	boolean removePrivateSiteMarker() {
-
-		if (!justCreated) {
-			UpdateCore.warn("Unable to remove marker. The site was not created during this activity.");
-			return false;
-		}
-
-		URL siteURL = getSite().getURL();
-		if (siteURL == null) {
-			UpdateCore.warn("Unable to remove marker. The Site url is null.");
-			return false;
-		}
-
-		if (!"file".equalsIgnoreCase(siteURL.getProtocol())) {
-			UpdateCore.warn("Unable to remove private marker. The Site is not on the local file system.");
-			return false;
-		}
-
-		String siteLocation = siteURL.getFile();
-		File productFile = getProductFile();
-		File file = new File(siteLocation, PRIVATE_SITE_MARKER);
-		boolean success = false;
-		if (file.exists()) {
-			try {
-				success = file.delete();
-			} catch (Exception e) {
-				UpdateCore.warn("Unable to remove private Marker at:" + file, e);
-			}
-		}
-		return success;
-	}
-
-	/*
-	 * Returns true if the directory of the Site contains
-	 * .eclipseextension
-	 */
-	public boolean isExtensionSite() {
-		return containsMarker(EXTENSION_SITE_MARKER);
-	}
-
-	/*
-	 * Returns true if the directory of the Site contains
-	 * .eclipseextension
-	 */
-	public boolean isProductSite() {
-		return containsMarker(PRODUCT_SITE_MARKER);
-	}
-
-	/*
-	 * Returns true if the directory of the Site contains
-	 * .eclipseextension
-	 */
-	public boolean isPrivateSite() {
-		return containsMarker(PRIVATE_SITE_MARKER);
-	}
-
-	/*
-	 * 
-	 */
-	private boolean containsMarker(String marker) {
-		ISite site = getSite();
-		if (site == null) {
-			UpdateCore.warn("Contains Markers:The site is null");
-			return false;
-		}
-
-		URL url = site.getURL();
-		if (url == null) {
-			UpdateCore.warn("Contains Markers:Site URL is null");
-			return false;
-		}
-		if (!"file".equalsIgnoreCase(url.getProtocol())) {
-			UpdateCore.warn("Contains Markers:Non file protocol");
-			return false;
-		}
-		File file = new File(url.getFile());
-		if (!file.exists()) {
-			UpdateCore.warn("Contains Markers:The site doesn't exist:" + file);
-			return false;
-		}
-		File extension = new File(file, marker);
-		if (!extension.exists()) {
-			UpdateCore.warn("Contains Markers:The extensionfile does not exist:" + extension);
-			return false;
-		}
-		return true;
-	}
-
-	/*
-	 * Returns true if the Site is already natively linked
-	 */
-	public boolean isNativelyLinked() throws CoreException {
-		String platformString = getPlatformURLString();
-		if (platformString == null) {
-			UpdateCore.warn("Unable to retrieve platformString");
-			return false;
-		}
-
-		URL siteURL = null;
-		try {
-			// check if the site exists and is updatable
-			// update configSite
-			URL urlToCheck = new URL(platformString);
-			IPlatformConfiguration runtimeConfig = BootLoader.getCurrentPlatformConfiguration();
-			IPlatformConfiguration.ISiteEntry entry = runtimeConfig.findConfiguredSite(urlToCheck);
-			if (entry != null) {
-				return entry.isNativelyLinked();
-			} else {
-				UpdateCore.warn("Unable to retrieve site:" + platformString + " from platform.");
-			}
-
-			// check by comparing URLs
-			IPlatformConfiguration.ISiteEntry[] sites = runtimeConfig.getConfiguredSites();
-			for (int i = 0; i < sites.length; i++) {
-				siteURL = sites[i].getURL();
-				URL resolvedURL = Platform.resolve(siteURL);
-				if (UpdateManagerUtils.sameURL(resolvedURL, urlToCheck))
-					return true;
-			}
-		} catch (MalformedURLException e) {
-			String msg = Policy.bind("ConfiguredSite.UnableResolveURL", platformString);
-			throw Utilities.newCoreException(msg, e);
-		} catch (IOException e) {
-			String msg = Policy.bind("ConfiguredSite.UnableToAccessSite", new Object[] { siteURL });
-			throw Utilities.newCoreException(msg, e);
-		}
-
-		return false;
-	}
-
-	/*
-	* we have to check that no configured/enable parent include this feature
-	*/
-	private boolean validateNoConfiguredParents(IFeature feature) throws CoreException {
-		if (feature == null) {
-			UpdateCore.warn("ConfigurationPolicy: validate Feature is null");
-			return true;
-		}
-
-		IFeatureReference[] parents = UpdateManagerUtils.getParentFeatures(feature, getConfiguredFeatures(), false);
-		return (parents.length == 0);
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConnectionThreadManager.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConnectionThreadManager.java
deleted file mode 100644
index ad1a6f1..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ConnectionThreadManager.java
+++ /dev/null
@@ -1,198 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.*;
-import java.net.*;
-import java.net.HttpURLConnection;
-import java.util.*;
-
-import org.eclipse.core.runtime.*;
-
-/**
- * This class manages threads that are dispatched to 
- * obtained a valid input stream from an HTTP connection.
- * Since obtaining an input stream is an I/O operation
- * that may block for a long time, it is performed
- * on a separate thread to keep the UI responsive.
- * <p>
- * In case that a connection blocks and does not
- * terminate with an IOException after a timeout, 
- * active threads may accumulate. The manager will
- * refuse to create more than MAX_COUNT threads and
- * instead will throw a CoreException with a child
- * status object for each connection that is still pending.
- * <p>
- * If the connection is responsive but slow, the user
- * may cancel it. In that case, the manager will
- * close the stream to avoid resource leak.
- */
-public class ConnectionThreadManager {
-	// set connection timeout to 1 minute
-	private static final String CONNECT_TIMEOUT = "60000";
-	// set read timeout to 1 minute
-	private static final String READ_TIMEOUT = "60000";
-	// max number of active threads
-	private static final int MAX_COUNT = 9;
-	private Vector threads;
-
-	public static class StreamRunnable implements Runnable {
-		private HttpURLConnection urlConnection;
-		private IOException exception;
-		private InputStream is;
-		private boolean disconnected;
-
-		public StreamRunnable(HttpURLConnection urlConnection) {
-			this.urlConnection = urlConnection;
-		}
-
-		public InputStream getInputStream() {
-			return is;
-		}
-
-		public URL getURL() {
-			return urlConnection.getURL();
-		}
-
-		public IOException getIOException() {
-			return exception;
-		}
-
-		public void disconnect() {
-			urlConnection.disconnect();
-			disconnected = true;
-		}
-
-		public void run() {
-			try {
-				is = urlConnection.getInputStream();
-				if (disconnected) {
-					// The connection was slow, but returned
-					// a valid input stream. However,
-					// the user canceled the connection
-					// so we must close to avoid 
-					// resource leak.
-					if (is != null) {
-						try {
-							is.close();
-						} catch (IOException ex) {
-							// at this point, we don't care
-						} finally {
-							is = null;
-						}
-					}
-				}
-			} catch (IOException e) {
-				exception = e;
-			}
-		}
-	}
-
-	class ConnectionThread extends Thread {
-		private StreamRunnable runnable;
-		public ConnectionThread(StreamRunnable runnable) {
-			super(runnable, "update-connection");
-			this.runnable = runnable;
-		}
-
-		public StreamRunnable getRunnable() {
-			return runnable;
-		}
-	}
-
-	public ConnectionThreadManager() {
-		// In case we are running Sun's code.
-		setIfNotDefaultProperty("sun.net.client.defaultConnectTimeout", CONNECT_TIMEOUT);
-		setIfNotDefaultProperty("sun.net.client.defaultReadTimeout", READ_TIMEOUT); 
-	}
-	
-	private void setIfNotDefaultProperty(String key, String value) {
-		String oldValue = System.getProperty(key);
-		if (oldValue==null || oldValue.equals("-1"))
-			System.setProperty(key, value);
-	}
-
-	public Thread createThread(StreamRunnable runnable) throws CoreException {
-		validateExistingThreads();
-		if (threads == null)
-			threads = new Vector();
-		Thread t = new ConnectionThread(runnable);
-		t.setDaemon(true);
-		threads.add(t);
-		return t;
-	}
-
-	/*
-	 * Removes threads that are not alive any more from the 
-	 * list and ensures that there are at most MAX_COUNT threads
-	 * still working.
-	 */
-	private void validateExistingThreads() throws CoreException {
-		if (threads == null)
-			return;
-			
-		int aliveCount = purgeTerminatedThreads();
-
-		if (aliveCount > MAX_COUNT) {
-			ArrayList children = new ArrayList();
-			String pluginId =
-				UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-			for (int i = 0; i < threads.size(); i++) {
-				ConnectionThread t = (ConnectionThread) threads.get(i);
-				String url = t.getRunnable().getURL().toString();
-				IStatus status =
-					new Status(
-						IStatus.ERROR,
-						pluginId,
-						IStatus.OK,
-						Policy.bind(
-							"ConnectionThreadManager.unresponsiveURL",
-							url),
-						null);
-				children.add(status);
-			}
-			MultiStatus parentStatus =
-				new MultiStatus(
-					pluginId,
-					IStatus.OK,
-					(IStatus[]) children.toArray(new IStatus[children.size()]),
-					Policy.bind("ConnectionThreadManager.tooManyConnections"),
-					null);
-			throw new CoreException(parentStatus);
-		}
-	}
-	
-	/*
-	 * Removes terminated threads from the list and returns
-	 * the number of those still active.
-	 */
-	
-	private int purgeTerminatedThreads() {
-		int aliveCount = 0;
-
-		Object[] array = threads.toArray();
-		for (int i = 0; i < array.length; i++) {
-			Thread t = (Thread) array[i];
-			if (!t.isAlive())
-				threads.remove(t);
-			else
-				aliveCount++;
-		}
-		return aliveCount;
-	}
-
-	public void shutdown() {
-		// We might want to kill the active threads but
-		// this is not really necessary since they are all
-		// daemons and will not prevent JVM to terminate.
-		threads.clear();
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ContentConsumer.java
deleted file mode 100644
index f506813..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ContentConsumer.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import org.eclipse.update.core.IContentConsumer;
-
-/**
- * A default implementation for IFeatureContentConsumer
- * </p>
- * @since 2.0
- */
-
-public abstract class ContentConsumer implements IContentConsumer {
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/DefaultInstallHandler.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/DefaultInstallHandler.java
deleted file mode 100644
index 15b9ce9..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/DefaultInstallHandler.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import java.io.IOException;
-import java.util.jar.JarEntry;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.JarContentReference.ContentSelector;
-import org.eclipse.update.core.model.InstallAbortedException;
-
-/**
- * Default Implementation of InstallHandler
- */
-public class DefaultInstallHandler extends BaseInstallHandler {
-
-	/*
-	 * @see IInstallHandler#nonPluginDataDownloaded(INonPluginEntry[], IVerificationListener)
-	 */
-	public void nonPluginDataDownloaded(
-		INonPluginEntry[] nonPluginData,
-		IVerificationListener listener)
-		throws CoreException {
-
-		// verify non-plugin archives. The DefaultInstallHandler assumes
-		// the verifier associated with the feature is able to verify the
-		// data archives.
-		if (nonPluginData == null || nonPluginData.length == 0)
-			return;
-
-		this.nonPluginEntries = nonPluginData;
-		IFeatureContentProvider provider = this.feature.getFeatureContentProvider();
-		IVerifier verifier = provider.getVerifier();
-		if (verifier == null)
-			return;
-
-		for (int i = 0; i < this.nonPluginEntries.length; i++) {
-			ContentReference[] archives =
-				provider.getNonPluginEntryArchiveReferences(nonPluginEntries[i], this.monitor);
-			IVerificationResult result;
-			for (int j = 0; j < archives.length; j++) {
-
-				// see if the data entry is a jar
-				ContentReference archive = archives[j];
-				if (!(archives[j] instanceof JarContentReference)
-					&& archives[j].getIdentifier().endsWith(".jar")) {
-					try {
-						archive =
-							new JarContentReference(archives[j].getIdentifier(), archives[j].asFile());
-					} catch (IOException e) {
-					}
-				}
-
-				result = verifier.verify(this.feature, archive, false, this.monitor);
-				if (result != null)
-					promptForVerification(result, listener);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#completeInstall(IFeatureContentConsumer)
-	 */
-	public void completeInstall(IFeatureContentConsumer consumer)
-		throws CoreException {
-
-		// plugins have been installed. Check to see if we have any
-		// non-plugin entries that need to be handled.
-		if (this.nonPluginEntries == null || this.nonPluginEntries.length == 0)
-			return;
-
-		// install non-plugin archives
-		IFeatureContentProvider provider = this.feature.getFeatureContentProvider();
-		for (int i = 0; i < this.nonPluginEntries.length; i++) {
-			ContentReference[] archive =
-				provider.getNonPluginEntryArchiveReferences(nonPluginEntries[i], this.monitor);
-			IContentConsumer nonPluginConsumer = consumer.open(nonPluginEntries[i]);
-			for (int j = 0; j < archive.length; j++) {
-				String id = archive[j].getIdentifier();
-				if (id.endsWith(".jar")) {
-					// the non-plugin archive is a jar. Unpack it into
-					// a directory constructed using the archive id
-					try {
-						final String prefix = id.substring(0, id.length() - 4) + "/";
-						JarContentReference jarRef = new JarContentReference("", archive[j].asFile());
-						ContentSelector selector = new ContentSelector() {
-							public String defineIdentifier(JarEntry entry) {
-								if (entry == null)
-									return null;
-								else
-									return prefix + entry.getName();
-							}
-						};
-						ContentReference[] entries = jarRef.peek(selector, this.monitor);
-						for (int k = 0; k < entries.length; k++) {
-							nonPluginConsumer.store(entries[k], this.monitor);
-						}
-					} catch (IOException e) {
-						throw Utilities
-							.newCoreException(Policy.bind("JarVerificationService.CancelInstall", id),
-						//$NON-NLS-1$
-						e);
-					}
-
-				} else {
-					// the non-plugin archive is not a jar. Install it asis.
-					nonPluginConsumer.store(archive[j], this.monitor);
-				}
-			}
-			nonPluginConsumer.close();
-		}
-	}
-
-	/*
-	 * 
-	 */
-	private void promptForVerification(
-		IVerificationResult verificationResult,
-		IVerificationListener listener)
-		throws CoreException {
-
-		if (listener == null)
-			return;
-		int result = listener.prompt(verificationResult);
-
-		if (result == IVerificationListener.CHOICE_ABORT) {
-			Exception e = verificationResult.getVerificationException();
-			throw new InstallAbortedException(Policy.bind("JarVerificationService.CancelInstall"),e);
-		}
-		if (result == IVerificationListener.CHOICE_ERROR) {
-			throw Utilities
-				.newCoreException(Policy.bind("JarVerificationService.UnsucessfulVerification"),
-			//$NON-NLS-1$
-			verificationResult.getVerificationException());
-		}
-
-		return;
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ErrorRecoveryLog.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ErrorRecoveryLog.java
deleted file mode 100644
index 464a77f..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ErrorRecoveryLog.java
+++ /dev/null
@@ -1,546 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.*;
-import java.net.URL;
-import java.util.*;
-import java.util.Date;
-import java.util.List;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration;
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.update.core.Utilities;
-
-
-/**
- * singleton pattern.
- * manages the error/recover log file
- */
-public class ErrorRecoveryLog {
-
-	public static final boolean RECOVERY_ON = false;
-
-	private static final String ERROR_RECOVERY_LOG = "platform.cfg.log";
-	private static final String LOG_ENTRY_KEY = "LogEntry.";
-	private static final String RETURN_CARRIAGE = "\r\n";
-	private static final String END_OF_FILE = "eof=eof";
-
-	//
-	public static final String START_INSTALL_LOG = 	"START_INSTALL_LOG";
-	public static final String PLUGIN_ENTRY = 		"PLUGIN";
-	public static final String FRAGMENT_ENTRY = 		"FRAGMENT";	
-	public static final String FEATURE_ENTRY = 		"FEATURE";
-	public static final String ALL_INSTALLED = 		"ALL_FEATURES_INSTALLED";
-	public static final String RENAME_ENTRY = 		"RENAME";
-	public static final String END_INSTALL_LOG = 	"END_INSTALL_LOG";
-	public static final String START_REMOVE_LOG = 	"REMOVE_LOG";
-	public static final String END_ABOUT_REMOVE =	"END_ABOUT_TO_REMOVE";
-	public static final String DELETE_ENTRY = 		"DELETE";
-	public static final String END_REMOVE_LOG = 		"END_REMOVE_LOG";
-
-	public static boolean forceRemove = false;
-
-	private static ErrorRecoveryLog inst;
-	private FileWriter out;
-	private int index;
-	private List paths;
-	
-	private boolean open = false;
-	private int nbOfOpen = 0;
-	
-
-	/**
-	 * Constructor for ErrorRecoveryLog.
-	 */
-	private ErrorRecoveryLog() {
-		super();
-	}
-
-	/**
-	 * Singleton
-	 */
-	public static ErrorRecoveryLog getLog() {
-		if (inst == null){
-			inst = new ErrorRecoveryLog();
-		}
-		return inst;
-	}
-
-	/**
-	 * get a unique identifer for the file, ensure uniqueness up to now
-	 */
-	public static String getLocalRandomIdentifier(String path) {
-		
-		if (path==null) return null;
-		
-		// verify if it will be a directory without creating the file
-		// as it doesn't exist yet
-		if (path.endsWith(File.separator) || path.endsWith("/"))
-			return path;
-		File file = new File(path);
-		String newName =
-			UpdateManagerUtils.getLocalRandomIdentifier(file.getName(), new Date());
-		while (new File(newName).exists()) {
-			newName =
-				UpdateManagerUtils.getLocalRandomIdentifier(file.getName(), new Date());
-		}
-		File newFile = new File(file.getParentFile(),newName);
-		return newFile.getAbsolutePath();
-	}
-
-	/**
-	 * returns the log file 
-	 * We do not check if the file exists
-	 */
-	public File getRecoveryLogFile() {
-		IPlatformConfiguration configuration =
-			BootLoader.getCurrentPlatformConfiguration();
-		URL location = configuration.getConfigurationLocation();
-		String locationString = location.getFile();
-		File platformConfiguration = new File(locationString);
-		if (!platformConfiguration.isDirectory()) platformConfiguration = platformConfiguration.getParentFile();
-		return new File(platformConfiguration, ERROR_RECOVERY_LOG);
-	}
-
-
-	/**
-	 * Open the log
-	 */
-	public void open(String logEntry) throws CoreException {
-		if (open) {
-			nbOfOpen++;			
-			UpdateCore.warn("Open nested Error/Recovery log #"+nbOfOpen+":"+logEntry);				
-			return;
-		}
-		
-		File logFile = null;		
-		try {
-			logFile = getRecoveryLogFile();
-			out = new FileWriter(logFile);
-			index = 0;
-			paths=null;
-			open=true;
-			nbOfOpen=0;
-			UpdateCore.warn("Start new Error/Recovery log #"+nbOfOpen+":"+logEntry);							
-		} catch (IOException e) {
-			throw Utilities.newCoreException(
-				Policy.bind("UpdateManagerUtils.UnableToLog", new Object[] { logFile }),
-				e);
-		}
-		
-		append(logEntry);
-	}
-
-	/**
-	 * Append the string to the log and flush
-	 */
-	public void append(String logEntry) throws CoreException {
-		File logFile = null;
-		try {
-			if (!open) {
-				UpdateCore.warn("Internal Error: The Error/Recovery log is not open:"+logEntry);				
-				return;
-			}
-
-			StringBuffer buffer = new StringBuffer(LOG_ENTRY_KEY);
-			buffer.append(index);
-			buffer.append("=");
-			buffer.append(logEntry);
-			buffer.append(RETURN_CARRIAGE);
-
-			out.write(buffer.toString());
-			out.flush();
-			index++;
-		} catch (IOException e) {
-			throw Utilities.newCoreException(
-				Policy.bind("UpdateManagerUtils.UnableToLog", new Object[] { logFile }),
-				e);
-		}
-	}
-
-	/**
-	 * Append the string to the log and flush
-	 */
-	public void appendPath(String logEntry, String path) throws CoreException {
-		if (path == null)
-			return;
-		StringBuffer buffer = new StringBuffer(logEntry);
-		buffer.append(" ");
-		buffer.append(path);
-		append(buffer.toString());
-		
-		addPath(path);
-	}
-
-	/**
-	 * Close any open recovery log
-	 */
-	public void close(String logEntry) throws CoreException {
-		
-		if (nbOfOpen>0){
-			UpdateCore.warn("Close nested Error/Recovery log #"+nbOfOpen+":"+logEntry);			
-			nbOfOpen--;			
-			return;
-		}			
-		
-		UpdateCore.warn("Close Error/Recovery log #"+nbOfOpen+":"+logEntry);
-		append(logEntry);
-		if (out != null) {
-			try {
-				out.write(END_OF_FILE);
-				out.flush();
-				out.close();
-			} catch (IOException e) { //eat the exception
-			} finally {
-				out = null;
-				open=false;
-			}
-		}
-	}
-
-	/**
-	 * Delete the file from the file system
-	 */
-	public void delete() {
-		//File logFile = getRecoveryLogFile();
-		getRecoveryLogFile();
-		//if (logFile.exists())
-			//logFile.delete();	
-	}
-
-	/**
-	 * 
-	 */
-	private void addPath(String path){
-		if (paths==null) paths = new ArrayList();
-		paths.add(path);
-	}
-	
-	/** 
-	 * recover an install or remove that didn't finish
-	 * Delete file for an unfinished delete
-	 * Delete file for an unfinshed install if not all the files were installed
-	 * Rename XML files for an install if all the files were installed but not renamed
-	 */
-	public IStatus recover(){
-		
-		IStatus mainStatus = createStatus(IStatus.OK,"Recovering status",null);
-		MultiStatus multi = new MultiStatus(mainStatus.getPlugin(),mainStatus.getCode(),mainStatus.getMessage(),null);
-
-		//check if recovery is on
-		if (!RECOVERY_ON){
-			UpdateCore.warn("Recovering is turned off. Abort recovery");
-			return multi;
-		}
-		
-		File logFile = getRecoveryLogFile();
-		if (!logFile.exists()){
-			multi.add(createStatus(IStatus.ERROR,"Unable to find log file:"+logFile,null));
-			return multi;
-		}
-		
-		InputStream in = null;
-		Properties prop = null;
-		try {
-			in = new FileInputStream(logFile);
-			prop = new Properties();
-			prop.load(in);
-		} catch (IOException e){
-			UpdateCore.warn("Unable to read:"+logFile,e);
-			multi.add(createStatus(IStatus.ERROR,"Unable to access property file:"+logFile,e));
-			return multi;
-		}
-		
-		String eof = prop.getProperty("eof");
-		if(eof!=null && eof.equals("eof")){
-			// all is good
-			delete();
-			UpdateCore.warn("Found log file. Log file contains end-of-file. No need to process");
-			multi.add(createStatus(IStatus.OK,null,null));
-			return multi;
-		}
-		
-		String recovery = prop.getProperty(LOG_ENTRY_KEY+"0");
-		if (recovery==null){
-			multi.add(createStatus(IStatus.ERROR,"Unable to read log file. File doesn't contain the log entry:"+logFile,null));
-			return multi;			
-		}
-	
-		if(recovery.equalsIgnoreCase(START_INSTALL_LOG)){
-			multi.addAll(processRecoverInstall(prop));
-			return multi;
-		}
-		
-		if(recovery.equalsIgnoreCase(START_REMOVE_LOG)){
-			multi.addAll(processRecoverRemove(prop));
-			return multi;
-		}
-
-		multi.add(createStatus(IStatus.ERROR,"Unable to read log file. Unable to determine recovery to execute based on the first line of :"+logFile,null));
-		return multi;	
-	}
-	
-	/*
-	 * creates a Status
-	 */
-	private IStatus createStatus(int statusSeverity, String msg, Exception e){
-		String id =
-			UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-	
-		StringBuffer completeString = new StringBuffer("");
-		if (msg!=null)
-			completeString.append(msg);
-		if (e!=null){
-			completeString.append("\r\n[");
-			completeString.append(e.toString());
-			completeString.append("]\r\n");
-		}
-		return new Status(statusSeverity, id, IStatus.OK, completeString.toString(), e);
-	}	
-	
-	/*
-	 * 
-	 */
-	 private IStatus processRecoverInstall(Properties prop){
-	 	
-		IStatus mainStatus = createStatus(IStatus.OK,"",null);
-		MultiStatus multi = new MultiStatus(mainStatus.getPlugin(),mainStatus.getCode(),"",null);
-	 	
-	 	Collection values = prop.values();
-	 	
-	 	if(values.contains(END_INSTALL_LOG)){
-			// all is good
-			delete();
-			UpdateCore.warn("Found log file. Log file contains END_INSTALL_LOG. No need to process rename");
-			multi.add(createStatus(IStatus.OK,null,null));
-			return multi;
-	 	}
-	 	
-	 	if (values.contains(ALL_INSTALLED) && !forceRemove){
-	 		// finish install by renaming
-	 		int index = 0;
-	 		boolean found = false;
-	 		String val = prop.getProperty(LOG_ENTRY_KEY+index);
-	 		while(val!=null && !found){
-	 			if(val.equalsIgnoreCase(ALL_INSTALLED)) found = true;
-	 			IStatus renameStatus = processRename(val);
-	 			UpdateCore.log(renameStatus);
-	 			if(renameStatus.getSeverity()!=IStatus.OK){
-	 				multi.add(renameStatus);
-	 			}
-	 			index++;
-	 			val = prop.getProperty(LOG_ENTRY_KEY+index);	 			
-	 		}
-	 		if (val==null){
-	 			UpdateCore.warn("Unable to find value for :"+LOG_ENTRY_KEY+index);
-	 			multi.add(createStatus(IStatus.ERROR,"Wrong log file. Unable to find entry for:"+LOG_ENTRY_KEY+index,null));
-				return multi;
-	 		}
-	 		// process recovery finished
-	 		delete();
-			UpdateCore.warn("Found log file. Successfully recovered by renaming. Feature is installed.");
-			multi.add(createStatus(IStatus.OK,null,null));
-	 	} else {
-	 		// remove all because install did not lay out all the files
-	 		// or recovery is not allowed
-	 		int index = 0;
-	 		String val = prop.getProperty(LOG_ENTRY_KEY+index);
-	 		while(val!=null){
-	 			IStatus removeStatus = processRemove(val);
-	 			UpdateCore.log(removeStatus);
-	 			if(removeStatus.getSeverity()!=IStatus.OK){
-	 				multi.addAll(removeStatus);
-	 			}
-	 			index++;
-	 			val = prop.getProperty(LOG_ENTRY_KEY+index);	 			
-	 		}
-	 		// process recovery finished
-	 		delete();
-			UpdateCore.warn("Found log file. Successfully recovered by removing. Feature is removed.");
-			multi.add(createStatus(IStatus.OK,null,null));
-	 	}
-	 	return multi;
-	 }
-	 
-	 /*
-	  * 
-	  */
-	  private IStatus processRename(String val){
-	  	
-		// get the path
-		int index = -1;
-		String newFileName = null;
-	  	if (val.startsWith(PLUGIN_ENTRY)){
-	  		index = PLUGIN_ENTRY.length();
-	  		newFileName= "plugin.xml";
-	  	}
-	  	if (val.startsWith(FRAGMENT_ENTRY)){
-	  		index = FRAGMENT_ENTRY.length();
-	  		newFileName= "fragment.xml";
-	  	}
-	  	if (val.startsWith(FEATURE_ENTRY)){
-	  		index = FEATURE_ENTRY.length();
-	  		newFileName= "feature.xml";
-	  	}
-	  	
-	  	if (index==-1){
-	  		return createStatus(IStatus.ERROR,"Unable to determine what action was taken by parsing"+val,null);
-	  	}
-	  	
-	  	String oldName = val.substring(index+1);
-	  	File oldFile = new File(oldName);
-	  	File parentFile = oldFile.getParentFile();
-	  	File newFile = new File(parentFile,newFileName);
-	  	if (!oldFile.exists()){
-	  		if (newFile.exists()){
-	  			// ok the file has been renamed apparently
-			  	return createStatus(IStatus.OK,"File already renamed into:"+newFile,null);	  				
-	  		} else {
-	  			// the file doesn't exist, log as problem, and force the removal of the feature
-		  		return createStatus(IStatus.ERROR,"Unable to find file:"+oldFile,null);	  			
-	  		}
-	  	} 	
-	  	
-		boolean sucess = false;
-		if (newFile.exists()) {
-			UpdateManagerUtils.removeFromFileSystem(newFile);
-			UpdateCore.warn("Removing already existing file:"+newFile);
-		}
-		sucess = oldFile.renameTo(newFile);
-			
-		if(!sucess){
-			String msg =("Unable to rename old in new:"+oldFile+newFile);
-			return createStatus(IStatus.ERROR,msg,null);
-		}
-		return createStatus(IStatus.OK,"Sucessfully renamed:"+oldFile+" to:"+newFile,null);
-	  }
-	  
-	 /*
-	  * 
-	  */
-	  private IStatus processRemove(String val){
-	  	
-		IStatus mainStatus = createStatus(IStatus.OK,"",null);
-		MultiStatus multi = new MultiStatus(mainStatus.getPlugin(),mainStatus.getCode(),"",null);	  	
-	  	
-		// get the path
-		int index = -1;
-	  	if (val.startsWith(PLUGIN_ENTRY)){
-	  		index = PLUGIN_ENTRY.length();
-	  	}
-	  	if (val.startsWith(FRAGMENT_ENTRY)){
-	  		index = FRAGMENT_ENTRY.length();
-	  	}
-	  	if (val.startsWith(FEATURE_ENTRY)){
-	  		index = FEATURE_ENTRY.length();
-	  	}
-	  	
-	  	if (index==-1){
-	  		return createStatus(IStatus.ERROR,"Unable to determine what action was taken by parsing"+val,null);
-	  	}
-	  	
-	  	String oldName = val.substring(index+1);
-	  	File oldFile = new File(oldName);
-	  	File parentFile = oldFile.getParentFile();
-	  	if (!parentFile.exists()){
-  			// the directory doesn't exist, log as problem, and force the removal of the feature
-	  		multi.add(createStatus(IStatus.ERROR,"Unable to find file:"+oldFile,null));	  			
-	  		return multi;
-	  	} 	
-	  	
-		multi.addAll(removeFromFileSystem(parentFile));
-		return multi;
-	  }	
-	  
-	/**
-	 * return a multi status, 
-	 * the children are the file that couldn't be removed
-	 */
-	public IStatus removeFromFileSystem(File file) {
-		
-		IStatus mainStatus = createStatus(IStatus.OK,"",null);
-		MultiStatus multi = new MultiStatus(mainStatus.getPlugin(),mainStatus.getCode(),"",null);		
-		
-		if (!file.exists()){
-			multi.add(createStatus(IStatus.ERROR,"Unable to find file to remove:"+file,null));
-			return multi;
-		}
-			
-		if (file.isDirectory()) {
-			String[] files = file.list();
-			if (files != null) // be careful since file.list() can return null
-				for (int i = 0; i < files.length; ++i){
-					multi.addAll(removeFromFileSystem(new File(file, files[i])));
-				}
-		}
-		
-		if (!file.delete()) {
-			String msg = "Unable to remove file" +file.getAbsolutePath();
-			//$NON-NLS-1$ 
-			multi.add(createStatus(IStatus.ERROR,msg,null));
-		}
-		return multi;
-	}	
-	
-	/*
-	 * 
-	 */
-	 private IStatus processRecoverRemove(Properties prop){
-	 	
-		IStatus mainStatus = createStatus(IStatus.OK,"",null);
-		MultiStatus multi = new MultiStatus(mainStatus.getPlugin(),mainStatus.getCode(),"",null);
-	 	
-	 	Collection values = prop.values();
-	 	
-	 	if(values.contains(END_REMOVE_LOG)){
-			// all is good
-			delete();
-			UpdateCore.warn("Found log file. Log file contains END_REMOVE_LOG. No need to process rename");
-			multi.add(createStatus(IStatus.OK,null,null));
-			return multi;
-	 	}
-	 	
-	 	if (!values.contains(END_ABOUT_REMOVE)){
-	 		// finish install by renaming
- 			multi.add(createStatus(IStatus.ERROR,"The remove process didn't start. Please remove the disable feature from the program.",null));
-				return multi;
-	 	} else {
-	 		// finish install by renaming
-	 		int index = 0;
-	 		boolean found = false;
-	 		String val = prop.getProperty(LOG_ENTRY_KEY+index);
-	 		while(val!=null && !found){
-	 			if(val.equalsIgnoreCase(END_ABOUT_REMOVE)) found = true;
-	 			IStatus renameStatus = processRemove(val);
-	 			UpdateCore.log(renameStatus);
-	 			if(renameStatus.getSeverity()!=IStatus.OK){
-	 				multi.add(renameStatus);
-	 			}
-	 			index++;
-	 			val = prop.getProperty(LOG_ENTRY_KEY+index);	 			
-	 		}
-	 		if (val==null){
-	 			UpdateCore.warn("Unable to find value for :"+LOG_ENTRY_KEY+index);
-	 			multi.add(createStatus(IStatus.ERROR,"Wrong log file. Unable to find entry for:"+LOG_ENTRY_KEY+index,null));
-				return multi;
-	 		}
-	 		// process recovery finished
-	 		delete();
-			UpdateCore.warn("Found log file. Successfully recovered by deleting. Feature is removed.");
-			multi.add(createStatus(IStatus.OK,null,null));
-	 	}
-	 	return multi;
-	 }	    
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureContentConsumer.java
deleted file mode 100644
index aeb6f7a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureContentConsumer.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import org.eclipse.update.core.IFeatureContentConsumer;
-import org.eclipse.update.core.model.ModelObject;
-
-/**
- * A default implementation for IFeatureContentConsumer
- * </p>
- * @since 2.0
- */
-
-public abstract class FeatureContentConsumer extends ModelObject
-	implements IFeatureContentConsumer {
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentConsumer.java
deleted file mode 100644
index 3f1c600..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentConsumer.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

- 

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.*;

-

-/**

- * ContentConsumer Implementation for a FeatureExecutable

- */

-

-public class FeatureExecutableContentConsumer extends FeatureContentConsumer {

-

-	private IFeature feature;

-	private boolean closed= false;

-	private boolean aborted= false;	

-	private ISiteContentConsumer contentConsumer;

-	private IFeatureContentConsumer parent = null;

-	private List /* of IFeatureContentCOnsumer */ children;

-

-	/*

-	 * @see IContentConsumer#open(INonPluginEntry)

-	 */

-	public IContentConsumer open(INonPluginEntry nonPluginEntry)

-		throws CoreException {

-		ContentConsumer cons = new NonPluginEntryContentConsumer(

-			getContentConsumer().open(nonPluginEntry));

-		return cons;

-	}

-

-	/*

-	 * @see IContentConsumer#open(IPluginEntry)

-	 */

-	public IContentConsumer open(IPluginEntry pluginEntry) throws CoreException {

-		ContentConsumer cons = new PluginEntryContentConsumer(getContentConsumer().open(pluginEntry));

-		return cons;		

-	}

-

-	/*

-	 * @see IContentConsumer#addChild(IFeature)

-	 */

-	public void addChild(IFeature child) throws CoreException {

-		IFeatureContentConsumer childConsumer = child.getFeatureContentConsumer();

-		childConsumer.setParent(this);

-		if (children==null) children = new ArrayList();

-		children.add(childConsumer);

-		return;

-	}

-

-

-	/*

-	 * @see IFeatureContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor)

-		throws CoreException {

-		getContentConsumer().store(contentReference, monitor);

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#close()

-	 */

-	public IFeatureReference close() throws CoreException {

-		

-		if (!closed && getParent()!=null){

-			closed=true;

-			return null;

-		}

-		

-		// parent consumer, log we are about to rename

-		// log files have been downloaded

-		if (getParent()==null){

-			ErrorRecoveryLog.getLog().append(ErrorRecoveryLog.ALL_INSTALLED);

-		}

-		

-		IFeatureReference ref= null;

-		if (contentConsumer != null)

-			ref = contentConsumer.close();

-		

-		// close nested feature

-		IFeatureContentConsumer[] children = getChildren();

-		for (int i = 0; i < children.length; i++) {

-			children[i].close();

-		}

-							

-		return ref;

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#setFeature(IFeature)

-	 */

-	public void setFeature(IFeature feature) {

-		this.feature= feature;

-	}

-

-	/*

-	 * Sets the parent 

-	 */

-	public void setParent(IFeatureContentConsumer featureContentConsumer) {

-		this.parent= featureContentConsumer;

-	}

-

-	/*

-	 * returns the Content Consumer for the feature

-	 * 

-	 * Right now we are the only one to implement SiteContentConsumer

-	 * Need to be exposed as API post v2.0

-	 */

-	private ISiteContentConsumer getContentConsumer() throws CoreException {

-		if (contentConsumer == null)

-			if (feature.getSite() instanceof SiteFile) {

-				SiteFile site= (SiteFile) feature.getSite();

-				contentConsumer= site.createSiteContentConsumer(feature);

-			} else {

-				throw new UnsupportedOperationException();

-			}

-		return contentConsumer;

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#abort()

-	 */

-	public void abort() throws CoreException {

-

-		if (aborted) return;

-		

-		IFeatureContentConsumer[] children = getChildren();

-		for (int i = 0; i < children.length; i++) {

-			try {

-			children[i].abort();

-			} catch (Exception e){

-				//do Nothing

-			}

-		}

-

-		// do not close plugin and non plugin content consumer

-		// the contentConsumer will abort them

-		// we do not need to abort the NonPluginEntryContentConsumer and PluginEntryContentConsume

-

-		//implement the cleanup

-		if (contentConsumer!=null)

-			contentConsumer.abort();

-		

-		aborted = true;

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#getFeature()

-	 */

-	public IFeature getFeature(){

-		return feature;

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#getParent()

-	 */

-	public IFeatureContentConsumer getParent(){

-		return parent;

-	}

-

-	/*

-	 * @see IFeatureContentConsumer#getChildren()

-	 */

-	public IFeatureContentConsumer[] getChildren(){

-		if (children==null)

-			return new IFeatureContentConsumer[0];

-

-		return (IFeatureContentConsumer[]) children.toArray(arrayTypeFor(children));

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentProvider.java
deleted file mode 100644
index ee87c43..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableContentProvider.java
+++ /dev/null
@@ -1,274 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-

-import java.io.File;

-import java.io.IOException;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.ArrayList;

-import java.util.List;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.*;

-

-/**

- * Default implementation of a Executable Feature Content Provider

- */

-

-public class FeatureExecutableContentProvider extends FeatureContentProvider {

-

-	/*

-	 * Constructor 

-	 */

-	public FeatureExecutableContentProvider(URL url) {

-		super(url);

-	}

-

-	/*

-	 * Return the path for a pluginEntry

-	 */

-	private String getPath(IPluginEntry pluginEntry)

-		throws IOException, CoreException {

-

-		// get the URL of the Archive file that contains the plugin entry

-		ISiteContentProvider provider = getFeature().getSite().getSiteContentProvider();

-		URL fileURL = provider.getArchiveReference(getPathID(pluginEntry));

-		String result = fileURL.getFile();

-

-		// return the list of all subdirectories

-		if (!result.endsWith(File.separator))

-			result += File.separator;

-		File pluginDir = new File(result);

-		if (!pluginDir.exists())

-			throw new IOException(

-				Policy.bind("FeatureExecutableContentProvider.FileDoesNotExist", result));

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-		return result;

-	}

-

-	/*

-	 * Returns the path for the Feature

-	 */

-	private String getFeaturePath() throws IOException {

-		String result = getFeature().getURL().getFile();

-

-		// return the list of all subdirectories

-		if (!(result.endsWith(File.separator) || result.endsWith("/"))) //$NON-NLS-1$

-			result += File.separator;

-		File pluginDir = new File(result);

-		if (!pluginDir.exists())

-			throw new IOException(

-				Policy.bind("FeatureExecutableContentProvider.FileDoesNotExist", result));

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-		return result;

-	}

-

-	/*

-	 * Returns all the files under the directory

-	 * Recursive call

-	 */

-	private List getFiles(File dir) throws IOException {

-		List result = new ArrayList();

-

-		if (!dir.isDirectory()) {

-			String msg =

-				Policy.bind(

-					"FeatureExecutableContentProvider.InvalidDirectory",

-					dir.getAbsolutePath());

-			//$NON-NLS-1$

-			throw new IOException(msg);

-

-		}

-

-		File[] files = dir.listFiles();

-		if (files != null)

-			for (int i = 0; i < files.length; ++i) {

-				if (files[i].isDirectory()) {

-					result.addAll(getFiles(files[i]));

-				} else {

-					result.add(files[i]);

-				}

-			}

-

-		return result;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getVerifier()

-	 */

-	public IVerifier getVerifier() throws CoreException {

-		return null;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureManifestReference()

-	 */

-	public ContentReference getFeatureManifestReference(InstallMonitor monitor)

-		throws CoreException {

-		ContentReference result = null;

-		try {

-			result = new ContentReference(Feature.FEATURE_XML, new URL(getURL(), Feature.FEATURE_XML));

-

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(

-				Policy.bind(

-					"FeatureExecutableContentProvider.UnableToCreateURLFor",

-					getURL().toExternalForm() + " " + Feature.FEATURE_XML),

-				e);

-			//$NON-NLS-1$ //$NON-NLS-2$

-		}

-		return result;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getArchiveReferences()

-	 */

-	public ContentReference[] getArchiveReferences(InstallMonitor monitor)

-		throws CoreException {

-		// executable feature does not contain archives

-		return new ContentReference[0];

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryArchiveReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryArchiveReferences(

-		IPluginEntry pluginEntry,

-		InstallMonitor monitor)

-		throws CoreException {

-		ContentReference[] result = new ContentReference[1];

-		try {

-			result[0] =

-				new ContentReference(getPathID(pluginEntry), new File(getPath(pluginEntry)));

-		} catch (IOException e) {

-			throw Utilities.newCoreException(

-					Policy.bind(

-						"FeatureExecutableContentProvider.UnableToRetrievePluginEntry",

-						pluginEntry.getVersionedIdentifier().toString()),

-					e);

-			//$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getNonPluginEntryArchiveReferences(INonPluginEntry)

-	 */

-	public ContentReference[] getNonPluginEntryArchiveReferences(

-		INonPluginEntry nonPluginEntry,

-		InstallMonitor monitor)

-		throws CoreException {

-

-		ContentReference[] result = new ContentReference[1];

-		URL fileURL;

-

-		//try {

-		// get the URL of the Archive file that contains the plugin entry

-		ISiteContentProvider provider = getFeature().getSite().getSiteContentProvider();

-		fileURL = provider.getArchiveReference(getPathID(nonPluginEntry));

-

-		String fileString = fileURL.getFile();

-		File nonPluginData = new File(fileString);

-		if (!nonPluginData.exists())

-			throw Utilities.newCoreException(

-				Policy.bind("FeatureExecutableContentProvider.FileDoesNotExist", fileString),

-				null);

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-		try {

-			result[0] =

-				new ContentReference(nonPluginEntry.getIdentifier(), nonPluginData.toURL());

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(

-				Policy.bind(

-					"FeatureExecutableContentProvider.UnableToRetrieveNonPluginEntry",

-					nonPluginEntry.getIdentifier().toString()),

-				e);

-			//$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryArchiveReferences()

-	 */

-	public ContentReference[] getFeatureEntryArchiveReferences(InstallMonitor monitor)

-		throws CoreException {

-		ContentReference[] contentReferences = new ContentReference[1];

-		contentReferences[0] = new ContentReference(null, getURL());

-		return contentReferences;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryArchivesContentReferences()

-	 */

-	public ContentReference[] getFeatureEntryContentReferences(InstallMonitor monitor)

-		throws CoreException {

-		ContentReference[] result = new ContentReference[0];

-		try {

-			File featureDir = new File(getFeaturePath());

-			List files = getFiles(featureDir);

-			result = new ContentReference[files.size()];

-			for (int i = 0; i < result.length; i++) {

-				File currentFile = (File) files.get(i);

-				result[i] = new ContentReference(currentFile.getName(), currentFile.toURL());

-			}

-		} catch (IOException e) {

-			throw Utilities.newCoreException(

-				Policy.bind(

-					"FeatureExecutableContentProvider.UnableToRetrieveFeatureEntryContentRef",

-					getFeature().getVersionedIdentifier().toString()),

-				e);

-			//$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryContentReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryContentReferences(

-		IPluginEntry pluginEntry,

-		InstallMonitor monitor)

-		throws CoreException {

-

-		ContentReference[] result = new ContentReference[0];

-

-		try {

-			// return the list of all subdirectories

-			File pluginDir = new File(getPath(pluginEntry));

-			URL pluginURL = pluginDir.toURL();

-			List files = getFiles(pluginDir);

-			result = new ContentReference[files.size()];

-			for (int i = 0; i < result.length; i++) {

-				File currentFile = (File) files.get(i);

-				String relativeString = UpdateManagerUtils.getURLAsString(pluginURL, currentFile.toURL());

-				result[i] = new ContentReference(relativeString, currentFile.toURL());

-			}

-		} catch (IOException e) {

-			throw Utilities.newCoreException(

-				Policy.bind(

-					"FeatureExecutableContentProvider.UnableToRetriveArchiveContentRef")

-					+ pluginEntry.getVersionedIdentifier().toString(),

-				e);

-			//$NON-NLS-1$

-		}

-		

-		//[20866] we did not preserve executable bit

-		validatePermissions(result);

-		

-		return result;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java
deleted file mode 100644
index f0f9656..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.io.File;

-import java.io.InputStream;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.runtime.NullProgressMonitor;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.FeatureModel;

-

-/**

- * FeatureFactory for Executable Features

- */

-public class FeatureExecutableFactory extends BaseFeatureFactory {

-

-	/*

-	 * @see IFeatureFactory#createFeature(URL,ISite,IProgressMonitor)

-	 */

-	public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException {

-

-		TargetFeature feature = null;

-		InputStream featureStream = null;

-		if (monitor == null)

-			monitor = new NullProgressMonitor();

-

-		if (url == null)

-			return createFeature(site);

-

-		// the URL should point to a directory

-		url = validate(url);

-

-		try {

-			IFeatureContentProvider contentProvider = new FeatureExecutableContentProvider(url);

-			// PERF: Do not create FeatureContentConsumer

-			//IFeatureContentConsumer contentConsumer =new FeatureExecutableContentConsumer();

-

-			URL nonResolvedURL = contentProvider.getFeatureManifestReference(null).asURL();

-			URL resolvedURL = URLEncoder.encode(nonResolvedURL);

-			featureStream = UpdateCore.getPlugin().get(resolvedURL).getInputStream();

-

-			feature = (TargetFeature) this.parseFeature(featureStream);

-			monitor.worked(1);

-			feature.setSite(site);

-

-			feature.setFeatureContentProvider(contentProvider);

-			// PERF: FeatureContentConsumer

-			//feature.setContentConsumer(contentConsumer);

-

-			feature.resolve(url, url);

-			feature.markReadOnly();

-		} catch (CoreException e) {

-			throw e;

-		} catch (Exception e) {

-			throw Utilities.newCoreException(Policy.bind("FeatureFactory.CreatingError", url.toExternalForm()), e);

-			//$NON-NLS-1$

-		} finally {

-			try {

-				if (featureStream != null)

-					featureStream.close();

-			} catch (IOException e) {

-			}

-		}

-		return feature;

-	}

-

-	/*

-	 * @see FeatureModelFactory#createFeatureModel()

-	 */

-	public FeatureModel createFeatureModel() {

-		return new TargetFeature();

-	}

-

-	/*

-	 * Creates an empty feature on the site 

-	 */

-	private IFeature createFeature(ISite site) throws CoreException {

-		TargetFeature feature = null;

-

-		IFeatureContentProvider contentProvider = new FeatureExecutableContentProvider(null);

-		IFeatureContentConsumer contentConsumer = new FeatureExecutableContentConsumer();

-		feature = (TargetFeature) createFeatureModel();

-		feature.setSite(site);

-		feature.setFeatureContentProvider(contentProvider);

-		feature.setContentConsumer(contentConsumer);

-

-		// do not mark read only yet...	

-		return feature;

-	}

-

-	/*

-	 * validates a URL as a directory URL

-	 */

-	private URL validate(URL url) throws CoreException {

-

-		if (url == null)

-			throw Utilities.newCoreException(Policy.bind("FeatureExecutableFactory.NullURL"), null);

-		//$NON-NLS-1$

-

-		if (!(url.getFile().endsWith("/") || url.getFile().endsWith(File.separator) || url.getFile().endsWith(Feature.FEATURE_XML))) { //$NON-NLS-1$

-			try {

-				String path = url.getFile() + "/"; //$NON-NLS-1$

-				url = new URL(url.getProtocol(), url.getHost(), url.getPort(), path);

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("FeatureExecutableFactory.CannotCreateURL", url.toExternalForm()), e);

-				//$NON-NLS-1$

-			}

-		}

-		return url;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java
deleted file mode 100644
index bbb4459..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedContentProvider.java
+++ /dev/null
@@ -1,282 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.security.JarVerifier;

-

-/**

- * Content Provider of a Feature Package

- */

-public class FeaturePackagedContentProvider extends FeatureContentProvider {

-

-	private ContentReference localManifest = null;

-	private ContentReference[] localFeatureFiles = new ContentReference[0];

-	private IVerifier jarVerifier = null;

-

-	/*

-	 * filer for file with .jar

-	 */

-	public static final FilenameFilter filter = new FilenameFilter() {

-		public boolean accept(File dir, String name) {

-			return name.endsWith(FeaturePackagedContentProvider.JAR_EXTENSION);

-		}

-	};

-

-	/*

-	 * Constructor 

-	 */

-	public FeaturePackagedContentProvider(URL url) {

-		super(url);

-	}

-

-	/*

-	 * Returns a new verifier for each top-level install

-	 * (if the verifier has a parent, return the verifier

-	 * otherwise reinitialize)

-	 */

-	public IVerifier getVerifier() throws CoreException {

-		if (jarVerifier == null || jarVerifier.getParent() == null) {

-			jarVerifier = new JarVerifier();

-			return jarVerifier;

-		}

-

-		// re-init will be done if the parent changes

-		return jarVerifier;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureManifestReference()

-	 */

-	public ContentReference getFeatureManifestReference(InstallMonitor monitor) throws CoreException {

-

-		// check to see if we already have local copy of the manifest

-		if (localManifest != null)

-			return localManifest;

-		ContentReference[] featureArchiveReference = getFeatureEntryArchiveReferences(monitor);

-		JarContentReference featureJarReference = null;

-		try {

-

-			// force feature archive to local.

-			// This content provider always assumes exactly 1 archive file (index [0])		

-			featureJarReference = (JarContentReference) asLocalReference(featureArchiveReference[0], null);

-			// we need to unpack archive locally for UI browser references to be resolved correctly

-			localFeatureFiles = featureJarReference.unpack(getWorkingDirectory(), null, monitor);

-		} catch (IOException e) {

-			throw errorRetrieving(Feature.FEATURE_XML, featureJarReference, getURL(), e);

-			//$NON-NLS-1$ 

-		}

-

-		// find the manifest in the unpacked feature files

-		for (int i = 0; i < localFeatureFiles.length; i++) {

-			if (localFeatureFiles[i].getIdentifier().equals(Feature.FEATURE_XML)) {

-				localManifest = localFeatureFiles[i];

-				// cache reference to manifest

-				return localManifest;

-			}

-		}

-

-		// the manifest has not been found

-		String[] values = new String[] { Feature.FEATURE_XML, getURL().toExternalForm()};

-		throw Utilities.newCoreException(Policy.bind("FeaturePackagedContentProvider.NoManifestFile", values), new Exception());

-		//$NON-NLS-1$ 

-

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getArchiveReferences()

-	 */

-	public ContentReference[] getArchiveReferences(InstallMonitor monitor) throws CoreException {

-

-		IPluginEntry[] entries = getFeature().getPluginEntries();

-		INonPluginEntry[] nonEntries = getFeature().getNonPluginEntries();

-		List listAllContentRef = new ArrayList();

-		ContentReference[] allContentRef = new ContentReference[0];

-

-		// feature

-		listAllContentRef.addAll(Arrays.asList(getFeatureEntryArchiveReferences(monitor)));

-

-		// plugins

-		for (int i = 0; i < entries.length; i++) {

-			listAllContentRef.addAll(Arrays.asList(getPluginEntryArchiveReferences(entries[i], monitor)));

-		}

-

-		// non plugins

-		for (int i = 0; i < nonEntries.length; i++) {

-			listAllContentRef.addAll(Arrays.asList(getNonPluginEntryArchiveReferences(nonEntries[i], monitor)));

-		}

-

-		// transform List in Array

-		if (listAllContentRef.size() > 0) {

-			allContentRef = new ContentReference[listAllContentRef.size()];

-			listAllContentRef.toArray(allContentRef);

-		}

-

-		return allContentRef;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryArchiveReferences()

-	 */

-	public ContentReference[] getFeatureEntryArchiveReferences(InstallMonitor monitor) throws CoreException {

-

-		//1 jar file <-> 1 feature

-		// we will return the JAR file 

-		ContentReference[] references = new ContentReference[1];

-		ContentReference currentReference = null;

-		String archiveID = null;

-

-		try {

-			archiveID = (getFeature() != null) ? getFeature().getVersionedIdentifier().toString() : "";

-			//$NON-NLS-1$

-			currentReference = new JarContentReference(archiveID, getURL());

-			currentReference = asLocalReference(currentReference, monitor);

-			references[0] = currentReference;

-		} catch (IOException e) {

-			throw errorRetrieving(archiveID, currentReference, getFeature().getURL(), e);

-			//$NON-NLS-1$

-		}

-		return references;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryArchiveReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryArchiveReferences(IPluginEntry pluginEntry, InstallMonitor monitor) throws CoreException {

-

-		// 1 plugin <-> 1 jar

-		// we return the JAR file	

-		ContentReference[] references = new ContentReference[1];

-		String archiveID = getPathID(pluginEntry);

-		ISite site = (getFeature() == null) ? null : getFeature().getSite();

-		ISiteContentProvider siteContentProvider = (site == null) ? null : site.getSiteContentProvider();

-		URL url = (siteContentProvider == null) ? null : siteContentProvider.getArchiveReference(archiveID);

-

-		try {

-			references[0] = asLocalReference(new JarContentReference(archiveID, url), monitor);

-		} catch (IOException e) {

-			throw errorRetrieving(archiveID, references[0], getFeature().getURL(), e);

-			//$NON-NLS-1$

-		}

-		return references;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getNonPluginEntryArchiveReferences(INonPluginEntry)

-	 */

-	public ContentReference[] getNonPluginEntryArchiveReferences(INonPluginEntry nonPluginEntry, InstallMonitor monitor) throws CoreException {

-

-		// archive = feature/<id>_<ver>/<file>

-		String archiveID = Site.DEFAULT_FEATURE_PATH + ((getFeature() != null) ? getFeature().getVersionedIdentifier().toString() : "");

-		//$NON-NLS-1$

-		archiveID += "/" + nonPluginEntry.getIdentifier(); //$NON-NLS-1$

-

-		ContentReference[] references = new ContentReference[1];

-		ContentReference currentReference = null;

-

-		try {

-			ISite site = (getFeature() == null) ? null : getFeature().getSite();

-			ISiteContentProvider siteContentProvider = (site == null) ? null : site.getSiteContentProvider();

-			URL url = (siteContentProvider == null) ? null : siteContentProvider.getArchiveReference(archiveID);

-

-			currentReference = new ContentReference(nonPluginEntry.getIdentifier(), url);

-			currentReference = asLocalReference(currentReference, monitor);

-			references[0] = currentReference;

-

-		} catch (IOException e) {

-			throw errorRetrieving(archiveID, currentReference, getFeature().getURL(), e);

-			//$NON-NLS-1$

-		}

-

-		return references;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryContentReferences()

-	 */

-	public ContentReference[] getFeatureEntryContentReferences(InstallMonitor monitor) throws CoreException {

-

-		return localFeatureFiles; // return cached feature references

-		// Note: assumes this content provider is always called first to

-		//       get the feature manifest. This forces the feature files

-		//       to be unpacked and caches the references

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryContentReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryContentReferences(IPluginEntry pluginEntry, InstallMonitor monitor) throws CoreException {

-

-		ContentReference[] references = getPluginEntryArchiveReferences(pluginEntry, monitor);

-		ContentReference[] pluginReferences = new ContentReference[0];

-

-		try {

-			if (references[0] instanceof JarContentReference) {

-				JarContentReference localRef = (JarContentReference) asLocalReference(references[0], monitor);

-				pluginReferences = localRef.peek(null, monitor);

-			} else {

-				// return the list of all subdirectories

-				List files = getFiles(references[0].asFile());

-				pluginReferences = new ContentReference[files.size()];

-				for (int i = 0; i < pluginReferences.length; i++) {

-					File currentFile = (File) files.get(i);

-					pluginReferences[i] = new ContentReference(null, currentFile.toURL());

-				}

-			};

-

-			//[20866] we did not preserve executable bit

-			validatePermissions(pluginReferences);

-

-		} catch (IOException e) {

-			throw errorRetrieving(pluginEntry.getVersionedIdentifier().toString(), references[0], getFeature().getURL(), e);

-			//$NON-NLS-1$

-		}

-		return pluginReferences;

-	}

-

-	/*

-	 * return all the files under the directory

-	 */

-	private List getFiles(File dir) throws IOException {

-		List result = new ArrayList();

-

-		if (!dir.isDirectory())

-			throw new IOException(Policy.bind("FeaturePackagedContentProvider.InvalidDirectory", dir.getPath())); //$NON-NLS-1$

-

-		File[] files = dir.listFiles();

-		if (files != null) // be careful since it can be null

-			for (int i = 0; i < files.length; ++i) {

-				if (files[i].isDirectory()) {

-					result.addAll(getFiles(files[i]));

-				} else {

-					result.add(files[i]);

-				}

-			}

-		return result;

-	}

-

-	/*

-	 * 

-	 */

-	private CoreException errorRetrieving(String obj, ContentReference archive, URL url, Exception e) {

-

-		String[] values = new String[] { obj };

-

-		return Utilities.newCoreException(Policy.bind("FeaturePackagedContentProvider.ErrorRetrieving", values), e);

-		//$NON-NLS-1$	 	

-

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedFactory.java
deleted file mode 100644
index bbcaea8..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeaturePackagedFactory.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.runtime.NullProgressMonitor;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.URLEntryModel;

-

-/**

- * Factory for Feature Packaged

- */

-public class FeaturePackagedFactory extends BaseFeatureFactory {

-

-	/*

-	 * @see IFeatureFactory#createFeature(URL,ISite,IProgressMonitor)

-	 */

-	public IFeature createFeature(URL url,ISite site, IProgressMonitor monitor) throws CoreException {

-		Feature feature = null;

-		InputStream featureStream = null;

-		if (monitor == null)

-			monitor = new NullProgressMonitor();

-		monitor.beginTask(null,2);

-		monitor.worked(1);

-			

-					

-		try {	

-			IFeatureContentProvider contentProvider = new FeaturePackagedContentProvider(url);	

-			ContentReference manifest = contentProvider.getFeatureManifestReference(null/*IProgressMonitor*/);

-			featureStream = manifest.getInputStream();

-			feature = (Feature)parseFeature(featureStream);

-			monitor.worked(1);

-	

-			// if there is no update URL for the Feature

-			// use the Site URL

-			if (feature.getUpdateSiteEntry()==null){

-				URLEntryModel entryModel = createURLEntryModel();

-				URL siteUrl = site.getURL();

-				if (siteUrl!=null){

-					entryModel.setURLString(siteUrl.toExternalForm());

-					entryModel.resolve(siteUrl,null);

-					feature.setUpdateSiteEntryModel(entryModel);

-				}

-			}	

-			feature.setFeatureContentProvider(contentProvider);

-			feature.setSite(site);						

-			URL baseUrl = null;

-			try {

-				baseUrl = new URL(manifest.asURL(),"."); // make sure we have URL to feature directory //$NON-NLS-1$

-			} catch(MalformedURLException e) {	

-			}

-			feature.resolve(baseUrl, baseUrl);

-			feature.markReadOnly();			

-		}  catch (CoreException e){

-			throw e;

-		} catch (Exception e) { 

-			throw Utilities.newCoreException(Policy.bind("FeatureFactory.CreatingError", url.toExternalForm()), e); //$NON-NLS-1$

-		}finally {

-			try {

-				if (featureStream!=null)	

-					featureStream.close();

-			} catch (IOException e) {

-			}

-		}

-		return feature;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureTypeFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureTypeFactory.java
deleted file mode 100644
index 2b6cdcd..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureTypeFactory.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.util.HashMap;

-import java.util.Map;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.IFeatureFactory;

-import org.eclipse.update.core.Utilities;

-

-/**

- * Manages FeatureFactory extension point

- */

-public final class FeatureTypeFactory {

-

-	private static FeatureTypeFactory inst;

-	private Map factories;

-

-	private static final String SIMPLE_EXTENSION_ID = "featureTypes";

-	//$NON-NLS-1$	

-

-	/*

-	 * hide constructor

-	 */

-	private FeatureTypeFactory() {

-	}

-

-	/*

-	 * Singleton pattern

-	 */

-	public static FeatureTypeFactory getInstance() {

-		if (inst == null)

-			inst = new FeatureTypeFactory();

-		return inst;

-	}

-

-	/*

-	 * return the factory for the associated type

-	 */

-	public IFeatureFactory getFactory(String type) throws CoreException {

-		//

-		Object instance = getFactories().get(type);

-		if (instance == null) {

-			instance = createFactoryFor(type);

-			getFactories().put(type, instance);

-		}

-		return (IFeatureFactory) instance;

-	}

-

-	/*

-	 * creates a factory for the associated type and cache it 

-	 */

-	private IFeatureFactory createFactoryFor(String type) throws CoreException {

-		IFeatureFactory result = null;

-

-		String pluginID =

-			UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-		IPluginRegistry pluginRegistry = Platform.getPluginRegistry();

-		IConfigurationElement[] elements =

-			pluginRegistry.getConfigurationElementsFor(pluginID, SIMPLE_EXTENSION_ID, type);

-

-		if (elements == null || elements.length == 0) {

-			throw Utilities.newCoreException(

-					Policy.bind("FeatureTypeFactory.UnableToFindFeatureFactory", type),

-					null);

-			//$NON-NLS-1$

-		} 

-

-		IConfigurationElement element = elements[0];

-		result = (IFeatureFactory) element.createExecutableExtension("class");

-			//$NON-NLS-1$

-		return result;

-	}

-

-	/*

-	 * 

-	 */

-	private Map getFactories() {

-		if (factories == null)

-			factories = new HashMap();

-		return factories;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FileResponse.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FileResponse.java
deleted file mode 100644
index 8444a68..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FileResponse.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import java.io.InputStream;
-
-//import org.eclipse.update.internal.core.net.http.IContext;
-//import org.eclipse.update.internal.core.net.http.client.IStatusCodes;
-//import org.eclipse.update.internal.core.net.http.client.Response;
-
-/**
- * A File repsonse message
- */
-public class FileResponse extends Response {
-
-	/**
-	 * 
-	 */
-	public FileResponse(InputStream in) {
-		//super(IStatusCodes.HTTP_OK,"", context, in);
-		super(in);
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/HttpResponse.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/HttpResponse.java
deleted file mode 100644
index 2cf917a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/HttpResponse.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.*;
-import java.net.*;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.IProgressMonitor;
-
-public class HttpResponse extends Response {
-	private static final long POLLING_INTERVAL = 200;
-
-	/**
-	 * 
-	 */
-	public HttpResponse(URL url) {
-		//super(IStatusCodes.HTTP_OK,"", context, in);
-		super(url);
-	}
-
-	/**
-	 * A special version of 'getInputStream' that can
-	 * be canceled if connection is HttpURLConnection.
-	 * A monitor thread checks the state of the monitor
-	 * and disconnects the connection if 'isCanceled()'
-	 * is detected.  
-	 * @param monitor the progress monitor
-	 * @return InputStream an opened stream or null if failed.
-	 * @throws IOException if there are problems
-	 * @throws CoreException if no more connection threads are available
-	 */
-
-	public InputStream getInputStream(IProgressMonitor monitor)
-		throws IOException, CoreException {
-		if (in == null && url != null) {
-			connection = url.openConnection();
-			if (monitor != null && connection instanceof HttpURLConnection) {
-				this.in =
-					openStreamWithCancel(
-						(HttpURLConnection) connection,
-						monitor);
-			} else
-				this.in = connection.getInputStream();
-		}
-		return in;
-	}
-
-	private InputStream openStreamWithCancel(
-		HttpURLConnection urlConnection,
-		IProgressMonitor monitor)
-		throws IOException, CoreException {
-		ConnectionThreadManager.StreamRunnable runnable =
-			new ConnectionThreadManager.StreamRunnable(urlConnection);
-		Thread t =
-			UpdateCore.getPlugin().getConnectionManager().createThread(
-				runnable);
-		t.start();
-		InputStream is = null;
-		try {
-			for (;;) {
-				if (monitor.isCanceled()) {
-					runnable.disconnect();
-					break;
-				}
-				if (runnable.getInputStream() != null) {
-					is = runnable.getInputStream();
-					break;
-				}
-				if (runnable.getIOException() != null) {
-					throw runnable.getIOException();
-				}
-				t.join(POLLING_INTERVAL);
-			}
-		} catch (InterruptedException e) {
-		}
-		return is;
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ISiteContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ISiteContentConsumer.java
deleted file mode 100644
index e734360..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ISiteContentConsumer.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
- 
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.update.core.*;
- 
- /**
-  * A site content consumer manages the storage or archives, plugins and
-  * feature inside an <code> ISite</code>
-  */
- 
-public interface ISiteContentConsumer {
-
-	/**
-	 * Stores a content reference into the SiteContentConsumer
-	 * @param ContentReference the content reference to store
-	 * @param IProgressMonitor the progress monitor
-	 * @throws CoreException if an error occurs storing the content reference
-	 * @since 2.0 
-	 */
-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException;
-
-	/**
-	 * opens a Non plugin Entry for storage
-	 * @return the new FeatureContentConsumer for this <code>INonPluginEntry</code>
-	 * @throws CoreException if the opens is done on a FeatureContentConsumer parent other than an IFeature.
-	 * @since 2.0 
-	 */
-	public IContentConsumer open(INonPluginEntry nonPluginEntry) throws CoreException;
-
-	/**
-	 * opens a Non plugin Entry for storage
-	 * @return the new FeatureContentConsumer for this <code>IPluginEntry</code>
-	 * @throws CoreException if the opens is done on a FeatureContentConsumer parent other than an IFeature.
-	 * @since 2.0 
-	 */
-	public IContentConsumer open(IPluginEntry pluginEntry) throws CoreException;
-	
-	/**
-	 * closes the opened SiteContentConsumer
-	 * @throws CoreException
-	 * @since 2.0 
-	 */
-	public IFeatureReference close() throws CoreException ;	
-	
-
-	/**
-	 * aborts the opened SiteContentConsumer
-	 * @throws CoreException
-	 * @since 2.0 
-	 */
-	public void abort() throws CoreException;		
-	
-}
-
-
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IStatusCodes.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IStatusCodes.java
deleted file mode 100644
index 6582d7b..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IStatusCodes.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-/**
- * HTTP status codes.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under 
- * development and expected to change significantly before reaching stability. 
- * It is being made available at this early stage to solicit feedback from pioneering 
- * adopters on the understanding that any code that uses this API will almost 
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-public interface IStatusCodes {
-	public static final int HTTP_CONTINUE = 100;
-	public static final int HTTP_SWITCHING_PROTOCOLS = 101;
-	public static final int HTTP_OK = 200;
-	public static final int HTTP_CREATED = 201;
-	public static final int HTTP_ACCEPTED = 202;
-	public static final int HTTP_NON_AUTHORITATIVE_INFORMATION = 203;
-	public static final int HTTP_NO_CONTENT = 204;
-	public static final int HTTP_RESET_CONTENT = 205;
-	public static final int HTTP_PARTIAL_CONTENT = 206;
-	public static final int HTTP_MULTIPLE_CHOICES = 300;
-	public static final int HTTP_MOVED_PERMANENTLY = 301;
-	public static final int HTTP_MOVED_TEMPORARILY = 302;
-	public static final int HTTP_SEE_OTHER = 303;
-	public static final int HTTP_NOT_MODIFIED = 304;
-	public static final int HTTP_USE_PROXY = 305;
-	public static final int HTTP_TEMPORARY_REDIRECT = 307;
-	public static final int HTTP_BAD_REQUEST = 400;
-	public static final int HTTP_UNAUTHORIZED = 401;
-	public static final int HTTP_PAYMENT_REQUIRED = 402;
-	public static final int HTTP_FORBIDDEN = 403;
-	public static final int HTTP_NOT_FOUND = 404;
-	public static final int HTTP_METHOD_NOT_ALLOWED = 405;
-	public static final int HTTP_NOT_ACCEPTABLE = 406;
-	public static final int HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
-	public static final int HTTP_REQUEST_TIMEOUT = 408;
-	public static final int HTTP_CONFLICT = 409;
-	public static final int HTTP_GONE = 410;
-	public static final int HTTP_LENGTH_REQUIRED = 411;
-	public static final int HTTP_PRECONDITION_FAILED = 412;
-	public static final int HTTP_REQUEST_TOO_LONG = 413;
-	public static final int HTTP_REQUEST_URI_TOO_LONG = 414;
-	public static final int HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
-	public static final int HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
-	public static final int HTTP_EXPECTATION_FAILED = 417;
-	public static final int HTTP_INTERNAL_SERVER_ERROR = 500;
-	public static final int HTTP_NOT_IMPLEMENTED = 501;
-	public static final int HTTP_BAD_GATEWAY = 502;
-	public static final int HTTP_SERVICE_UNAVAILABLE = 503;
-	public static final int HTTP_GATEWAY_TIMEOUT = 504;
-	public static final int HTTP_HTTP_VERSION_NOT_SUPPORTED = 505;
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IWritable.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IWritable.java
deleted file mode 100644
index 8f8901e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/IWritable.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-import java.io.PrintWriter;

-

-/**

- * Called when we want the model to persist as XML

- */

-

-public interface IWritable {

-	

-	public static final int INDENT = 3;

-

-	void write(int indent, PrintWriter w);

-

-

-}

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallConfiguration.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallConfiguration.java
deleted file mode 100644
index b760d1d..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallConfiguration.java
+++ /dev/null
@@ -1,811 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.core.runtime.*;

-import org.eclipse.core.runtime.model.PluginDescriptorModel;

-import org.eclipse.core.runtime.model.PluginFragmentModel;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.SiteModel;

-import org.eclipse.update.internal.model.*;

-

-/**

- * Manages ConfiguredSites

- *

- */

-

-public class InstallConfiguration extends InstallConfigurationModel implements IInstallConfiguration, IWritable {

-

-	private ListenersList listeners = new ListenersList();

-

-	/*

-	 * default constructor.

-	 */

-	public InstallConfiguration() {

-	}

-

-	/*

-	 * copy constructor

-	 */

-	public InstallConfiguration(IInstallConfiguration config, URL newLocation, String label) throws MalformedURLException {

-		setLocationURLString(newLocation.toExternalForm());

-		setLabel(label);

-

-		// do not copy list of listeners nor activities

-		// make a copy of the siteConfiguration object

-		if (config != null) {

-			IConfiguredSite[] csites = config.getConfiguredSites();

-			if (csites != null) {

-				for (int i = 0; i < csites.length; i++) {

-					ConfiguredSite configSite = new ConfiguredSite(csites[i]);

-					addConfigurationSiteModel(configSite);

-				}

-			}

-		}

-

-		// set dummy date and timeline as caller can call set date if the

-		// date on the URL string has to be the same

-		Date now = new Date();

-		setCreationDate(now);

-		setTimeline(now.getTime());

-		setCurrent(false);

-		resolve(newLocation, null);

-		// no need to parse file, all data are initialized

-		initialized = true;

-	}

-

-	/*

-	 * Returns the list of configured sites or an empty array

-	 */

-	public IConfiguredSite[] getConfiguredSites() {

-		ConfiguredSiteModel[] result = getConfigurationSitesModel();

-		if (result.length == 0)

-			return new IConfiguredSite[0];

-		else

-			return (IConfiguredSite[]) result;

-	}

-

-	/*

-	 * Returns the default site policy

-	 */

-	private int getDefaultPolicy() {

-		return IPlatformConfiguration.ISitePolicy.USER_EXCLUDE;

-	}

-

-	/**

-	 * Creates a Configuration Site and a new Site

-	 * The policy is from <code> org.eclipse.core.boot.IPlatformConfiguration</code>

-	 */

-	public IConfiguredSite createConfiguredSite(File file) throws CoreException {

-

-		ISite site = InternalSiteManager.createSite(file);

-

-		//create a config site around the site

-		// even if the site == null

-		BaseSiteLocalFactory factory = new BaseSiteLocalFactory();

-		ConfiguredSite configSite = (ConfiguredSite) factory.createConfigurationSiteModel((SiteModel) site, getDefaultPolicy());

-

-		if (site != null && configSite.verifyUpdatableStatus().isOK()) {

-			configSite.setPlatformURLString(site.getURL().toExternalForm());

-

-			// obtain the list of plugins

-			IPlatformConfiguration runtimeConfiguration = BootLoader.getCurrentPlatformConfiguration();

-			ConfigurationPolicy configurationPolicy = (ConfigurationPolicy) configSite.getConfigurationPolicy();

-			String[] pluginPath = new String[0];

-			if (configurationPolicy.getPolicy() == IPlatformConfiguration.ISitePolicy.USER_INCLUDE)

-				pluginPath = configurationPolicy.getPluginPath(site, null);

-

-			// create new Site in configuration

-			IPlatformConfiguration.ISitePolicy sitePolicy = runtimeConfiguration.createSitePolicy(configurationPolicy.getPolicy(), pluginPath);

-

-			// change runtime

-			IPlatformConfiguration.ISiteEntry siteEntry = runtimeConfiguration.createSiteEntry(site.getURL(), sitePolicy);

-			runtimeConfiguration.configureSite(siteEntry);

-

-			// if the privatre marker doesn't already exist create it

-			configSite.createPrivateSiteMarker();

-		}

-

-		return configSite;

-	}

-

-	/**

-	 * Creates a Configuration Site and a new Site as a private link site

-	 * The policy is from <code> org.eclipse.core.boot.IPlatformConfiguration</code>

-	 */

-	public IConfiguredSite createLinkedConfiguredSite(File file) throws CoreException {

-

-		ISite site = InternalSiteManager.createSite(file);

-

-		//create a config site around the site

-		// even if the site == null

-		BaseSiteLocalFactory factory = new BaseSiteLocalFactory();

-		ConfiguredSite configSite = (ConfiguredSite) factory.createConfigurationSiteModel((SiteModel) site, getDefaultPolicy());

-

-		if (!configSite.isExtensionSite()) {

-			String msg = Policy.bind("InstallConfiguration.NotAnExtensionSite");

-			throw Utilities.newCoreException(msg, null);

-		}

-

-		if (configSite.isNativelyLinked()) {

-			throw Utilities.newCoreException("InstallConfiguration.AlreadyNativelyLinked", null);

-		}

-

-		if (site != null) {

-			configSite.setPlatformURLString(site.getURL().toExternalForm());

-

-			// obtain the list of plugins

-			IPlatformConfiguration runtimeConfiguration = BootLoader.getCurrentPlatformConfiguration();

-			ConfigurationPolicy configurationPolicy = (ConfigurationPolicy) configSite.getConfigurationPolicy();

-			String[] pluginPath = new String[0];

-			if (configurationPolicy.getPolicy() == IPlatformConfiguration.ISitePolicy.USER_INCLUDE)

-				pluginPath = configurationPolicy.getPluginPath(site, null);

-

-			// create new Site in configuration

-			IPlatformConfiguration.ISitePolicy sitePolicy = runtimeConfiguration.createSitePolicy(configurationPolicy.getPolicy(), pluginPath);

-

-			// change runtime

-			IPlatformConfiguration.ISiteEntry siteEntry = runtimeConfiguration.createSiteEntry(site.getURL(), sitePolicy);

-			runtimeConfiguration.configureSite(siteEntry);

-

-		}

-

-		// configure all features as enable

-		configure(configSite);

-

-		return configSite;

-	}

-

-	/*

-	 *Configure all features as Enable Check we only enable highest version

-	 */

-	private void configure(ConfiguredSite linkedSite) throws CoreException {

-		ISite site = linkedSite.getSite();

-		ISiteFeatureReference[] newFeaturesRef = site.getFeatureReferences();

-

-		for (int i = 0; i < newFeaturesRef.length; i++) {

-			// TRACE

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {

-				String reconciliationType = "enable (optimistic)";

-				UpdateCore.debug("New Linked Site:New Feature: " + newFeaturesRef[i].getURL() + " as " + reconciliationType);

-			}

-			ConfigurationPolicy policy = linkedSite.getConfigurationPolicy();

-			policy.configure(newFeaturesRef[i], true, false);

-		}

-		SiteReconciler.checkConfiguredFeatures(linkedSite);

-	}

-

-	/*

-	 *

-	 */

-	public void addConfiguredSite(IConfiguredSite site) {

-		if (!isCurrent() && isReadOnly())

-			return;

-

-		ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_SITE_INSTALL);

-		activity.setLabel(site.getSite().getURL().toExternalForm());

-		activity.setDate(new Date());

-		ConfiguredSiteModel configSiteModel = (ConfiguredSiteModel) site;

-		addConfigurationSiteModel(configSiteModel);

-		configSiteModel.setInstallConfigurationModel(this);

-

-		// notify listeners

-		Object[] configurationListeners = listeners.getListeners();

-		for (int i = 0; i < configurationListeners.length; i++) {

-			IInstallConfigurationChangedListener listener = ((IInstallConfigurationChangedListener) configurationListeners[i]);

-			listener.installSiteAdded(site);

-		}

-

-		// everything done ok

-		activity.setStatus(IActivity.STATUS_OK);

-		this.addActivity(activity);

-	}

-

-	/**

-	 * Method addActivity.

-	 * @param activity

-	 */

-	public void addActivity(IActivity activity) {

-		addActivityModel((ConfigurationActivityModel)activity);

-	}

-

-	/*

-	 *

-	 */

-	public void removeConfiguredSite(IConfiguredSite site) {

-		if (!isCurrent() && isReadOnly())

-			return;

-

-		if (removeConfigurationSiteModel((ConfiguredSiteModel) site)) {

-			// notify listeners

-			Object[] configurationListeners = listeners.getListeners();

-			for (int i = 0; i < configurationListeners.length; i++) {

-				IInstallConfigurationChangedListener listener = ((IInstallConfigurationChangedListener) configurationListeners[i]);

-				listener.installSiteRemoved(site);

-			}

-

-			// remove marker and directory if we just created it

-			((ConfiguredSite)site).removePrivateSiteMarker();

-

-			//activity

-			ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_SITE_REMOVE);

-			activity.setLabel(site.getSite().getURL().toExternalForm());

-			activity.setDate(new Date());

-			activity.setStatus(IActivity.STATUS_OK);

-			this.addActivity(activity);

-		}

-	}

-

-	/*

-	 * @see IInstallConfiguration#addInstallConfigurationChangedListener(IInstallConfigurationChangedListener)

-	 */

-	public void addInstallConfigurationChangedListener(IInstallConfigurationChangedListener listener) {

-		synchronized (listeners) {

-			listeners.add(listener);

-		}

-	}

-

-	/*

-	 * @see IInstallConfiguration#removeInstallConfigurationChangedListener(IInstallConfigurationChangedListener)

-	 */

-	public void removeInstallConfigurationChangedListener(IInstallConfigurationChangedListener listener) {

-		synchronized (listeners) {

-			listeners.remove(listener);

-		}

-	}

-

-	/*

-	 * write the Configuration.xml file

-	 */

-	private void export(File exportFile) throws CoreException {

-		try {

-			UpdateManagerUtils.Writer writer = UpdateManagerUtils.getWriter(exportFile, "UTF-8"); //$NON-NLS-1$

-			writer.write(this);

-		} catch (FileNotFoundException e) {

-			throw Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToSaveConfiguration", exportFile.getAbsolutePath()), e);

-			//$NON-NLS-1$

-		} catch (UnsupportedEncodingException e) {

-			throw Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToEncodeConfiguration", exportFile.getAbsolutePath()), e);

-			//$NON-NLS-1$

-		}

-	}

-

-	/*

-	 * Deletes the configuration from its URL/location

-	 */

-	public void remove() {

-		// save the configuration

-		if ("file".equalsIgnoreCase(getURL().getProtocol())) { //$NON-NLS-1$

-			// the location points to a file

-			File file = new File(getURL().getFile());

-			UpdateManagerUtils.removeFromFileSystem(file);

-		}

-	}

-

-	/*

-	 * Saves the configuration into its URL/location

-	 * and changes the platform configuration.

-	 * The runtime site entries from platform.cfg are updated as required

-	 * (cannot recreate these because must preserve other runtime state) [18520]

-	 */

-	public void save(boolean isTransient) throws CoreException {

-

-		// save the configuration.xml file

-		saveConfigurationFile(isTransient);

-

-		// Write info  into platform for the next runtime

-		IPlatformConfiguration runtimeConfiguration = BootLoader.getCurrentPlatformConfiguration();

-		ConfiguredSiteModel[] configurationSites = getConfigurationSitesModel();

-

-		// clean configured Entries from platform runtime

-		IPlatformConfiguration.IFeatureEntry[] configuredFeatureEntries = runtimeConfiguration.getConfiguredFeatureEntries();

-		for (int i = 0; i < configuredFeatureEntries.length; i++) {

-			runtimeConfiguration.unconfigureFeatureEntry(configuredFeatureEntries[i]);

-		}

-

-		// [19958] remember sites currently configured by runtime (use

-		// temp configuration object rather than a straight list to ensure

-		// correct lookup)

-		IPlatformConfiguration tempConfig = null;

-		try {

-			tempConfig = BootLoader.getPlatformConfiguration(null);

-			IPlatformConfiguration.ISiteEntry[] tmpSites = runtimeConfiguration.getConfiguredSites();

-			for (int i = 0; i < tmpSites.length; i++) {

-				tempConfig.configureSite(tmpSites[i]);

-			}

-		} catch (IOException e) {

-			// assume no currently configured sites

-		}

-

-		//check sites

-		checkSites(configurationSites, runtimeConfiguration);

-

-		// Write the plugin path, primary feature and platform

-		// into platform.cfg

-		for (int i = 0; i < configurationSites.length; i++) {

-			ConfiguredSite cSite = ((ConfiguredSite) configurationSites[i]);

-			ConfigurationPolicy configurationPolicy = cSite.getConfigurationPolicy();

-

-			savePluginPath(cSite, runtimeConfiguration, tempConfig);

-

-			// IF primary feature URL or platform feature URL that we need to pass to runtime config

-			// is part of platform:base:, write it as platform:base: URL

-			IFeatureReference[] configuredFeaturesRef = configurationPolicy.getConfiguredFeatures();

-			for (int j = 0; j < configuredFeaturesRef.length; j++) {

-				IFeature feature = null;

-				try {

-					feature = configuredFeaturesRef[j].getFeature(null);

-				} catch (CoreException e) {

-					UpdateCore.warn(null, e);

-				}

-				saveFeatureEntry(cSite, feature, runtimeConfiguration);

-			}

-		}

-

-		// [19958] remove any extra site entries from runtime configuration

-		// (site entries that no longer exist in this configuration)

-		if (tempConfig != null) {

-			IPlatformConfiguration.ISiteEntry[] tmpSites = tempConfig.getConfiguredSites();

-			for (int i = 0; i < tmpSites.length; i++) {

-				runtimeConfiguration.unconfigureSite(tmpSites[i]);

-			}

-		}

-

-		try {

-			runtimeConfiguration.save();

-		} catch (IOException e) {

-			CoreException exc = Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToSavePlatformConfiguration", runtimeConfiguration.getConfigurationLocation().toExternalForm()), e);

-			//$NON-NLS-1$

-			UpdateCore.warn("",exc);

-		}

-

-	}

-

-	/*

-	 * Write the plugin path for each site

-	 * Do not check if the site already existed before [16696].

-	 * Reuse any runtime site objects in platform.cfg (to preserve state) [18520].

-	 */

-	private void savePluginPath(ConfiguredSite cSite, IPlatformConfiguration runtimeConfiguration, IPlatformConfiguration tempConfig) // [19958]

-	throws CoreException {

-

-		ConfigurationPolicy configurationPolicy = cSite.getConfigurationPolicy();

-

-		// create a ISitePolicy (policy, pluginPath)

-		// for the site

-		String[] pluginPath = configurationPolicy.getPluginPath(cSite.getSite(), cSite.getPreviousPluginPath());

-		IPlatformConfiguration.ISitePolicy sitePolicy = runtimeConfiguration.createSitePolicy(configurationPolicy.getPolicy(), pluginPath);

-

-		// get the URL of the site that matches the one platform.cfg gave us

-		URL urlToCheck = null;

-		try {

-			urlToCheck = new URL(cSite.getPlatformURLString());

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToCreateURL", cSite.getPlatformURLString()), e);

-			//$NON-NLS-1$

-		} catch (ClassCastException e) {

-			throw Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToCast"), e);

-			//$NON-NLS-1$

-		}

-

-		// update runtime configuration [18520]

-		// Note: we must not blindly replace the site entries because they

-		//       contain additional runtime state that needs to be preserved.

-		IPlatformConfiguration.ISiteEntry siteEntry = runtimeConfiguration.findConfiguredSite(urlToCheck);

-		if (siteEntry == null)

-			siteEntry = runtimeConfiguration.createSiteEntry(urlToCheck, sitePolicy);

-		else {

-			siteEntry.setSitePolicy(sitePolicy);

-			if (tempConfig != null) // [19958] remove reused entries from list

-				tempConfig.unconfigureSite(siteEntry);

-		}

-		runtimeConfiguration.configureSite(siteEntry, true /*replace if exists*/

-		);

-	}

-

-	/*

-	 * Save the Feature entry

-	 * The feature can be a primary feature and/or a platform feature

-	 */

-	private void saveFeatureEntry(ConfiguredSite cSite, IFeature feature, IPlatformConfiguration runtimeConfiguration) throws CoreException {

-		if (feature == null)

-			return;

-

-		// get the URL of the plugin that corresponds to the feature (pluginid = featureid)

-		String id = feature.getVersionedIdentifier().getIdentifier();

-		IPluginEntry[] entries = feature.getPluginEntries();

-		URL url = null;

-		IPluginEntry featurePlugin = null;

-		for (int k = 0; k < entries.length; k++) {

-			if (id.equalsIgnoreCase(entries[k].getVersionedIdentifier().getIdentifier())) {

-				url = getRuntimeConfigurationURL(entries[k], cSite);

-				featurePlugin = entries[k];

-			}

-		}

-		String pluginVersion = null;

-		if (featurePlugin != null)

-			pluginVersion = featurePlugin.getVersionedIdentifier().getVersion().toString();

-

-		// write the primary features

-		if (feature.isPrimary()) {

-			// get any fragments for the feature plugin

-			ArrayList list = new ArrayList();

-			if (url != null)

-				list.add(url);

-			if (featurePlugin != null) {

-				URL[] fragments = getRuntimeFragmentURLs(featurePlugin);

-				list.addAll(Arrays.asList(fragments));

-			}

-			URL[] roots = (URL[]) list.toArray(new URL[0]);

-			String pluginIdentifier = feature.getPrimaryPluginID();

-

-			// save information in runtime platform state

-			String version = feature.getVersionedIdentifier().getVersion().toString();

-			String application = feature.getApplication();

-			IPlatformConfiguration.IFeatureEntry featureEntry = runtimeConfiguration.createFeatureEntry(id, version, pluginIdentifier, pluginVersion, true, application, roots);

-			runtimeConfiguration.configureFeatureEntry(featureEntry);

-		} else {

-			// write non-primary feature entries

-			String version = feature.getVersionedIdentifier().getVersion().toString();

-			String pluginIdentifier = feature.getPrimaryPluginID();

-			IPlatformConfiguration.IFeatureEntry featureEntry = runtimeConfiguration.createFeatureEntry(id, version, pluginIdentifier, pluginVersion, false, null, null);

-			runtimeConfiguration.configureFeatureEntry(featureEntry);

-		}

-

-		// write the platform features (features that contain special platform plugins)

-		IPluginEntry[] platformPlugins = getPlatformPlugins(feature, runtimeConfiguration);

-		for (int k = 0; k < platformPlugins.length; k++) {

-			id = platformPlugins[k].getVersionedIdentifier().getIdentifier();

-			url = getRuntimeConfigurationURL(platformPlugins[k], cSite);

-			if (url != null) {

-				runtimeConfiguration.setBootstrapPluginLocation(id, url);

-			}

-		}

-	}

-

-	/*

-	 * Log if we are about to create a site that didn't exist before

-	 * in platform.cfg [16696].

-	 */

-	private void checkSites(ConfiguredSiteModel[] configurationSites, IPlatformConfiguration runtimeConfiguration) throws CoreException {

-

-		// check all the sites we are about to write already existed

-		// they should have existed either because they were created by

-		// updateManager or because we read them from platform.cfg

-		for (int i = 0; i < configurationSites.length; i++) {

-			// get the URL of the site that matches the one platform.cfg gave us

-			URL urlToCheck = null;

-			try {

-				urlToCheck = new URL(configurationSites[i].getPlatformURLString());

-			} catch (MalformedURLException e) {

-				UpdateCore.warn(Policy.bind("InstallConfiguration.UnableToCreateURL", configurationSites[i].getPlatformURLString()), e);

-				//$NON-NLS-1$

-			} catch (ClassCastException e) {

-				UpdateCore.warn(Policy.bind("InstallConfiguration.UnableToCast"), e);

-				//$NON-NLS-1$

-			}

-

-			// if the URL doesn't exits log it

-			IPlatformConfiguration.ISiteEntry siteEntry = runtimeConfiguration.findConfiguredSite(urlToCheck);

-			if (siteEntry == null) {

-				UpdateCore.warn(Policy.bind("Unable to find site {0} in platform configuration {1}.", urlToCheck.toExternalForm(), runtimeConfiguration.getConfigurationLocation().toExternalForm()));

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/*

-	 *

-	 */

-	public void saveConfigurationFile(boolean isTransient) throws CoreException {

-		// save the configuration

-		if ("file".equalsIgnoreCase(getURL().getProtocol())) { //$NON-NLS-1$

-			// the location points to a file

-			File file = new File(getURL().getFile());

-			if (!file.exists()) {

-				//log + 24642 [works for all activities]

-				UpdateCore.log(this);

-			}

-			if (isTransient)

-				file.deleteOnExit();

-			export(file);

-		}

-	}

-

-	/*

-	 * @see IWritable#write(int, PrintWriter)

-	 */

-	public void write(int indent, PrintWriter w) {

-		String gap = ""; //$NON-NLS-1$

-		for (int i = 0; i < indent; i++)

-			gap += " "; //$NON-NLS-1$

-		String increment = ""; //$NON-NLS-1$

-		for (int i = 0; i < IWritable.INDENT; i++)

-			increment += " "; //$NON-NLS-1$

-

-		//CONFIGURATION

-		w.print(gap + "<" + InstallConfigurationParser.CONFIGURATION + " ");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		long time = (getCreationDate() != null) ? getCreationDate().getTime() : 0L;

-		w.print("date=\"" + time + "\" "); //$NON-NLS-1$ //$NON-NLS-2$

-		w.print("timeline=\"" + getTimeline() + "\" "); //$NON-NLS-1$ //$NON-NLS-2$

-		w.println(">"); //$NON-NLS-1$

-

-		// site configurations

-		if (getConfigurationSitesModel() != null) {

-			ConfiguredSiteModel[] sites = getConfigurationSitesModel();

-			for (int i = 0; i < sites.length; i++) {

-				ConfiguredSite element = (ConfiguredSite) sites[i];

-				((IWritable) element).write(indent + IWritable.INDENT, w);

-			}

-		}

-

-		// activities

-		if (getActivityModel() != null) {

-			ConfigurationActivityModel[] activities = getActivityModel();

-			for (int i = 0; i < activities.length; i++) {

-				ConfigurationActivity element = (ConfigurationActivity) activities[i];

-				((IWritable) element).write(indent + IWritable.INDENT, w);

-			}

-		}

-

-		// end

-		w.println(gap + "</" + InstallConfigurationParser.CONFIGURATION + ">");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		w.println(""); //$NON-NLS-1$

-	}

-

-	/*

-	 * reverts this configuration to the match the new one

-	 *

-	 * Compare the oldSites with the currentOne. the old state is the state we want to revert to.

-	 *

-	 * If a site was in old state, but not in the currentOne, keep it in the hash.

-	 * If a site is in the currentOne but was not in the old state, unconfigure all features and add it in the hash

-	 * If a site was in baoth state, calculate the 'delta' and re-set it in the hash map

-	 *

-	 * At the end, set the configured site from the new sites hash map

-	 *

-	 */

-	public void revertTo(IInstallConfiguration configuration, IProgressMonitor monitor, IProblemHandler handler) throws CoreException, InterruptedException {

-

-		IConfiguredSite[] oldConfigSites = configuration.getConfiguredSites();

-		IConfiguredSite[] nowConfigSites = this.getConfiguredSites();

-

-		// create a hashtable of the *old* and *new* sites

-		Map oldSitesMap = new Hashtable(0);

-		Map newSitesMap = new Hashtable(0);

-		for (int i = 0; i < oldConfigSites.length; i++) {

-			IConfiguredSite element = oldConfigSites[i];

-			oldSitesMap.put(element.getSite().getURL().toExternalForm(), element);

-			newSitesMap.put(element.getSite().getURL().toExternalForm(), element);

-		}

-		// create list of all the sites that map the *old* sites

-		// we want the intersection between the old sites and the current sites

-		if (nowConfigSites != null) {

-			String key = null;

-

-			for (int i = 0; i < nowConfigSites.length; i++) {

-				key = nowConfigSites[i].getSite().getURL().toExternalForm();

-				IConfiguredSite oldSite = (IConfiguredSite) oldSitesMap.get(key);

-				if (oldSite != null) {

-					// the Site existed before, calculate the delta between its current state and the

-					// state we are reverting to and put it back into the map

-					 ((ConfiguredSite) nowConfigSites[i]).revertTo(oldSite, monitor, handler);

-				} else {

-					// the site didn't exist in the InstallConfiguration we are reverting to

-					// unconfigure everything from this site so it is still present

-					ISiteFeatureReference[] featuresToUnconfigure = nowConfigSites[i].getSite().getFeatureReferences();

-					for (int j = 0; j < featuresToUnconfigure.length; j++) {

-						IFeature featureToUnconfigure = null;

-						try {

-							featureToUnconfigure = featuresToUnconfigure[j].getFeature(null);

-						} catch (CoreException e) {

-							UpdateCore.warn(null, e);

-						}

-						if (featureToUnconfigure != null)

-							nowConfigSites[i].unconfigure(featureToUnconfigure);

-					}

-				}

-				newSitesMap.put(key,nowConfigSites[i]);

-			}

-

-			// the new configuration has the exact same sites as the old configuration

-			// the old configuration in the Map are either as-is because they don't exist

-			// in the current one, or they are the delta from the current one to the old one

-			Collection sites = newSitesMap.values();

-			if (sites != null && !sites.isEmpty()) {

-				ConfiguredSiteModel[] sitesModel = new ConfiguredSiteModel[sites.size()];

-				sites.toArray(sitesModel);

-				setConfigurationSiteModel(sitesModel);

-			}

-		}

-	}

-

-	/*

-	 * @see IInstallConfiguration#getActivities()

-	 */

-	public IActivity[] getActivities() {

-		if (getActivityModel().length == 0)

-			return new IActivity[0];

-		return (IActivity[]) getActivityModel();

-	}

-

-	/*

-	 * returns the list of platform plugins of the feature or an empty list

-	 * if the feature doesn't contain any platform plugins

-	 */

-	private IPluginEntry[] getPlatformPlugins(IFeature feature, IPlatformConfiguration runtimeConfiguration) {

-		Map featurePlatformPlugins = new HashMap();

-		String[] platformPluginID = runtimeConfiguration.getBootstrapPluginIdentifiers();

-		IPluginEntry[] featurePlugins = feature.getPluginEntries();

-

-		for (int i = 0; i < platformPluginID.length; i++) {

-			String featurePluginId = null;

-			for (int j = 0; j < featurePlugins.length; j++) {

-				featurePluginId = featurePlugins[j].getVersionedIdentifier().getIdentifier();

-				if (platformPluginID[i].equals(featurePluginId)) {

-					featurePlatformPlugins.put(platformPluginID[i], featurePlugins[j]);

-				}

-			}

-		}

-

-		Collection values = featurePlatformPlugins.values();

-		if (values == null || values.size() == 0)

-			return new IPluginEntry[0];

-

-		IPluginEntry[] result = new IPluginEntry[values.size()];

-		Iterator iter = values.iterator();

-		int index = 0;

-		while (iter.hasNext()) {

-			result[index] = ((IPluginEntry) iter.next());

-			index++;

-		}

-		return result;

-	}

-

-	/*

-	 * returns the URL of the pluginEntry on the site

-	 * Transform the URL to use platform: protocol if needed

-	 * return null if the URL to write is not valid

-	 */

-	private URL getRuntimeConfigurationURL(IPluginEntry entry, ConfiguredSite cSite) throws CoreException {

-

-		String rootString = cSite.getPlatformURLString();

-		String pluginPathID = getPathID(entry);

-		try {

-			ISiteContentProvider siteContentProvider = cSite.getSite().getSiteContentProvider();

-			URL pluginEntryfullURL = siteContentProvider.getArchiveReference(pluginPathID);

-

-			//

-			if (!rootString.startsWith("platform")) {

-				// DEBUG:

-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-					UpdateCore.debug("getRuntimeConfiguration Plugin Entry Full URL:" + pluginEntryfullURL + " Platform String:" + rootString + " [NON PLATFORM URL].");

-				return pluginEntryfullURL;

-			}

-

-			//URL pluginEntryRootURL = Platform.resolve(new URL(rootString));

-			// Do not resolve [16507], just use platform:base/ as a root

-			// rootString = platform:base

-			// pluginRoot = /home/a

-			// pluginFull = /home/a/c/boot.jar

-			// relative = platform:/base/c/boot.jar

-			URL pluginEntryRootURL = cSite.getSite().getURL();

-			String relativeString = UpdateManagerUtils.getURLAsString(pluginEntryRootURL, pluginEntryfullURL);

-			URL result = new URL(new URL(rootString), relativeString);

-

-			// DEBUG:

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)

-				UpdateCore.debug("getRuntimeConfiguration plugin Entry Full URL:" + pluginEntryfullURL + " Platform String:" + rootString + " Site URL:" + pluginEntryRootURL + " Relative:" + relativeString);

-

-			// verify we are about to write a valid file URL

-			// check with fullURL as it is not resolved to platform:base/

-			if (pluginEntryfullURL != null) {

-				if ("file".equals(pluginEntryfullURL.getProtocol())) {

-					String fileString = pluginEntryfullURL.getFile();

-					if (!new File(fileString).exists()) {

-						UpdateCore.warn("The URL:" + result + " doesn't point to a valid platform plugin.The URL will not be written in the platform configuration", new Exception());

-						return null;

-					}

-				}

-			}

-

-			return result;

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("InstallConfiguration.UnableToCreateURL", rootString), e);

-			//$NON-NLS-1$

-		}

-	}

-

-	/*

-	 * Return URLs for any fragments that are associated with the specified plugin entry

-	 */

-	private URL[] getRuntimeFragmentURLs(IPluginEntry entry) throws CoreException {

-

-		// get the identifier associated with the entry

-		VersionedIdentifier vid = entry.getVersionedIdentifier();

-

-		// get the plugin descriptor from the registry

-		IPluginRegistry reg = Platform.getPluginRegistry();

-		IPluginDescriptor desc = reg.getPluginDescriptor(vid.getIdentifier());

-		ArrayList list = new ArrayList();

-		if (desc != null) {

-			try {

-				// get all of the fragments

-				PluginDescriptorModel descModel = (PluginDescriptorModel) desc;

-				PluginFragmentModel[] frags = descModel.getFragments();

-

-				for (int i = 0; frags != null && i < frags.length; i++) {

-					String location = frags[i].getLocation();

-					try {

-						URL locationURL = new URL(location);

-						locationURL = Platform.resolve(locationURL);

-						list.add(asInstallRelativeURL(locationURL));

-					} catch (IOException e) {

-						// skip bad fragments

-					}

-				}

-

-			} catch (ClassCastException e) {

-				// cannot determine fragments

-			}

-		}

-		return (URL[]) list.toArray(new URL[0]);

-	}

-

-	/**

-	 * Returns the path identifier for a plugin entry.

-	 * <code>plugins/&lt;pluginId>_&lt;pluginVersion>.jar</code>

-	 * @return the path identifier

-	 */

-	private String getPathID(IPluginEntry entry) {

-		return Site.DEFAULT_PLUGIN_PATH + entry.getVersionedIdentifier().toString() + FeatureContentProvider.JAR_EXTENSION;

-	}

-

-	/**

-	 * Try to recast URL as platform:/base/

-	 */

-	private URL asInstallRelativeURL(URL url) {

-		// get location of install

-		URL install = BootLoader.getInstallURL();

-

-		// try to determine if supplied URL can be recast as install-relative

-		if (install.getProtocol().equals(url.getProtocol())) {

-			if (install.getProtocol().equals("file")) {

-				String installS = new File(install.getFile()).getAbsolutePath().replace(File.separatorChar, '/');

-				if (!installS.endsWith("/"))

-					installS += "/";

-				String urlS = new File(url.getFile()).getAbsolutePath().replace(File.separatorChar, '/');

-				if (!urlS.endsWith("/"))

-					urlS += "/";

-				int ix = installS.lastIndexOf("/");

-				if (ix != -1) {

-					installS = installS.substring(0, ix + 1);

-					if (urlS.startsWith(installS)) {

-						try {

-							return new URL("platform:/base/" + urlS.substring(installS.length()));

-						} catch (MalformedURLException e) {

-						}

-					}

-				}

-			}

-		}

-		return url;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallHandlerProxy.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallHandlerProxy.java
deleted file mode 100644
index f126eec..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InstallHandlerProxy.java
+++ /dev/null
@@ -1,526 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.InputStream;
-import java.net.URL;
-import java.net.URLClassLoader;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IPluginRegistry;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.update.core.ContentReference;
-import org.eclipse.update.core.IFeature;
-import org.eclipse.update.core.IFeatureContentConsumer;
-import org.eclipse.update.core.IInstallHandler;
-import org.eclipse.update.core.IInstallHandlerEntry;
-import org.eclipse.update.core.INonPluginEntry;
-import org.eclipse.update.core.IPluginEntry;
-import org.eclipse.update.core.IVerificationListener;
-import org.eclipse.update.core.InstallMonitor;
-import org.eclipse.update.core.Utilities;
-
-public class InstallHandlerProxy implements IInstallHandler {
-
-	private IFeature feature = null;
-	private int type;
-	private IInstallHandler handler = null;
-	private IStatus savedStatus = null;
-	private boolean DEBUG = false;
-
-	private static final String EXT_PLUGIN = "org.eclipse.update.core";
-	private static final String EXT_POINT = "installHandlers";
-
-	private InstallHandlerProxy() {
-	}
-
-	public InstallHandlerProxy(
-		int type,
-		IFeature feature,
-		IInstallHandlerEntry entry,
-		InstallMonitor monitor)
-		throws CoreException {
-
-		initialize(type, feature, entry, monitor);
-	}
-
-	/*
-	 * @see IInstallHandler#initialize
-	 */
-	public void initialize(
-		int type,
-		IFeature feature,
-		IInstallHandlerEntry entry,
-		InstallMonitor monitor)
-		throws CoreException {
-
-		DEBUG = UpdateCore.DEBUG_SHOW_IHANDLER;
-		// validate arguments
-		if (feature == null)
-			throw new IllegalArgumentException();
-		this.feature = feature;
-		this.type = type;
-
-		//  check if we have a handler entry specified in the feature.xml
-		if (entry == null) {
-			if (DEBUG)
-				debug("not specified");
-			return; // no handler entry
-		}
-
-		String library = entry.getLibrary();
-		String handlerName = entry.getHandlerName();
-		if (handlerName == null || handlerName.trim().equals("")) {
-			if (DEBUG)
-				debug("not specified");
-			return; // no handler class spacified in entry
-		}
-		if (DEBUG) {
-			debug("handler=" + handlerName);
-			debug("path=   " + library);
-		}
-
-		// get handler instance
-		try {
-			if (library == null || library.trim().equals(""))
-				this.handler = getGlobalHandler(handlerName);
-			else
-				this.handler = getLocalHandler(library, handlerName);
-			if (this.handler == null)
-				return;
-			handler.initialize(type, feature, entry, monitor);
-		} catch (ClassNotFoundException e) {
-			handleExceptionInInit(
-				Policy.bind("InstallHandler.notFound", feature.getLabel()),
-				e);
-			//$NON-NLS-1$
-		} catch (ClassCastException e) {
-			handleExceptionInInit(
-				Policy.bind("InstallHandler.invalidHandler", feature.getLabel()),
-				e);
-			//$NON-NLS-1$
-		} catch (CoreException e) {
-			handleExceptionInInit(null, e);
-		} catch (Exception e) {
-			handleExceptionInInit(
-				Policy.bind("InstallHandler.unableToCreateHandler", feature.getLabel()),
-				e);
-			//$NON-NLS-1$
-		}
-
-	}
-
-	/*
-	 * @see IInstallHandler#installInitiated
-	 */
-	public void installInitiated() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling installInitiated()");
-				handler.installInitiated();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#allPluginsDownloaded
-	 */
-	public void pluginsDownloaded(IPluginEntry[] plugins) throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling pluginsDownloaded()");
-				handler.pluginsDownloaded(plugins);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#allPluginsInstalled
-	 */
-	public void completeInstall(IFeatureContentConsumer consumer)
-		throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling completeInstall()");
-				handler.completeInstall(consumer);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#allDataDownloaded
-	 */
-	public void nonPluginDataDownloaded(
-		INonPluginEntry[] nonPluginData,
-		IVerificationListener listener)
-		throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling nonPluginDataDownloaded()");
-				handler.nonPluginDataDownloaded(nonPluginData, listener);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#installCompleted
-	 */
-	public void installCompleted(boolean success) throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling installCompleted()");
-				handler.installCompleted(success);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#configureInitiated
-	 */
-	public void configureInitiated() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling configureInitiated()");
-				handler.configureInitiated();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#completeConfigure
-	 */
-	public void completeConfigure() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling completeConfigure()");
-				handler.completeConfigure();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#configureCompleted
-	 */
-	public void configureCompleted(boolean success) throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling configureCompleted()");
-				handler.configureCompleted(success);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#unconfigureInitiated
-	 */
-	public void unconfigureInitiated() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling unconfigureInitiated()");
-				handler.unconfigureInitiated();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#completeUnconfigure
-	 */
-	public void completeUnconfigure() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling completeUnconfigure()");
-				handler.completeUnconfigure();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#unconfigureCompleted
-	 */
-	public void unconfigureCompleted(boolean success) throws CoreException {
-		if (handler == null) {
-			if (savedStatus == null)
-				return;
-			else
-				throw new CoreException(savedStatus); // delayed exception
-		} else {
-			try {
-				if (DEBUG)
-					debug("calling unconfigureCompleted()");
-				handler.unconfigureCompleted(success);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-			if (savedStatus != null)
-				throw new CoreException(savedStatus); // delayed exception
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#uninstallInitiated
-	 */
-	public void uninstallInitiated() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling uninstallInitiated()");
-				handler.uninstallInitiated();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#completeUninstall
-	 */
-	public void completeUninstall() throws CoreException {
-		if (handler == null)
-			return;
-		else {
-			try {
-				if (DEBUG)
-					debug("calling completeUninstall()");
-				handler.completeUninstall();
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-		}
-	}
-
-	/*
-	 * @see IInstallHandler#uninstallCompleted
-	 */
-	public void uninstallCompleted(boolean success) throws CoreException {
-		if (handler == null) {
-			if (savedStatus == null)
-				return;
-			else
-				throw new CoreException(savedStatus); // delayed exception
-		} else {
-			try {
-				if (DEBUG)
-					debug("calling uninstallCompleted()");
-				handler.uninstallCompleted(success);
-			} catch (Throwable e) {
-				handleExceptionInCall(e, feature);
-			}
-			if (savedStatus != null)
-				throw new CoreException(savedStatus); // delayed exception
-		}
-	}
-
-	/*
-	 * common exception handling for initialization
-	 */
-	private void handleExceptionInInit(String s, Exception e)
-		throws CoreException {
-
-		CoreException ce;
-		if (e instanceof CoreException)
-			ce = (CoreException) e;
-		else
-			ce = Utilities.newCoreException(s, e);
-
-		if (isUndoAction()) {
-			// for "undo" operations, deactivate handler and log error
-			String id =
-				UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-			IStatus status =
-				new Status(IStatus.ERROR, id, 0, "InstallHandler.deactivated", ce);
-			//$NON-NLS-1$
-			UpdateCore.getPlugin().getLog().log(status);
-			handler = null; // disable subsequent handler calls
-			savedStatus = status;
-		} else
-			// for "do" operations, hurl ...
-			throw ce;
-	}
-
-	/*
-	 * common exception handling for calls to install handler
-	 */
-	private void handleExceptionInCall(Throwable e, IFeature feature)
-		throws CoreException {
-
-		CoreException ce;
-		if (e instanceof CoreException)
-			ce = (CoreException) e;
-		else
-			ce =
-				Utilities.newCoreException(
-					Policy.bind("InstallHandler.callException", feature.getLabel()),
-					e);
-		//$NON-NLS-1$
-		
-		if (isUndoAction()) {
-			// for "undo" operations, deactivate handler and log error
-			String id =
-				UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-			IStatus status =
-				new Status(IStatus.ERROR, id, 0, "InstallHandler.deactivated", ce);
-			//$NON-NLS-1$
-			UpdateCore.getPlugin().getLog().log(status);
-			handler = null; // disable subsequent handler calls
-			savedStatus = status;
-		} else
-			// for "do" operations, hurl ...
-			throw ce;
-	}
-
-	/*
-	 * Indicates whether we are doing (install, configure) or 
-	 * undoing (uninstall, unconfigure)
-	 */
-	private boolean isUndoAction() {
-		if (this.type == IInstallHandler.HANDLER_ACTION_INSTALL
-			|| this.type == IInstallHandler.HANDLER_ACTION_CONFIGURE)
-			return false; // causes exception to be thrown and action aborted
-		else
-			return true; // causes exception to be logged and action continues
-	}
-
-	/*
-	 * get an instance of handler downloaded as part of the feature
-	 */
-	private IInstallHandler getLocalHandler(String lib, String name)
-		throws Exception {
-
-		// Get baseline URL for handler (relative to feature.xml). For
-		// features being installed from a server (eg. http protocol)
-		// the URL will most likely be to a local file copy containing the
-		// unpacked feature jar.
-		ContentReference baseRef =
-			feature.getFeatureContentProvider().getFeatureManifestReference(null);
-		URL base = null;
-		if (baseRef != null)
-			base = baseRef.asURL();
-		if (base == null)
-			throw Utilities.newCoreException(
-				Policy.bind("InstallHandler.unableToCreateHandler", this.feature.getLabel()),
-				null);
-		//$NON-NLS-1$
-
-		// determine loader class path
-		URL cp = new URL(base, lib);
-		if (this.type == IInstallHandler.HANDLER_ACTION_UNINSTALL) {
-			// check if we are doing uninstall
-			// ... need to make temp copy of library (being removed)
-			File tempLib = File.createTempFile("tmp", ".jar");
-			tempLib.deleteOnExit();
-			FileOutputStream fos = null;
-			InputStream is = null;
-			try {
-				fos = new FileOutputStream(tempLib);
-				is = UpdateCore.getPlugin().get(cp).getInputStream();
-				Utilities.copy(is, fos, null);
-			} finally {
-				if (fos != null)
-					try {
-						fos.close();
-					} catch (Exception e) {
-					}
-				if (is != null)
-					try {
-						is.close();
-					} catch (Exception e) {
-					}
-			}
-			cp = tempLib.toURL();
-		}
-
-		// create class loader, load and instantiate handler
-		URLClassLoader loader =
-			new URLClassLoader(new URL[] { cp }, this.getClass().getClassLoader());
-		Class clazz = loader.loadClass(name);
-		IInstallHandler handler = (IInstallHandler) clazz.newInstance();
-		return handler;
-	}
-
-	/*
-	 * get instance of global handler registered via extension point
-	 */
-	private IInstallHandler getGlobalHandler(String name) throws Exception {
-
-		IPluginRegistry reg = Platform.getPluginRegistry();
-		IConfigurationElement[] handlerExtension =
-			reg.getConfigurationElementsFor(EXT_PLUGIN, EXT_POINT, name);
-		if (handlerExtension == null || handlerExtension.length <= 0)
-			throw Utilities.newCoreException(
-				Policy.bind("InstallHandler.unableToCreateHandler", this.feature.getLabel()),
-				null);
-		//$NON-NLS-1$	
-
-		return (IInstallHandler) handlerExtension[0].createExecutableExtension("class");
-	}
-	
-	private void debug(String s) {
-		String pfx = (feature==null) ? "" : feature.getVersionedIdentifier().toString();
-		System.out.println("InstallHandler["+pfx+"]: " + s);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InternalSiteManager.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InternalSiteManager.java
deleted file mode 100644
index bff46aa..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/InternalSiteManager.java
+++ /dev/null
@@ -1,446 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-

-import java.io.File;

-import java.lang.reflect.Array;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.InvalidSiteTypeException;

-import org.eclipse.update.internal.model.InstallChangeParser;

-

-/**

- * 

- */

-public class InternalSiteManager {

-

-	public static ILocalSite localSite;

-

-	public static final String DEFAULT_SITE_TYPE = SiteURLContentProvider.SITE_TYPE;

-	private static final String DEFAULT_EXECUTABLE_SITE_TYPE = SiteFileContentProvider.SITE_TYPE;

-	private static final String SIMPLE_EXTENSION_ID = "deltaHandler";

-	//$NON-NLS-1$

-

-	private static Map estimates;

-

-	// cache found sites

-	private static Map sites = new HashMap();

-	public static boolean globalUseCache = true;

-

-	// true if an exception occured creating localSite

-	// so we cache it and don't attempt to create it again

-	private static CoreException exceptionOccured = null;

-

-	/*

-	 * @see SiteManager#getLocalSite()

-	 */

-	public static ILocalSite getLocalSite() throws CoreException {

-		return internalGetLocalSite(false);

-	}

-

-	/*

-	 * Internal call if optimistic reconciliation needed

-	 */

-	private static ILocalSite internalGetLocalSite(boolean isOptimistic) throws CoreException {

-

-		// if an exception occured while retrieving the Site

-		// rethrow it

-		if (exceptionOccured != null)

-			throw exceptionOccured;

-

-		if (localSite == null) {

-			try {

-				localSite = SiteLocal.internalGetLocalSite(isOptimistic);

-			} catch (CoreException e) {

-				exceptionOccured = e;

-				throw e;

-			}

-		}

-		return localSite;

-	}

-

-	/*

-	 * @see ILocalSite#getSite(URL)

-	 */

-	public static ISite getSite(URL siteURL, boolean useCache, IProgressMonitor monitor) throws CoreException {

-		ISite site = null;

-		if (monitor==null) monitor = new NullProgressMonitor();

-

-		if (siteURL == null)

-			return null;

-

-		// use cache if set up globally (globalUseCache=true)

-		// and passed as parameter (useCache=true)

-		if ((useCache && globalUseCache) && sites.containsKey(siteURL)) {

-			site = (ISite) sites.get(siteURL);

-			return site;

-		}

-

-		// consider file protocol also if the URL points to a directory

-		// and no site.xml exist

-		// if the user points to a file, consider DEFAULT_SITE_TYPE

-		// site.xml will have to specify the type

-		boolean fileProtocol = "file".equalsIgnoreCase(siteURL.getProtocol());

-		boolean directoryExists = false;

-		if (fileProtocol) {

-			File dir;

-			dir = new File(siteURL.getFile());

-			if (dir != null && dir.isDirectory()) {

-				if (!(new File(dir, Site.SITE_XML).exists()))

-					directoryExists = true;

-			}

-		}

-

-		//PERF: if file: <path>/ and directory exists then consider executable

-		monitor.beginTask(Policy.bind("InternalSiteManager.ConnectingToSite"), 8);

-		if (fileProtocol && directoryExists) {

-			site = attemptCreateSite(DEFAULT_EXECUTABLE_SITE_TYPE, siteURL, monitor);

-			monitor.worked(4); // only one attempt

-		} else {

-			try {

-				monitor.worked(3);

-				site = attemptCreateSite(DEFAULT_SITE_TYPE, siteURL, monitor);

-				monitor.worked(1);

-			} catch (CoreException preservedException) {

-				if (!monitor.isCanceled()) {

-					// attempt a retry is the protocol is file, with executbale type

-					if (!fileProtocol)

-						throw preservedException;

-

-					try {

-						site = attemptCreateSite(DEFAULT_EXECUTABLE_SITE_TYPE, siteURL, monitor);

-					} catch (CoreException retryException) {

-						IStatus firstStatus = preservedException.getStatus();

-						MultiStatus multi = new MultiStatus(firstStatus.getPlugin(), IStatus.OK, Policy.bind("InternalSiteManager.FailedRetryAccessingSite"), retryException); //$NON-NLS-1$

-						multi.addAll(firstStatus);

-						throw preservedException;

-					}

-				}

-			}

-		}

-

-		if (site != null)

-			sites.put(siteURL, site);

-

-		//flush the JarFile we may hold on to

-		// we keep the temp not to create them again

-		JarContentReference.shutdown(); // make sure we are not leaving jars open for this site

-

-		//flush mapping of downloaded JAR files

-		// FIXME : provide better cache flushing after 2.1

-		Utilities.flushLocalFile();

-

-		return site;

-	}

-

-	/*

-	 * Attempt to create a site

-	 * if the site guessed is not the type found,

-	 * attempt to create a type with the type found in the site.xml

-	 */

-	private static ISite attemptCreateSite(String guessedTypeSite, URL siteURL, IProgressMonitor monitor) throws CoreException {

-		if (monitor == null) monitor = new NullProgressMonitor();

-		ISite site = null;

-

-		try {

-			monitor.worked(1);

-			site = createSite(guessedTypeSite, siteURL, monitor);

-			monitor.worked(1); // if no error, occurs the retry branch doesn't need to be executed

-		} catch (InvalidSiteTypeException e) {

-			if (monitor.isCanceled()) return null;

-

-			// the type in the site.xml is not the one expected	

-			// attempt to use this type instead	

-			//DEBUG:

-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_TYPE) {

-				UpdateCore.debug("The Site :" + siteURL.toExternalForm() + " is a different type than the guessed type based on the protocol. new Type:" + e.getNewType());

-				//$NON-NLS-1$ //$NON-NLS-2$

-			}

-

-			InvalidSiteTypeException exception = (InvalidSiteTypeException) e;

-			try {

-				if (exception.getNewType() == null)

-					throw e;

-				site = createSite(exception.getNewType(), siteURL, monitor);

-			} catch (InvalidSiteTypeException e1) {

-				throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToCreateSiteWithType", e.getNewType(), siteURL.toExternalForm()), e1);

-				//$NON-NLS-1$ //$NON-NLS-2$

-			}

-		}

-

-		return site;

-	}

-

-	/*

-	 * create an instance of a class that implements ISite

-	 * 

-	 * the URL can be of the following form

-	 * 1 protocol://...../

-	 * 2 protocol://.....

-	 * 3 protocol://..../site.xml

-	 * 4 protocol://...#...

-	 * 

-	 * 1 If the file of the file of teh url ends with '/', attempt to open the stream.

-	 * if it fails, add site.xml and attempt to open the stream

-	 * 

-	 * 2 attempt to open the stream

-	 * 	fail

-	 * 		add '/site.xml' and attempt to open the stream

-	 * 	sucess

-	 * 		attempt to parse, if it fails, add '/site.xml' and attempt to open the stream

-	 * 

-	 * 3 open the stream

-	 * 

-	 * 4 open the stream	

-	 */

-	private static ISite createSite(String siteType, URL url, IProgressMonitor monitor) throws CoreException, InvalidSiteTypeException {

-		ISite site = null;

-		ISiteFactory factory = SiteTypeFactory.getInstance().getFactory(siteType);

-

-		try {

-			if (monitor != null)

-				monitor.worked(1);

-			site = createSite(factory, url, monitor);

-		} catch (CoreException e) {

-			if (monitor != null && monitor.isCanceled())

-				return null;

-

-			// if the URL is pointing to either a file 

-			// or a directory, without reference			

-			if (url.getRef() != null) {

-				// 4 nothing we can do

-				throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToAccessURL", url.toExternalForm()), e);

-				//$NON-NLS-1$

-			} else if (url.getFile().endsWith("/")) { //$NON-NLS-1$

-				// 1 try to add site.xml

-				URL urlRetry;

-				try {

-					urlRetry = new URL(url, Site.SITE_XML);

-				} catch (MalformedURLException e1) {

-					throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToCreateURL", url.toExternalForm() + "+" + Site.SITE_XML), e1);

-					//$NON-NLS-1$ //$NON-NLS-2$

-				}

-				try {

-					if (monitor != null)

-						monitor.worked(1);

-					site = createSite(factory, urlRetry, monitor);

-				} catch (CoreException e1) {

-					throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToAccessURL", url.toExternalForm()), url.toExternalForm(), urlRetry.toExternalForm(), e, e1);

-					//$NON-NLS-1$

-				}

-			} else if (url.getFile().endsWith(Site.SITE_XML)) {

-				// 3 nothing we can do

-				throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToAccessURL", url.toExternalForm()), e);

-				//$NON-NLS-1$

-			} else {

-				// 2 try to add /site.xml 

-				URL urlRetry;

-				try {

-					urlRetry = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + "/" + Site.SITE_XML);

-					//$NON-NLS-1$

-				} catch (MalformedURLException e1) {

-					throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToCreateURL", url.toExternalForm() + "+" + Site.SITE_XML), e1);

-					//$NON-NLS-1$ //$NON-NLS-2$

-				}

-

-				try {

-					if (monitor != null)

-						monitor.worked(1);

-					site = createSite(factory, urlRetry, monitor);

-				} catch (CoreException e1) {

-					throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToAccessURL", url.toExternalForm()), url.toExternalForm(), urlRetry.toExternalForm(), e, e1);

-					//$NON-NLS-1$

-				}

-			}

-		}

-		return site;

-	}

-	

-	private static ISite createSite(ISiteFactory factory, URL url, IProgressMonitor monitor) throws CoreException, InvalidSiteTypeException {

-		if (factory instanceof ISiteFactoryExtension)

-			return ((ISiteFactoryExtension)factory).createSite(url, monitor);

-		else

-			return factory.createSite(url);

-	}

-

-	/*

-	 * Creates a new site on the file system

-	 * This is the only Site we can create.

-	 * 

-	 * @param siteLocation

-	 * @throws CoreException

-	 */

-	public static ISite createSite(File siteLocation) throws CoreException {

-		ISite site = null;

-		if (siteLocation != null) {

-			try {

-				URL siteURL = siteLocation.toURL();

-				site = getSite(siteURL, false, null);

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("InternalSiteManager.UnableToCreateURL", siteLocation.getAbsolutePath()), e);

-				//$NON-NLS-1$

-			}

-		}

-		return site;

-	}

-

-	/*

-	 * Prompt the user to configure or unconfigure

-	 * newly discoverd features.

-	 * @throws CoreException if an error occurs.

-	 * @since 2.0

-	 */

-	public static void handleNewChanges() throws CoreException {

-		// find extension point

-		IInstallDeltaHandler handler = null;

-

-		String pluginID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-

-		IPluginRegistry pluginRegistry = Platform.getPluginRegistry();

-

-		IConfigurationElement[] elements = pluginRegistry.getConfigurationElementsFor(pluginID, SIMPLE_EXTENSION_ID);

-

-		if (elements == null || elements.length == 0) {

-			throw Utilities.newCoreException(Policy.bind("SiteReconciler.UnableToFindInstallDeltaFactory", pluginID + "." + SIMPLE_EXTENSION_ID), null);

-			//$NON-NLS-1$

-		} else {

-			IConfigurationElement element = elements[0];

-			handler = (IInstallDeltaHandler) element.createExecutableExtension("class");

-			//$NON-NLS-1$

-		}

-

-		// instanciate and open

-		if (handler != null) {

-			ISessionDelta[] deltas = getSessionDeltas();

-			handler.init(deltas);

-			handler.open();

-		}

-	}

-

-	/*

-	 * Returns the list of sessions deltas found on the file system

-	 * 

-	 * Do not cache, calculate everytime

-	 * because we delete the file in SessionDelta when the session

-	 * has been seen by the user

-	 * 

-	 * So the shared state is the file system itself

-	 */

-	private static ISessionDelta[] getSessionDeltas() {

-		List sessionDeltas = new ArrayList();

-		IPath path = UpdateCore.getPlugin().getStateLocation();

-		InstallChangeParser parser;

-

-		File file = path.toFile();

-		if (file.isDirectory()) {

-			File[] allFiles = file.listFiles();

-			for (int i = 0; i < allFiles.length; i++) {

-				try {

-					// TRACE

-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {

-						UpdateCore.debug("Found delta change:" + allFiles[i]);

-					}

-					parser = new InstallChangeParser(allFiles[i]);

-					ISessionDelta change = parser.getInstallChange();

-					if (change != null) {

-						sessionDeltas.add(change);

-					}

-				} catch (Exception e) {

-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {

-						UpdateCore.log("Unable to parse install change:" + allFiles[i], e);

-					}

-				}

-			}

-		}

-

-		if (sessionDeltas.size() == 0)

-			return new ISessionDelta[0];

-

-		return (ISessionDelta[]) sessionDeltas.toArray(arrayTypeFor(sessionDeltas));

-	}

-

-	/*

-	 * Returns a concrete array type for the elements of the specified

-	 * list. The method assumes all the elements of the list are the same

-	 * concrete type as the first element in the list.

-	 * 

-	 * @param l list

-	 * @return concrete array type, or <code>null</code> if the array type

-	 * could not be determined (the list is <code>null</code> or empty)

-	 * @since 2.0

-	 */

-	private static Object[] arrayTypeFor(List l) {

-		if (l == null || l.size() == 0)

-			return null;

-		return (Object[]) Array.newInstance(l.get(0).getClass(), 0);

-	}

-

-	/*

-	 * Reconcile the local site following a specific reconciliation strategy 

-	 * The parameter is true if we need to follow an optimistic reconciliation

-	 * returns true if there are delta to process

-	 * 

-	 * Called internally by UpdateManagerReconciler aplication

-	 */

-	public static boolean reconcile(boolean optimisticReconciliation) throws CoreException {

-		// reconcile

-		internalGetLocalSite(optimisticReconciliation);

-

-		// check if new features have been found

-		if (localSite instanceof SiteLocal) {

-			return SiteLocal.newFeaturesFound;

-		}

-		return false;

-	}

-

-	/**

-	 * Method downloaded.

-	 * @param l size downloaded in bytes

-	 * @param l1 time in seconds

-	 * @param uRL

-	 */

-	public static void downloaded(long downloadSize, long time, URL url) {

-		if (downloadSize <= 0 || time < 0)

-			return;

-		String host = url.getHost();

-		long sizeByTime = (time == 0) ? 0 : downloadSize / time;

-		Long value = new Long(sizeByTime);

-		if (estimates == null) {

-			estimates = new HashMap();

-		} else {

-			Long previous = (Long) estimates.get(host);

-			if (previous != null) {

-				value = new Long((previous.longValue() + sizeByTime) / 2);

-			}

-		}

-		estimates.put(host, value);

-	}

-	/**

-	 * Method getEstimatedTransferRate rate bytes/seconds.

-	 * @param string

-	 * @return long

-	 */

-	public static long getEstimatedTransferRate(String host) {

-		if (estimates == null)

-			return 0;

-		Long value = (Long) estimates.get(host);

-		if (value == null)

-			return 0;

-		return value.longValue();

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ListenersList.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ListenersList.java
deleted file mode 100644
index e46abb3..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/ListenersList.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-

-/**

- * This class is used to maintain a list of listeners, and

- * is used in the implementations of several classes within JFace

- * which allow you to register listeners of various kinds.

- * It is a fairly lightweight object, occupying minimal space when

- * no listeners are registered.

- * <p>

- * Note that the <code>add</code> method checks for and eliminates 

- * duplicates based on identity (not equality).  Likewise, the

- * <code>remove</code> method compares based on identity.

- * </p>

- * <p>

- * Use the <code>getListeners</code> method when notifying listeners.

- * Note that no garbage is created if no listeners are registered.

- * The recommended code sequence for notifying all registered listeners

- * of say, <code>FooListener.eventHappened</code>, is:

- * <pre>

- * Object[] listeners = myListenerList.getListeners();

- * for (int i = 0; i < listeners.length; ++i) {

- *    ((FooListener) listeners[i]).eventHappened(event);

- * }

- * </pre>

- * </p>

- */

-

-public class ListenersList {

-	/**

-	 * The initial capacity of the list. Always >= 1.

-	 */

-	private int capacity;

-

-	/**

-	 * The current number of listeners.

-	 * Maintains invariant: 0 <= size <= listeners.length.

-	 */

-	private int size;

-

-	/**

-	 * The list of listeners.  Initially <code>null</code> but initialized

-	 * to an array of size capacity the first time a listener is added.

-	 * Maintains invariant: listeners != null IFF size != 0

-	 */

-	private Object[] listeners = null;

-

-	/**

-	 * The empty array singleton instance, returned by getListeners()

-	 * when size == 0.

-	 */

-	private static final Object[] EmptyArray = new Object[0];

-/**

- * Creates a listener list with an initial capacity of 3.

- */

-public ListenersList() {

-	this(3);

-}

-/**

- * Creates a listener list with the given initial capacity.

- *

- * @param capacity the number of listeners which this list can initially accept 

- *    without growing its internal representation; must be at least 1

- */

-public ListenersList(int capacity) {

-	Assert.isTrue(capacity >= 1);

-	this.capacity = capacity;

-}

-/**

- * Adds the given listener to this list. Has no effect if an identical listener

- * is already registered.

- *

- * @param listener the listener

- */

-public void add(Object listener) {

-	Assert.isNotNull(listener);

-	if (size == 0) {

-		listeners = new Object[capacity];

-	} else {

-	    // check for duplicates using identity

-		for (int i = 0; i < size; ++i) {

-			if (listeners[i] == listener) {

-				return;

-			}

-		}

-		// grow array if necessary

-		if (size == listeners.length) {

-			System.arraycopy(listeners, 0, listeners = new Object[size * 2 + 1], 0, size);

-		}

-	}

-	listeners[size++] = listener;

-}

-/**

- * Returns an array containing all the registered listeners.

- * The resulting array is unaffected by subsequent adds or removes.

- * If there are no listeners registered, the result is an empty array

- * singleton instance (no garbage is created).

- * Use this method when notifying listeners, so that any modifications

- * to the listener list during the notification will have no effect on the

- * notification itself.

- *

- * @return the list of registered listeners

- */

-public Object[] getListeners() {

-	if (size == 0)

-		return EmptyArray;

-	Object[] result = new Object[size];

-	System.arraycopy(listeners, 0, result, 0, size);

-	return result;

-}

-/**

- * Returns whether this listener list is empty.

- *

- * @return <code>true</code> if there are no registered listeners, and

- *   <code>false</code> otherwise

- */

-public boolean isEmpty() {

-	return size == 0;

-}

-/**

- * Removes the given listener from this list. Has no effect if an identical

- * listener was not already registered.

- *

- * @param listener the listener

- */

-public void remove(Object listener) {

-	Assert.isNotNull(listener);

-	for (int i = 0; i < size; ++i) {

-		if (listeners[i] == listener) {

-			if (size == 1) {

-				listeners = null;

-				size = 0;

-			}

-			else {

-				System.arraycopy(listeners, i + 1, listeners, i, --size - i);

-				listeners[size] = null;

-			}

-			return;

-		}

-	}

-}

-/**

- * Returns the number of registered listeners.

- *

- * @return the number of registered listeners

- */

-public int size() {

-	return size;

-}

-}

-	

-

-

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/NonPluginEntryContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/NonPluginEntryContentConsumer.java
deleted file mode 100644
index 68b1de5..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/NonPluginEntryContentConsumer.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.ContentReference;

-import org.eclipse.update.core.IContentConsumer;

-

-/**

- * ContentConsumer for a non plugin entry of a feature

- */

-

-public class NonPluginEntryContentConsumer extends ContentConsumer {

-

-	private boolean closed = false;

-

-	private IContentConsumer contentConsumer;

-		

-	/*

-	 * Constructor

-	 */

-	public NonPluginEntryContentConsumer(IContentConsumer contentConsumer){

-		this.contentConsumer = contentConsumer;

-	}

-

-	/*

-	 * @see ContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException {

-		if (!closed){

-			contentConsumer.store( contentReference,monitor);

-		} else {

-			UpdateCore.warn("Attempt to store in a closed NonPluginEntryContentConsumer",new Exception());

-		}

-	}

-

-	/*

-	 * @see ContentConsumer#close()

-	 */

-	public void close() throws CoreException  {

-		if (!closed){

-			closed = true;

-			contentConsumer.close();

-		} else {

-			UpdateCore.warn("Attempt to close a closed NonPluginEntryContentConsumer",new Exception());

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/PluginEntryContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/PluginEntryContentConsumer.java
deleted file mode 100644
index d0b5fec..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/PluginEntryContentConsumer.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.ContentReference;

-import org.eclipse.update.core.IContentConsumer;

-

-/**

- * ContentConsumer for a plugin entry of a feature

- */

-

-public class PluginEntryContentConsumer extends ContentConsumer {

-

-	private boolean closed = false;

-

-	private IContentConsumer contentConsumer;

-		

-	/*

-	 * Constructor

-	 */

-	public PluginEntryContentConsumer(IContentConsumer contentConsumer){

-		this.contentConsumer = contentConsumer;

-	}

-

-	/*

-	 * @see ContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException {

-		if (!closed){

-			contentConsumer.store(contentReference,monitor);

-		} else {

-			UpdateCore.warn("Attempt to store in a closed PluginEntryContentConsumer",new Exception());

-		}

-	}

-

-	/*

-	 * @see ContentConsumer#close()

-	 */

-	public void close() throws CoreException {

-		if (!closed){

-			closed = true;

-			contentConsumer.close();

-		} else {

-			UpdateCore.warn("Attempt to close a closed PluginEntryContentConsumer",new Exception());

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Policy.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Policy.java
deleted file mode 100644
index c84053e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Policy.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.SubProgressMonitor;
-
-public class Policy {
-	protected static ResourceBundle bundle = null;
-
-	/**
-	 * Creates a NLS catalog for the given locale.
-	 */
-	public static void localize(String bundleName) {
-		bundle = ResourceBundle.getBundle(bundleName);
-	}
-	
-	/**
-	 * Lookup the message with the given ID in this catalog and bind its
-	 * substitution locations with the given string.
-	 */
-	public static String bind(String id, String binding) {
-		return bind(id, new String[] { binding });
-	}
-	
-	/**
-	 * Lookup the message with the given ID in this catalog and bind its
-	 * substitution locations with the given strings.
-	 */
-	public static String bind(String id, String binding1, String binding2) {
-		return bind(id, new String[] { binding1, binding2 });
-	}
-	
-	/**
-	 * Gets a string from the resource bundle. We don't want to crash because of a missing String.
-	 * Returns the key if not found.
-	 */
-	public static String bind(String key) {
-		try {
-			return bundle.getString(key);
-		} catch (MissingResourceException e) {
-			return key;
-		} catch (NullPointerException e) {
-			return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
-		}
-	}
-	
-	/**
-	 * Gets a string from the resource bundle and binds it with the given arguments. If the key is 
-	 * not found, return the key.
-	 */
-	public static String bind(String key, Object[] args) {
-		try {
-			return MessageFormat.format(bind(key), args);
-		} catch (MissingResourceException e) {
-			return key;
-		} catch (NullPointerException e) {
-			return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
-		}
-	}
-	
-	/**
-	 * Progress monitor helpers
-	 */
-	public static void checkCanceled(IProgressMonitor monitor) {
-		if (monitor.isCanceled())
-			throw new OperationCanceledException();
-	}
-	public static IProgressMonitor monitorFor(IProgressMonitor monitor) {
-		if (monitor == null)
-			return new NullProgressMonitor();
-		return monitor;
-	}
-	
-	public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks) {
-		if (monitor == null)
-			return new NullProgressMonitor();
-		if (monitor instanceof NullProgressMonitor)
-			return monitor;
-		return new SubProgressMonitor(monitor, ticks);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Response.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Response.java
deleted file mode 100644
index cb7a7bd..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Response.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.*;
-import java.net.*;
-
-import org.eclipse.core.runtime.*;
-
-public class Response {
-	
-	protected URL url;
-	protected InputStream in;
-	protected URLConnection connection;
-
-	/**
-	 * 
-	 */
-	public Response(InputStream in) {
-		super();
-		this.in = in;
-	}
-
-	/**
-	 * 
-	 */
-	public Response(URL url) {
-		super();
-		this.url = url;
-	}
-	
-	/**
-	 * Method getInputStream.
-	 * @return InputStream
-	 */
-	public InputStream getInputStream() throws IOException {
-		if (in == null && url != null) {
-			connection = url.openConnection();
-			this.in = connection.getInputStream();
-		}
-		return in;
-	}	
-	
-	public InputStream getInputStream(IProgressMonitor monitor) throws IOException, CoreException {
-		return getInputStream();
-	}
-	
-	/**
-	 * Method getContentLength.
-	 * @return long
-	 */
-	public long getContentLength() {
-		if (connection != null)
-			return connection.getContentLength();
-		return 0;
-	}
-
-	/**
-	 * Method getStatusCode.
-	 * @return int
-	 */
-	public int getStatusCode() {
-		if (connection != null) {
-			if (connection instanceof HttpURLConnection)
-				try {
-					return ((HttpURLConnection) connection).getResponseCode();
-				} catch (IOException e) {
-					UpdateCore.warn("", e);
-				}
-		}
-		return IStatusCodes.HTTP_OK;
-	}
-
-	/**
-	 * Method getStatusMessage.
-	 * @return String
-	 */
-	public String getStatusMessage() {
-		if (connection != null) {
-			if (connection instanceof HttpURLConnection)
-				try {
-					return ((HttpURLConnection) connection)
-						.getResponseMessage();
-				} catch (IOException e) {
-					UpdateCore.warn("", e);
-				}
-		}
-		return "";
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SessionDelta.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SessionDelta.java
deleted file mode 100644
index 312dbf9..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SessionDelta.java
+++ /dev/null
@@ -1,323 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import java.io.File;
-import java.util.*;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.configuration.*;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.model.ModelObject;
-
-/**
- *
- */
-public class SessionDelta extends ModelObject implements ISessionDelta {
-
-	private Date date;
-	private List featureReferences;
-	private File file;
-	private int process;
-	private boolean deleted = false;
-
-	/**
-	 * Constructor for SessionDelta.
-	 */
-	public SessionDelta() {
-		super();
-		process = ENABLE;
-		deleted = false;
-	}
-
-	/**
-	 * @see ISessionDelta#getFeatureReferences()
-	 */
-	public IFeatureReference[] getFeatureReferences() {
-		if (featureReferences == null)
-			return new IFeatureReference[0];
-
-		return (IFeatureReference[]) featureReferences.toArray(arrayTypeFor(featureReferences));
-	}
-
-	/**
-	 * @see ISessionDelta#getDate()
-	 */
-	public Date getDate() {
-		return date;
-	}
-
-	/**
-	 * @see ISessionDelta#process(IProgressMonitor)
-	 */
-	public void process(IProgressMonitor pm) throws CoreException {
-		if (featureReferences.isEmpty())
-			return;
-		IFeatureReference[] selected = new IFeatureReference[featureReferences.size()];
-		featureReferences.toArray(selected);
-		process(selected, pm);
-	}
-
-	/*
-	 * 
-	 */
-	public void delete() {
-		if (deleted) {
-			UpdateCore.warn("Attempt to delete an already deleted session delta:" + file);
-			return;
-		}
-
-		// remove the file from the file system
-		if (file != null) {
-			UpdateManagerUtils.removeFromFileSystem(file);
-			UpdateCore.warn("Removing SessionDelta:" + file);
-		} else {
-			UpdateCore.warn("Unable to remove SessionDelta. File is null");
-		}
-
-		deleted = true;
-	}
-
-	/**
-	 * @see IAdaptable#getAdapter(Class)
-	 */
-	public Object getAdapter(Class adapter) {
-		return null;
-	}
-
-	/*
-	 *
-	 */
-	public void addReference(IFeatureReference reference) {
-		if (featureReferences == null)
-			featureReferences = new ArrayList();
-		featureReferences.add(reference);
-	}
-
-	/*
-	 * 
-	 */
-	public void setCreationDate(Date date) {
-		this.date = date;
-	}
-
-	/*
-	 * Sets the file. 
-	 * We will remove the file
-	 */
-	public void setFile(File file) {
-		this.file = file;
-	}
-
-	/*@
-	 * @see ISessionDelta#getType()
-	 */
-	public int getType() {
-		return process;
-	}
-
-	private void createInstallConfiguration() throws CoreException {
-		ILocalSite localSite = SiteManager.getLocalSite();
-		IInstallConfiguration config = localSite.cloneCurrentConfiguration();
-		config.setLabel(Utilities.format(config.getCreationDate()));
-		localSite.addConfiguration(config);
-	}
-
-	private void saveLocalSite() throws CoreException {
-		ILocalSite localSite = SiteManager.getLocalSite();
-		localSite.save();
-	}
-
-	/*
-	 * return true if this feature should be configured A feature should be
-	 * configure if it has the highest version across all configured features
-	 * with the same identifier 
-	 * 
-	 * Disable all other lower versions of the same feature in all the
-	 * configured sites
-	 */
-	private boolean enable(IFeature newlyConfiguredFeatures) throws CoreException {
-
-		ILocalSite siteLocal = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfiguration = siteLocal.getCurrentConfiguration();
-		IConfiguredSite[] configuredSites;
-		IFeatureReference[] configuredFeaturesRef;
-		IFeature feature;
-		configuredSites = currentConfiguration.getConfiguredSites();
-		for (int i = 0; i < configuredSites.length; i++) {
-			configuredFeaturesRef = configuredSites[i].getConfiguredFeatures();
-			for (int j = 0; j < configuredFeaturesRef.length; j++) {
-				try {
-					feature = configuredFeaturesRef[j].getFeature(null);
-					int result = compare(newlyConfiguredFeatures, feature);
-					if (result != 0) {
-						if (result == 1) {
-							ConfiguredSite cSite = (ConfiguredSite) configuredSites[i];
-							cSite.unconfigure(feature);
-							if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-								UpdateCore.debug("Found an old version of the feature to disable:" + feature);
-						}
-						if (result == 2) {
-							//	we found at least one higher version, do not enable this feature
-							if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-								UpdateCore.debug("Found an old version of the feature with a higher version:" + feature);
-							return false;
-						}
-					}
-				} catch (CoreException e) {
-					UpdateCore.warn(null, e);
-				}
-			}
-		}
-		// feature not found, or no better version found, configure it then
-		return true;
-	}
-
-	/**
-	 * compare two feature references
-	 * returns 0 if the feature are different
-	 * returns 1 if the version of feature 1 is greater than the version of feature 2
-	 * returns 2 if opposite
-	 */
-	private int compare(IFeature feature1, IFeature feature2) throws CoreException {
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Compare: " + feature1 + " && " + feature2);
-		}
-
-		if (feature1 == null)
-			return 0;
-
-		if (feature1 == null || feature2 == null) {
-			return 0;
-		}
-
-		VersionedIdentifier id1 = feature1.getVersionedIdentifier();
-		VersionedIdentifier id2 = feature2.getVersionedIdentifier();
-
-		if (id1 == null || id2 == null) {
-			return 0;
-		}
-
-		if (id1.getIdentifier() != null && id1.getIdentifier().equals(id2.getIdentifier())) {
-			PluginVersionIdentifier version1 = id1.getVersion();
-			PluginVersionIdentifier version2 = id2.getVersion();
-			if (version1 != null) {
-				if (version1.isGreaterThan(version2)) {
-					return 1;
-				} else {
-					return 2;
-				}
-			} else {
-				return 2;
-			}
-		}
-		return 0;
-	};
-
-	/**
-	 * @see org.eclipse.update.configuration.ISessionDelta#process(org.eclipse.update.core.IFeatureReference, org.eclipse.core.runtime.IProgressMonitor)
-	 */
-	public void process(IFeatureReference[] selected, IProgressMonitor pm) throws CoreException {
-
-		createInstallConfiguration();
-		if (pm == null)
-			pm = new NullProgressMonitor();
-
-		// process all feature references to configure
-		// find the configured site each feature belongs to
-		if (process == ENABLE) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-				UpdateCore.warn("ENABLE SESSION DELTA");
-			if (featureReferences != null && featureReferences.size() > 0) {
-				// manage ProgressMonitor
-				int nbFeatures = featureReferences.size();
-				pm.beginTask(Policy.bind("SessionDelta.EnableFeatures"), nbFeatures);
-				// since 2.0.2 ISite.getConfiguredSite()
-				// find the configuredSite that maintains this featureReference
-				// configure the feature
-				IFeatureReference ref = null;
-				IConfiguredSite configSite = null;
-				IFeature featureToConfigure = null;
-				for (int i = 0; i < selected.length; i++) {
-					ref = (IFeatureReference) selected[i];
-
-					try {
-						featureToConfigure = ref.getFeature(null);
-					} catch (CoreException e) {
-						UpdateCore.warn(null, e);
-					}
-
-					if (featureToConfigure != null) {
-						pm.worked(1);
-						configSite = ref.getSite().getCurrentConfiguredSite();
-						try {
-							// make sure only the latest version of the configured features
-							// is configured across sites [16502]
-							if (enable(featureToConfigure)) {
-								configSite.configure(featureToConfigure);
-								if (UpdateCore.isPatch(featureToConfigure))
-									disablePatchedFeature(featureToConfigure, configSite);
-							} else {
-								configSite.unconfigure(featureToConfigure);
-							}
-						} catch (CoreException e) {
-							// if I cannot configure one,
-							//then continue with others
-							UpdateCore.warn("Unable to configure feature:" + featureToConfigure, e);
-						}
-					} else {
-						UpdateCore.warn("Unable to configure null feature:" + ref, null);
-					}
-				}
-			}
-		}
-
-		delete();
-		saveLocalSite();
-	}
-
-	/*
-	 * Disable any patched features 
-	 * 
-	 * This occurs in the same configuredSite as patch is always installed in the same site as the feature
-	 * it patches
-	 */
-	private void disablePatchedFeature(IFeature patchToEnable, IConfiguredSite configSite) {
-		try {
-			IIncludedFeatureReference[] children = patchToEnable.getIncludedFeatureReferences();
-			IFeature child = null;
-			for (int i = 0; i < children.length; i++) {
-				try {
-					child = children[i].getFeature(true, configSite, null);
-				} catch (CoreException e) {
-					//nothing
-				}
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-					UpdateCore.debug("Checking if children :" + child + " of efix " + patchToEnable + " should be enabled");
-				if (child != null) {
-					if (UpdateCore.isPatch(child))
-						disablePatchedFeature(child, configSite);
-					else
-						try {
-							enable(child);
-						} catch (CoreException e) {
-							if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)
-								UpdateCore.warn("Unable to enable child " + child, e);
-						}
-				}
-			}
-		} catch (CoreException e) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)
-				UpdateCore.warn("Unable to retrieve children of patch " + patchToEnable, e);
-		}
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteContentConsumer.java
deleted file mode 100644
index 9213991..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteContentConsumer.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import org.eclipse.update.core.ISite;
-
-/**
- * A default implementation for IFeatureContentConsumer
- * </p>
- * @since 2.0
- */
-
-public abstract class SiteContentConsumer implements ISiteContentConsumer {
-	
-	private ISite site;
-	
-	/*
-	 * @see ISiteContentConsumer#setSite(ISite)
-	 */
-	/**
-	 * Sets the site.
-	 * @param site The site to set
-	 */
-	public void setSite(ISite site) {
-		this.site = site;
-	}
-
-	/**
-	 * Gets the site.
-	 * @return Returns a ISite
-	 */
-	public ISite getSite() {
-		return site;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFile.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFile.java
deleted file mode 100644
index 9dcd6dc..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFile.java
+++ /dev/null
@@ -1,434 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.IOException;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.*;

-

-/**

- * Site on the File System

- */

-public class SiteFile extends Site {

-

-	/**

-	 * plugin entries 

-	 */

-	private List pluginEntries = new ArrayList(0);

-

-	/**

-	 * 

-	 */

-	public ISiteContentConsumer createSiteContentConsumer(IFeature targetFeature) throws CoreException {

-		SiteFileContentConsumer consumer = new SiteFileContentConsumer(targetFeature);

-		consumer.setSite(this);

-		return consumer;

-	}

-

-	/**

-	 * @see ISite#getDefaultInstallableFeatureType()

-	 */

-	public String getDefaultPackagedFeatureType() {

-		return DEFAULT_INSTALLED_FEATURE_TYPE;

-	}

-

-	/*

-	 * @see ISite#install(IFeature, IVerifier, IProgressMonitor)

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IVerificationListener verificationListener, IProgressMonitor progress) throws CoreException {

-		return install(sourceFeature,null,verificationListener,progress);

-	}

-

-	/*

-	 * @see ISite#install(IFeature, IVerifier, IProgressMonitor)

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalfeatures, IVerificationListener verificationListener, IProgressMonitor progress) throws CoreException {

-

-		if (sourceFeature == null)

-			return null;

-

-		// make sure we have an InstallMonitor		

-		InstallMonitor monitor;

-		if (progress == null)

-			monitor = null;

-		else if (progress instanceof InstallMonitor)

-			monitor = (InstallMonitor) progress;

-		else

-			monitor = new InstallMonitor(progress);

-

-		// create new executable feature and install source content into it

-		IFeature localFeature = createExecutableFeature(sourceFeature);

-

-		IFeatureReference localFeatureReference = null;

-		localFeatureReference = sourceFeature.install(localFeature, optionalfeatures, verificationListener, monitor);

-

-		return localFeatureReference;

-	}

-

-	/*

-	 * @see ISite#install(IFeature,IFeatureContentConsumer, IVerifier,IVerificationLIstener, IProgressMonitor)

-	 */

-	public IFeatureReference install(IFeature sourceFeature, IFeatureReference[] optionalfeatures, IFeatureContentConsumer parentContentConsumer, IVerifier parentVerifier, IVerificationListener verificationListener, IProgressMonitor progress)

-		throws InstallAbortedException, CoreException {

-

-		if (sourceFeature == null)

-			return null;

-

-		// make sure we have an InstallMonitor		

-		InstallMonitor monitor;

-		if (progress == null)

-			monitor = null;

-		else if (progress instanceof InstallMonitor)

-			monitor = (InstallMonitor) progress;

-		else

-			monitor = new InstallMonitor(progress);

-

-		// create new executable feature and install source content into it

-		IFeature localFeature = createExecutableFeature(sourceFeature);

-		parentContentConsumer.addChild(localFeature);

-

-		// set the verifier

-		IVerifier vr = sourceFeature.getFeatureContentProvider().getVerifier();

-		if (vr != null)

-			vr.setParent(parentVerifier);

-

-		IFeatureReference localFeatureReference = null;

-		localFeatureReference = sourceFeature.install(localFeature, optionalfeatures, verificationListener, monitor);

-

-		return localFeatureReference;

-	}

-

-	/*

-	 * @see ISite#remove(IFeature, IProgressMonitor)

-	 */

-	public void remove(IFeature feature, IProgressMonitor progress) throws CoreException {

-

-		if (feature == null) {

-			UpdateCore.warn("Feature to remove is null");

-			return;

-		}

-

-		ErrorRecoveryLog recoveryLog = ErrorRecoveryLog.getLog();

-

-		// make sure we have an InstallMonitor		

-		InstallMonitor monitor;

-		if (progress == null)

-			monitor = null;

-		else if (progress instanceof InstallMonitor)

-			monitor = (InstallMonitor) progress;

-		else

-			monitor = new InstallMonitor(progress);

-

-		// Setup optional install handler

-		InstallHandlerProxy handler = new InstallHandlerProxy(IInstallHandler.HANDLER_ACTION_UNINSTALL, feature, feature.getInstallHandlerEntry(), monitor);

-		boolean success = false;

-		Throwable originalException = null;

-

-		try {

-

-			// start log

-			recoveryLog.open(ErrorRecoveryLog.START_REMOVE_LOG);

-

-			aboutToRemove(feature);

-

-			// log files have been downloaded

-			recoveryLog.append(ErrorRecoveryLog.END_ABOUT_REMOVE);

-

-			handler.uninstallInitiated();

-

-			// remove the feature and the plugins if they are not used and not activated

-			// get the plugins from the feature

-			IPluginEntry[] pluginsToRemove = getPluginEntriesOnlyReferencedBy(feature);

-

-			if (monitor != null) {

-				monitor.beginTask(Policy.bind("SiteFile.Removing") + feature.getLabel(), pluginsToRemove.length + 1);

-				//$NON-NLS-1$

-			}

-

-			// remove feature reference from the site

-			ISiteFeatureReference[] featureReferences = getFeatureReferences();

-			if (featureReferences != null) {

-				for (int indexRef = 0; indexRef < featureReferences.length; indexRef++) {

-					IFeatureReference element = featureReferences[indexRef];

-					if (element.equals(feature)) {

-						removeFeatureReferenceModel((FeatureReferenceModel) element);

-						break;

-					}

-				}

-			}

-

-			// remove the feature content

-			ContentReference[] references = feature.getFeatureContentProvider().getFeatureEntryArchiveReferences(monitor);

-			for (int i = 0; i < references.length; i++) {

-				try {

-					UpdateManagerUtils.removeFromFileSystem(references[i].asFile());

-					if (monitor != null)

-						monitor.worked(1);

-				} catch (IOException e) {

-					throw Utilities.newCoreException(Policy.bind("SiteFile.CannotRemoveFeature", feature.getVersionedIdentifier().getIdentifier(), getURL().toExternalForm()), e);

-					//$NON-NLS-1$

-				}

-			}

-

-			//finds the contentReferences for an IPluginEntry

-			// and remove it

-			for (int i = 0; i < pluginsToRemove.length; i++) {

-				remove(feature, pluginsToRemove[i], monitor);

-			}

-

-			// remove any children feature

-			IFeatureReference[] childrenRef = feature.getIncludedFeatureReferences();

-			for (int i = 0; i < childrenRef.length; i++) {

-				IFeature childFeature = null;

-				try {

-					childFeature = childrenRef[i].getFeature(null);

-				} catch (CoreException e) {

-					UpdateCore.warn("Unable to retrieve feature to remove for:" + childrenRef[i]);

-				}

-				if (childFeature != null)

-					remove(childrenRef[i].getFeature(null), monitor);

-			}

-

-			handler.completeUninstall();

-

-			success = true;

-		} catch (Throwable t) {

-			originalException = t;

-		} finally {

-			Throwable newException = null;

-			try {

-				if (success) {

-					// close the log

-					recoveryLog.close(ErrorRecoveryLog.END_REMOVE_LOG);

-					recoveryLog.delete();

-				} else {

-					recoveryLog.close(ErrorRecoveryLog.END_REMOVE_LOG);

-				}

-				handler.uninstallCompleted(success);

-			} catch (Throwable t) {

-				newException = t;

-			}

-			if (originalException != null) // original exception wins

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), originalException);

-			//$NON-NLS-1$

-			if (newException != null)

-				throw Utilities.newCoreException(Policy.bind("InstallHandler.error", feature.getLabel()), newException);

-			//$NON-NLS-1$

-		}

-	}

-

-	/**

-	 * returns the download size

-	 * of the feature to be installed on the site.

-	 * If the site is <code>null</code> returns the maximum size

-	 * 

-	 * If one plug-in entry has an unknown size.

-	 * then the download size is unknown.

-	 * 

-	 * @see ISite#getDownloadSize(IFeature)

-	 * 

-	 */

-	public long getDownloadSizeFor(IFeature feature) {

-		long result = 0;

-		IPluginEntry[] entriesToInstall = feature.getPluginEntries();

-		IPluginEntry[] siteEntries = this.getPluginEntries();

-		entriesToInstall = UpdateManagerUtils.diff(entriesToInstall, siteEntries);

-		//[18355]

-		INonPluginEntry[] nonPluginEntriesToInstall = feature.getNonPluginEntries();

-

-		try {

-			result = feature.getFeatureContentProvider().getDownloadSizeFor(entriesToInstall, nonPluginEntriesToInstall);

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-			result = ContentEntryModel.UNKNOWN_SIZE;

-		}

-		return result;

-	}

-

-	/**

-	 * returns the download size

-	 * of the feature to be installed on the site.

-	 * If the site is <code>null</code> returns the maximum size

-	 * 

-	 * If one plug-in entry has an unknown size.

-	 * then the download size is unknown.

-	 * 

-	 * @see ISite#getDownloadSizeFor(IFeature)

-	 * 

-	 */

-	public long getInstallSizeFor(IFeature feature) {

-		long result = 0;

-

-		try {

-			List pluginsToInstall = new ArrayList();

-

-			// get all the plugins [17304]

-			pluginsToInstall.addAll(Arrays.asList(feature.getPluginEntries()));

-			IFeatureReference[] children = feature.getIncludedFeatureReferences();

-			IFeature currentFeature = null;

-			for (int i = 0; i < children.length; i++) {

-				currentFeature = children[i].getFeature(null);

-				if (currentFeature != null) {

-					pluginsToInstall.addAll(Arrays.asList(currentFeature.getPluginEntries()));

-				}

-			}

-

-			IPluginEntry[] entriesToInstall = new IPluginEntry[0];

-			if (pluginsToInstall.size() > 0) {

-				entriesToInstall = new IPluginEntry[pluginsToInstall.size()];

-				pluginsToInstall.toArray(entriesToInstall);

-			}

-

-			IPluginEntry[] siteEntries = this.getPluginEntries();

-			entriesToInstall = UpdateManagerUtils.diff(entriesToInstall, siteEntries);

-

-			//[18355]

-			INonPluginEntry[] nonPluginEntriesToInstall = feature.getNonPluginEntries();

-

-			result = feature.getFeatureContentProvider().getInstallSizeFor(entriesToInstall, nonPluginEntriesToInstall);

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-			result = ContentEntryModel.UNKNOWN_SIZE;

-		}

-

-		return result;

-	}

-

-	/**

-	 * Adds a plugin entry 

-	 * Either from parsing the file system or 

-	 * installing a feature

-	 * 

-	 * We cannot figure out the list of plugins by reading the Site.xml as

-	 * the archives tag are optionals

-	 */

-	public void addPluginEntry(IPluginEntry pluginEntry) {

-		pluginEntries.add(pluginEntry);

-	}

-

-	/**

-	 * @see IPluginContainer#getPluginEntries()

-	 */

-	public IPluginEntry[] getPluginEntries() {

-		IPluginEntry[] result = new IPluginEntry[0];

-		if (!(pluginEntries == null || pluginEntries.isEmpty())) {

-			result = new IPluginEntry[pluginEntries.size()];

-			pluginEntries.toArray(result);

-		}

-		return result;

-	}

-

-	/**

-	 * @see IPluginContainer#getPluginEntryCount()

-	 */

-	public int getPluginEntryCount() {

-		return getPluginEntries().length;

-	}

-

-	/**

-	 * 

-	 */

-	private IFeature createExecutableFeature(IFeature sourceFeature) throws CoreException {

-		IFeature result = null;

-		IFeatureFactory factory = FeatureTypeFactory.getInstance().getFactory(DEFAULT_INSTALLED_FEATURE_TYPE);

-		result = factory.createFeature(/*URL*/null, this, null);

-

-		// at least set the version identifier to be the same

-		 ((FeatureModel) result).setFeatureIdentifier(sourceFeature.getVersionedIdentifier().getIdentifier());

-		((FeatureModel) result).setFeatureVersion(sourceFeature.getVersionedIdentifier().getVersion().toString());

-		return result;

-	}

-

-	/**

-	 * 

-	 */

-	private void remove(IFeature feature, IPluginEntry pluginEntry, InstallMonitor monitor) throws CoreException {

-

-		if (pluginEntry == null)

-			return;

-

-		ContentReference[] references = feature.getFeatureContentProvider().getPluginEntryArchiveReferences(pluginEntry, monitor);

-		for (int i = 0; i < references.length; i++) {

-			try {

-				UpdateManagerUtils.removeFromFileSystem(references[i].asFile());

-				if (monitor != null)

-					monitor.worked(1);

-			} catch (IOException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteFile.CannotRemovePlugin", pluginEntry.getVersionedIdentifier().toString(), getURL().toExternalForm()), e);

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private void aboutToRemove(IFeature feature) throws CoreException {

-

-		ErrorRecoveryLog recoveryLog = ErrorRecoveryLog.getLog();

-		// if the recovery is not turned on

-		if (!ErrorRecoveryLog.RECOVERY_ON)

-			return;

-

-		//logFeature

-		if (feature != null) {

-					

-			// log feature URL

-			ContentReference[] references = feature.getFeatureContentProvider().getFeatureEntryArchiveReferences(null);

-			for (int i = 0; i < references.length; i++) {

-				try {

-					recoveryLog.appendPath(ErrorRecoveryLog.FEATURE_ENTRY, references[i].asFile().getAbsolutePath());

-				} catch (IOException e) {

-					String id = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-					throw Utilities.newCoreException(Policy.bind("SiteFile.CannotRemoveFeature", feature.getVersionedIdentifier().getIdentifier(), getURL().toExternalForm()), e);

-					//$NON-NLS-1$

-				}

-			}

-			// log pluginEntry URL

-			IPluginEntry[] pluginsToRemove = getPluginEntriesOnlyReferencedBy(feature);

-			IPluginEntry pluginEntry;

-			for (int i = 0; i < pluginsToRemove.length; i++) {

-				pluginEntry = pluginsToRemove[i];

-

-				references = feature.getFeatureContentProvider().getPluginEntryArchiveReferences(pluginEntry, null);

-				for (int j = 0; j < references.length; j++) {

-					try {

-						String entry = null;

-						if (pluginEntry.isFragment())

-							entry = ErrorRecoveryLog.FRAGMENT_ENTRY;

-						else

-							entry = ErrorRecoveryLog.PLUGIN_ENTRY;

-						recoveryLog.appendPath(entry, references[j].asFile().getAbsolutePath());

-					} catch (IOException e) {

-						throw Utilities.newCoreException(Policy.bind("SiteFile.CannotRemovePlugin", pluginEntry.getVersionedIdentifier().toString(), getURL().toExternalForm()), e);

-						//$NON-NLS-1$

-					}

-				}

-			}

-		}

-

-		// call recursively for each children	 

-		IFeatureReference[] childrenRef = feature.getIncludedFeatureReferences();

-		IFeature childFeature = null;

-		for (int i = 0; i < childrenRef.length; i++) {

-			try {

-				childFeature = childrenRef[i].getFeature(null);

-			} catch (CoreException e) {

-				UpdateCore.warn("Unable to retrieve feature to remove for:" + childrenRef[i]);

-			}

-			aboutToRemove(childFeature);

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentConsumer.java
deleted file mode 100644
index 34c3464..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentConsumer.java
+++ /dev/null
@@ -1,297 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.ArchiveReferenceModel;

-

-/**

- * ContentConsummer for a SiteFile

- */

-public class SiteFileContentConsumer extends SiteContentConsumer {

-

-	private String path;

-	private IFeature feature;

-	private boolean closed = false;

-

-	// recovery

-	private String oldPath;

-	private String newPath;

-

-	//  for abort

-	private List /* of SiteFilePluginContentConsumer */

-	contentConsumers;

-	private List /*of path as String */

-	installedFiles;

-	

-	// PERF: new instance variable

-	private SiteFileFactory archiveFactory = new SiteFileFactory();

-

-	/*

-	 * Constructor 

-	 */

-	public SiteFileContentConsumer(IFeature feature) {

-		this.feature = feature;

-		installedFiles = new ArrayList();

-	}

-

-	/*

-	 * Returns the path in which the Feature will be installed

-	 */

-	private String getFeaturePath() throws CoreException {

-		String featurePath = null;

-		try {

-			VersionedIdentifier featureIdentifier = feature.getVersionedIdentifier();

-			String path = Site.DEFAULT_INSTALLED_FEATURE_PATH + featureIdentifier.toString() + File.separator;

-			URL newURL = new URL(getSite().getURL(), path);

-			featurePath = newURL.getFile();

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileContentConsumer.UnableToCreateURL") + e.getMessage(), e);

-			//$NON-NLS-1$

-		}

-		return featurePath;

-	}

-

-	/*

-	 * @see ISiteContentConsumer#open(INonPluginEntry)

-	 */

-	public IContentConsumer open(INonPluginEntry nonPluginEntry) throws CoreException {

-		return new SiteFileNonPluginContentConsumer(getFeaturePath());

-	}

-

-	/*

-	 * @see ISiteContentConsumer#open(IPluginEntry)

-	 */

-	public IContentConsumer open(IPluginEntry pluginEntry) throws CoreException {

-		SiteFilePluginContentConsumer cons = new SiteFilePluginContentConsumer(pluginEntry, getSite());

-		addContentConsumers(cons);

-		return cons;

-	}

-

-	/*

-	 * @see ISiteContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException {

-

-		if (closed) {

-			UpdateCore.warn("Attempt to store in a closed SiteFileContentConsumer", new Exception());

-			return;

-		}

-

-		InputStream inStream = null;

-		String featurePath = getFeaturePath();

-		String contentKey = contentReference.getIdentifier();

-		featurePath += contentKey;

-

-		// error recovery

-		if (featurePath.endsWith("\\"+Feature.FEATURE_XML) || featurePath.endsWith("/"+Feature.FEATURE_XML)) {

-			oldPath = featurePath.replace(File.separatorChar, '/');

-			File localFile = new File(oldPath);

-			if (localFile.exists()) {

-				throw Utilities.newCoreException(Policy.bind("UpdateManagerUtils.FileAlreadyExists", new Object[] { localFile }), null);

-			}

-			featurePath = ErrorRecoveryLog.getLocalRandomIdentifier(featurePath);

-			newPath = featurePath;

-			ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.FEATURE_ENTRY, featurePath);

-		}

-

-		try {

-			inStream = contentReference.getInputStream();

-			UpdateManagerUtils.copyToLocal(inStream, featurePath, null);

-			UpdateManagerUtils.checkPermissions(contentReference, featurePath); // 20305

-			installedFiles.add(featurePath);

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("GlobalConsumer.ErrorCreatingFile", featurePath), e);

-			//$NON-NLS-1$

-		} finally {

-			if (inStream != null) {

-				try {

-					// close stream

-					inStream.close();

-				} catch (IOException e) {

-				}

-			}

-		}

-

-	}

-

-	/*

-	 * @see ISiteContentConsumer#close()

-	 */

-	public IFeatureReference close() throws CoreException {

-

-		if (closed)

-			UpdateCore.warn("Attempt to close a closed SiteFileContentConsumer", new Exception());

-

-		// create a new Feature reference to be added to the site

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(getSite());

-		File file = null;

-

-		try {

-			file = new File(getFeaturePath());

-			ref.setURL(file.toURL());

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileContentConsumer.UnableToCreateURLForFile", file.getAbsolutePath()), e);

-			//$NON-NLS-1$

-		}

-

-		//rename file back 

-		if (newPath != null) {

-			ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.RENAME_ENTRY, newPath);

-			boolean sucess = false;

-			File fileToRename = new File(newPath);

-			if (fileToRename.exists()) {

-				File renamedFile = new File(oldPath);

-				if (renamedFile.exists()) {

-					UpdateManagerUtils.removeFromFileSystem(renamedFile);

-					UpdateCore.warn("Removing already existing file:" + oldPath);

-				}

-				sucess = fileToRename.renameTo(renamedFile);

-			}

-			if (!sucess) {

-				String msg = Policy.bind("ContentConsumer.UnableToRename", newPath, oldPath);

-				throw Utilities.newCoreException(msg, new Exception(msg));

-			}

-		}

-

-		// close plugin and non plugin content consumer

-		if (contentConsumers != null) {

-			Iterator iter = contentConsumers.iterator();

-			while (iter.hasNext()) {

-				ContentConsumer element = (ContentConsumer) iter.next();

-				element.close();

-			}

-		}

-		contentConsumers = null;

-

-		if (ref != null) {

-			// the feature MUST have renamed the plugins at that point

-			// (by closing the PluginContentConsumer)

-			commitPlugins(ref);

-			ref.markReadOnly();

-		}

-

-		closed = true;

-		return ref;

-	}

-

-	/*

-	 * @see ISiteContentConsumer#abort()

-	 */

-	public void abort() throws CoreException {

-

-		if (closed) {

-			UpdateCore.warn("Attempt to abort a closed SiteFileContentConsumer", new Exception());

-			return;

-		}

-

-		//abort all plugins content consumer opened

-		if (contentConsumers != null) {

-			Iterator iter = contentConsumers.iterator();

-			while (iter.hasNext()) {

-				SiteFilePluginContentConsumer element = (SiteFilePluginContentConsumer) iter.next();

-				element.abort();

-			}

-		}

-		contentConsumers = null;

-		boolean sucess = true;

-

-		//Remove feature.xml first if it exists

-		if (oldPath != null) {

-			ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.DELETE_ENTRY, oldPath);

-			File fileToDelete = new File(oldPath);

-			if (fileToDelete.exists()) {

-				sucess = fileToDelete.delete();

-			}

-		}

-

-		if (!sucess) {

-			String msg = Policy.bind("Unable to delete", oldPath);

-			UpdateCore.log(msg, null);

-		} else {

-			// remove the feature files;

-			Iterator iter = installedFiles.iterator();

-			File featureFile = null;

-			while (iter.hasNext()) {

-				String path = (String) iter.next();

-				featureFile = new File(path);

-				UpdateManagerUtils.removeFromFileSystem(featureFile);

-			}

-

-			// remove the feature directory if empty

-			String featurePath = getFeaturePath();

-			UpdateManagerUtils.removeEmptyDirectoriesFromFileSystem(new File(featurePath));

-		}

-		closed = true;

-		return;

-	}

-

-	/*

-	 * commit the plugins installed as archive on the site

-	 * (creates the map between the plugin id and the location of the plugin)

-	 */

-	private void commitPlugins(IFeatureReference localFeatureReference) throws CoreException {

-	

-		// get the feature

-		 ((SiteFile) getSite()).addFeatureReferenceModel((SiteFeatureReferenceModel) localFeatureReference);

-		IFeature localFeature = null;

-		try {

-			localFeature = localFeatureReference.getFeature(null);

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-			return;

-		}

-	

-		if (localFeature == null)

-			return;

-	

-		// add the installed plugins directories as archives entry

-		ArchiveReferenceModel archive = null;

-		IPluginEntry[] pluginEntries = localFeature.getPluginEntries();

-		for (int i = 0; i < pluginEntries.length; i++) {

-			String versionId = pluginEntries[i].getVersionedIdentifier().toString();

-			String pluginID = Site.DEFAULT_PLUGIN_PATH + versionId + FeaturePackagedContentProvider.JAR_EXTENSION;

-			archive = archiveFactory.createArchiveReferenceModel();

-			archive.setPath(pluginID);

-			try {

-				URL url = new URL(getSite().getURL(), Site.DEFAULT_PLUGIN_PATH + versionId + File.separator);

-				archive.setURLString(url.toExternalForm());

-				archive.resolve(url, null);

-				((SiteFile) getSite()).addArchiveReferenceModel(archive);

-			} catch (MalformedURLException e) {

-	

-				String urlString = (getSite().getURL() != null) ? getSite().getURL().toExternalForm() : "";

-				//$NON-NLS-1$

-				urlString += Site.DEFAULT_PLUGIN_PATH + pluginEntries[i].toString();

-				throw Utilities.newCoreException(Policy.bind("SiteFile.UnableToCreateURL", urlString), e);

-				//$NON-NLS-1$

-			}

-		}

-		return;

-	}

-

-	/*

-	 * Adds a SiteFilePluginContentConsumer to the list

-	 */

-	private void addContentConsumers(ContentConsumer cons) {

-		if (contentConsumers == null)

-			contentConsumers = new ArrayList();

-		contentConsumers.add(cons);

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentProvider.java
deleted file mode 100644
index 51db025..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileContentProvider.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-

-/**

- * Site on the File System

- */

-public class SiteFileContentProvider extends SiteContentProvider {

-	

-	private String path;

-	

-	public static final String SITE_TYPE = "org.eclipse.update.core.file";	 //$NON-NLS-1$

-

-	/**

-	 * Constructor for FileSite

-	 */

-	public SiteFileContentProvider(URL url) {

-		super(url);

-	}

-

-	

-	

-	/**

- 	 * move into contentSelector, comment to provider and consumer (SiteFile)

- 	 */

-	private String getFeaturePath(VersionedIdentifier featureIdentifier) {

-		String path = getURL().getFile();

-		String featurePath = path + Site.DEFAULT_INSTALLED_FEATURE_PATH + featureIdentifier.toString();

-		return featurePath;

-	}

-

-			

-	/*

-	 * @see ISiteContentProvider#getArchiveReference(String)

-	 */

-	public URL getArchiveReference(String archiveId)  throws CoreException {

-		URL contentURL = null;

-		

-		contentURL = getArchiveURLfor(archiveId);

-		// if there is no mapping in the site.xml

-		// for this archiveId, use the default one

-		if (contentURL==null) {

-			return super.getArchiveReference(archiveId);

-		}

-		

-		return contentURL;

-	}

-

-	/**

-	 * return the URL associated with the id of the archive for this site

-	 * return null if the archiveId is null, empty or 

-	 * if teh list of archives on the site is null or empty

-	 * of if there is no URL associated with the archiveID for this site

-	 */

-	private URL getArchiveURLfor(String archiveId) {

-		URL result = null;

-		boolean found = false;

-

-		IArchiveReference[] siteArchives = getSite().getArchives();

-		if (siteArchives.length > 0) {

-			for (int i = 0; i < siteArchives.length && !found; i++) {

-				if (archiveId.trim().equalsIgnoreCase(siteArchives[i].getPath())) {

-					result = siteArchives[i].getURL();

-					found = true;

-					break;

-				}

-			}

-		}

-		return result;

-	}

-}

-

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileFactory.java
deleted file mode 100644
index d74cf6c..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileFactory.java
+++ /dev/null
@@ -1,356 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.model.*;

-import org.xml.sax.SAXException;

-

-public class SiteFileFactory extends BaseSiteFactory {

-

-	// private when parsing file system

-	private SiteFile site;

-

-

-	/*

-	 * @see ISiteFactory#createSite(URL,boolean)

-	 */

-	public ISite createSite(URL url) throws CoreException, InvalidSiteTypeException {

-	

-		Site site = null;

-		InputStream siteStream = null;

-		SiteModelFactory factory = (SiteModelFactory) this;

-	

-		try {

-			// if url points to a directory

-			// attempt to parse site.xml

-			String path = url.getFile();

-			File siteLocation = new File(path);

-			if (siteLocation.isDirectory()) {

-				path = siteLocation.getAbsolutePath().replace(File.separatorChar, '/');

-				if (!path.endsWith("/"))

-					path += "/";

-				url = new URL("file:" + path); //$NON-NLS-1$

-	

-				if (new File(siteLocation, Site.SITE_XML).exists()) {

-					siteStream = new FileInputStream(new File(siteLocation, Site.SITE_XML));

-					site = (Site) factory.parseSite(siteStream);

-				} else {

-					// parse siteLocation

-					site = parseSite(siteLocation);

-				}

-			} else {

-				// we are not pointing to a directory

-				// attempt to parse the file

-				try {

-					URL resolvedURL = URLEncoder.encode(url);

-					siteStream = openStream(resolvedURL);

-					site = (Site) factory.parseSite(siteStream);

-				} catch (IOException e) {

-	

-					// attempt to parse parent directory

-					File file = new File(url.getFile());

-					File parentDirectory = file.getParentFile();

-	

-					// do not create directory if it doesn't exist	[18318]

-					// instead hrow error					

-					if (parentDirectory != null && !parentDirectory.exists())

-						throw Utilities.newCoreException(Policy.bind("SiteFileFactory.DirectoryDoesNotExist", file.getAbsolutePath()), null);

-					//$NON-NLS-1$

-	

-					if (parentDirectory == null || !parentDirectory.isDirectory())

-						throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToObtainParentDirectory", file.getAbsolutePath()), null);

-					//$NON-NLS-1$

-	

-					site = parseSite(parentDirectory);

-	

-				}

-			}

-	

-			SiteContentProvider contentProvider = new SiteFileContentProvider(url);

-			site.setSiteContentProvider(contentProvider);

-			contentProvider.setSite(site);

-			site.resolve(url, url);

-	

-			// Do not set read only as may install in it

-			//site.markReadOnly();

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToCreateURL", url == null ? "" : url.toExternalForm()), e);

-			//$NON-NLS-1$

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToAccessSite"),ISite.SITE_ACCESS_EXCEPTION, e);//$NON-NLS-1$

-		} finally {

-			try {

-				if (siteStream != null)

-					siteStream.close();

-			} catch (IOException e) {

-			}

-		}

-		return site;

-	}

-	/**

-	 * Method parseSite.

-	 */

-	private Site parseSite(File directory) throws CoreException {

-

-		this.site = (SiteFile) createSiteMapModel();

-

-		if (!directory.exists())

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.FileDoesNotExist", directory.getAbsolutePath()), null);

-		//$NON-NLS-1$

-

-		File pluginPath = new File(directory, Site.DEFAULT_PLUGIN_PATH);

-

-		//PACKAGED

-		parsePackagedFeature(directory); // in case it contains JAR files

-

-		parsePackagedPlugins(pluginPath);

-

-		// INSTALLED	

-		parseInstalledFeature(directory);

-

-		parseInstalledPlugin(pluginPath);

-

-		return (Site) site;

-

-	}

-

-	/**

-	 * Method parseFeature.

-	 * @throws CoreException

-	 */

-	private void parseInstalledFeature(File directory) throws CoreException {

-

-		File featureDir = new File(directory, Site.DEFAULT_INSTALLED_FEATURE_PATH);

-		if (featureDir.exists()) {

-			String[] dir;

-			SiteFeatureReferenceModel featureRef;

-			URL featureURL;

-			File currentFeatureDir;

-			String newFilePath = null;

-

-			try {

-				// handle the installed featuresConfigured under featuresConfigured subdirectory

-				dir = featureDir.list();

-				for (int index = 0; index < dir.length; index++) {

-

-					// the URL must ends with '/' for the bundle to be resolved

-					newFilePath = dir[index] + (dir[index].endsWith("/") ? "/" : "");

-					currentFeatureDir = new File(featureDir, newFilePath);

-					// check if feature.xml exists

-					File featureXMLFile = new File(currentFeatureDir, Feature.FEATURE_XML);

-					if (!featureXMLFile.exists()) {

-						UpdateCore.warn("Unable to find feature.xml in directory:" + currentFeatureDir);

-					} else {

-						// PERF: remove code

-						//SiteFileFactory archiveFactory = new SiteFileFactory();

-						featureURL = currentFeatureDir.toURL();

-						featureRef = createFeatureReferenceModel();

-						featureRef.setSiteModel(site);

-						featureRef.setURLString(featureURL.toExternalForm());

-						featureRef.setType(ISite.DEFAULT_INSTALLED_FEATURE_TYPE);

-						((Site) site).addFeatureReferenceModel(featureRef);

-					}

-				}

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToCreateURLForFile", newFilePath), e);

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/**

-	* Method parseFeature.

-	* @throws CoreException

-	*/

-	private void parsePackagedFeature(File directory) throws CoreException {

-

-		// FEATURES

-		File featureDir = new File(directory, Site.DEFAULT_FEATURE_PATH);

-		if (featureDir.exists()) {

-			String[] dir;

-			SiteFeatureReferenceModel featureRef;

-			URL featureURL;

-			File currentFeatureFile;

-			String newFilePath = null;

-

-			try {

-				// only list JAR files

-				dir = featureDir.list(FeaturePackagedContentProvider.filter);

-				for (int index = 0; index < dir.length; index++) {

-

-					// check if the JAR file contains a feature.xml

-					currentFeatureFile = new File(featureDir, dir[index]);

-					JarContentReference ref = new JarContentReference("", currentFeatureFile);

-					ContentReference result = null;

-					try {

-						result = ref.peek(Feature.FEATURE_XML, null, null);

-					} catch (IOException e) {

-						UpdateCore.warn("Exception retrieving feature.xml in file:" + currentFeatureFile, e);

-					};

-					if (result == null) {

-						UpdateCore.warn("Unable to find feature.xml in file:" + currentFeatureFile);

-					} else {

-						featureURL = currentFeatureFile.toURL();

-						// PERF: remove code

-						//SiteFileFactory archiveFactory = new SiteFileFactory();

-						featureRef = createFeatureReferenceModel();

-						featureRef.setSiteModel(site);

-						featureRef.setURLString(featureURL.toExternalForm());

-						featureRef.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);

-						site.addFeatureReferenceModel(featureRef);

-					}

-				}

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToCreateURLForFile", newFilePath), e);

-				//$NON-NLS-1$

-			}

-		}

-	}

-

-	/**

-	 * Method parsePlugins.

-	 * 

-	 * look into each plugin/fragment directory, crack the plugin.xml open (or fragment.xml ???)

-	 * get id and version, calculate URL...	

-	 * 

-	 * @return VersionedIdentifier

-	 * @throws CoreException

-	 */

-	private void parseInstalledPlugin(File dir) throws CoreException {

-		File pluginFile = null;

-

-		try {

-			if (dir.exists() && dir.isDirectory()) {

-				File[] files = dir.listFiles();

-				DefaultPluginParser parser = new DefaultPluginParser();

-				for (int i = 0; i < files.length; i++) {

-					if (files[i].isDirectory()) {

-

-						if (!(pluginFile = new File(files[i], "plugin.xml")).exists()) { //$NON-NLS-1$

-							pluginFile = new File(files[i], "fragment.xml"); //$NON-NLS-1$

-						}

-

-						if (pluginFile != null && pluginFile.exists() && !pluginFile.isDirectory()) {

-							PluginEntry entry = parser.parse(new FileInputStream(pluginFile));

-							addParsedPlugin(entry,files[i]);

-						}

-					} // files[i] is a directory

-				}

-			} // path is a directory

-		} catch (IOException e) {

-			String pluginFileString = (pluginFile == null) ? null : pluginFile.getAbsolutePath();

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.ErrorAccessing", pluginFileString), e);

-			//$NON-NLS-1$

-		} catch (SAXException e) {

-			String pluginFileString = (pluginFile == null) ? null : pluginFile.getAbsolutePath();

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.ErrorParsingFile", pluginFileString), e);

-			//$NON-NLS-1$

-		}

-

-	}

-

-	/**

-	 * tranform each Plugin and Fragment into an ArchiveReferenceModel

-	 * and a PluginEntry for the Site	 

-	 */

-	// PERF: removed intermediate Plugin object

-	private void addParsedPlugin(PluginEntry entry,File file) throws CoreException {

-

-		String location = null;

-		try {

-			if (entry != null) {

-

-				// create the plugin Entry

-				((Site) site).addPluginEntry(entry);

-

-				// Create the Site mapping ArchiveRef->PluginEntry

-				// the id of the archiveRef is plugins\<pluginid>_<ver>.jar as per the specs

-				// PERF: remove code

-				//SiteFileFactory archiveFactory = new SiteFileFactory();				

-				ArchiveReferenceModel archive = createArchiveReferenceModel();

-				String id = (entry.getVersionedIdentifier().toString());

-				String pluginID = Site.DEFAULT_PLUGIN_PATH + id + FeaturePackagedContentProvider.JAR_EXTENSION;

-				archive.setPath(pluginID);

-				location = file.toURL().toExternalForm();

-				archive.setURLString(location);

-				((Site) site).addArchiveReferenceModel(archive);

-

-				// TRACE				

-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {

-					UpdateCore.debug("Added archive to site:" + pluginID + " pointing to: " + location);

-				}

-			}

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.UnableToCreateURLForFile", location), e);

-			//$NON-NLS-1$

-		}

-	}

-

-	/**

-	 * 

-	 */

-	private void parsePackagedPlugins(File pluginDir) throws CoreException {

-

-		File file = null;

-		String[] dir;

-

-		ContentReference ref = null;

-		String refString = null;

-

-		try {

-			if (pluginDir.exists()) {

-				dir = pluginDir.list(FeaturePackagedContentProvider.filter);

-				for (int i = 0; i < dir.length; i++) {

-					file = new File(pluginDir, dir[i]);

-					JarContentReference jarReference = new JarContentReference(null, file);

-					ref = jarReference.peek("plugin.xml", null, null); //$NON-NLS-1$

-					if (ref == null)

-						jarReference.peek("fragment.xml", null, null); //$NON-NLS-1$

-

-					refString = (ref == null) ? null : ref.asURL().toExternalForm();

-

-					if (ref != null) {

-						PluginEntry entry = new DefaultPluginParser().parse(ref.getInputStream());

-						addParsedPlugin(entry,file);

-					} //ref!=null

-				} //for

-			}

-

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.ErrorAccessing", refString), e);

-			//$NON-NLS-1$

-		} catch (SAXException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteFileFactory.ErrorParsingFile", refString), e);

-			//$NON-NLS-1$

-		}

-	}

-

-	/*

-	 * @see SiteModelFactory#createSiteMapModel()

-	 */

-	public SiteModel createSiteMapModel() {

-		return new SiteFile();

-	}

-

-	/*

-	 * @see SiteModelFactory#canParseSiteType(String)

-	 */

-	public boolean canParseSiteType(String type) {

-		return (super.canParseSiteType(type) || SiteFileContentProvider.SITE_TYPE.equalsIgnoreCase(type));

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileNonPluginContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileNonPluginContentConsumer.java
deleted file mode 100644
index 4efea42..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFileNonPluginContentConsumer.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.*;

-

-/**

- * Plugin Content Consumer on a Site

- */

-public class SiteFileNonPluginContentConsumer extends ContentConsumer {

-

-	private String path;

-	private boolean closed = false;

-

-	/*

-	 * Constructor 

-	 */

-	public SiteFileNonPluginContentConsumer(String featurePath) {

-		this.path = featurePath;

-	}

-

-	/*

-	 * @see ISiteContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException {

-

-		if (closed) {

-			UpdateCore.warn("Attempt to store in a closed SiteFileNonPluginContentConsumer", new Exception());

-			return;

-		}

-

-		InputStream inStream = null;

-		String featurePath = path;

-		String contentKey = contentReference.getIdentifier();

-		featurePath += contentKey;

-		try {

-			inStream = contentReference.getInputStream();

-			UpdateManagerUtils.copyToLocal(inStream, featurePath, null);

-			UpdateManagerUtils.checkPermissions(contentReference, featurePath); // 20305

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("GlobalConsumer.ErrorCreatingFile", featurePath), e); //$NON-NLS-1$

-		} finally {

-			if (inStream != null) {

-				try {

-					// close stream

-					inStream.close();

-				} catch (IOException e) {

-				}

-			}

-		}

-

-	}

-

-	/*

-	 * @see ISiteContentConsumer#close()

-	 */

-	public void close() {

-		if (closed) {

-			UpdateCore.warn("Attempt to close a closed SiteFileNonPluginContentConsumer", new Exception());

-			return;

-		}

-		closed = true;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFilePluginContentConsumer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFilePluginContentConsumer.java
deleted file mode 100644
index 1f54f54..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteFilePluginContentConsumer.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.*;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.core.*;

-

-/**

- * Plugin Content Consumer on a Site

- */

-public class SiteFilePluginContentConsumer extends ContentConsumer {

-

-	private IPluginEntry pluginEntry;

-	private ISite site;

-	private boolean closed = false;

-

-	// recovery

-	private String oldPath;

-	private String newPath;

-

-	// for abort

-	private List /*of path as String */

-	installedFiles;

-

-	/*

-	 * Constructor

-	 */

-	public SiteFilePluginContentConsumer(IPluginEntry pluginEntry, ISite site) {

-		this.pluginEntry = pluginEntry;

-		this.site = site;

-		installedFiles = new ArrayList();

-	}

-

-	/*

-	 * @see ISiteContentConsumer#store(ContentReference, IProgressMonitor)

-	 */

-	public void store(ContentReference contentReference, IProgressMonitor monitor) throws CoreException {

-		InputStream inStream = null;

-		String pluginPath = null;

-

-		if (closed) {

-			UpdateCore.warn("Attempt to store in a closed SiteFilePluginContentConsumer", new Exception());

-			return;

-		}

-

-		try {

-			URL newURL = new URL(site.getURL(), Site.DEFAULT_PLUGIN_PATH + pluginEntry.getVersionedIdentifier().toString());

-			pluginPath = newURL.getFile(); 

-			String contentKey = contentReference.getIdentifier();

-			inStream = contentReference.getInputStream();

-			pluginPath += pluginPath.endsWith(File.separator) ? contentKey : File.separator + contentKey;

-

-			// error recovery

-			if (pluginPath.endsWith("\\plugin.xml") || pluginPath.endsWith("/plugin.xml")) {

-				oldPath = pluginPath.replace(File.separatorChar, '/');

-				File localFile = new File(oldPath);

-				if (localFile.exists()) {

-					throw Utilities.newCoreException(Policy.bind("UpdateManagerUtils.FileAlreadyExists", new Object[] { localFile }), null);

-				}

-				pluginPath = ErrorRecoveryLog.getLocalRandomIdentifier(pluginPath);

-				newPath = pluginPath;

-				ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.PLUGIN_ENTRY, pluginPath);

-			}

-			if (pluginPath.endsWith("\\fragment.xml") || pluginPath.endsWith("/fragment.xml")) {

-				oldPath = pluginPath.replace(File.separatorChar, '/');

-				File localFile = new File(oldPath);

-				if (localFile.exists()) {

-					throw Utilities.newCoreException(Policy.bind("UpdateManagerUtils.FileAlreadyExists", new Object[] { localFile }), null);

-				}

-				pluginPath = ErrorRecoveryLog.getLocalRandomIdentifier(pluginPath);

-				newPath = pluginPath;

-				ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.FRAGMENT_ENTRY, pluginPath);

-			}

-			UpdateManagerUtils.copyToLocal(inStream, pluginPath, null);

-			UpdateManagerUtils.checkPermissions(contentReference, pluginPath); // 20305

-			installedFiles.add(pluginPath);

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("GlobalConsumer.ErrorCreatingFile", pluginPath), e);

-			//$NON-NLS-1$

-		} finally {

-			if (inStream != null) {

-				try {

-					// close stream

-					inStream.close();

-				} catch (IOException e) {

-				}

-			}

-		}

-	}

-

-	/*

-	 * @see ISiteContentConsumer#close() 

-	 */

-	public void close() throws CoreException {

-

-		if (closed) {

-			UpdateCore.warn("Attempt to close a closed SiteFilePluginContentConsumer", new Exception());

-			return;

-		}

-

-		if (newPath != null) {

-			// rename file 

-			ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.RENAME_ENTRY, newPath);

-			File fileToRename = new File(newPath);

-			boolean sucess = false;

-			if (fileToRename.exists()) {

-				File renamedFile = new File(oldPath);

-				sucess = fileToRename.renameTo(renamedFile);

-			}

-			if (!sucess) {

-				String msg = Policy.bind("ContentConsumer.UnableToRename", newPath, oldPath);

-				throw Utilities.newCoreException(msg, new Exception(msg));

-			}

-		}

-

-		if (site instanceof SiteFile)

-			 ((SiteFile) site).addPluginEntry(pluginEntry);

-		closed = true;

-	}

-

-	/*

-	 * 

-	 */

-	public void abort() throws CoreException {

-

-		if (closed) {

-			UpdateCore.warn("Attempt to abort a closed SiteFilePluginContentConsumer", new Exception());

-			return;

-		}

-

-		boolean sucess = true;

-

-		// delete plugin.xml first

-		if (oldPath != null) {

-			ErrorRecoveryLog.getLog().appendPath(ErrorRecoveryLog.DELETE_ENTRY, oldPath);

-			File fileToRemove = new File(oldPath);

-

-			if (fileToRemove.exists()) {

-				sucess = fileToRemove.delete();

-			}

-		}

-

-		if (!sucess) {

-			String msg = Policy.bind("Unable to delete", oldPath);

-			UpdateCore.log(msg, null);

-		} else {

-			// remove the plugin files;

-			Iterator iter = installedFiles.iterator();

-			File featureFile = null;

-			while (iter.hasNext()) {

-				String path = (String) iter.next();

-				featureFile = new File(path);

-				UpdateManagerUtils.removeFromFileSystem(featureFile);

-			}

-

-			// remove the plugin directory if empty

-			try {

-				URL newURL = new URL(site.getURL(), Site.DEFAULT_PLUGIN_PATH + pluginEntry.getVersionedIdentifier().toString());

-				String pluginPath = newURL.getFile();

-				UpdateManagerUtils.removeEmptyDirectoriesFromFileSystem(new File(pluginPath));

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(e.getMessage(), e);

-			}

-		}

-		closed = true;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteLocal.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteLocal.java
deleted file mode 100644
index 7b99e8a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteLocal.java
+++ /dev/null
@@ -1,768 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.*;

-import java.util.*;

-

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.IFeature;

-import org.eclipse.update.core.Utilities;

-import org.eclipse.update.internal.model.*;

-import org.xml.sax.SAXException;

-

-/**

- * This class manages the configurations.

- */

-

-public class SiteLocal extends SiteLocalModel implements ILocalSite, IWritable {

-

-	private ListenersList listeners = new ListenersList();

-	private SiteReconciler reconciler;

-	private SiteStatusAnalyzer siteStatusAnalyzer;

-	private boolean isTransient = false;

-

-	private static final String UPDATE_STATE_SUFFIX = ".metadata";

-

-	/*

-	 * Have new features been found during reconciliation

-	 */

-	public static boolean newFeaturesFound = false;

-

-	/*

-	 * initialize the configurations from the persistent model.

-	 * Set the reconciliation as non optimistic

-	 */

-	public static ILocalSite getLocalSite() throws CoreException {

-		return internalGetLocalSite(false);

-	}

-

-	/*

-	 *Internal call is reconciliation needs to be optimistic

-	 */

-	public static ILocalSite internalGetLocalSite(boolean isOptimistic) throws CoreException {

-	

-		SiteLocal localSite = new SiteLocal();

-	

-		// obtain platform configuration

-		IPlatformConfiguration currentPlatformConfiguration = BootLoader.getCurrentPlatformConfiguration();

-		localSite.isTransient(currentPlatformConfiguration.isTransient());

-	

-		try {

-			// obtain LocalSite.xml location

-			URL location;

-			try {

-				location = getUpdateStateLocation(currentPlatformConfiguration);

-			} catch (IOException exception) {

-				throw Utilities.newCoreException(Policy.bind(Policy.bind("SiteLocal.UnableToRetrieveRWArea")),

-				//$NON-NLS-1$

-				exception);

-			}

-			URL configXML = UpdateManagerUtils.getURL(location, SITE_LOCAL_FILE, null);

-			localSite.setLocationURLString(configXML.toExternalForm());

-			localSite.resolve(configXML, null);

-	

-			// Attempt to read previous state

-			// if reconcile or recover happens (erro reading state), it returns false

-			boolean hasRecoveredState = parseLocalSiteFile(localSite, configXML);

-	

-			if (hasRecoveredState) {

-				// check if we have to reconcile, if the timestamp has changed

-				long bootStamp = currentPlatformConfiguration.getChangeStamp();

-				if (localSite.getStamp() != bootStamp) {

-					UpdateCore.warn("Reconcile platform stamp:" + bootStamp + " is different from LocalSite stamp:" + localSite.getStamp()); //$NON-NLS-1$ //$NON-NLS-2$

-					newFeaturesFound = localSite.reconcile(isOptimistic);

-				} else {

-					// no reconciliation, preserve the list of plugins from the platform anyway

-					localSite.preserveRuntimePluginPath();

-				}

-			} else {

-				// If we are coming up without any state

-				// force optimistic reconciliation to recover working state

-				newFeaturesFound = localSite.reconcile(true);

-			}

-		} catch (MalformedURLException exception) {

-			throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToCreateURLFor", localSite.getLocationURLString() + " & " + SITE_LOCAL_FILE), exception); //$NON-NLS-1$ //$NON-NLS-2$

-		}

-	

-		return localSite;

-	}

-

-	/**

-	 * Create the localSite object either by parsing, recovering from the file system, or reconciling with the platform configuration

-	 * returns true if we successfully recovered our state.

-	 * If we haven't, the caller will force a full optimistic reconciliation

-	 */

-	private static boolean parseLocalSiteFile(SiteLocal localSite, URL configXML) throws CoreException, MalformedURLException {

-

-		//attempt to parse the LocalSite.xml	

-		URL resolvedURL = URLEncoder.encode(configXML);

-		try {

-			InputStream in = UpdateCore.getPlugin().get(resolvedURL).getInputStream();;

-			new SiteLocalParser(in, localSite);

-		} catch (FileNotFoundException exception) {

-			// file SITE_LOCAL_FILE doesn't exist, ok, log it 

-			// and reconcile with platform configuration

-			UpdateCore.warn(localSite.getLocationURLString() + " does not exist, there is no previous state or install history we can recover from, we shall use default from platform configuration.", null);

-			//$NON-NLS-1$

-			return false;

-		} catch (SAXException exception) {

-			UpdateCore.warn(Policy.bind("SiteLocal.ErrorParsingSavedState", localSite.getLocationURLString()), exception);

-			//$NON-NLS-1$

-			recoverSiteLocal(resolvedURL, localSite);

-			return false;

-		} catch (IOException exception) {

-			UpdateCore.warn(Policy.bind("SiteLocal.UnableToAccessFile", configXML.toExternalForm()), exception);

-			//$NON-NLS-1$

-			recoverSiteLocal(resolvedURL, localSite);

-			return false;

-		}

-

-		return true;

-	}

-

-	/**

-	 * 

-	 */

-	private SiteLocal() {

-	}

-

-	/**

-	 * adds a new configuration to the LocalSite

-	 *  the newly added configuration is teh current one

-	 */

-	public void addConfiguration(IInstallConfiguration config) {

-		if (config != null) {

-			addConfigurationModel((InstallConfigurationModel) config);

-

-			trimHistoryToCapacity();

-

-			// set configuration as current		

-			if (getCurrentConfigurationModel() != null)

-				getCurrentConfigurationModel().setCurrent(false);

-			if (config instanceof InstallConfiguration)

-				 ((InstallConfiguration) config).setCurrent(true);

-

-			setCurrentConfigurationModel((InstallConfigurationModel) config);

-			((InstallConfigurationModel) config).markReadOnly();

-

-			// notify listeners

-			Object[] siteLocalListeners = listeners.getListeners();

-			for (int i = 0; i < siteLocalListeners.length; i++) {

-				((ILocalSiteChangedListener) siteLocalListeners[i]).currentInstallConfigurationChanged(config);

-			}

-		}

-

-	}

-

-	/*

-	 * 

-	 */

-	private void trimHistoryToCapacity() {

-		// check if we have to remove a configuration

-		// the first added is #0

-		while (getConfigurationHistory().length > getMaximumHistoryCount()) {

-			InstallConfigurationModel removedConfig = getConfigurationHistoryModel()[0];

-			if (removeConfigurationModel(removedConfig)) {

-

-				// DEBUG:

-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION) {

-					UpdateCore.debug("Removed configuration :" + removedConfig.getLabel());

-					//$NON-NLS-1$

-				}

-

-				// notify listeners

-				Object[] siteLocalListeners = listeners.getListeners();

-				for (int i = 0; i < siteLocalListeners.length; i++) {

-					((ILocalSiteChangedListener) siteLocalListeners[i]).installConfigurationRemoved((IInstallConfiguration) removedConfig);

-				}

-

-				//remove files

-				URL url = removedConfig.getURL();

-				UpdateManagerUtils.removeFromFileSystem(new File(url.getFile()));

-			}

-		}

-	}

-	/*

-	 * @see ILocalSite#addLocalSiteChangedListener(ILocalSiteChangedListener)

-	 */

-	public void addLocalSiteChangedListener(ILocalSiteChangedListener listener) {

-		synchronized (listeners) {

-			listeners.add(listener);

-		}

-	}

-

-	/*

-	 * @see ILocalSite#removeLocalSiteChangedListener(ILocalSiteChangedListener)

-	 */

-	public void removeLocalSiteChangedListener(ILocalSiteChangedListener listener) {

-		synchronized (listeners) {

-			listeners.add(listener);

-		}

-	}

-

-	/**

-	 * Saves the site into the config file

-	 */

-	public void save() throws CoreException {

-

-		// Save the current configuration as

-		// the other are already saved

-		// and set runtim info for next startup

-		 ((InstallConfiguration) getCurrentConfiguration()).save(isTransient());

-

-		// save the local site

-		if ("file".equalsIgnoreCase(getLocationURL().getProtocol())) { //$NON-NLS-1$

-			File file = null;

-			try {

-				URL newURL = UpdateManagerUtils.getURL(getLocationURL(), SITE_LOCAL_FILE, null);

-				file = new File(newURL.getFile());

-				if (isTransient())

-					file.deleteOnExit();

-				UpdateManagerUtils.Writer writer = UpdateManagerUtils.getWriter(file, "UTF-8");

-				writer.write(this);

-			} catch (FileNotFoundException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToSaveStateIn", file.getAbsolutePath()), e);

-				//$NON-NLS-1$

-			} catch (UnsupportedEncodingException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToEncodeConfiguration", file.getAbsolutePath()), e);

-				//$NON-NLS-1$

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToCreateURLFor") + getLocationURL().toExternalForm() + " : " + SITE_LOCAL_FILE, e);

-				//$NON-NLS-2$ //$NON-NLS-1$

-			}

-		}

-	}

-	/*

-	 * @see IWritable#write(int, PrintWriter)

-	 */

-	public void write(int indent, PrintWriter w) {

-

-		// force the recalculation to avoid reconciliation

-		IPlatformConfiguration platformConfig = BootLoader.getCurrentPlatformConfiguration();

-		platformConfig.refresh();

-		long changeStamp = platformConfig.getChangeStamp();

-		this.setStamp(changeStamp);

-

-		String gap = ""; //$NON-NLS-1$

-		for (int i = 0; i < indent; i++)

-			gap += " "; //$NON-NLS-1$

-		String increment = ""; //$NON-NLS-1$

-		for (int i = 0; i < IWritable.INDENT; i++)

-			increment += " "; //$NON-NLS-1$

-

-		// SITE 

-		w.print(gap + "<" + SiteLocalParser.SITE + " "); //$NON-NLS-1$ //$NON-NLS-2$

-		if (getLabel() != null) {

-			w.print(gap + "label=\"" + UpdateManagerUtils.Writer.xmlSafe(getLabel()) + "\" ");

-			//$NON-NLS-1$ //$NON-NLS-2$

-		}

-		w.print(gap + "history=\"" + getMaximumHistoryCount() + "\" ");

-		//$NON-NLS-1$ //$NON-NLS-2$

-		w.print(gap + "stamp=\"" + changeStamp + "\" >"); //$NON-NLS-1$ //$NON-NLS-2$

-		w.println(""); //$NON-NLS-1$

-

-		// CONFIGURATIONS

-		// the last one is the current configuration

-		InstallConfigurationModel[] configurations = getConfigurationHistoryModel();

-		for (int index = 0; index < configurations.length; index++) {

-			InstallConfigurationModel element = configurations[index];

-			if (!element.isCurrent()) {

-				writeConfig(gap + increment, w, element);

-			}

-		}

-		// write current configuration last

-		writeConfig(gap + increment, w, (InstallConfigurationModel) getCurrentConfiguration());

-		w.println(""); //$NON-NLS-1$

-

-		// PRESERVED CONFIGURATIONS

-		if (getPreservedConfigurations() != null && getPreservedConfigurations().length != 0) {

-			// write preserved configurations

-			w.println(gap + increment + "<" + SiteLocalParser.PRESERVED_CONFIGURATIONS + ">");

-			//$NON-NLS-1$ //$NON-NLS-2$

-

-			InstallConfigurationModel[] preservedConfig = getPreservedConfigurationsModel();

-			for (int index = 0; index < preservedConfig.length; index++) {

-				InstallConfigurationModel element = preservedConfig[index];

-				writeConfig(gap + increment + increment, w, element);

-			}

-			w.println(gap + increment + "</" + SiteLocalParser.PRESERVED_CONFIGURATIONS + ">");

-			//$NON-NLS-1$ //$NON-NLS-2$

-		}

-		// end

-		w.println(gap + "</" + SiteLocalParser.SITE + ">"); //$NON-NLS-1$ //$NON-NLS-2$

-

-		UpdateCore.warn("Saved change stamp:" + changeStamp); //$NON-NLS-1$

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	private void writeConfig(String gap, PrintWriter w, InstallConfigurationModel config) {

-		w.print(gap + "<" + SiteLocalParser.CONFIG + " "); //$NON-NLS-1$ //$NON-NLS-2$

-

-		// need to get parent as location points to XML file and not directory

-		URL locationAsDirectory = UpdateManagerUtils.getParent(getLocationURL());

-		String URLInfoString = UpdateManagerUtils.getURLAsString(locationAsDirectory, config.getURL());

-

-		w.print("url=\"" + UpdateManagerUtils.Writer.xmlSafe(URLInfoString) + "\" ");

-		//$NON-NLS-1$ //$NON-NLS-2$

-

-		if (config.getLabel() != null) {

-			w.print("label=\"" + UpdateManagerUtils.Writer.xmlSafe(config.getLabel()) + "\"");

-			//$NON-NLS-1$ //$NON-NLS-2$

-		}

-

-		w.println("/>"); //$NON-NLS-1$

-	}

-

-	/**

-	 * Method createNewInstallConfiguration.

-	 * @return IInstallConfiguration

-	 */

-	public IInstallConfiguration createNewInstallConfiguration() throws CoreException {

-		InstallConfiguration newInstallConfig = createConfigurationSite(null);

-		newInstallConfig.setTimeline(newInstallConfig.getCreationDate().getTime());

-		return newInstallConfig;

-	}

-

-	/*

-	 *	creates a new InstallConfiguration or clone an installConfiguration 

-	 * @since 2.0

-	 */

-	private InstallConfiguration createConfigurationSite(IInstallConfiguration installConfig) throws CoreException {

-

-		// save previous current configuration

-		if (getCurrentConfiguration() != null)

-			 ((InstallConfiguration) getCurrentConfiguration()).saveConfigurationFile(isTransient());

-

-		InstallConfiguration result = null;

-		Date currentDate = new Date();

-		String newFileName = UpdateManagerUtils.getLocalRandomIdentifier(DEFAULT_CONFIG_FILE, currentDate);

-		try {

-			URL newFile = UpdateManagerUtils.getURL(getLocationURL(), newFileName, null);

-			// pass the date onto the name

-			String name = Utilities.format(currentDate);

-			result = new InstallConfiguration(installConfig, newFile, name);

-			// set the same date in the installConfig

-			result.setCreationDate(currentDate);

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToCreateURLFor") + newFileName, e);

-			//$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public IInstallConfiguration cloneCurrentConfiguration() throws CoreException {

-		IInstallConfiguration currentConfiguration = getCurrentConfiguration();

-		InstallConfiguration clonedConfiguration = createConfigurationSite(currentConfiguration);

-		clonedConfiguration.setTimeline(currentConfiguration.getTimeline());

-		return clonedConfiguration;

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public void revertTo(IInstallConfiguration configuration, IProgressMonitor monitor, IProblemHandler handler) throws CoreException {

-

-		// create the activity 

-		//Start UOW ?

-		ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_REVERT);

-		activity.setLabel(configuration.getLabel());

-		activity.setDate(new Date());

-		IInstallConfiguration newConfiguration = null;

-

-		try {

-			// create a configuration

-			newConfiguration = cloneCurrentConfiguration();

-			newConfiguration.setLabel(configuration.getLabel());

-

-			// add to the stack which will set up as current

-			addConfiguration(newConfiguration);

-

-			// process delta

-			// the Configured featuresConfigured are the same as the old configuration

-			// the unconfigured featuresConfigured are the rest...

-			 ((InstallConfiguration) newConfiguration).revertTo(configuration, monitor, handler);

-

-			// everything done ok

-			activity.setStatus(IActivity.STATUS_OK);

-		} catch (CoreException e) {

-			// error

-			activity.setStatus(IActivity.STATUS_NOK);

-			throw e;

-		} catch (InterruptedException e) {

-			//user decided not to revert, do nothing

-			// because we didn't add the configuration to the history

-		} finally {

-			if (newConfiguration != null)

-				 ((InstallConfiguration) newConfiguration).addActivity(activity);

-		}

-

-	}

-

-	/**

-	 * @since 2.0

-	 */

-	public IInstallConfiguration addToPreservedConfigurations(IInstallConfiguration configuration) throws CoreException {

-		InstallConfiguration newConfiguration = null;

-		if (configuration != null) {

-

-			// create new configuration based on the one to preserve

-			String newFileName = UpdateManagerUtils.getLocalRandomIdentifier(DEFAULT_PRESERVED_CONFIG_FILE, new Date());

-			try {

-				URL newFile = UpdateManagerUtils.getURL(getLocationURL(), newFileName, null);

-				// pass the date onto teh name

-				Date currentDate = configuration.getCreationDate();

-				String name = configuration.getLabel();

-				newConfiguration = new InstallConfiguration(configuration, newFile, name);

-				// set the same date in the installConfig

-				newConfiguration.setCreationDate(currentDate);

-				newConfiguration.setTimeline(configuration.getTimeline());

-			} catch (MalformedURLException e) {

-				throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToCreateURLFor") + newFileName, e);

-				//$NON-NLS-1$

-			}

-

-			// activity

-			ConfigurationActivity activity = new ConfigurationActivity(IActivity.ACTION_ADD_PRESERVED);

-			activity.setLabel(configuration.getLabel());

-			activity.setDate(new Date());

-			activity.setStatus(IActivity.STATUS_OK);

-			((InstallConfiguration) newConfiguration).addActivity(activity);

-			((InstallConfiguration) newConfiguration).saveConfigurationFile(isTransient());

-

-			// add to the list			

-			addPreservedInstallConfigurationModel((InstallConfigurationModel) newConfiguration);

-		}

-		return newConfiguration;

-	}

-

-	/*

-	 * @see ILocalSite#getPreservedConfigurationFor(IInstallConfiguration)

-	 */

-	public IInstallConfiguration findPreservedConfigurationFor(IInstallConfiguration configuration) {

-

-		// based on time stamp for now

-		InstallConfigurationModel preservedConfig = null;

-		if (configuration != null) {

-			InstallConfigurationModel[] preservedConfigurations = getPreservedConfigurationsModel();

-			if (preservedConfigurations != null) {

-				for (int indexPreserved = 0; indexPreserved < preservedConfigurations.length; indexPreserved++) {

-					if (configuration.getCreationDate().equals(preservedConfigurations[indexPreserved].getCreationDate())) {

-						preservedConfig = preservedConfigurations[indexPreserved];

-						break;

-					}

-				}

-			}

-		}

-

-		return (IInstallConfiguration) preservedConfig;

-	}

-

-	/*

-	 * @see ILocalSite#getCurrentConfiguration()

-	 * LocalSiteModel#getCurrentConfigurationModel() may return null if

-	 * we just parsed LocalSite.xml

-	 */

-	public IInstallConfiguration getCurrentConfiguration() {

-		if (getCurrentConfigurationModel() == null) {

-			int index = 0;

-			if ((index = getConfigurationHistoryModel().length) == 0) {

-				return null;

-			} else {

-				InstallConfigurationModel config = getConfigurationHistoryModel()[index - 1];

-				config.setCurrent(true);

-				setCurrentConfigurationModel(config);

-			}

-		}

-		return (IInstallConfiguration) getCurrentConfigurationModel();

-	}

-

-	/*

-	 * @see ILocalSite#getPreservedConfigurations()

-	 */

-	public IInstallConfiguration[] getPreservedConfigurations() {

-		if (getPreservedConfigurationsModel().length == 0)

-			return new IInstallConfiguration[0];

-		return (IInstallConfiguration[]) getPreservedConfigurationsModel();

-	}

-

-	/*

-	 * @see ILocalSite#removeFromPreservedConfigurations(IInstallConfiguration)

-	 */

-	public void removeFromPreservedConfigurations(IInstallConfiguration configuration) {

-		if (removePreservedConfigurationModel((InstallConfigurationModel) configuration))

-			 ((InstallConfiguration) configuration).remove();

-	}

-

-	/**

-	 * Add the list of plugins the platform found for each site. This list will be preserved in 

-	 * a transient way. 

-	 * 

-	 * We do not lose explicitly set plugins found in platform.cfg.

-	 */

-	private void preserveRuntimePluginPath() throws CoreException {

-

-		IPlatformConfiguration platformConfig = BootLoader.getCurrentPlatformConfiguration();

-		IPlatformConfiguration.ISiteEntry[] siteEntries = platformConfig.getConfiguredSites();

-

-		// sites from the current configuration

-		IConfiguredSite[] configured = new IConfiguredSite[0];

-		if (this.getCurrentConfiguration() != null)

-			configured = this.getCurrentConfiguration().getConfiguredSites();

-

-		// sites from the platform			

-		for (int siteIndex = 0; siteIndex < siteEntries.length; siteIndex++) {

-			URL resolvedURL = getReconciler().resolveSiteEntry(siteEntries[siteIndex]);

-

-			boolean found = false;

-			for (int index = 0; index < configured.length && !found; index++) {

-

-				// the array may have hole as we set found site to null

-				if (configured[index] != null) {

-					if (UpdateManagerUtils.sameURL(configured[index].getSite().getURL(), resolvedURL)) {

-						found = true;

-						String[] listOfPlugins = siteEntries[siteIndex].getSitePolicy().getList();

-						((ConfiguredSite) configured[index]).setPreviousPluginPath(listOfPlugins);

-						configured[index] = null;

-					}

-				}

-			}

-		}

-

-	}

-

-	/*

-	 * @see ILocalSite#getConfigurationHistory()

-	 */

-	public IInstallConfiguration[] getConfigurationHistory() {

-		if (getConfigurationHistoryModel().length == 0)

-			return new IInstallConfiguration[0];

-		return (IInstallConfiguration[]) getConfigurationHistoryModel();

-	}

-

-	/*

-	 * Reconciliation is the comparison between the old preserved state and the new one from platform.cfg

-	 * 

-	 * If the old state contained sites that are not in the new state, the old sites are not added to the state

-	 * If the new state contains sites that were not in the old state, configure the site and configure all the found features

-	 * If the sites are in both states, verify the features

-	 * if the old site contained features that are not in the new site, the features are not added to the site

-	 * if the new site contains feature that were not in the old site, configure the new feature

-	 * if the feature is in both site (old and new), use old feature state

-	 * 

-	 * When adding a feature to a site, we will check if the feature is broken or not. 

-	 * A feature is broken when at least one of its plugin is not installed on the site.

-	 * 

-	 * At the end, go over all the site, get the configured features and make sure that if we find duplicates

-	 * only one feature is configured

-	 * 

-	 * returns true if new features have been found during a pessimistic reconcile

-	 * otherwise returns false

-	 */

-	public boolean reconcile(boolean isOptimistic) throws CoreException {

-		return getReconciler().reconcile(isOptimistic);

-	}

-

-	/*

-	 * 

-	 */

-	private SiteReconciler getReconciler() {

-		if (reconciler == null)

-			reconciler = new SiteReconciler(this);

-		return reconciler;

-	}

-	/*

-	 * Get update state location relative to platform configuration

-	 */

-	private static URL getUpdateStateLocation(IPlatformConfiguration config) throws IOException {

-		// Create a directory location for update state files. This

-		// directory name is constructed by adding a well-known suffix

-		// to the name of the corresponding platform  configuration. This

-		// way, we can have multiple platform configuration files in

-		// the same directory without ending up with update state conflicts.

-		// For example: platform configuration file:C:/platform.cfg results

-		// in update state location file:C:/platform.cfg.update/

-		URL configLocation = Platform.resolve(config.getConfigurationLocation());

-		String temp = configLocation.toExternalForm();

-		temp += UPDATE_STATE_SUFFIX + "/";

-		URL updateLocation = new URL(temp);

-		if ("file".equalsIgnoreCase(updateLocation.getProtocol())) {

-			// ensure path exists. Handle transient configurations

-			ArrayList list = new ArrayList();

-			File path = new File(updateLocation.getFile());

-			while (path != null) { // walk up to first dir that exists

-				if (!path.exists()) {

-					list.add(path);

-					path = path.getParentFile();

-				} else

-					path = null;

-			}

-			for (int i = list.size() - 1; i >= 0; i--) { // walk down to create missing dirs

-				path = (File) list.get(i);

-				path.mkdir();

-				if (config.isTransient())

-					path.deleteOnExit();

-			}

-		}

-		return updateLocation;

-	}

-

-	/**

-	 * Gets the isTransient.

-	 * @return Returns a boolean

-	 */

-	public boolean isTransient() {

-		return isTransient;

-	}

-

-	/**

-	 * Sets the isTransient.

-	 * @param isTransient The isTransient to set

-	 */

-	private void isTransient(boolean isTransient) {

-		this.isTransient = isTransient;

-	}

-

-	/**

-	 * if we are unable to parse the SiteLocal.xml

-	 * we will attempt to parse the file system

-	 */

-	private static void recoverSiteLocal(URL url, SiteLocal site) throws CoreException, MalformedURLException {

-

-		if (url == null)

-			throw Utilities.newCoreException(Policy.bind("SiteLocal.SiteUrlIsNull"),

-			//$NON-NLS-1$

-			null);

-

-		// parse site information

-		site.setLabel(url.toExternalForm());

-

-		//stamp

-		long stamp = 0L;

-		site.setStamp(stamp);

-

-		// retrieve XML files

-		File localXml = new File(url.getFile());

-		if (localXml.exists()) {

-			try {

-				UpdateManagerUtils.removeFromFileSystem(localXml);

-				UpdateCore.warn("Removed bad LocalSite.xml file:" + localXml);

-			} catch (Exception e) {

-				UpdateCore.warn("Unable to remove bad LocalSite.xml file:" + localXml, e);

-			}

-		}

-

-		File dir = localXml.getParentFile();

-		File[] configFiles = dir.listFiles(new FilenameFilter() {

-			public boolean accept(File dir, String name) {

-				return (name.startsWith(DEFAULT_CONFIG_PREFIX) && name.endsWith("xml"));

-			}

-		});

-		if (configFiles == null)

-			configFiles = new File[0];

-

-		File[] preservedFiles = dir.listFiles(new FilenameFilter() {

-			public boolean accept(File dir, String name) {

-				return (name.startsWith(DEFAULT_PRESERVED_CONFIG_PREFIX) && name.endsWith("xml"));

-			}

-		});

-		if (preservedFiles == null)

-			preservedFiles = new File[0];

-

-		// history

-		int history = 0;

-		if (configFiles.length > 0) {

-			history = configFiles.length;

-		};

-

-		if (SiteLocalModel.DEFAULT_HISTORY > history)

-			history = SiteLocalModel.DEFAULT_HISTORY;

-		site.setMaximumHistoryCount(history);

-

-		// parse configuration information

-		List validConfig = new ArrayList();

-		for (int i = 0; i < configFiles.length; i++) {

-			URL configURL = configFiles[i].toURL();

-			InstallConfigurationModel config = new BaseSiteLocalFactory().createInstallConfigurationModel();

-			String relativeURL = UpdateManagerUtils.getURLAsString(url, configURL);

-			config.setLocationURLString(relativeURL);

-			config.resolve(configURL, url);

-			config.setLabel(Utilities.format(config.getCreationDate()));

-			validConfig.add(config);

-		}

-

-		// add the currentConfig last

-		// based on creation date

-		if (validConfig.size() > 0) {

-			Iterator iter = validConfig.iterator();

-			InstallConfigurationModel currentConfig = (InstallConfigurationModel) iter.next();

-			while (iter.hasNext()) {

-				InstallConfigurationModel element = (InstallConfigurationModel) iter.next();

-				Date currentConfigDate = currentConfig.getCreationDate();

-				Date elementDate = element.getCreationDate();

-				if (elementDate != null && elementDate.after(currentConfigDate)) {

-					site.addConfigurationModel(currentConfig);

-					currentConfig = element;

-				} else {

-					site.addConfigurationModel(element);

-				}

-			}

-			site.addConfigurationModel(currentConfig);

-		}

-

-		// parse preserved configuration information

-		for (int i = 0; i < preservedFiles.length; i++) {

-			URL configURL = preservedFiles[i].toURL();

-			InstallConfigurationModel config = new BaseSiteLocalFactory().createInstallConfigurationModel();

-			String relativeURL = UpdateManagerUtils.getURLAsString(url, configURL);

-			config.setLocationURLString(relativeURL);

-			config.resolve(configURL, url);

-			config.setLabel(Utilities.format(config.getCreationDate()));

-			site.addPreservedInstallConfigurationModel(config);

-		}

-	}

-

-	/*

-	 * 

-	 */

-	private SiteStatusAnalyzer getSiteStatusAnalyzer() {

-		if (siteStatusAnalyzer == null)

-			siteStatusAnalyzer = new SiteStatusAnalyzer(this);

-		return siteStatusAnalyzer;

-	}

-

-	/*

-	 *  check if the Plugins of the feature are on the plugin path

-	 *  If all the plugins are on the plugin path, and the version match and there is no other version -> HAPPY

-	 *  If all the plugins are on the plugin path, and the version match and there is other version -> AMBIGUOUS

-	 *  If some of the plugins are on the plugin path, but not all -> UNHAPPY

-	 * 	Check on all ConfiguredSites

-	 */

-	public IStatus getFeatureStatus(IFeature feature) throws CoreException {

-		return getSiteStatusAnalyzer().getFeatureStatus(feature);

-	}

-	/**

-	 * @see org.eclipse.update.internal.model.SiteLocalModel#setMaximumHistoryCount(int)

-	 */

-	public void setMaximumHistoryCount(int history) {

-		super.setMaximumHistoryCount(history);

-		trimHistoryToCapacity();

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteReconciler.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteReconciler.java
deleted file mode 100644
index 9c5052a..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteReconciler.java
+++ /dev/null
@@ -1,1232 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import java.io.*;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration;
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.configuration.*;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.model.*;
-import org.eclipse.update.internal.model.ConfigurationActivityModel;
-import org.eclipse.update.internal.model.InstallChangeParser;
-
-
-/**
- * This class manages the reconciliation.
- */
-
-public class SiteReconciler extends ModelObject implements IWritable {
-
-	private SiteLocal siteLocal;
-	private List newFoundFeatures;
-	private Date date;
-	private static final String DEFAULT_INSTALL_CHANGE_NAME = "delta.xml";
-	//$NON-NLS-1$	
-
-	// from SiteLocal
-	private static final String UPDATE_STATE_SUFFIX = ".metadata";
-
-	/**
-	 * 
-	 */
-	public SiteReconciler(SiteLocal siteLocal) {
-		this.siteLocal = siteLocal;
-	}
-
-	/*
-	 * Reconciliation is the comparison between the old preserved state and the new one from platform.cfg
-	 * 
-	 * If the old state contained sites that are not in the new state, the old sites are not added to the state
-	 * If the new state contains sites that were not in the old state, configure the site and configure all the found features
-	 * If the sites are in both states, verify the features
-	 * if the old site contained features that are not in the new site, the features are not added to the site
-	 * if the new site contains feature that were not in the old site, configure the new feature
-	 * if the feature is in both site (old and new), use old feature state
-	 * 
-	 * When adding a feature to a site, we will check if the feature is broken or not. 
-	 * A feature is broken when at least one of its plugin is not installed on the site.
-	 * 
-	 * At the end, go over all the site, get the configured features and make sure that if we find duplicates
-	 * only one feature is configured
-	 * 
-	 * returns true if new features have been found during a pessimistic reconcile
-	 * otherwise returns false
-	 */
-	public boolean reconcile(boolean isOptimistic) throws CoreException {
-
-		IPlatformConfiguration platformConfig = BootLoader.getCurrentPlatformConfiguration();
-		IPlatformConfiguration.ISiteEntry[] newSiteEntries = platformConfig.getConfiguredSites();
-		IInstallConfiguration newInstallConfiguration = siteLocal.createNewInstallConfiguration();
-
-		IInstallConfiguration oldInstallConfiguration = siteLocal.getCurrentConfiguration();
-		IConfiguredSite[] oldConfiguredSites = new IConfiguredSite[0];
-		newFoundFeatures = new ArrayList();
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Old install configuration" + ((oldInstallConfiguration == null) ? "NULL" : oldInstallConfiguration.getLabel()));
-		}
-
-		// sites from the current configuration
-		if (oldInstallConfiguration != null) {
-			oldConfiguredSites = oldInstallConfiguration.getConfiguredSites();
-
-			// TRACE
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				for (int i = 0; i < oldConfiguredSites.length; i++) {
-					UpdateCore.debug("Old Site :" + oldConfiguredSites[i].getSite().getURL());
-				}
-			}
-		}
-
-		// 16215
-		// 22913, if already optimistic, do not check
-		if (!isOptimistic) {
-			isOptimistic = platformBaseChanged(oldConfiguredSites);
-			// TRACE
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("Platform has changed? :" + isOptimistic);
-			}
-		}
-
-		// check if sites from the platform are new sites or modified sites
-		// if they are new add them, if they are modified, compare them with the old
-		// one and add them
-		for (int siteIndex = 0; siteIndex < newSiteEntries.length; siteIndex++) {
-
-			IPlatformConfiguration.ISiteEntry currentSiteEntry = newSiteEntries[siteIndex];
-			URL resolvedURL = resolveSiteEntry(currentSiteEntry);
-			boolean found = false;
-			IConfiguredSite currentConfigurationSite = null;
-
-			// TRACE
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("Checking if:" + resolvedURL + " is a new site or a site to reconcile.");
-			}
-
-			// check if SiteEntry has been possibly modified
-			// if it was part of the previously known configuredSite; reconcile
-			// bug 33493, do not attempt to preserve old state if optimistic.Site is considered new
-			if (!isOptimistic) {
-				for (int index = 0; index < oldConfiguredSites.length && !found; index++) {
-					currentConfigurationSite = oldConfiguredSites[index];
-					URL currentConfigURL = currentConfigurationSite.getSite().getURL();
-
-					if (UpdateManagerUtils.sameURL(resolvedURL, currentConfigURL)) {
-						found = true;
-						ConfiguredSite reconciledConfiguredSite = reconcile(currentConfigurationSite, isOptimistic);
-						reconciledConfiguredSite.setPreviousPluginPath(currentSiteEntry.getSitePolicy().getList());
-						newInstallConfiguration.addConfiguredSite(reconciledConfiguredSite);
-					}
-				}
-			}
-
-			// old site not found, this is a new site, create it
-			if (!found) {
-				// TRACE
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-					UpdateCore.debug("Site not found in previous configurations.Create new Configured Site:" + resolvedURL);
-				}
-				ISite site = SiteManager.getSite(resolvedURL, null);
-
-				//site policy
-				IPlatformConfiguration.ISitePolicy sitePolicy = currentSiteEntry.getSitePolicy();
-				ConfiguredSite configSite = (ConfiguredSite) new BaseSiteLocalFactory().createConfigurationSiteModel((SiteModel) site, sitePolicy.getType());
-				configSite.setPlatformURLString(currentSiteEntry.getURL().toExternalForm());
-				configSite.setPreviousPluginPath(currentSiteEntry.getSitePolicy().getList());
-				configSite.setUpdatable(currentSiteEntry.isUpdateable());
-
-				// Add the features to the list of new found features
-				// and configure it based on reconciliation type
-				ISiteFeatureReference[] newFeaturesRef = site.getFeatureReferences();
-				for (int i = 0; i < newFeaturesRef.length; i++) {
-					// TRACE
-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-						String reconciliationType = isOptimistic ? "enable (optimistic)" : "disable (pessimistic)";
-						UpdateCore.debug("New Site Found:New Feature to create: " + newFeaturesRef[i].getURL() + " as " + reconciliationType);
-					}
-
-					if (isOptimistic) {
-						configSite.getConfigurationPolicy().configure(newFeaturesRef[i], true, false);
-					} else {
-						configSite.getConfigurationPolicy().unconfigure(newFeaturesRef[i], true, false);
-						newFoundFeatures.add(newFeaturesRef[i]);
-					}
-				}
-				newInstallConfiguration.addConfiguredSite(configSite);
-			}
-		}
-
-		// verify we do not have 2 features with different version that
-		// are configured 
-		checkConfiguredFeatures(newInstallConfiguration);
-
-		// add Activity reconciliation
-		BaseSiteLocalFactory siteLocalFactory = new BaseSiteLocalFactory();
-		ConfigurationActivityModel activity = siteLocalFactory.createConfigurationActivityModel();
-		activity.setAction(IActivity.ACTION_RECONCILIATION);
-		activity.setDate(new Date());
-		activity.setLabel(siteLocal.getLocationURLString());
-		((InstallConfiguration) newInstallConfiguration).addActivityModel(activity);
-
-		// [22993] set the timeline to the previous InstallConfiguration
-		// if the reconciliation is not optimistic (if the world hasn't changed)
-		if (!isOptimistic) {
-			if (oldInstallConfiguration != null) {
-				if (newInstallConfiguration instanceof InstallConfiguration) {
-					((InstallConfiguration) newInstallConfiguration).setTimeline(oldInstallConfiguration.getTimeline());
-				}
-			}
-		}
-
-		// add the configuration as the currentConfig
-		siteLocal.addConfiguration(newInstallConfiguration);
-		siteLocal.save();
-
-		return saveNewFeatures(newInstallConfiguration);
-	}
-
-	/*
-	 * Get update state location relative to platform configuration
-	 */
-	private static URL getUpdateStateLocation(IPlatformConfiguration config) throws IOException {
-		// retrieves directory location for update state files. This
-		// directory name is constructed by adding a well-known suffix
-		// to the name of the corresponding platform  configuration. This
-		// way, we can have multiple platform configuration files in
-		// the same directory without ending up with update state conflicts.
-		// For example: platform configuration file:C:/platform.cfg results
-		// in update state location file:C:/platform.cfg.update/
-		URL configLocation = Platform.resolve(config.getConfigurationLocation());
-		String temp = configLocation.toExternalForm();
-		temp += UPDATE_STATE_SUFFIX + "/";
-		URL updateLocation = new URL(temp);
-		return updateLocation;
-	}
-
-	/**
-	* 
-	*/
-	/*package */
-	URL resolveSiteEntry(IPlatformConfiguration.ISiteEntry newSiteEntry) throws CoreException {
-		URL resolvedURL = null;
-		try {
-			resolvedURL = Platform.resolve(newSiteEntry.getURL());
-		} catch (IOException e) {
-			throw Utilities.newCoreException(Policy.bind("SiteLocal.UnableToResolve", newSiteEntry.getURL().toExternalForm()), e);
-			//$NON-NLS-1$
-		}
-		return resolvedURL;
-	}
-
-	/**
-	 * Compare the old state of ConfiguredSite with
-	 * the 'real' features we found in Site
-	 * 
-	 * getSite of ConfiguredSite contains the real features found
-	 * 
-	 * So if ConfiguredSite.getPolicy has feature A and D as configured and C as unconfigured
-	 * And if the Site contains features A,B and C
-	 * We have to remove D and Configure B
-	 * 
-	 * We copy the oldConfig without the Features
-	 * Then we loop through the features we found on the real site
-	 * If they didn't exist before we add them as configured
-	 * Otherwise we use the old policy and add them to the new configuration site
-	 */
-	private ConfiguredSite reconcile(IConfiguredSite oldConfiguredSite, boolean isOptimistic) throws CoreException {
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Configured Site to reconfigure:" + oldConfiguredSite.getSite().getURL() + (isOptimistic ? " OPTIMISTIC" : " PESSIMISTIC"));
-		}
-
-		ConfiguredSite newConfiguredSite = createNewConfigSite(oldConfiguredSite);
-		ConfigurationPolicy newSitePolicy = newConfiguredSite.getConfigurationPolicy();
-		ConfigurationPolicy oldSitePolicy = ((ConfiguredSite) oldConfiguredSite).getConfigurationPolicy();
-
-		// check the Features that are still on the new version of the Config Site
-		// and the new one. Add the new Features as Configured
-		List toCheck = new ArrayList();
-		ISite site = oldConfiguredSite.getSite();
-		ISiteFeatureReference[] foundFeatures = site.getFeatureReferences();
-		IFeatureReference[] oldConfiguredFeaturesRef = oldConfiguredSite.getFeatureReferences();
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			for (int i = 0; i < oldConfiguredFeaturesRef.length; i++) {
-				UpdateCore.debug("Old feature :" + oldConfiguredFeaturesRef[i].getURL());
-			}
-		}
-
-		for (int i = 0; i < foundFeatures.length; i++) {
-			boolean newFeatureFound = true;
-
-			// TRACE
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("Is this feature new? :" + foundFeatures[i].getURL());
-			}
-
-			// if it is an old feature, add it to the list of features to check	
-			for (int j = 0; j < oldConfiguredFeaturesRef.length; j++) {
-				IFeatureReference oldFeatureRef = oldConfiguredFeaturesRef[j];
-				if (oldFeatureRef != null && oldFeatureRef.equals(foundFeatures[i])) {
-					toCheck.add(oldFeatureRef);
-					newFeatureFound = false;
-				}
-			}
-
-			// new feature found: add as configured if the policy is optimistic
-			// or [2.0.1] if the feature is optional by all the parents AND one exact parent 
-			// (pointing to same version) is enable
-			if (newFeatureFound) {
-				configureNewFoundFeature(isOptimistic, newSitePolicy, oldSitePolicy, foundFeatures[i], oldConfiguredFeaturesRef);
-			}
-		}
-
-		// if a feature has been found in new and old state 
-		// use old state (configured/unconfigured)
-		// pessimistic or optimistic
-		// do not call install handler as the configure/unconfigure already happened
-		Iterator featureIter = toCheck.iterator();
-		while (featureIter.hasNext()) {
-			IFeatureReference oldFeatureRef = (IFeatureReference) featureIter.next();
-			if (oldSitePolicy.isConfigured(oldFeatureRef)) {
-				newSitePolicy.configure(oldFeatureRef, false, false);
-			} else {
-				newSitePolicy.unconfigure(oldFeatureRef, false, false);
-			}
-		}
-
-		return newConfiguredSite;
-	}
-
-	/*
-	 * Enable feature if:
-	 * This is an optimistic reconciliation OR
-	 * The feature is considered optional by ALL its parents AND at least one of them is enable
-	 * Otherwise disable the feature.
-	 * 
-	 * If all its parent consider the feature as optional but none are enable, 
-	 * do not add in the list of new found features. Just disable it.
-	 */
-	private void configureNewFoundFeature(boolean isOptimistic, ConfigurationPolicy newSitePolicy, ConfigurationPolicy oldSitePolicy, IFeatureReference foundFeature, IFeatureReference[] possibleParents) throws CoreException {
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			String reconciliationType = isOptimistic ? "enable (optimistic)" : "disable (pessimistic)";
-			UpdateCore.debug("This feature is new: " + foundFeature.getURL() + " reconciled as " + reconciliationType);
-		}
-
-		if (isOptimistic) {
-			newSitePolicy.configure(foundFeature, true, false);
-			return;
-		}
-
-		IFeatureReference[] allOptionalParents = UpdateManagerUtils.getParentFeatures(foundFeature, possibleParents, true);
-		IFeatureReference[] allParents = UpdateManagerUtils.getParentFeatures(foundFeature, possibleParents, false);
-
-		// none of my parents consider me as optional OR I have no parents,
-		// consider as root feature
-		if (allOptionalParents.length == 0) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("There are no features who consider the feature as optional. Treat as root feature.");
-			}
-			newSitePolicy.unconfigure(foundFeature, true, false);
-			newFoundFeatures.add(foundFeature);
-			return;
-
-		}
-
-		//At least one of my parent considers me non optional
-		// consider root feature
-		if (allParents.length > allOptionalParents.length) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("At least one parent considers the feature as NON optional. Treat as root feature.");
-			}
-			newSitePolicy.unconfigure(foundFeature, true, false);
-			newFoundFeatures.add(foundFeature);
-			return;
-		}
-
-		for (int i = 0; i < allOptionalParents.length; i++) {
-			// one parent that consider me optional is enable, enable feature
-			if (oldSitePolicy.isConfigured(allOptionalParents[i])) {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-					UpdateCore.debug("Found parent feature:" + allOptionalParents[i] + " as enable: Enable optional child feature:" + foundFeature);
-				}
-				newSitePolicy.configure(foundFeature, true, false);
-				return;
-			}
-		}
-
-		// found parent that consider me optional but they are all disable
-		// unconfigure feature without adding it to the list fo new found features
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("No parents are enable. Disable feature.");
-		}
-		newSitePolicy.unconfigure(foundFeature, true, false);
-
-	}
-
-	/**
-	* Validate we have only one configured feature per site
-	* even if we found multiples
-	* 
-	* If we find 2 features, the one with a higher version is configured
-	* If they have the same version, the first feature is configured
-	* 
-	* DO NOT check across sites [17980]
-	* If Feature1 is installed natively on Site A
-	* If Feature1 is installed on Site B
-	* If Feature1 from SiteA is removed... 
-	*/
-	private void checkConfiguredFeatures(IInstallConfiguration newDefaultConfiguration) throws CoreException {
-
-		IConfiguredSite[] configuredSites = newDefaultConfiguration.getConfiguredSites();
-
-		// each configured site
-		for (int indexConfiguredSites = 0; indexConfiguredSites < configuredSites.length; indexConfiguredSites++) {
-			checkConfiguredFeatures(configuredSites[indexConfiguredSites]);
-		}
-	}
-
-	/**
-	 * Validate we have only one configured feature of a specific id
-	 * per configured site
-	 */
-	public static void checkConfiguredFeaturesOld(IConfiguredSite configuredSite) throws CoreException {
-
-		// NOT USED
-
-		ConfiguredSite cSite = (ConfiguredSite) configuredSite;
-		IFeatureReference[] configuredFeatures = cSite.getConfiguredFeatures();
-		ConfigurationPolicy cPolicy = cSite.getConfigurationPolicy();
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Compare features within :" + configuredSite.getSite().getURL());
-		}
-
-		for (int indexConfiguredFeatures = 0; indexConfiguredFeatures < configuredFeatures.length - 1; indexConfiguredFeatures++) {
-
-			IFeatureReference featureToCompare = configuredFeatures[indexConfiguredFeatures];
-
-			// within the configured site
-			// compare with the other configured features of this site
-			for (int restOfConfiguredFeatures = indexConfiguredFeatures + 1; restOfConfiguredFeatures < configuredFeatures.length; restOfConfiguredFeatures++) {
-				int result = compare(featureToCompare, configuredFeatures[restOfConfiguredFeatures]);
-				if (result != 0) {
-					if (result == 1) {
-						cPolicy.unconfigure(configuredFeatures[restOfConfiguredFeatures], true, false);
-					};
-					if (result == 2) {
-						cPolicy.unconfigure(featureToCompare, true, false);
-					}
-				}
-			}
-		}
-	}
-
-	/**
-	 * compare two feature references
-	 * returns 0 if the feature are different
-	 * returns 1 if the version of feature 1 is greater than the version of feature 2
-	 * returns 2 if opposite
-	 */
-	private static int compare(IFeatureReference featureRef1, IFeatureReference featureRef2) throws CoreException {
-
-		// TRACE
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Compare: " + featureRef1 + " && " + featureRef2);
-		}
-
-		if (featureRef1 == null)
-			return 0;
-
-		IFeature feature1 = null;
-		IFeature feature2 = null;
-		try {
-			feature1 = featureRef1.getFeature(null);
-			feature2 = featureRef2.getFeature(null);
-		} catch (CoreException e) {
-			UpdateCore.warn(null, e);
-			return 0;
-		}
-
-		if (feature1 == null || feature2 == null) {
-			return 0;
-		}
-
-		VersionedIdentifier id1 = feature1.getVersionedIdentifier();
-		VersionedIdentifier id2 = feature2.getVersionedIdentifier();
-
-		if (id1 == null || id2 == null) {
-			return 0;
-		}
-
-		if (id1.getIdentifier() != null && id1.getIdentifier().equals(id2.getIdentifier())) {
-			PluginVersionIdentifier version1 = id1.getVersion();
-			PluginVersionIdentifier version2 = id2.getVersion();
-			if (version1 != null) {
-				if (version1.isGreaterThan(version2)) {
-					return 1;
-				} else {
-					return 2;
-				}
-			} else {
-				return 2;
-			}
-		}
-		return 0;
-	};
-
-	/*
-	 * 
-	 */
-	private ConfiguredSite createNewConfigSite(IConfiguredSite oldConfiguredSiteToReconcile) throws CoreException {
-		// create a copy of the ConfigSite based on old ConfigSite
-		// this is not a clone, do not copy any features
-		ConfiguredSite cSiteToReconcile = (ConfiguredSite) oldConfiguredSiteToReconcile;
-		SiteModel siteModel = cSiteToReconcile.getSiteModel();
-		int policy = cSiteToReconcile.getConfigurationPolicy().getPolicy();
-
-		// copy values of the old ConfigSite that should be preserved except Features
-		ConfiguredSite newConfigurationSite = (ConfiguredSite) new BaseSiteLocalFactory().createConfigurationSiteModel(siteModel, policy);
-		newConfigurationSite.setUpdatable(cSiteToReconcile.isUpdatable());
-		newConfigurationSite.setEnabled(cSiteToReconcile.isEnabled());
-		newConfigurationSite.setPlatformURLString(cSiteToReconcile.getPlatformURLString());
-
-		return newConfigurationSite;
-	}
-
-	/*
-	 * 
-	 */
-	private IFeatureReference[] getFeatureReferences() {
-		if (newFoundFeatures == null || newFoundFeatures.size() == 0)
-			return new IFeatureReference[0];
-
-		return (IFeatureReference[]) newFoundFeatures.toArray(arrayTypeFor(newFoundFeatures));
-	}
-
-	/*
-	 * 
-	 */
-	private boolean saveNewFeatures(IInstallConfiguration installConfig) throws CoreException {
-
-		if (getFeatureReferences().length == 0) {
-			UpdateCore.warn("No new features found");
-			return false;
-		}
-
-		// recompute list of new features to only keep root features [16496]
-		IFeatureReference[] refs = getFeatureReferences();
-		newFoundFeatures = new ArrayList();
-		for (int i = 0; i < refs.length; i++) {
-			IFeatureReference[] parents = UpdateManagerUtils.getParentFeatures(refs[i], refs, false);
-			if (parents.length == 0)
-				newFoundFeatures.add(refs[i]);
-		}
-
-
-		if (getFeatureReferences().length == 0) {
-			UpdateCore.warn("No root feature found when saving new features");
-			return false;
-		}
-
-		// remove efixes from the delta that patch disabled feature from the installConfig
-		// bug 71730
-		removeInvalidEfixes(installConfig);
-
-		if (getFeatureReferences().length == 0) {
-			UpdateCore.warn("No new features found after removing invalid efixes");
-			return false;
-		}
-
-
-		date = new Date();
-		String fileName = UpdateManagerUtils.getLocalRandomIdentifier(DEFAULT_INSTALL_CHANGE_NAME, date);
-		IPath path = UpdateCore.getPlugin().getStateLocation();
-		IPath filePath = path.append(fileName);
-		File file = filePath.toFile();
-		// persist list of new features 
-		try {
-			UpdateManagerUtils.Writer writer = UpdateManagerUtils.getWriter(file, "UTF-8");
-			writer.write(this);
-			return true;
-		} catch (UnsupportedEncodingException e) {
-			throw Utilities.newCoreException(Policy.bind("SiteReconciler.UnableToEncodeConfiguration", file.getAbsolutePath()), e);
-			//$NON-NLS-1$
-		} catch (FileNotFoundException e) {
-			throw Utilities.newCoreException(Policy.bind("SiteReconciler.UnableToSaveStateIn", file.getAbsolutePath()), e);
-			//$NON-NLS-1$
-		}
-	}
-
-	/*
-	 * @see IWritable#write(int, PrintWriter)
-	 */
-	public void write(int indent, PrintWriter w) {
-		String gap = ""; //$NON-NLS-1$
-		for (int i = 0; i < indent; i++)
-			gap += " "; //$NON-NLS-1$
-		String increment = ""; //$NON-NLS-1$
-		for (int i = 0; i < IWritable.INDENT; i++)
-			increment += " "; //$NON-NLS-1$		
-
-		// CHANGE tag
-		w.print(gap + "<" + InstallChangeParser.CHANGE + " ");
-		//$NON-NLS-1$ //$NON-NLS-2$
-		long time = (date != null) ? date.getTime() : 0L;
-		w.println("date=\"" + time + "\" >"); //$NON-NLS-1$ //$NON-NLS-2$
-
-		// NEW FEATURE
-		w.println(gap + increment + "<" + InstallChangeParser.NEW_FEATURE + " >");
-
-		// FEATURE REF
-		IFeatureReference[] references = getFeatureReferences();
-		String URLFeatureString = null;
-		if (references != null) {
-			for (int index = 0; index < references.length; index++) {
-				IFeatureReference ref = references[index];
-				if (ref.getURL() != null) {
-					ISite featureSite = ref.getSite();
-					URLFeatureString = UpdateManagerUtils.getURLAsString(featureSite.getURL(), ref.getURL());
-
-					w.print(gap + increment + increment + "<" + InstallChangeParser.REFERENCE + " ");
-					//$NON-NLS-1$
-					w.println("siteURL = \"" + UpdateManagerUtils.Writer.xmlSafe(getURLSiteString(featureSite)) + "\" ");
-					//$NON-NLS-1$ //$NON-NLS-2$
-					w.println(gap + increment + increment + increment + "featureURL=\"" + UpdateManagerUtils.Writer.xmlSafe(URLFeatureString) + "\" />");
-					//$NON-NLS-1$ //$NON-NLS-2$
-				}
-				w.println(""); //$NON-NLS-1$
-			}
-		}
-
-		// END NEW FEATURE
-		w.println(gap + increment + "</" + InstallChangeParser.NEW_FEATURE + " >");
-
-		// end
-		w.println(gap + "</" + InstallChangeParser.CHANGE + ">");
-		//$NON-NLS-1$ //$NON-NLS-2$
-	}
-
-	/*
-	 * Returns the Site URL, attempting to replace it by platform: URL if needed
-	 */
-	private String getURLSiteString(ISite site) {
-		// since 2.0.2 ISite.getConfiguredSite();
-		ConfiguredSite cSite = (ConfiguredSite) site.getCurrentConfiguredSite();
-		if (cSite != null)
-			return cSite.getPlatformURLString();
-		return site.getURL().toExternalForm();
-	}
-
-	/*
-	 * return true if the platformBase URL is not the same
-	 * we thought it is. In this case we should reconcile in an optimistic way 
-	 */
-	private boolean platformBaseChanged(IConfiguredSite[] oldConfiguredSites) {
-
-		if (oldConfiguredSites == null) {
-			UpdateCore.warn("No previous configured sites. Optimistic reconciliation.");
-			return true;
-		}
-
-		String platformString = "platform:/base/";
-		URL platformURL = null;
-		try {
-			platformURL = new URL(platformString);
-		} catch (MalformedURLException e) {
-			UpdateCore.warn("Unable to resolve platform:/base/. Check you are running a Platform", e);
-			return true;
-		}
-		URL resolvedCurrentBaseURL = null;
-		try {
-			resolvedCurrentBaseURL = Platform.resolve(platformURL);
-		} catch (IOException e) {
-			UpdateCore.warn("Error while resolving platform:/base/. Check you are running a Platform", e);
-			return true;
-		}
-
-		// find the 'platform:/base/' configuredSite
-		int index = 0;
-		boolean found = false;
-		ConfiguredSite cSite = null;
-		while (!found && index < oldConfiguredSites.length) {
-			if (oldConfiguredSites[index] instanceof ConfiguredSite) {
-				cSite = (ConfiguredSite) oldConfiguredSites[index];
-				if (platformString.equalsIgnoreCase(cSite.getPlatformURLString())) {
-					found = true;
-				}
-			}
-			index++;
-		}
-
-		if (!found) {
-			UpdateCore.warn("Unable to find an old configured site with platform:/base/ as a platform URL");
-			return true;
-		}
-
-		if (cSite == null) {
-			UpdateCore.warn("The configuredSite that contains the platform is null");
-			return true;
-		}
-
-		if (UpdateManagerUtils.sameURL(resolvedCurrentBaseURL, cSite.getSite().getURL())) {
-			UpdateCore.warn("Platform URL found are the same:" + resolvedCurrentBaseURL + " : " + cSite.getSite().getURL());
-			return false;
-		}
-
-		UpdateCore.warn("Platform URL found is different than the one previously saved. Reconcile optimistically:" + resolvedCurrentBaseURL + " : " + cSite.getSite().getURL());
-		return true;
-	}
-
-	/**
-	 * Validate the list of configured features eliminating extra
-	 * entries (if possible). Make sure we do not leave configured
-	 * nested features with "holes" (ie. unconfigured children)
-	 */
-	public static void checkConfiguredFeatures(IConfiguredSite configuredSite) {
-
-		// Note: if we hit errors in the various computation
-		// methods and throw a CoreException, we will not catch it
-		// in this method. Consequently we will not attempt to
-		// unconfigure any "extra" features because we would 
-		// likely get it wrong. The platform will run with extra features
-		// configured. The runtime will eliminate extra plugins based
-		// on runtime binding rules.
-
-		// determine "proposed" list of configured features
-		ConfiguredSite cSite = (ConfiguredSite) configuredSite;
-		// debug
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Validate configuration of site " + cSite.getSite().getURL());
-		}
-		IFeatureReference[] configuredRefs = cSite.getConfiguredFeatures();
-		ArrayList allPossibleConfiguredFeatures = new ArrayList();
-		for (int i = 0; i < configuredRefs.length; i++) {
-			try {
-				IFeature feature = configuredRefs[i].getFeature(null);
-				allPossibleConfiguredFeatures.add(feature);
-				// debug
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-					UpdateCore.debug("   configured feature " + feature.getVersionedIdentifier().toString());
-				}
-			} catch (CoreException e) {
-				UpdateCore.warn("", e);
-			}
-		}
-
-		// find "unique" top level features (latest version)
-		ArrayList topFeatures = computeTopFeatures(allPossibleConfiguredFeatures, configuredSite);
-
-		// find non efix top level features
-		ArrayList topNonEfixFeatures = getNonEfixFeatures(topFeatures);
-
-		// expand non efix top level features (compute full nesting structures).
-		ArrayList configuredFeatures = expandFeatures(topNonEfixFeatures, configuredSite);
-
-		// retrieve efixes that patch enable feature
-		// they must be kept enabled
-		if (topFeatures.size() != topNonEfixFeatures.size()) {
-			Map patches = getPatchesAsFeature(allPossibleConfiguredFeatures);
-			if (!patches.isEmpty()) {
-				// calculate efixes to enable
-				List efixesToEnable = getPatchesToEnable(patches, configuredFeatures);
-				// add efies to keep enable
-				//add them to the enable list
-				for (Iterator iter = efixesToEnable.iterator(); iter.hasNext();) {
-					IFeature element = (IFeature) iter.next();
-					ArrayList expandedEfix = new ArrayList();
-					expandEfixFeature(element, expandedEfix, configuredSite);
-					configuredFeatures.addAll(expandedEfix);
-				}
-			}
-		}
-
-		// compute extra features
-		ArrayList extras = diff(allPossibleConfiguredFeatures, configuredFeatures);
-
-		// unconfigure extra features
-		ConfigurationPolicy cPolicy = cSite.getConfigurationPolicy();
-		for (int i = 0; i < extras.size(); i++) {
-			IFeature feature = (IFeature) extras.get(i);
-			IFeatureReference ref = cSite.getSite().getFeatureReference(feature);
-			try {
-				cPolicy.unconfigure(ref, true, false);
-				// debug
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-					UpdateCore.debug("Unconfiguring \"extra\" feature " + feature.getVersionedIdentifier().toString());
-				}
-			} catch (CoreException e) {
-				UpdateCore.warn("", e);
-			}
-		}
-	}
-
-	/*
-	 * 
-	 */
-	private static ArrayList computeTopFeatures(ArrayList features, IConfiguredSite configuredSite) {
-
-		// start with the features passed in
-		ArrayList result = new ArrayList();
-		result.addAll(features);
-		IFeature[] list = (IFeature[]) result.toArray(new IFeature[0]);
-
-		// remove all features that nest in some other feature
-		for (int i = 0; i < list.length; i++) {
-			IIncludedFeatureReference[] children = null;
-			try {
-				children = list[i].getIncludedFeatureReferences();
-			} catch (CoreException e) {
-				UpdateCore.warn("", e);
-			}
-
-			if (children != null) {
-				for (int j = 0; j < children.length; j++) {
-					// fix 71730: remove all possible matching children
-					removeMatchingFeatures(children[j], result);
-				}
-			}
-		}
-
-		// debug
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug("Computed top-level features");
-			for (int i = 0; i < result.size(); i++) {
-				UpdateCore.debug("   " + ((IFeature) result.get(i)).getVersionedIdentifier().toString());
-			}
-		}
-
-		// eliminate duplicate versions (keep latest)
-		list = (IFeature[]) result.toArray(new IFeature[0]);
-		for (int i = 0; i < list.length - 1; i++) {
-			IFeature left = list[i];
-			VersionedIdentifier leftVid = left.getVersionedIdentifier();
-			for (int j = i + 1; j < list.length; j++) {
-				IFeature right = list[j];
-				VersionedIdentifier rightVid = right.getVersionedIdentifier();
-				if (leftVid.getIdentifier().equals(rightVid.getIdentifier())) {
-					// duplicate versions ... keep latest
-					IFeature oldest = null;
-					// bug 31940. If right>left remove left ELSE REMOVE RIGHT
-					if (rightVid.getVersion().isGreaterOrEqualTo(leftVid.getVersion()))
-						oldest = left;
-					else
-						oldest = right;
-					result.remove(oldest);
-					// debug
-					if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-						UpdateCore.debug("Removing \"duplicate\" " + oldest.getVersionedIdentifier().toString());
-					}
-				}
-			}
-		}
-
-		// return resulting top level features
-		return result;
-	}
-
-	/*
-	 * 
-	 */
-	private static ArrayList expandFeatures(ArrayList features, IConfiguredSite configuredSite) {
-		ArrayList result = new ArrayList();
-
-		// expand all top level features
-		for (int i = 0; i < features.size(); i++) {
-			expandFeature((IFeature) features.get(i), result, configuredSite);
-		}
-
-		return result;
-	}
-
-	/*
-	 * 
-	 */
-	private static void expandFeature(IFeature feature, ArrayList features, IConfiguredSite configuredSite) {
-
-		// add feature
-		if (!features.contains(feature)) {
-			features.add(feature);
-			// debug
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("Retaining configured feature " + feature.getVersionedIdentifier().toString());
-			}
-		}
-
-		// add nested children to the list
-		IIncludedFeatureReference[] children = null;
-		try {
-			children = feature.getIncludedFeatureReferences();
-		} catch (CoreException e) {
-			UpdateCore.warn("", e);
-			return;
-		}
-
-		for (int j = 0; j < children.length; j++) {
-			IFeature child = null;
-			try {
-				// 71730 expand with best match (i.e not perfect match)
-				child = children[j].getFeature(false, configuredSite, null);
-			} catch (CoreException e) {
-				if (!UpdateManagerUtils.isOptional(children[j]))
-					UpdateCore.warn("", e);
-				// 25202 do not return right now, the peer children may be ok
-			}
-			if (child != null)
-				expandFeature(child, features, configuredSite);
-		}
-	}
-
-	/*
-	 * 
-	 */
-	private static ArrayList diff(ArrayList left, ArrayList right) {
-		ArrayList result = new ArrayList();
-
-		// determine difference (left "minus" right)
-		for (int i = 0; i < left.size(); i++) {
-			IFeature feature = (IFeature) left.get(i);
-			if (!right.contains(feature))
-				result.add(feature);
-		}
-		return result;
-	}
-
-	/*
-	 * remove all possible matching childrens from the list of possible root
-	 */
-	private static void removeMatchingFeatures(IIncludedFeatureReference featureReference, ArrayList possibleRootFeaturesArray) {
-
-		if (possibleRootFeaturesArray == null || possibleRootFeaturesArray.isEmpty())
-			return;
-
-		IFeature[] possibleRootFeatures = new IFeature[possibleRootFeaturesArray.size()];
-		possibleRootFeaturesArray.toArray(possibleRootFeatures);
-
-		// find the all the possible matching features in the list of possible root features 
-		// remove the exact feature of each found feature reference from the list of possible root
-		//boolean isIncludedFeatureReference;
-		for (int ref = 0; ref < possibleRootFeatures.length; ref++) {
-			try {
-				if (possibleRootFeatures[ref] != null) {
-					VersionedIdentifier possibleRootFeatureRefID = possibleRootFeatures[ref].getVersionedIdentifier();
-					if (matches(featureReference, possibleRootFeatureRefID)) {
-					//	isIncludedFeatureReference = possibleRootFeatures[ref] instanceof IIncludedFeatureReference;
-					//	if (isIncludedFeatureReference) {
-					//		possibleRootFeaturesArray.remove(((IIncludedFeatureReference) possibleRootFeatures[ref]).getFeature(true, null, null));
-					//	} else {
-					//		possibleRootFeaturesArray.remove(possibleRootFeatures[ref].getFeature(null));
-					//	}
-					possibleRootFeaturesArray.remove(possibleRootFeatures[ref]);
-					}
-				}
-			} catch (CoreException e) {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_WARNINGS)
-					UpdateCore.warn("", e);
-			}
-		}
-
-	}
-
-	/*
-	 * returns true if the VersionedIdentifier can be a best match for the
-	 * feature Reference.
-	 */
-	private static boolean matches(IIncludedFeatureReference featureReference, VersionedIdentifier id) throws CoreException {
-		VersionedIdentifier baseIdentifier = featureReference.getVersionedIdentifier();
-		if (baseIdentifier == null || id == null)
-			return false;
-		if (!id.getIdentifier().equals(baseIdentifier.getIdentifier()))
-			return false;
-
-		switch (featureReference.getMatch()) {
-			case IImport.RULE_PERFECT :
-				return id.getVersion().isPerfect(baseIdentifier.getVersion());
-			case IImport.RULE_COMPATIBLE :
-				return id.getVersion().isCompatibleWith(baseIdentifier.getVersion());
-			case IImport.RULE_EQUIVALENT :
-				return id.getVersion().isEquivalentTo(baseIdentifier.getVersion());
-			case IImport.RULE_GREATER_OR_EQUAL :
-				return id.getVersion().isGreaterOrEqualTo(baseIdentifier.getVersion());
-		}
-		UpdateCore.warn("Unknown matching rule:" + featureReference.getMatch());
-		return false;
-	}
-	
-	/*
-	 * get the list of enabled patches
-	 */
-	private static Map getPatchesAsFeature(ArrayList allConfiguredFeatures) {
-		// get all efixes and the associated patched features
-		Map patches = new HashMap();
-		if (allConfiguredFeatures != null) {
-			Iterator iter = allConfiguredFeatures.iterator();
-			while (iter.hasNext()) {
-				List patchedFeaturesID = new ArrayList();
-				IFeature element = (IFeature) iter.next();
-				// add the patched feature identifiers
-				for (int i = 0; i < element.getImports().length; i++) {
-					if (element.getImports()[i].isPatch()) {
-						VersionedIdentifier id = element.getImports()[i].getVersionedIdentifier();
-						if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-							UpdateCore.debug("Found patch " + element + " for feature identifier " + id);
-						patchedFeaturesID.add(id);
-					}
-				}
-
-				if (!patchedFeaturesID.isEmpty()) {
-					patches.put(element, patchedFeaturesID);
-				}
-			}
-		}
-
-		return patches;
-	}
-
-	/*
-	 * retruns the list of pathes-feature who patch enabled features
-	 */
-	private static List getPatchesToEnable(Map efixes, ArrayList configuredFeatures) {
-
-		ArrayList enabledVersionedIdentifier = new ArrayList();
-		Iterator iter = configuredFeatures.iterator();
-		while (iter.hasNext()) {
-			IFeature element = (IFeature) iter.next();
-			enabledVersionedIdentifier.add(element.getVersionedIdentifier());
-		}
-
-		// loop through the patches
-		List result = new ArrayList();
-		iter = efixes.keySet().iterator();
-		while (iter.hasNext()) {
-			boolean toEnable = false;
-			IFeature efixFeature = (IFeature) iter.next();
-			List patchedFeatures = (List) efixes.get(efixFeature);
-			// loop through the 'patched features identifier' the for this patch
-			// see if it the patch patches at least one enable feature
-			Iterator patchedFeaturesIter = patchedFeatures.iterator();
-			while (patchedFeaturesIter.hasNext() && !toEnable) {
-				VersionedIdentifier patchedFeatureID = (VersionedIdentifier) patchedFeaturesIter.next();
-				if (enabledVersionedIdentifier.contains(patchedFeatureID)) {
-					toEnable = true;
-				}
-			}
-
-			if (!toEnable) {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-				UpdateCore.debug("The Patch " + efixFeature + " does not patch any enabled features: it will be disabled");
-			} else {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-					UpdateCore.debug("The patch " + efixFeature + " will be enabled.");
-				result.add(efixFeature);
-			}
-		}
-		return result;
-	}
-
-	/*
-	 * returns the feature that are not patches
-	 */
-	private static ArrayList getNonEfixFeatures(ArrayList topFeatures) {
-		Map efixFeatures = getPatchesAsFeature(topFeatures);
-		Set keySet = efixFeatures.keySet();
-		if (keySet == null || keySet.isEmpty())
-			return topFeatures;
-
-		Iterator iter = topFeatures.iterator();
-		ArrayList result = new ArrayList();
-		while (iter.hasNext()) {
-			IFeature element = (IFeature) iter.next();
-			if (!keySet.contains(element)) {
-				result.add(element);
-			}
-		}
-		return result;
-	}
-
-
-	/*
-	 * get the map of enabled patches (as feature reference)  or an empty map
-	 */
-	private Map getPatchesAsFeatureReference(List listOfFeatureReferences) {
-		// get all efixes and the associated patched features
-		Map patches = new HashMap();
-		if (listOfFeatureReferences != null) {
-			Iterator iter = listOfFeatureReferences.iterator();
-			while (iter.hasNext()) {
-				List patchedFeaturesID = new ArrayList();
-				IFeatureReference element = (IFeatureReference) iter.next();
-				// add the patched feature identifiers
-				try {
-					IFeature feature = element.getFeature(null);
-					if (feature != null) {
-						IImport[] imports = feature.getImports();
-						for (int i = 0; i < imports.length; i++) {
-							if (imports[i].isPatch()) {
-								VersionedIdentifier id = imports[i].getVersionedIdentifier();
-								if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-								UpdateCore.debug("Found patch " + element + " for feature identifier " + id);
-								patchedFeaturesID.add(id);
-							}
-						}
-					}
-
-					if (!patchedFeaturesID.isEmpty()) {
-						patches.put(element, patchedFeaturesID);
-					}
-				} catch (CoreException e) {
-				}
-			}
-		}
-
-		return patches;
-	}
-
-
-	/*
-	 * Removes efixes from new found features if they do not patch an enable feature
-	 * either from the found delta or from the file system
-	 */
-	private void removeInvalidEfixes(IInstallConfiguration installConfig) {
-
-		// disable new found efixes if the feature is not in the list nor enabled features
-		// on the file system
-		Map newFoundEfixesAsReference = getPatchesAsFeatureReference(newFoundFeatures);
-
-		if (newFoundEfixesAsReference.size() > 0) {
-			// retrieve all enabled features on all the sites
-			ArrayList allEnabledFeatures = new ArrayList();
-			IConfiguredSite[] configSites = installConfig.getConfiguredSites();
-			for (int i = 0; i < configSites.length; i++) {
-				IFeatureReference[] references = configSites[i].getConfiguredFeatures();
-				for (int j = 0; j < references.length; j++) {
-					try {
-						allEnabledFeatures.add(references[j].getFeature(null));
-					} catch (CoreException e) {
-					}
-				}
-			}
-
-			// create a List of eFixes Features
-			List arrayOfNewFoundFeatures = new ArrayList();
-			for (Iterator iter = newFoundFeatures.iterator(); iter.hasNext();) {
-				IFeatureReference element = (IFeatureReference) iter.next();
-				try {
-					arrayOfNewFoundFeatures.add(element.getFeature(null));
-				} catch (CoreException e) {
-				}
-			}
-
-			// retrieve the efixes that patch enable features in delta and enabled features on the 
-			// file system
-			List patchesForNewFoundFeatures = getFeatureReferencePatchesToEnable(newFoundEfixesAsReference, allEnabledFeatures);
-			List patchesForEnabledFeatures = getFeatureReferencePatchesToEnable(newFoundEfixesAsReference, arrayOfNewFoundFeatures);
-
-			// IMPORTANT: add efixes first so they will be processed first
-			newFoundFeatures.removeAll(newFoundEfixesAsReference.keySet());
-			newFoundFeatures.addAll(0,patchesForEnabledFeatures);
-			newFoundFeatures.addAll(0,patchesForNewFoundFeatures);
-		}
-	}
-
-	/*
-	 * retruns the list of pathes-featureReference who patch enabled features
-	 */
-	private List getFeatureReferencePatchesToEnable(Map efixes, List configuredFeatures) {
-
-		ArrayList enabledVersionedIdentifier = new ArrayList();
-		Iterator iter = configuredFeatures.iterator();
-		while (iter.hasNext()) {
-			IFeature element = (IFeature) iter.next();
-			enabledVersionedIdentifier.add(element.getVersionedIdentifier());
-		}
-
-		// loop through the patches
-		List result = new ArrayList();
-		iter = efixes.keySet().iterator();
-		while (iter.hasNext()) {
-			boolean toEnable = false;
-			IFeatureReference efixFeatureReference = (IFeatureReference) iter.next();
-			List patchedFeatures = (List) efixes.get(efixFeatureReference);
-			// loop through the 'patched features identifier' the for this patch
-			// see if it the patch patches at least one enable feature
-			Iterator patchedFeaturesIter = patchedFeatures.iterator();
-			while (patchedFeaturesIter.hasNext() && !toEnable) {
-				VersionedIdentifier patchedFeatureID = (VersionedIdentifier) patchedFeaturesIter.next();
-				if (enabledVersionedIdentifier.contains(patchedFeatureID)) {
-					toEnable = true;
-				}
-			}
-
-			if (!toEnable) {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-				UpdateCore.debug("The Patch " + efixFeatureReference + " does not patch any enabled features: it will be disabled");
-			} else {
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER)
-				UpdateCore.debug("The patch " + efixFeatureReference + " will be enabled.");
-
-				result.add(efixFeatureReference);
-			}
-		}
-		return result;
-	}
-
-	/*
-	 * only enable non-efix children recursively
-	 */
-	private static void expandEfixFeature(IFeature feature, ArrayList features, IConfiguredSite configuredSite) {
-
-		// add feature
-		if (!features.contains(feature)) {
-			features.add(feature);
-			// debug
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug("Retaining configured feature " + feature.getVersionedIdentifier().toString());
-			}
-		}
-
-		// add nested children to the list
-		IIncludedFeatureReference[] children = null;
-		try {
-			children = feature.getIncludedFeatureReferences();
-		} catch (CoreException e) {
-			UpdateCore.warn("", e);
-			return;
-		}
-
-		for (int j = 0; j < children.length; j++) {
-			IFeature child = null;
-			try { // fix 71730, expand with the best match in the configured site
-				child = children[j].getFeature(false, configuredSite,null);
-			} catch (CoreException e) {
-				if (!children[j].isOptional())
-				UpdateCore.warn("", e);
-				// 25202 do not return right now, the peer children may be ok
-			}
-			if (child != null){
-				if (!UpdateCore.isPatch(child))
-					expandEfixFeature(child, features, configuredSite);
-			}
-		}
-	}	
-	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java
deleted file mode 100644
index ea23522..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java
+++ /dev/null
@@ -1,401 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.model.PluginDescriptorModel;
-import org.eclipse.core.runtime.model.PluginFragmentModel;
-import org.eclipse.update.configuration.IConfiguredSite;
-import org.eclipse.update.core.*;
-
-/**
- * This class manages the configurations.
- */
-
-public class SiteStatusAnalyzer {
-
-	//
-	private static List allRunningPlugins; /*VersionedIdentifier */
-	private static List allConfiguredFeatures; /*VersionedIdentifier */
-
-	private SiteLocal siteLocal;
-
-	/**
-	 * 
-	 */
-	public SiteStatusAnalyzer(SiteLocal siteLocal) {
-		this.siteLocal = siteLocal;
-	}
-
-	/**
-	 * manages the versionedIdentifier and location of parsed plugins
-	 */
-	public class PluginIdentifier {
-		private VersionedIdentifier id;
-		private String label;
-		private boolean isFragment = false;
-
-		public PluginIdentifier(VersionedIdentifier id, String label, boolean fragment) {
-			this.id = id;
-			this.label = label;
-			this.isFragment = fragment;
-		}
-
-		public VersionedIdentifier getVersionedIdentifier() {
-			return id;
-		}
-
-		public boolean isFragment() {
-			return isFragment;
-		}
-
-		public String getLabel() {
-			return label;
-		}
-	}
-	/*
-	 *  check if the Plugins of the feature are on the plugin path
-	 *  If all the plugins are on the plugin path, and the version match and there is no other version -> HAPPY
-	 *  If all the plugins are on the plugin path, and the version match and there is other version -> AMBIGUOUS
-	 *  If some of the plugins are on the plugin path, but not all -> UNHAPPY
-	 * 	Check on all ConfiguredSites
-	 */
-	private IStatus getStatus(IFeature feature) {
-
-		// validate site
-		ISite featureSite = feature.getSite();
-		if (featureSite == null) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-				UpdateCore.debug("Cannot determine status of feature:" + feature.getLabel() + ". Site is NULL.");
-			String msg = Policy.bind("SiteLocal.UnableToDetermineFeatureStatusSiteNull", new Object[] { feature.getURL()});
-			return createStatus(IStatus.ERROR, IFeature.STATUS_AMBIGUOUS, msg, null);
-		}
-
-		// validate configured site		
-		ConfiguredSite cSite = (ConfiguredSite) featureSite.getCurrentConfiguredSite();
-		if (cSite == null) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-				UpdateCore.warn("Cannot determine status of feature: " + feature.getLabel() + ". Configured Site is NULL.");
-			String msg = Policy.bind("SiteLocal.UnableToDetermineFeatureStatusConfiguredSiteNull", new Object[] { feature.getURL()});
-			return createStatus(IStatus.ERROR, IFeature.STATUS_AMBIGUOUS, msg, null);
-		}
-
-		// check if disable, if so return
-		IFeatureReference ref = cSite.getSite().getFeatureReference(feature);
-		if (ref != null) {
-			if (!cSite.getConfigurationPolicy().isConfigured(ref))
-				return createStatus(IStatus.OK, IFeature.STATUS_DISABLED, "", null);
-		} else {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-				UpdateCore.warn("Unable to find reference for feature " + feature + " in site " + cSite.getSite().getURL());
-		}
-
-		// check if broken
-		IStatus status = cSite.getBrokenStatus(feature);
-		if (status.getSeverity() != IStatus.OK) {
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION)
-				UpdateCore.debug("Feature broken:" + feature.getLabel() + ".Site:" + cSite.toString());
-			return status;
-		}
-
-		// check ambiguous against registry [17015]
-		IPluginEntry[] featuresEntries = feature.getPluginEntries();
-		return status(featuresEntries);
-	}
-
-	/*
-	 *  check if the Plugins of the feature are on the plugin path
-	 *  If all the plugins are on the plugin path, and the version match and there is no other version -> HAPPY
-	 *  If all the plugins are on the plugin path, and the version match and there is other version -> AMBIGUOUS
-	 *  If some of the plugins are on the plugin path, but not all -> UNHAPPY
-	 * 	Check on all ConfiguredSites
-	 */
-	public IStatus getFeatureStatus(IFeature feature) throws CoreException {
-
-		IFeature childFeature = null;
-		IStatus childStatus;
-
-		IFeatureReference[] children = feature.getIncludedFeatureReferences();
-
-		// consider disable
-		// check the current feature
-		String msg = Policy.bind("SiteLocal.FeatureDisable");
-		int code = IFeature.STATUS_DISABLED;
-		IStatus featureStatus = getStatus(feature);
-		MultiStatus multiTemp = new MultiStatus(featureStatus.getPlugin(), code, msg, null);
-		if (featureStatus.getSeverity() == IStatus.ERROR) {
-			if (featureStatus.isMultiStatus()) {
-				multiTemp.addAll(featureStatus);
-			} else {
-				multiTemp.add(featureStatus);
-			}
-		}
-		// preserve the worse code through the method (self assesment + children assessment)
-		if (featureStatus.getCode() > code)
-			code = featureStatus.getCode();
-
-		// do not check children if feature is disable
-		if (!(code == IFeature.STATUS_DISABLED)) {
-			for (int i = 0; i < children.length; i++) {
-				if (!UpdateManagerUtils.isOptional(children[i])) {
-					try {
-						childFeature = children[i].getFeature(null);
-					} catch (CoreException e) {
-						if (!UpdateManagerUtils.isOptional(children[i]))
-							UpdateCore.warn("Error retrieving feature:" + children[i]);
-					}
-
-					if (childFeature == null) {
-						UpdateCore.warn("getFeatureStatus: Feature is null for:" + children[i]);
-						// Unable to find children feature, broken
-						Object featureAsPrintableObject = children[i].getURL();
-						featureAsPrintableObject = children[i].getVersionedIdentifier();
-						String msg1 = Policy.bind("SiteLocal.NestedFeatureUnavailable", new Object[] { featureAsPrintableObject });
-						multiTemp.add(createStatus(IStatus.ERROR, IFeature.STATUS_UNHAPPY, msg1, null));
-						if (IFeature.STATUS_UNHAPPY > code)
-							code = IFeature.STATUS_UNHAPPY;
-					} else {
-						childStatus = getFeatureStatus(childFeature);
-						// do not add the status, add the children status as getFeatureStatus
-						// returns a multiStatus 
-						if (childStatus.getCode() == IFeature.STATUS_DISABLED) {
-							VersionedIdentifier versionID = childFeature.getVersionedIdentifier();
-							String featureVer = (versionID == null) ? "" : versionID.getVersion().toString();
-							String msg1 = Policy.bind("SiteLocal.NestedFeatureDisable", childFeature.getLabel(), featureVer);
-							multiTemp.add(createStatus(IStatus.ERROR, childStatus.getCode(), msg1, null));
-							if (IFeature.STATUS_UNHAPPY > code)
-								code = IFeature.STATUS_UNHAPPY;
-						}
-						if (childStatus.getSeverity() != IStatus.OK) {
-							VersionedIdentifier versionID = childFeature.getVersionedIdentifier();
-							String featureVer = (versionID == null) ? "" : versionID.getVersion().toString();
-							String msg1 = Policy.bind("SiteLocal.NestedFeatureUnHappy", childFeature.getLabel(), featureVer);
-							multiTemp.add(createStatus(IStatus.ERROR, childStatus.getCode(), msg1, null));
-							if (childStatus.getCode() > code)
-								code = childStatus.getCode();
-						}
-					}
-				}
-			}
-		}
-
-		// set message
-		switch (code) {
-			case IFeature.STATUS_HAPPY :
-				msg = Policy.bind("SiteLocal.FeatureHappy");
-				break;
-			case IFeature.STATUS_UNHAPPY :
-				msg = Policy.bind("SiteLocal.FeatureUnHappy");
-				break;
-			case IFeature.STATUS_AMBIGUOUS :
-				msg = Policy.bind("SiteLocal.FeatureAmbiguous");
-				break;
-			case IFeature.STATUS_DISABLED :
-				msg = Policy.bind("SiteLocal.FeatureDisable");
-				break;
-			default :
-				msg = Policy.bind("SiteLocal.FeatureStatusUnknown");
-				break;
-		}
-		MultiStatus multi = new MultiStatus(featureStatus.getPlugin(), code, msg, null);
-		multi.addAll(multiTemp);
-		return multi;
-	}
-
-	/*
-	 * compute the status based on getStatus() rules 
-	 */
-	private IStatus status(IPluginEntry[] featurePlugins) {
-		VersionedIdentifier featureID;
-		VersionedIdentifier compareID;
-		String pluginName;
-
-		String happyMSG = Policy.bind("SiteLocal.FeatureHappy");
-		String ambiguousMSG = Policy.bind("SiteLocal.FeatureAmbiguous");
-		IStatus featureStatus = createStatus(IStatus.OK, IFeature.STATUS_HAPPY, "", null);
-		MultiStatus multi = new MultiStatus(featureStatus.getPlugin(), IFeature.STATUS_AMBIGUOUS, ambiguousMSG, null);
-
-		PluginIdentifier[] ids = getAllRunningPlugins();
-
-		// is Ambigous if we find a plugin from the feature
-		// with a different version and not the one we are looking
-		for (int i = 0; i < featurePlugins.length; i++) {
-			MultiStatus tempmulti = new MultiStatus(featureStatus.getPlugin(), IFeature.STATUS_AMBIGUOUS, ambiguousMSG, null);
-			featureID = featurePlugins[i].getVersionedIdentifier();
-			boolean found = false;
-			for (int k = 0; k < ids.length && !found; k++) {
-				compareID = ids[k].getVersionedIdentifier();
-				pluginName = null;
-				if (featureID.getIdentifier().equals(compareID.getIdentifier())) {
-					pluginName = ids[k].getLabel();
-					if (featureID.getVersion().isPerfect(compareID.getVersion())) {
-						found = true;
-					} else {
-						// there is a plugin with a different version on the path
-						// log it
-						IFeature feature = getFeatureForId(compareID);
-
-						String msg = null;
-						if (feature == null) {
-							Object[] values = new Object[] { pluginName, featureID.getVersion(), compareID.getVersion()};
-							msg = Policy.bind("SiteLocal.TwoVersionSamePlugin1", values);
-						} else {
-							String label = feature.getLabel();
-							String version = feature.getVersionedIdentifier().getVersion().toString();
-							Object[] values = new Object[] { pluginName, featureID.getVersion(), compareID.getVersion(), label, version };
-							msg = Policy.bind("SiteLocal.TwoVersionSamePlugin2", values);
-						}
-
-						UpdateCore.warn("Found another version of the same plugin on the path:" + compareID.toString());
-						tempmulti.add(createStatus(IStatus.ERROR, IFeature.STATUS_AMBIGUOUS, msg, null));
-					}
-				}
-			}
-
-			// if we haven't found the exact plugin, add the children
-			// of tempMulti (i,e the other we found) 
-			// if we have no children, we have a problem as a required plugin is not there at all
-			if (!found) {
-				if (tempmulti.getChildren().length > 0) {
-					multi.addAll(tempmulti);
-				} else {
-					if (multi.getCode() != IFeature.STATUS_UNHAPPY) {
-						String unhappyMSG = Policy.bind("SiteLocal.FeatureUnHappy");
-						MultiStatus newMulti = new MultiStatus(featureStatus.getPlugin(), IFeature.STATUS_UNHAPPY, unhappyMSG, null);
-						newMulti.addAll(multi);
-						multi = newMulti;
-					}
-					String msg = Policy.bind("SiteLocal.NoPluginVersion", featureID.getIdentifier());
-					multi.add(createStatus(IStatus.ERROR, IFeature.STATUS_UNHAPPY, msg, null));
-				}
-			}
-		}
-
-		if (!multi.isOK())
-			return multi;
-
-		// we return happy as we consider the isBroken verification has been done
-		return createStatus(IStatus.OK, IFeature.STATUS_HAPPY, happyMSG, null);
-	}
-	/*
-	 * creates a Status
-	 */
-	private IStatus createStatus(int statusSeverity, int statusCode, String msg, Exception e) {
-		String id = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-
-		StringBuffer completeString = new StringBuffer("");
-		if (msg != null)
-			completeString.append(msg);
-		if (e != null) {
-			completeString.append("\r\n[");
-			completeString.append(e.toString());
-			completeString.append("]\r\n");
-		}
-		return new Status(statusSeverity, id, statusCode, completeString.toString(), e);
-	}
-
-	/*
-	 * returns all the configured plugins from the registry
-	 */
-	private PluginIdentifier[] getAllRunningPlugins() {
-		if (allRunningPlugins == null) {
-			PluginIdentifier pluginIdentifier;
-			allRunningPlugins = new ArrayList();
-			IPluginRegistry reg = Platform.getPluginRegistry();
-			IPluginDescriptor[] desc = reg.getPluginDescriptors();
-			for (int i = 0; i < desc.length; i++) {
-				String id = desc[i].getUniqueIdentifier();
-				String ver = desc[i].getVersionIdentifier().toString();
-				VersionedIdentifier versionID = new VersionedIdentifier(id, ver);
-				pluginIdentifier = new PluginIdentifier(versionID, desc[i].getLabel(), false);
-				allRunningPlugins.add(pluginIdentifier);
-				// check fragments
-				if (desc[i] instanceof PluginDescriptorModel) {
-					PluginDescriptorModel descModel = (PluginDescriptorModel) desc[i];
-					PluginFragmentModel[] frags = descModel.getFragments();
-					if (frags != null) {
-						for (int j = 0; j < frags.length; j++) {
-							String fragID = frags[j].getId();
-							String fragVER = frags[j].getVersion();
-							VersionedIdentifier fragVersionID = new VersionedIdentifier(fragID, fragVER);
-							pluginIdentifier = new PluginIdentifier(fragVersionID, frags[j].getName(), true);
-							allRunningPlugins.add(pluginIdentifier);
-						}
-					}
-				}
-			}
-		}
-
-		PluginIdentifier[] ids = new PluginIdentifier[allRunningPlugins.size()];
-		if (allRunningPlugins.size() > 0) {
-			allRunningPlugins.toArray(ids);
-		}
-		return ids;
-	}
-
-	/*
-	 * returns all the configured fetaures
-	 */
-	private IFeature[] getAllConfiguredFeatures() {
-		if (allConfiguredFeatures == null) {
-
-			allConfiguredFeatures = new ArrayList();
-			IConfiguredSite[] allConfiguredSites = siteLocal.getCurrentConfiguration().getConfiguredSites();
-
-			for (int i = 0; i < allConfiguredSites.length; i++) {
-				IFeatureReference[] refs = allConfiguredSites[i].getConfiguredFeatures();
-				IFeature feature = null;
-				for (int j = 0; j < refs.length; j++) {
-					feature = null;
-					try {
-						feature = refs[j].getFeature(null);
-					} catch (CoreException e) {
-					}
-					if (feature != null) {
-						allConfiguredFeatures.add(feature);
-					}
-				}
-			}
-		}
-
-		IFeature[] features = new IFeature[allConfiguredFeatures.size()];
-		if (allConfiguredFeatures.size() > 0) {
-			allConfiguredFeatures.toArray(features);
-		}
-		return features;
-	}
-
-	/*
-	 * returns the Feature that declares this versionedIdentifier or null if none found
-	 */
-	private IFeature getFeatureForId(VersionedIdentifier id) {
-
-		if (id == null)
-			return null;
-
-		IFeature[] allFeatures = getAllConfiguredFeatures();
-		IFeature currentFeature = null;
-		IPluginEntry[] allPlugins = null;
-		IPluginEntry currentPlugin = null;
-		for (int i = 0; i < allFeatures.length; i++) {
-			currentFeature = allFeatures[i];
-			allPlugins = currentFeature.getPluginEntries();
-			for (int j = 0; j < allPlugins.length; j++) {
-				currentPlugin = allPlugins[j];
-				if (id.equals(currentPlugin.getVersionedIdentifier()))
-					return currentFeature;
-			}
-		}
-		return null;
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteTypeFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteTypeFactory.java
deleted file mode 100644
index 8fc3a43..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteTypeFactory.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-import java.util.HashMap;

-import java.util.Map;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.core.ISiteFactory;

-import org.eclipse.update.core.Utilities;

-

-/**

- * 

- */

-public final class SiteTypeFactory {

-	

-

-	/**

-	 * extension point ID

-	 */

-	public static final String SIMPLE_EXTENSION_ID = "siteTypes";	 //$NON-NLS-1$

-	

-

-	private static SiteTypeFactory inst;

-	

-	private Map factories;

-

-	/**

-	 * hide ctr 

-	 */

-	private SiteTypeFactory() {

-	}

-

-	public static SiteTypeFactory getInstance() {

-		if (inst == null)

-			inst = new SiteTypeFactory();

-		return inst;

-	}

-

-

-	/**

-	 * return the factory for the type

-	 */

-	public ISiteFactory getFactory(String type) throws CoreException {

-			//

-			Object instance = getFactories().get(type);

-			if (instance==null) {

-				instance = createFactoryFor(type);

-				getFactories().put(type,instance);

-			}

-			return (ISiteFactory) instance;

-	}

-

-	/**

-	 * 

-	 */

-	private ISiteFactory createFactoryFor(String type) throws CoreException {

-		ISiteFactory result = null;

-		

-		String pluginID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();

-		IPluginRegistry pluginRegistry = Platform.getPluginRegistry();

-		IConfigurationElement[] elements = pluginRegistry.getConfigurationElementsFor(pluginID,SIMPLE_EXTENSION_ID,type);

-		if (elements==null || elements.length==0){

-			throw Utilities.newCoreException(Policy.bind("SiteTypeFactory.UnableToFindSiteFactory",type),null); //$NON-NLS-1$

-		} else {

-			IConfigurationElement element = elements[0];

-			result = (ISiteFactory)element.createExecutableExtension("class"); //$NON-NLS-1$

-		}

-		return result;

-	}

-

-	/**

-	 * Gets the actories.

-	 * @return Returns a Map

-	 */

-	private Map getFactories() {

-		if (factories==null) factories = new HashMap();

-			return factories;

-	}

-

-	/**

-	 * Sets the actories.

-	 * @param actories The actories to set

-	 */

-	private void setFactories(Map factories) {

-		this.factories = factories;

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLContentProvider.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLContentProvider.java
deleted file mode 100644
index 819c606..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLContentProvider.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.IArchiveReference;

-import org.eclipse.update.core.SiteContentProvider;

-

-/**

- * 

- */

-public class SiteURLContentProvider extends SiteContentProvider {

-	

-	public static final String SITE_TYPE = "org.eclipse.update.core.http"; //$NON-NLS-1$

-

-	/**

-	 * Constructor for HTTPSite

-	 */

-	public SiteURLContentProvider(URL url) {

-		super(url);

-	}

-	

-	/*

-	 * @see ISiteContentProvider#getArchiveReference(String)

-	 */

-	public URL getArchiveReference(String archiveId)  throws CoreException {

-		URL contentURL = null;

-		

-		contentURL = getArchiveURLfor(archiveId);

-		// if there is no mapping in the site.xml

-		// for this archiveId, use the default one

-		if (contentURL==null) {

-			return super.getArchiveReference(archiveId);

-		}

-		

-		return contentURL;

-	}

-

-	/**

-	 * return the URL associated with the id of teh archive for this site

-	 * return null if the archiveId is null, empty or 

-	 * if teh list of archives on the site is null or empty

-	 * of if there is no URL associated with the archiveID for this site

-	 */

-	private URL getArchiveURLfor(String archiveId) {

-		URL result = null;

-		boolean found = false;

-

-		IArchiveReference[] siteArchives = getSite().getArchives();

-		if (siteArchives.length > 0) {

-			for (int i = 0; i < siteArchives.length && !found; i++) {

-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL)

-					UpdateCore.debug("GetArchiveURL for:"+archiveId+" compare to "+siteArchives[i].getPath());

-				if (archiveId.trim().equalsIgnoreCase(siteArchives[i].getPath())) {

-					result = siteArchives[i].getURL();

-					found = true;

-					break;

-				}

-			}

-		}

-		return result;

-	}

-

-

-

-	}

-

-

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLFactory.java
deleted file mode 100644
index 1fdf4b4..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteURLFactory.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.*;

-

-import org.eclipse.core.runtime.*;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.InvalidSiteTypeException;

-import org.eclipse.update.core.model.SiteModelFactory;

-

-public class SiteURLFactory extends BaseSiteFactory implements ISiteFactoryExtension {

-	

-	/*

-	 * For backward compatibility.

-	 */

-	public ISite createSite(URL url) throws CoreException, InvalidSiteTypeException {

-		return createSite(url, null);

-	}

-	/*

-	 * @see ISiteFactory#createSite(URL, boolean)

-	 * 

-	 * the URL can be of the following form

-	 * 1 protocol://...../

-	 * 2 protocol://.....

-	 * 3 protocol://..../site.xml

-	 * 

-	 * 1 If the file of the file of teh url ends with '/', attempt to open the stream.

-	 * if it fails, add site.xml and attempt to open the stream

-	 * 

-	 * 2 attempt to open the stream

-	 * 	fail

-	 * 		add '/site.xml' and attempt to open the stream

-	 * 	sucess

-	 * 		attempt to parse, if it fails, add '/site.xml' and attempt to open teh stream

-	 * 

-	 * 3 open the stream	 

-	 */

-	public ISite createSite(URL url, IProgressMonitor monitor) throws CoreException, InvalidSiteTypeException {

-		Site site = null;

-		InputStream siteStream = null;

-	

-		try {

-			SiteURLContentProvider contentProvider = new SiteURLContentProvider(url);

-	

-			URL resolvedURL = URLEncoder.encode(url);

-			Response response = UpdateCore.getPlugin().get(resolvedURL);

-			UpdateManagerUtils.checkConnectionResult(response, resolvedURL);

-			siteStream = response.getInputStream(monitor);

-			// the stream can be null if the user cancels the connection

-			if (siteStream==null) return null;

-

-			SiteModelFactory factory = (SiteModelFactory) this;

-			site = (Site) factory.parseSite(siteStream);

-	

-			site.setSiteContentProvider(contentProvider);

-			contentProvider.setSite(site);

-			site.resolve(url, url);

-			site.markReadOnly();

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteURLFactory.UnableToCreateURL", url == null ? "" : url.toExternalForm()), e);

-			//$NON-NLS-1$

-		} catch (IOException e) {

-			throw Utilities.newCoreException(Policy.bind("SiteURLFactory.UnableToAccessSiteStream", url == null ? "" : url.toExternalForm()), ISite.SITE_ACCESS_EXCEPTION, e);

-			//$NON-NLS-1$

-		} finally {

-			if (siteStream != null) {

-				try {

-					siteStream.close();

-				} catch (IOException e) {

-				}

-			}

-		}

-		return site;

-	}

-

-	/*

-	 * @see SiteModelFactory#canParseSiteType(String)

-	 */

-	public boolean canParseSiteType(String type) {

-		return (super.canParseSiteType(type) || SiteURLContentProvider.SITE_TYPE.equalsIgnoreCase(type));

-	}

-

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/TargetFeature.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/TargetFeature.java
deleted file mode 100644
index 0133ab3..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/TargetFeature.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-
-/**
- * 
- */
-public class TargetFeature extends Feature {
-
-
-	/**
-	 * The content consumer of the DefaultFeature
-	 */
-	private IFeatureContentConsumer contentConsumer;
-	
-
-	/**
-	 * Constructor for TargetFeature.
-	 */
-	public TargetFeature() {
-		super();
-	}
-
-	/**
-	 * Sets the content Consumer
-	 */
-	public void setContentConsumer(IFeatureContentConsumer contentConsumer) {
-		this.contentConsumer = contentConsumer;
-		contentConsumer.setFeature(this);
-	}
-
-	/*
-	 * @see IFeature#getFeatureContentConsumer()
-	 */
-	public IFeatureContentConsumer getFeatureContentConsumer() throws CoreException {
-		if (this.contentConsumer == null) {
-			throw Utilities.newCoreException( Policy.bind("Feature.NoFeatureContentConsumer", getURL().toExternalForm()), null); //$NON-NLS-1$
-		}
-		return contentConsumer;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLEncoder.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLEncoder.java
deleted file mode 100644
index 098c4b2..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLEncoder.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-

-

-import java.io.UnsupportedEncodingException;

-

-import java.net.URL;

-import java.net.MalformedURLException;

-

-import java.util.StringTokenizer;

-

-/**

- * Encodes a <code>URL</code> into an <code>ASCII</code> readable

- * <code>URL</code> that is safe for transport. Encoded

- * <code>URL</code>s can be decoded using the <code>URLDecoder</code>.

- *

- * @see URLDecoder

- */

-public final class URLEncoder {

-	/**

-	 * Prevents instances from being created.

-	 */

-	private URLEncoder() {

-	}

-	/**

-	 * Encodes the given file and reference parts of a <code>URL</code> into

-	 * an <code>ASCII</code> readable <code>String</code> that is safe for

-	 * transport. Returns the result.

-	 *

-	 * @return the result of encoding the given file and reference parts of

-	 *         a <code>URL</code> into an <code>ASCII</code> readable

-	 *         <code>String</code> that is safe for transport

-	 */

-	public static String encode(String file, String query, String ref) {

-		StringBuffer buf = new StringBuffer();

-		StringTokenizer tokenizer = new StringTokenizer(file, "/", true); //$NON-NLS-1$

-

-		while (tokenizer.hasMoreTokens()) {

-			String token = tokenizer.nextToken();

-			if (token.equals("/")) { //$NON-NLS-1$

-				buf.append(token);

-			} else {

-				buf.append(encodeSegment(token));

-			}

-		}

-

-		if (query != null){

-			buf.append('?');

-			buf.append(query);

-		}

-

-		if (ref != null) {

-			buf.append('#');

-			buf.append(encodeSegment(ref));

-		}

-

-		return buf.toString();

-	}

-	/**

-	 * Encodes the given <code>URL</code> into an <code>ASCII</code>

-	 * readable <code>URL</code> that is safe for transport. Returns the

-	 * result.

-	 *

-	 * @return the result of encoding the given <code>URL</code> into an

-	 *         <code>ASCII</code> readable <code>URL</code> that is safe for

-	 *         transport

-	 */

-	public static URL encode(URL url) throws MalformedURLException {

-		// encode the path not the file as the URL may contain a query

-		String file = url.getPath();

-		String query = url.getQuery();

-		String ref = url.getRef();

-

-		URL result =  new URL(url.getProtocol(), url.getHost(), url.getPort(), encode(file, query, ref));

-		return result;

-	}

-	private static String encodeSegment(String segment) {

-		

-		// if we find a '%' in the string, consider the URL to be already encoded

-		if (segment.indexOf('%')!=-1) return segment;

-		

-		StringBuffer result = new StringBuffer(segment.length());

-

-		for (int i = 0; i < segment.length(); ++i) {

-			char c = segment.charAt(i);

-			if (mustEncode(c)) {

-				byte[] bytes = null;

-				try {

-					bytes = new Character(c).toString().getBytes("UTF8"); //$NON-NLS-1$

-				} catch (UnsupportedEncodingException e) {

-					Assert.isTrue(false, e.getMessage());

-				}

-				for (int j = 0; j < bytes.length; ++j) {

-					result.append('%');

-					result.append(Integer.toHexString((bytes[j] >> 4) & 0x0F));

-					result.append(Integer.toHexString(bytes[j] & 0x0F));

-				}

-			} else {

-				result.append(c);

-			}

-		}

-

-		return result.toString();

-	}

-	private static boolean mustEncode(char c) {

-		if (c >= 'a' && c <= 'z') {

-			return false;

-		}

-

-		if (c >= 'A' && c <= 'Z') {

-			return false;

-		}

-

-		if (c >= '0' && c <= '9') {

-			return false;

-		}

-

-		if (c >= '\'' && c <= '.') {

-			return false;

-		}

-

-		if (c == '!' || c == '$' || c == '_') {

-			return false;

-		}

-

-		// needed otherwise file:///c:/file/ becomes file:///C%3a/file/

-		if (c ==':'){

-			return false;

-		}

-		return true;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLKey.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLKey.java
deleted file mode 100644
index bf76bc6..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/URLKey.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
- 
-import java.net.URL;
-
-
-
-/**
- * 
- * 
- */
-public class URLKey {
-
-	private URL url;
-	
-	/**
-	 * Constructor for URLKey.
-	 */
-	public URLKey(URL url) {
-		super();
-		this.url = url;
-	}
-
-	/**
-	 * @see java.lang.Object#equals(Object)
-	 */
-	public boolean equals(Object obj) {
-			if (obj == null) {
-				return false;
-			}
-
-			if (this == obj) {
-				return true;
-			}
-
-			if (obj instanceof URLKey) {
-				return equals(((URLKey) obj).getURL());
-			}
-
-			if (!(obj instanceof URL)) {
-				return false;
-			}
-
-			URL url2 = (URL)obj;
-			if (url == url2) {
-				return true;
-			}
-
-			return UpdateManagerUtils.sameURL(url,url2);
-	}
-
-	/**
-	 * @see java.lang.Object#hashCode()
-	 */
-	public int hashCode() {
-		return url.hashCode();
-	}
-
-	/**
-	 * Returns the url.
-	 * @return URL
-	 */
-	public URL getURL() {
-		return url;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateCore.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateCore.java
deleted file mode 100644
index 4d00719..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateCore.java
+++ /dev/null
@@ -1,311 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPluginDescriptor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.update.configuration.IInstallConfiguration;
-import org.eclipse.update.core.IFeature;
-import org.eclipse.update.core.IImport;
-import org.eclipse.update.core.JarContentReference;
-import org.eclipse.update.core.SiteManager;
-import org.eclipse.update.core.Utilities;
-
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class UpdateCore extends Plugin {
-
-	// debug options
-	public static boolean DEBUG = false;
-	public static boolean DEBUG_SHOW_INSTALL = false;
-	public static boolean DEBUG_SHOW_PARSING = false;
-	public static boolean DEBUG_SHOW_WARNINGS = false;
-	public static boolean DEBUG_SHOW_CONFIGURATION = false;
-	public static boolean DEBUG_SHOW_TYPE = false;
-	public static boolean DEBUG_SHOW_WEB = false;
-	public static boolean DEBUG_SHOW_IHANDLER = false;
-	public static boolean DEBUG_SHOW_RECONCILER = false;
-
-	//The shared instance.
-	private static UpdateCore plugin;
-
-	//log
-	private static UpdateManagerLogWriter log;
-	private static final String LOG_FILE=".install-log";
-	
-	//Connection manager
-	private ConnectionThreadManager connectionManager;
-
-	public static String HTTP_PROXY_HOST = "org.eclipse.update.core.proxy.host";
-	public static String HTTP_PROXY_PORT = "org.eclipse.update.core.proxy.port";
-	public static String HTTP_PROXY_ENABLE = "org.eclipse.update.core.proxy.enable";
-
-	/**
-	 * The constructor.
-	 */
-	public UpdateCore(IPluginDescriptor descriptor) {
-		super(descriptor);
-		plugin = this;
-	}
-
-	/**
-	 * Returns the shared instance.
-	 */
-	public static UpdateCore getPlugin() {
-		return plugin;
-	}
-	
-	/**
-	 * Returns the manager that manages URL connection threads.
-	 */
-	public ConnectionThreadManager getConnectionManager() {
-		if (connectionManager==null)
-			connectionManager = new ConnectionThreadManager();
-		return connectionManager;
-	}
-
-	/**
-	 * @see Plugin#startup()
-	 */
-	public void startup() throws CoreException {
-		super.startup();
-
-		Policy.localize("org.eclipse.update.internal.core.messages"); //$NON-NLS-1$
-		DEBUG = getBooleanDebugOption("org.eclipse.update.core/debug", false); //$NON-NLS-1$
-
-		if (DEBUG) {
-			DEBUG_SHOW_WARNINGS = getBooleanDebugOption("org.eclipse.update.core/debug/warning", false); //$NON-NLS-1$
-			DEBUG_SHOW_PARSING = getBooleanDebugOption("org.eclipse.update.core/debug/parsing", false); //$NON-NLS-1$
-			DEBUG_SHOW_INSTALL = getBooleanDebugOption("org.eclipse.update.core/debug/install", false); //$NON-NLS-1$
-			DEBUG_SHOW_CONFIGURATION = getBooleanDebugOption("org.eclipse.update.core/debug/configuration", false); //$NON-NLS-1$
-			DEBUG_SHOW_TYPE = getBooleanDebugOption("org.eclipse.update.core/debug/type", false); //$NON-NLS-1$
-			DEBUG_SHOW_WEB = getBooleanDebugOption("org.eclipse.update.core/debug/web", false); //$NON-NLS-1$
-			DEBUG_SHOW_IHANDLER = getBooleanDebugOption("org.eclipse.update.core/debug/installhandler", false); //$NON-NLS-1$
-			DEBUG_SHOW_RECONCILER = getBooleanDebugOption("org.eclipse.update.core/debug/reconciler", false); //$NON-NLS-1$
-		}
-		
-		//
-		try {
-			File logFile = getUpdateStateLocation();
-			if (logFile!=null)
-				log = new UpdateManagerLogWriter(logFile);
-		} catch (IOException e){
-			warn("",e);
-		}
-		
-		SiteManager.setHttpProxyInfo(
-			getPluginPreferences().getBoolean(HTTP_PROXY_ENABLE),
-			getPluginPreferences().getString(HTTP_PROXY_HOST),
-			getPluginPreferences().getString(HTTP_PROXY_PORT));
-	}
- 
-	/**
-	 * @see Plugin#shutdown()
-	 */
-	public void shutdown() throws CoreException {
-		super.shutdown();
-		
-		JarContentReference.shutdown(); // make sure we are not leaving jars open
-		Utilities.shutdown(); // cleanup temp area
-		if (log!=null)
-			log.shutdown();
-		if (connectionManager!=null)
-			connectionManager.shutdown();
-					
-	}
-
-	private boolean getBooleanDebugOption(String flag, boolean dflt) {
-		String result = Platform.getDebugOption(flag);
-		if (result == null)
-			return dflt;
-		else
-			return result.trim().equalsIgnoreCase("true"); //$NON-NLS-1$
-	}
-
-	/**
-	 * dumps a String in the trace
-	 */
-	public static void debug(String s) {
-		StringBuffer msg = new StringBuffer();
-		msg.append(getPlugin().toString());
-		msg.append("^");
-		msg.append(Integer.toHexString(Thread.currentThread().hashCode()));
-		msg.append(" ");
-		msg.append(s);
-		System.out.println(msg.toString());
-	}
-	
-	/**
-	 * Dumps a String in the log if WARNING is set to true
-	 */
-	public static void warn(String s) {
-		if (DEBUG && DEBUG_SHOW_WARNINGS) {
-			if (s!=null){
-				s="WARNING: "+s;
-			}
-			log(s, null); 
-		}
-	}
-
-	/**
-	 * Dumps an exception in the log if WARNING is set to true
-	 * 
-	 * @param s log string
-	 * @param e exception to be logged
-	 * @since 2.0
-	 */
-	public static void warn(String s, Throwable e) {
-		if (DEBUG && DEBUG_SHOW_WARNINGS){
-			if (s!=null){
-				s="UPDATE MANAGER INFO: "+s;
-			}
-			log(s,e);
-		}
-	}
-			
-	/**
-	 * Logs a status
-	 */
-	public static void log(IStatus status){
-		UpdateCore.getPlugin().getLog().log(status);		
-	}
-	
-	/**
-	 * Logs an error
-	 */
-	public static void log(Throwable e){		
-		log("",e);
-	}	
-	
-	/**
-	 * Logs a string and an  error
-	 */
-	public static void log(String msg, Throwable e){
-		IStatus status = null;
-		if (e instanceof CoreException) 
-			status = ((CoreException)e).getStatus();
-		else 
-			status = Utilities.newCoreException(msg,e).getStatus();		
-		if (status!=null)
-			log(status);
-	}		
-	/*
-	 * Method log.
-	 * @param newConfiguration
-	 */
-	public static void log(IInstallConfiguration newConfiguration) {
-		if (log!=null)
-			log.log(newConfiguration);
-	}
-
-	/*
-	 * Get update log location relative to platform configuration
-	 */
-	private static File getUpdateStateLocation() throws IOException {
-		
-		IPlatformConfiguration config = BootLoader.getCurrentPlatformConfiguration();		
-		URL configurationLocation = config.getConfigurationLocation();
-		if (configurationLocation==null){
-			warn("Unable to retrieve location for update manager log file");
-			return null;
-		}
-		URL configLocation = Platform.resolve(configurationLocation);
-		File updateStateLocation = null;
-
-		if ("file".equalsIgnoreCase(configLocation.getProtocol())) {
-			// ensure path exists. Handle transient configurations
-			ArrayList list = new ArrayList();
-			File path = new File(configLocation.getFile());
-			updateStateLocation = new File(path.getParentFile(),LOG_FILE);
-			while (path != null) { // walk up to first dir that exists
-				if (!path.exists()) {
-					list.add(path);
-					path = path.getParentFile();
-				} else
-					path = null;
-			}
-			for (int i = list.size() - 1; i >= 0; i--) { // walk down to create missing dirs
-				path = (File) list.get(i);
-				path.mkdir();
-				if (config.isTransient())
-					path.deleteOnExit();
-			}
-		}
-		return updateStateLocation;
-	}
-
-	/**
-	 * Sends the GET request to the server and returns the server's
-	 * response.
-	 *
-	 * @param url the URL to open on the server
-	 * @return the server's response
-	 * @throws IOException if an I/O error occurs. Reasons include:
-	 * <ul>
-	 * <li>The client is closed.
-	 * <li>The client could not connect to the server
-	 * <li>An I/O error occurs while communicating with the server
-	 * <ul>
-	 */
-	public Response get(URL url) throws IOException {
-		//Request request = null;
-		Response response = null;
-		
-		if ("file".equals(url.getProtocol())){
-			response = new FileResponse(url.openStream());
-		} else {
-			response = new HttpResponse(url);
-		}
-		
-		/*else {
-			try {
-				request = new Request("GET", url, null);
-				response = client.invoke(request);
-			} finally {
-				if (request != null) {
-					try {
-						request.close();
-					} catch (IOException e) {
-						e.printStackTrace();
-					}
-				}
-			}
-		}*/
-		return response;
-	}
-	
-	/*
-	 * Returns true if the feature is a patch
-	 */
-	public static boolean isPatch(IFeature candidate) {
-		IImport[] imports = candidate.getImports();
-
-		for (int i = 0; i < imports.length; i++) {
-			IImport iimport = imports[i];
-			if (iimport.isPatch())
-				return true;
-		}
-		return false;
-	}
-	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerLogWriter.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerLogWriter.java
deleted file mode 100644
index ee238fe..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerLogWriter.java
+++ /dev/null
@@ -1,298 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-import java.io.*;
-import java.io.Writer;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.eclipse.update.configuration.IActivity;
-import org.eclipse.update.configuration.IInstallConfiguration;
-/**
- * A log writer that writes update manager log entries.  
- */
-public class UpdateManagerLogWriter {
-	private File logFile = null;
-	private Writer log = null;
-
-	private static final String CONFIGURATION = "!CONFIGURATION"; //$NON-NLS-1$
-	private static final String ACTIVITY = "!ACTIVITY"; //$NON-NLS-1$
-
-	private static final String SUCCESS = "success"; //$NON-NLS-1$
-	private static final String FAILURE = "failure"; //$NON-NLS-1$
-
-	private static final String FEATURE_INSTALL = "feature-install"; //$NON-NLS-1$
-	private static final String FEATURE_REMOVE = "feature-remove"; //$NON-NLS-1$
-	private static final String SITE_INSTALL = "site-install"; //$NON-NLS-1$
-	private static final String SITE_REMOVE = "site-remove"; //$NON-NLS-1$
-	private static final String UNCONFIGURE = "feature-disable"; //$NON-NLS-1$
-	private static final String CONFIGURE = "feature-enable"; //$NON-NLS-1$
-	private static final String REVERT = "revert"; //$NON-NLS-1$
-	private static final String RECONCILIATION = "reconciliation"; //$NON-NLS-1$
-	private static final String PRESERVED = "preserve-configuration"; //$NON-NLS-1$	
-	private static final String UNKNOWN = "unknown"; //$NON-NLS-1$	
-
-	private static final String LINE_SEPARATOR;
-	private static final String TAB_STRING = "\t"; //$NON-NLS-1$
-
-	static {
-		String s = System.getProperty("line.separator"); //$NON-NLS-1$
-		LINE_SEPARATOR = s == null ? "\n" : s; //$NON-NLS-1$
-	}
-
-	/*
-	 * 
-	 */
-	public UpdateManagerLogWriter(File file) {
-		this.logFile = file;
-		UpdateCore.warn("UPDATE MANAGER LOG Location: "+file.getAbsolutePath());
-	}
-
-	/*
-	 * 
-	 */
-	private void closeLogFile() throws IOException {
-		try {
-			if (log != null) {
-				log.flush();
-				log.close();
-			}
-		} finally {
-			log = null;
-		}
-	}
-	
-	/*
-	 * 
-	 */
-	public synchronized void log(IInstallConfiguration installConfig) {
-		// thread safety: (Concurrency003)
-		if (logFile != null)
-			openLogFile();
-		if (log == null)
-			log = logForStream(System.err);
-		try {
-			try {
-				write(installConfig);
-			} finally {
-				if (logFile != null)
-					closeLogFile();
-				else
-					log.flush();
-			}
-		} catch (Exception e) {
-			System.err.println("An exception occurred while writing to the update manager log:"); //$NON-NLS-1$
-			e.printStackTrace(System.err);
-			System.err.println("Logging to the console instead."); //$NON-NLS-1$
-			//we failed to write, so dump log entry to console instead
-			try {
-				log = logForStream(System.err);
-				write(installConfig);
-				log.flush();
-			} catch (Exception e2) {
-				System.err.println("An exception occurred while logging to the console:"); //$NON-NLS-1$
-				e2.printStackTrace(System.err);
-			}
-		} finally {
-			log = null;
-		}
-	}
-	
-	/*
-	 * 
-	 */
-	private synchronized void log(IActivity activity) {
-		// thread safety: (Concurrency003)
-		if (logFile != null)
-			openLogFile();
-		if (log == null)
-			log = logForStream(System.err);
-		try {
-			try {
-				write(activity);
-			} finally {
-				if (logFile != null)
-					closeLogFile();
-				else
-					log.flush();
-			}
-		} catch (Exception e) {
-			System.err.println("An exception occurred while writing to the update manager log:"); //$NON-NLS-1$
-			e.printStackTrace(System.err);
-			System.err.println("Logging to the console instead."); //$NON-NLS-1$
-			//we failed to write, so dump log entry to console instead
-			try {
-				log = logForStream(System.err);
-				write(activity);
-				log.flush();
-			} catch (Exception e2) {
-				System.err.println("An exception occurred while logging to the console:"); //$NON-NLS-1$
-				e2.printStackTrace(System.err);
-			}
-		} finally {
-			log = null;
-		}
-	}	
-	
-	/*
-	 * 
-	 */
-	private void openLogFile() {
-		try {
-			log = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(logFile.getAbsolutePath(), true), "UTF-8")); //$NON-NLS-1$
-		} catch (IOException e) {
-			// there was a problem opening the log file so log to the console
-			log = logForStream(System.err);
-		}
-	}
-	
-    /*
-     * 
-     */
-	private String getFormattedDate(Date date) {
-		try {
-			DateFormat formatter = new SimpleDateFormat("MMM dd, yyyy kk:mm:ss.SS"); //$NON-NLS-1$
-			return formatter.format(date);
-		} catch (Exception e) {
-			// If there were problems writing out the date, ignore and
-			// continue since that shouldn't stop us from losing the rest
-			// of the information
-		}
-		return Long.toString(System.currentTimeMillis());
-	}
-	
-	/*
-	 * 
-	 */
-	private Writer logForStream(OutputStream output) {
-		try {
-			return new BufferedWriter(new OutputStreamWriter(output, "UTF-8")); //$NON-NLS-1$
-		} catch (UnsupportedEncodingException e) {
-			return new BufferedWriter(new OutputStreamWriter(output));
-		}
-	}
-	
-	/*
-	 * Writes the given string to the log, followed by the line terminator string.
-	 */
-	private void writeln(String s) throws IOException {
-		write(s);
-		writeln();
-	}
-	
-	/*
-	 * Shuts down the update manager log.
-	 */
-	public synchronized void shutdown() {
-		try {
-			if (logFile != null) {
-				closeLogFile();
-				logFile = null;
-			} else {
-				if (log != null) {
-					Writer old = log;
-					log = null;
-					old.flush();
-					old.close();
-				}
-			}
-		} catch (IOException e) {
-			//we've shutdown the log, so not much else we can do!
-			e.printStackTrace();
-		}
-	}
-
-
-	/*
-	 * !CONFIGURATION <label>
-	 */
-	private void write(IInstallConfiguration installConfig) throws IOException {
-		writeln();
-		write(CONFIGURATION);
-		writeSpace();		
-		write(installConfig.getLabel());
-		writeln();
-		IActivity[] activities = installConfig.getActivities();
-		for (int i = 0; i < activities.length; i++) {
-			write(activities[i]);
-		}				
-	}
-
-	/*
-	 * !ACTIVITY <date> <target> <action> <status>
-	 */
-	private void write(IActivity activity) throws IOException {
-		write(ACTIVITY);
-		writeSpace();		
-		write(getFormattedDate(activity.getDate()));
-		writeSpace();
-		write(activity.getLabel());
-		writeSpace();
-		write(getAction(activity.getAction()));
-		writeSpace();
-		write((activity.getStatus()==IActivity.STATUS_OK)?SUCCESS:FAILURE);
-		writeln();		
-	}
-
-	/*
-	 * 
-	 */
-	private String getAction(int i) {
-		switch (i) {
-			case IActivity.ACTION_FEATURE_INSTALL :
-				return FEATURE_INSTALL;
-			case IActivity.ACTION_FEATURE_REMOVE :
-				return FEATURE_REMOVE;
-			case IActivity.ACTION_SITE_INSTALL :
-				return SITE_INSTALL;
-			case IActivity.ACTION_SITE_REMOVE :
-				return SITE_REMOVE;
-			case IActivity.ACTION_UNCONFIGURE :
-				return UNCONFIGURE;
-			case IActivity.ACTION_CONFIGURE :
-				return CONFIGURE;
-			case IActivity.ACTION_REVERT :
-				return REVERT;
-			case IActivity.ACTION_RECONCILIATION :
-				return RECONCILIATION;
-			case IActivity.ACTION_ADD_PRESERVED :
-				return PRESERVED;
-							
-			default :
-				return UNKNOWN+" ["+i+"]";
-		}
-	}
-
-
-	/*
-	 * 
-	 */
-	private void writeln() throws IOException {
-		write(LINE_SEPARATOR);
-	}
-	
-	/*
-	 * 
-	 */
-	private void write(String message) throws IOException {
-		if (message != null)
-			log.write(message);
-	}
-	
-	/*
-	 * 
-	 */
-	private void writeSpace() throws IOException {
-		write(" "); //$NON-NLS-1$
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerReconciler.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerReconciler.java
deleted file mode 100644
index e86b61e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerReconciler.java
+++ /dev/null
@@ -1,366 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-
-
-import java.io.*;
-import java.net.URL;
-import java.util.*;
-import java.util.Date;
-import java.util.HashMap;
-
-import org.eclipse.core.boot.*;
-import org.eclipse.core.internal.runtime.InternalPlatform;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.update.configuration.IConfiguredSite;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.SiteManager;
-
-/**
- * Update manager reconciler application.
- * This application is invoked by the platform startup support
- * whenever changes are detected in the installation that require
- * the update state to be reconciled. Typically, this will be as
- * a result of installation actions that were done directly 
- * in the file system bypassing the Update Manager.
- * When triggered, this application performs the following:
- * <ul>
- * <li>call update manager reconciler
- * <li>if plugin path changed as a result of this call, trigger
- * restart ("exit code 23")
- * <li>if plugin path has not changed as a result of this call,
- * start this original application
- * </ul>
- */
-
-public class UpdateManagerReconciler implements IPlatformRunnable {
-
-	// NOTE: originalApplication is set to a dummy string to prevent "silent"
-	// failures in case of internal errors
-	private String originalApplication = "org.eclipse.update.UNKNOWN"; //$NON-NLS-1$
-	private boolean initialize = false;
-	private boolean firstUse = false;
-	private boolean optimistic = false;
-	private boolean dumpfile = false;
-	private boolean DEBUG = false;
-	private String dumpFilename = "";
-
-	private static final String RECONCILER_APP = "org.eclipse.update.core.reconciler";
-	private static final String APPLICATION = "-application"; //$NON-NLS-1$	
-	private static final String INITIALIZE = "-initialize"; //$NON-NLS-1$
-	private static final String DUMPFILE = "-dumpfile"; //$NON-NLS-1$	
-	private static final String FIRSTUSE = "-firstuse"; //$NON-NLS-1$
-	private static final String NEWUPDATES = "-newUpdates"; //$NON-NLS-1$
-	private static final String CHANGES_MARKER = ".newupdates"; //$NON-NLS-1$
-
-	/**
-	 * @see IPlatformRunnable#run(Object)
-	 */
-	public Object run(Object args) throws Exception {
-
-		// get debug setting and process command line arguments
-		DEBUG = UpdateCore.DEBUG_SHOW_RECONCILER;
-		processCommandLine((String[]) args);
-
-		// obtain current platform configuration and save stamps
-		IPlatformConfiguration cfg = BootLoader.getCurrentPlatformConfiguration();
-		// URL[] originalPluginPath = cfg.getPluginPath();
-
-		// perform reconciliation
-		long start = 0;
-		if (DEBUG) {
-			start = new Date().getTime();
-			debug("begin"); //$NON-NLS-1$
-		}
-
-		if (initialize || firstUse)
-			optimistic = true; // initialize and first-time startup ... optimistic
-		// (changes are auto-configured)
-		else
-			optimistic = false; // all other ... pessimistic (changes are
-		// reflected in state but not configured)
-
-		boolean changes = reconcile(cfg);
-
-		if (DEBUG) {
-			long delta = (new Date().getTime()) - start;
-			debug("end [" + delta + "ms]"); //$NON-NLS-1$ //$NON-NLS-2$
-		}
-
-		// if we need to write the features available, do it now
-		if (dumpfile) {
-			dumpFeatures();
-		}
-
-		// if we are completing post-install initialization (-initialize)
-		// just exit
-		if (initialize) {
-			Platform.endSplash();
-			return EXIT_OK;
-		}
-
-		// if the reconciler app was explicitly invoked, mark changes and
-		// just exit
-		if (RECONCILER_APP.equals(originalApplication)) {
-			Platform.endSplash();
-			if (changes)
-				markChanges(cfg);
-			return EXIT_OK; // just exit if original app was reconciler
-		}
-
-		// if the reconciler app was invoked, with -dump
-		// just exit
-		if (dumpfile) {
-			Platform.endSplash();
-			if (changes)
-				markChanges(cfg);
-			return EXIT_OK; // just exit 
-		}
-		
-		// see if plugins have changed
-		//		if (pluginPathChanged(cfg, originalPluginPath)) {
-		// plugins lineup changed ... need to restart
-		Platform.endSplash();
-		if (changes)
-			markChanges(cfg);
-		if (DEBUG)
-			debug("restarting ..." + new Date()); //$NON-NLS-1$
-		return EXIT_RESTART;
-		//		} else {
-		//			// plugins lineup did not change ... no need to restart, 
-		//			// just continue starting up the original app. Original
-		//			// app will take down splash
-		//			IPlatformRunnable originalRunnable = getRunnable(originalApplication);
-		//			if (originalRunnable == null)
-		//				throw new IllegalArgumentException(Policy.bind("Reconciler.appNotFound",originalApplication));  //$NON-NLS-1$
-		//			if (DEBUG)
-		//				debug("invoking " + originalApplication + " ...");  //$NON-NLS-1$  //$NON-NLS-2$
-		//			// indicate we have new updates (-newUpdates)	
-		//			if (changes)
-		//				appArgs = markChanges(appArgs);
-		//			return originalRunnable.run(appArgs);
-		//		}
-
-	}
-
-	/*
-	 * get the list of all installed features in all the sites 
-	 * dump the identifier and version in a file
-	 */
-	private void dumpFeatures() {
-		if (dumpFilename == null)
-			return;
-		List features = new ArrayList();
-
-		// find all features
-		IConfiguredSite[] configuredSites = new IConfiguredSite[0];
-		try {
-			configuredSites = SiteManager.getLocalSite().getCurrentConfiguration().getConfiguredSites();
-		} catch (Exception e) {
-			// eat the error
-		}
-		for (int i = 0; i < configuredSites.length; i++) {
-			IFeatureReference[] ref = configuredSites[i].getSite().getFeatureReferences();
-			try {
-				for (int j = 0; j < ref.length; j++) {
-					features.add(ref[j].getVersionedIdentifier());
-				}
-			} catch (Exception e) {
-				// eat the exception
-			}
-		}
-
-		// dump them
-		File dumpFile = new File(dumpFilename);
-		FileOutputStream out = null;
-		try {
-			out = new FileOutputStream(dumpFile);
-
-			for (Iterator iter = features.iterator(); iter.hasNext();) {
-				VersionedIdentifier element = (VersionedIdentifier) iter.next();
-				try {
-					String feature = element.getIdentifier() + "," + element.getVersion() + '\n';
-					out.write(feature.getBytes());
-				} catch (Exception e) {
-					// eat the exception
-				}
-			}
-		} catch (Exception e) {
-			// eat the exception
-			return;
-		} finally {
-			if (out != null) {
-				try {
-					out.close();
-				} catch (Exception e) {
-					// eat the exception
-				}
-			}
-		}
-
-	}
-
-	private boolean reconcile(IPlatformConfiguration cfg) {
-
-		boolean changes = true;
-
-		// do the reconciliation
-		try {
-			if (DEBUG)
-				debug("mode: " + (optimistic ? "optimistic" : "pessimistic")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-			changes = InternalSiteManager.reconcile(optimistic);
-			if (DEBUG)
-				debug(changes ? "changes detected" : "no changes detected"); //$NON-NLS-1$ //$NON-NLS-2$
-		} catch (CoreException e) {
-			UpdateCore.warn(null, e);
-		} catch (Exception e) {
-			UpdateCore.warn(null, e);
-		}
-		cfg.refresh(); // recompute stamps and plugin path
-
-		return changes;
-	}
-
-	private boolean pluginPathChanged(IPlatformConfiguration cfg, URL[] originalPluginPath) {
-		URL[] currentPluginPath = cfg.getPluginPath();
-		HashMap originalMap = new HashMap();
-		HashMap currentMap = new HashMap();
-
-		// populate maps
-		for (int i = 0; i < originalPluginPath.length; i++) {
-			originalMap.put(originalPluginPath[i].toExternalForm(), null);
-		}
-		for (int i = 0; i < currentPluginPath.length; i++) {
-			currentMap.put(currentPluginPath[i].toExternalForm(), null);
-		}
-
-		// check for deletions
-		for (int i = 0; i < originalPluginPath.length; i++) {
-			String key = originalPluginPath[i].toExternalForm();
-			if (!currentMap.containsKey(key))
-				return true;
-		}
-
-		// check for additions
-		for (int i = 0; i < currentPluginPath.length; i++) {
-			String key = currentPluginPath[i].toExternalForm();
-			if (!originalMap.containsKey(key))
-				return true;
-		}
-
-		return false;
-	}
-
-	private void markChanges(IPlatformConfiguration cfg) {
-		// indicate we have changes in restart scenario ... converted to -newUpdates on restart
-		FileOutputStream fos = null;
-		try {
-			URL markerLocation = new URL(cfg.getConfigurationLocation(), CHANGES_MARKER);
-			fos = new FileOutputStream(new File(markerLocation.getFile()));
-			fos.write(0);
-			fos.close();
-		} catch (IOException e) {
-			if (fos != null)
-				try {
-					fos.close();
-				} catch (IOException e2) {
-				}
-		}
-	}
-
-	private String[] markChanges(String[] args) {
-		// indicate we have changes in continue-startup scenario ... adds -newUpdate
-		String[] newArgs = new String[args.length + 1];
-		newArgs[0] = NEWUPDATES;
-		System.arraycopy(args, 0, newArgs, 1, args.length);
-		return newArgs;
-	}
-
-	private String[] processCommandLine(String[] args) {
-		int[] configArgs = new int[100];
-		configArgs[0] = -1; // need to initialize the first element to something that could not be an index.
-		int configArgIndex = 0;
-		for (int i = 0; i < args.length; i++) {
-			boolean found = false;
-
-			// check for args without parameters (i.e., a flag arg)
-
-			// look for the initialization flag
-			if (args[i].equalsIgnoreCase(INITIALIZE)) {
-				initialize = true;
-				found = true;
-			}
-
-			// look for first use flag
-			if (args[i].equalsIgnoreCase(FIRSTUSE)) {
-				firstUse = true;
-				found = true;
-			}
-
-			if (found) {
-				configArgs[configArgIndex++] = i;
-				continue;
-			}
-
-			// check for args with parameters. If we are at the last argument or if the next one
-			// has a '-' as the first character, then we can't have an arg with a parm so continue.
-			if (i == args.length - 1 || args[i + 1].startsWith("-")) { //$NON-NLS-1$
-				continue;
-			}
-			String arg = args[++i];
-
-			// look for the application argument
-			if (args[i - 1].equalsIgnoreCase(APPLICATION)) {
-				found = true;
-				originalApplication = arg;
-			}
-
-			// look for the dumpfile argument
-			if (args[i - 1].equalsIgnoreCase(DUMPFILE)) {
-				found = true;
-				dumpfile = true;
-				dumpFilename = arg;
-			}
-
-			// done checking for args.  Remember where an arg was found 
-			if (found) {
-				configArgs[configArgIndex++] = i - 1;
-				configArgs[configArgIndex++] = i;
-			}
-		}
-
-		// remove all the arguments consumed by this argument parsing
-		if (configArgIndex == 0)
-			return args;
-		String[] passThruArgs = new String[args.length - configArgIndex];
-		configArgIndex = 0;
-		int j = 0;
-		for (int i = 0; i < args.length; i++) {
-			if (i == configArgs[configArgIndex])
-				configArgIndex++;
-			else
-				passThruArgs[j++] = args[i];
-		}
-		return passThruArgs;
-	}
-
-	private IPlatformRunnable getRunnable(String application) {
-		// NOTE: we need to get the runnable for the original application.
-		// We can either lookup the application extension point (duplicate
-		// the InternalPlatform logic here), or make the internal call
-		return InternalPlatform.loaderGetRunnable(application);
-	}
-
-	private void debug(String s) {
-		UpdateCore.debug(this.getClass().getName() + ": " + s); //$NON-NLS-1$
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java
deleted file mode 100644
index 3c21e12..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java
+++ /dev/null
@@ -1,744 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.internal.core;

-import java.io.*;

-import java.net.*;

-import java.util.*;

-

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.InstallAbortedException;

-

-/**

- * 

- */

-public class UpdateManagerUtils {

-

-	private static boolean OS_UNIX = BootLoader.OS_HPUX.equals(BootLoader.getOS()) || BootLoader.OS_AIX.equals(BootLoader.getOS()) || BootLoader.OS_LINUX.equals(BootLoader.getOS()) || BootLoader.OS_SOLARIS.equals(BootLoader.getOS());

-

-	private static Map table;

-

-	static {

-		table = new HashMap();

-		table.put("compatible", new Integer(IImport.RULE_COMPATIBLE)); //$NON-NLS-1$

-		table.put("perfect", new Integer(IImport.RULE_PERFECT)); //$NON-NLS-1$

-		table.put("equivalent", new Integer(IImport.RULE_EQUIVALENT)); //$NON-NLS-1$

-		table.put("greaterOrEqual", new Integer(IImport.RULE_GREATER_OR_EQUAL)); //$NON-NLS-1$

-	}

-

-	private static Writer writer;

-	// manage URL to File

-	private static Map urlFileMap;

-

-	/**

-	 * return the urlString if it is a absolute URL

-	 * otherwise, return the default URL if the urlString is null

-	 * The defaultURL may point ot a file, create a file URL then

-	 * if the urlString or the default URL are relatives, prepend the rootURL to it

-	 */

-	public static URL getURL(URL rootURL, String urlString, String defaultURL) throws MalformedURLException {

-		URL url = null;

-

-		// if no URL , provide Default

-		if (urlString == null || urlString.trim().equals("")) { //$NON-NLS-1$

-

-			// no URL, no default, return right now...

-			if (defaultURL == null || defaultURL.trim().equals("")) //$NON-NLS-1$

-				return null;

-			else

-				urlString = defaultURL;

-		}

-

-		// URL can be relative or absolute	

-		if (urlString.startsWith("/") && urlString.length() > 1) //$NON-NLS-1$

-			urlString = urlString.substring(1);

-		try {

-			url = new URL(urlString);

-		} catch (MalformedURLException e) {

-			// the url is not an absolute URL

-			// try relative

-			url = new URL(rootURL, urlString);

-		}

-

-		return url;

-	}

-

-	/**

-	 * return a relative String to rootURL 

-	 * if url contains rootURL so

-	 * new URL(rootURL, resultString) == url

-	 * 

-	 */

-	public static String getURLAsString(URL rootURL, URL url) {

-		String result = null;

-

-		if (rootURL == null) {

-			return (url == null) ? null : url.toString();

-		}

-

-		// if no URL , return null

-		if (url != null) {

-

-			result = url.toExternalForm();

-

-			if (rootURL.getHost() != null && !rootURL.getHost().equals(url.getHost()))

-				return result;

-

-			if (rootURL.getProtocol() != null && !rootURL.getProtocol().equals(url.getProtocol()))

-				return result;

-

-			if (rootURL.getPort() != url.getPort())

-				return result;

-

-			String rootURLFileString = rootURL.getFile();

-			rootURLFileString.replace(File.separatorChar, '/');

-			if (!rootURLFileString.endsWith("/")) {

-				int index = rootURLFileString.lastIndexOf('/');

-				if (index != -1) {

-					rootURLFileString = rootURLFileString.substring(0, index);

-				}

-			}

-			String urlFileString = url.getFile();

-

-			if (urlFileString.startsWith(rootURLFileString)) {

-				result = urlFileString.substring(rootURLFileString.length());

-				result.replace(File.separatorChar, '/');

-			} else {

-				// we need to check the following

-				// file:/C:/ and file:C:/

-				if ("file".equalsIgnoreCase(url.getProtocol())) {

-					File rootFile = new File(rootURLFileString);

-					File urlFile = new File(urlFileString);

-

-					File relativePath = urlFile;

-					while (relativePath != null && !rootFile.equals(relativePath.getParentFile())) {

-						relativePath = relativePath.getParentFile();

-					}

-

-					if (relativePath == null) {

-						UpdateCore.warn("Cannot calculate relative path");

-						return url.toString();

-					} else {

-						String relativeRootString = relativePath.getParentFile().getAbsolutePath();

-						String fullString = urlFile.getAbsolutePath();

-						if (!fullString.startsWith(relativeRootString)) {

-							UpdateCore.warn("Full path:" + fullString + " does not start with " + relativeRootString);

-							return url.toString();

-						} else {

-							String returnString = fullString.substring(relativeRootString.length() + 1);

-							if (urlFile.isDirectory())

-								returnString += File.separator;

-							// we lost the last slash when tranforming in File

-							returnString = returnString.replace(File.separatorChar, '/');

-							return returnString;

-						}

-

-					}

-

-				} else {

-					result = url.toString();

-				}

-			}

-		}

-

-		return result;

-	}

-

-	/**

-	 * returns a translated String

-	 */

-	public static String getResourceString(String infoURL, ResourceBundle bundle) {

-		String result = null;

-		if (infoURL != null) {

-			result = UpdateCore.getPlugin().getDescriptor().getResourceString(infoURL, bundle);

-		}

-		return result;

-	};

-

-	/**

-	 * 

-	 */

-	public static URL copyToLocal(InputStream sourceContentReferenceStream, String localName, InstallMonitor monitor) throws MalformedURLException, IOException, InstallAbortedException {

-		URL result = null;

-		// create the Dir if they do not exist

-		// get the path from the File to resolve File.separator..

-		// do not use the String as it may contain URL like separator

-		File localFile = new File(localName);

-		int index = localFile.getPath().lastIndexOf(File.separator);

-		if (index != -1) {

-			File dir = new File(localFile.getPath().substring(0, index));

-			if (!dir.exists())

-				dir.mkdirs();

-		}

-

-		// transfer the content of the File

-		if (!localFile.isDirectory()) {

-			OutputStream localContentReferenceStream = new FileOutputStream(localFile);

-			try {

-				Utilities.copy(sourceContentReferenceStream, localContentReferenceStream, monitor);

-			} finally {

-				try {

-					localContentReferenceStream.close();

-				} catch (IOException e){}

-			}

-		}

-		result = localFile.toURL();

-		return result;

-	}

-

-	/*

-	 * [20305] need to slam permissions for executable libs on some

-	 * platforms. This is a temporary fix

-	 */

-	public static void checkPermissions(ContentReference ref, String filePath) {

-

-		if (ref.getPermission() != 0) {

-			UpdateCore.warn("Change permission for " + filePath + " to " + ref.getPermission());

-			// FIXME: change the code to use JNI

-		}

-

-		if (filePath != null && OS_UNIX && ref.getPermission() != 0) {

-			// add execute permission on shared libraries 20305

-			// do not remove write permission 20896

-			// chmod a+x *.sl

-			try {

-				Process pr = Runtime.getRuntime().exec(new String[] { "chmod", "a+x", filePath });

-				Thread chmodOutput = new StreamConsumer(pr.getInputStream());

-				chmodOutput.setName("chmod output reader");

-				chmodOutput.start();

-				Thread chmodError = new StreamConsumer(pr.getErrorStream());

-				chmodError.setName("chmod error reader");

-				chmodError.start();

-			} catch (IOException ioe) {

-			}

-

-		}

-	}

-

-	/**

-	 * Returns a random file name for the local system

-	 * attempt to conserve the extension if there is a '.' in the path

-	 * and no File.Seperator after the '.'

-	 * 

-	 * \a\b\c.txt -> c987659385.txt

-	 * c.txt -> c3854763.txt

-	 * c	-> c953867549

-	 */

-	public static String getLocalRandomIdentifier(String remotePath, Date date) {

-		int dotIndex = remotePath.lastIndexOf(".");

-		//$NON-NLS-1$

-		int fileIndex = remotePath.lastIndexOf(File.separator);

-		// if there is a separator after the dot

-		// do not consider it as an extension

-		String ext = (dotIndex != -1 && fileIndex < dotIndex) ? remotePath.substring(dotIndex) : "";

-		//$NON-NLS-1$

-		// the name is the string between the separator and the dot

-		// if there is no separator, it is the string up to the dot		

-		// if there is no dot, go to the end of the string 

-		if (fileIndex == -1)

-			fileIndex = 0;

-		if (dotIndex == -1)

-			dotIndex = remotePath.length();

-		// if I have a separator and no dot: /a/b/c -> c

-		// if my separator is the last /a/b/c/, fileIndex and dotIndex are the same, so it will return the default temp name

-		String name = (fileIndex < dotIndex) ? remotePath.substring(fileIndex, dotIndex) : "Eclipse_Update_TMP_";

-		//$NON-NLS-1$

-		String result = name + date.getTime() + ext;

-		return result;

-	}

-

-	/**

-	 * remove a file or directory from the file system.

-	 * used to clean up install

-	 */

-	public static void removeFromFileSystem(File file) {

-		if (!file.exists())

-			return;

-

-		if (file.isDirectory()) {

-			String[] files = file.list();

-			if (files != null) // be careful since file.list() can return null

-				for (int i = 0; i < files.length; ++i)

-					removeFromFileSystem(new File(file, files[i]));

-		}

-

-		if (!file.delete()) {

-			String msg = Policy.bind("UpdateManagerUtils.UnableToRemoveFile", file.getAbsolutePath());

-			//$NON-NLS-1$ //$NON-NLS-2$

-			UpdateCore.log(msg, new Exception());

-		}

-	}

-

-	/**

-	 * remove all the empty directories recursively

-	 * used to clean up install

-	 */

-	public static void removeEmptyDirectoriesFromFileSystem(File file) {

-		if (!file.isDirectory())

-			return;

-

-		String[] files = file.list();

-		if (files != null) { // be careful since file.list() can return null

-			for (int i = 0; i < files.length; ++i) {

-				removeEmptyDirectoriesFromFileSystem(new File(file, files[i]));

-			}

-		}

-		if (!file.delete()) {

-			String msg = Policy.bind("UpdateManagerUtils.UnableToRemoveFile", file.getAbsolutePath());

-			//$NON-NLS-1$ //$NON-NLS-2$

-			UpdateCore.log(msg, new Exception());

-		}

-	}

-

-	/**

-	 * Returns the plugin entries that are in source array and

-	 * not in target array

-	 */

-	public static IPluginEntry[] diff(IPluginEntry[] sourceArray, IPluginEntry[] targetArray) { // No pluginEntry to Install, return Nothing to instal

-		if (sourceArray == null || sourceArray.length == 0) {

-			return new IPluginEntry[0];

-		} // No pluginEntry installed, Install them all

-		if (targetArray == null || targetArray.length == 0) {

-			return sourceArray;

-		} // if a IPluginEntry from sourceArray is NOT in

-		// targetArray, add it to the list

-		List list1 = Arrays.asList(targetArray);

-		List result = new ArrayList(0);

-		for (int i = 0; i < sourceArray.length; i++) {

-			if (!list1.contains(sourceArray[i]))

-				result.add(sourceArray[i]);

-		}

-

-		IPluginEntry[] resultEntry = new IPluginEntry[result.size()];

-		if (result.size() > 0)

-			result.toArray(resultEntry);

-		return resultEntry;

-	}

-

-	/**

-	 * Returns the parent URL of the given URL, or <code>null</code> if the

-	 * given URL is the root.

-	 * <table>

-	 * <caption>Example</caption>

-	 * <tr>

-	 *   <th>Given URL</th>

-	 *   <th>Parent URL</th>

-	 * <tr>

-	 *   <td>"http://hostname/"</td>

-	 *   <td>null</td>

-	 * <tr>

-	 *   <td>"http://hostname/folder/file</td>

-	 *   <td>"http://hostname/folder/</td>

-	 * </table>

-	 *

-	 * @param url a URL

-	 * @return    the parent of the given URL

-	 */

-	public static URL getParent(URL url) {

-		String file = url.getFile();

-		int len = file.length();

-		if (len == 0 || len == 1 && file.charAt(0) == '/')

-			return null;

-		int lastSlashIndex = -1;

-		for (int i = len - 2; lastSlashIndex == -1 && i >= 0; --i) {

-			if (file.charAt(i) == '/')

-				lastSlashIndex = i;

-		}

-		if (lastSlashIndex == -1)

-			file = "";

-		else

-			file = file.substring(0, lastSlashIndex + 1);

-		try {

-			url = new URL(url.getProtocol(), url.getHost(), url.getPort(), file);

-		} catch (MalformedURLException e) {

-			Assert.isTrue(false, e.getMessage());

-		}

-		return url;

-	}

-

-	/**

-	 * 

-	 */

-	public static URL asDirectoryURL(URL url) throws MalformedURLException {

-		//url = URLEncoder.encode(url);

-		String path = url.getFile();

-		if (!path.endsWith("/")) {

-			int index = path.lastIndexOf('/');

-			if (index != -1)

-				path = path.substring(0, index + 1);

-			// ignore any ref in original URL

-			url = new URL(url.getProtocol(), url.getHost(), url.getPort(), path);

-		}

-		return url;

-	}

-

-	/*

-	 * Compares two URL for equality

-	 * Return false if one of them is null

-	 */

-	public static boolean sameURL(URL url1, URL url2) {

-

-		if (url1 == null)

-			return false;

-		if (url1.equals(url2))

-			return true;

-

-		// check if URL are file: URL as we may

-		// have 2 URL pointing to the same featureReference

-		// but with different representation

-		// (i.e. file:/C;/ and file:C:/)

-		if (!"file".equalsIgnoreCase(url1.getProtocol()))

-			return false;

-		if (!"file".equalsIgnoreCase(url2.getProtocol()))

-			return false;

-

-		File file1 = getFileFor(url1);//new File(url1.getFile());

-		File file2 = getFileFor(url2);

-

-		if (file1 == null)

-			return false;

-

-		return (file1.equals(file2));

-	}

-	

-	/*

-	 * Method getFileFor.

-	 * @param url1

-	 * @return File

-	 */

-	private static File getFileFor(URL url1) {

-		if (urlFileMap == null) urlFileMap = new HashMap();

-		if (urlFileMap.get(url1)!=null) return (File)urlFileMap.get(url1);

-		File newFile = new File(url1.getFile());

-		urlFileMap.put(url1,newFile);

-		return newFile; 

-	}

-

-	/*

-	 * returns the list of FeatureReference that are parent of 

-	 * the Feature or an empty array if no parent found.

-	 * @param onlyOptional if set to <code>true</code> only return parents that consider the feature optional

-	 * @param child

-	 * @param possiblesParent

-	 */

-	public static IFeatureReference[] getParentFeatures(IFeature childFeature, IFeatureReference[] possiblesParent, boolean onlyOptional) throws CoreException {

-

-		if (childFeature == null)

-			return new IFeatureReference[0];

-

-		List parentList = new ArrayList();

-		IIncludedFeatureReference[] children = null;

-		IFeature compareFeature = null;

-		for (int i = 0; i < possiblesParent.length; i++) {

-			try {

-				IFeature possibleParentFeature = possiblesParent[i].getFeature(null);

-				if (possibleParentFeature != null) {

-					children = possibleParentFeature.getIncludedFeatureReferences();

-					for (int j = 0; j < children.length; j++) {

-						try {

-							compareFeature = children[j].getFeature(true,null,null); // compare with the 'real' feature, not the best match

-						} catch (CoreException e) {

-							UpdateCore.warn("", e);

-						};

-						if (childFeature.equals(compareFeature)) {

-							if (onlyOptional) {

-								if (UpdateManagerUtils.isOptional(children[j])) {

-									parentList.add(possiblesParent[i]);

-								} else {

-									UpdateCore.warn("Feature :" + children[j] + " not optional. Not included in parents list.");

-								}

-							} else {

-								parentList.add(possiblesParent[i]);

-							}

-						}

-					}

-				}

-			} catch (CoreException e) {

-				UpdateCore.warn("", e);

-			};

-		}

-

-		IFeatureReference[] parents = new IFeatureReference[0];

-		if (parentList.size() > 0) {

-			parents = new IFeatureReference[parentList.size()];

-			parentList.toArray(parents);

-		}

-		return parents;

-	}

-

-	/*

-	 * returns the list of Features that are parent of 

-	 * the Feature or an empty array if no parent found

-	 * @param onlyOptional if set to <code>true</code> only return parents that consider the feature optional

-	 * @param child

-	 * @param possiblesParent

-	 */

-	public static IFeatureReference[] getParentFeatures(IFeatureReference child, IFeatureReference[] possiblesParent, boolean onlyOptional) throws CoreException {

-

-		if (child == null)

-			return new IFeatureReference[0];

-

-		IFeature childFeature = null;

-		try {

-			childFeature = child.getFeature(null);

-		} catch (CoreException e) {

-			UpdateCore.warn(null, e);

-		}

-

-		if (childFeature == null)

-			return new IFeatureReference[0];

-

-		return getParentFeatures(childFeature, possiblesParent, onlyOptional);

-	}

-

-	/*

-	 * If the return code of the HTTP connection is not 200 (OK)

-	 * thow an IO exception

-	 * 

-	 */

-	public static void checkConnectionResult(Response response,URL url) throws IOException {

-		// did the server return an error code ?

-			int result = response.getStatusCode();

-

-			if (result != IStatusCodes.HTTP_OK) {

-				String serverMsg = response.getStatusMessage();

-				throw new IOException(Policy.bind("ContentReference.HttpNok", new Object[] { new Integer(result), serverMsg, url })); //$NON-NLS-1$						

-			}

-	}

-

-	public static class StreamConsumer extends Thread {

-		InputStream is;

-		byte[] buf;

-		public StreamConsumer(InputStream inputStream) {

-			super();

-			this.setDaemon(true);

-			this.is = inputStream;

-			buf = new byte[512];

-		}

-		public void run() {

-			try {

-				int n = 0;

-				while (n >= 0)

-					n = is.read(buf);

-			} catch (IOException ioe) {

-			}

-		}

-	}

-

-	/**

-	 * Return the optional children to install

-	 * The optional features to install may not all be direct children 

-	 * of the feature.

-	 * Also include non-optional features

-	 * 

-	 * @param children all the nested features

-	 * @param optionalfeatures optional features to install

-	 * @return IFeatureReference[]

-	 */

-	public static IFeatureReference[] optionalChildrenToInstall(IFeatureReference[] children, IFeatureReference[] optionalfeatures) {

-

-		List optionalChildrenToInstall = new ArrayList();

-		for (int i = 0; i < children.length; i++) {

-			IFeatureReference optionalFeature = children[i];

-			if (!UpdateManagerUtils.isOptional(optionalFeature)) {

-				optionalChildrenToInstall.add(optionalFeature);

-			} else {

-				for (int j = 0; j < optionalfeatures.length; j++) {

-					if (optionalFeature.equals(optionalfeatures[j])) {

-						optionalChildrenToInstall.add(optionalFeature);

-						break;

-					}

-				}

-			}

-		}

-

-		IFeatureReference[] result = new IFeatureReference[optionalChildrenToInstall.size()];

-		if (optionalChildrenToInstall.size() > 0) {

-			optionalChildrenToInstall.toArray(result);

-		}

-

-		return result;

-	}

-

-	/**

-	 * returns the mapping of matching rules

-	 * the default returns perfect

-	 * 

-	 * @since 2.0.2

-	 */

-	public static int getMatchingRule(String rule) {

-		if (rule == null)

-			return IImport.RULE_PERFECT;

-		int ruleInt = ((Integer) table.get(rule)).intValue();

-		if (ruleInt == IImport.RULE_NONE)

-			return IImport.RULE_PERFECT;

-		return ruleInt;

-	}

-	

-	/**

-	 * returns the mapping of matching id rules

-	 * the default returns perfect

-	 * 

-	 * @since 2.0.2

-	 */

-	public static int getMatchingIdRule(String rule) {

-		if (rule!=null && rule.equalsIgnoreCase("prefix"))

-			return IImport.RULE_PREFIX;

-		return IImport.RULE_PERFECT;

-	}

-	

-	/**

-	 * Method isOptional.

-	 * @param featureReference

-	 * @return boolean

-	 */

-	public static boolean isOptional(IFeatureReference featureReference) {

-		if (featureReference==null) return false;

-		if (featureReference instanceof IIncludedFeatureReference){

-			return ((IIncludedFeatureReference)featureReference).isOptional();

-		}

-		return false;

-	}

-

-	/**

-	 * 

-	 */

-	public static boolean isValidEnvironment(IPlatformEnvironment candidate) {

-		if (candidate==null) return false;

-		String os = candidate.getOS();

-		String ws = candidate.getWS();

-		String arch = candidate.getOSArch();

-		if (os!=null && isMatching(os, SiteManager.getOS())==false) return false;

-		if (ws!=null && isMatching(ws, SiteManager.getWS())==false) return false;

-		if (arch!=null && isMatching(arch, SiteManager.getOSArch())==false) return false;

-		return true;

-	}

-

-	/**

-	 * 

-	 */	

-	private static boolean isMatching(String candidateValues, String siteValues) {

-		if (siteValues==null) return false;

-		if ("*".equalsIgnoreCase(candidateValues)) return true;

-		siteValues = siteValues.toUpperCase();		

-		StringTokenizer stok = new StringTokenizer(candidateValues, ",");

-		while (stok.hasMoreTokens()) {

-			String token = stok.nextToken().toUpperCase();

-			if (siteValues.indexOf(token)!=-1) return true;

-		}

-		return false;

-	}

-	

-/**

- * write XML file

- */

-public static class Writer {

-

-	private PrintWriter w;

-	private OutputStream out;

-	private OutputStreamWriter outWriter;

-	private BufferedWriter buffWriter;

-	private String encoding;

-

-	/*

-	 * 

-	 */

-	private Writer() {

-		super();

-	}

-	

-	public void init(File file, String encoding) throws FileNotFoundException, UnsupportedEncodingException{

-		this.encoding = encoding;

-		out = new FileOutputStream(file);

-		outWriter = new OutputStreamWriter(out, encoding); //$NON-NLS-1$

-		buffWriter = new BufferedWriter(outWriter);

-		w = new PrintWriter(buffWriter);

-	}

-

-	

-	/*

-	 * 

-	 */

-	public void write(IWritable element) {

-		w.println("<?xml version=\"1.0\" encoding=\""+encoding+"\"?>"); //$NON-NLS-1$

-		w.println(""); //$NON-NLS-1$

-		w.println("<!-- File written by Update manager 2.0 -->"); //$NON-NLS-1$

-		w.println("<!-- comments in this file are not preserved -->"); //$NON-NLS-1$

-		w.println(""); //$NON-NLS-1$

-		 ((IWritable) element).write(0, w);

-		close();

-	}

-	

-	/*

-	 * 

-	 */

-	 public void close(){

-	 		w.close();

-	 }

-

-	/*

-	 * 

-	 */

-	private static void appendEscapedChar(StringBuffer buffer, char c) {

-		String replacement = getReplacement(c);

-		if (replacement != null) {

-			buffer.append('&');

-			buffer.append(replacement);

-			buffer.append(';');

-		} else {

-			if ((c >= ' ' && c <= 0x7E) || c == '\n' || c == '\r' || c == '\t') {

-				buffer.append(c);

-			} else {

-				buffer.append("&#"); //$NON-NLS-1$

-				buffer.append(Integer.toString(c));

-				buffer.append(';');

-			}

-		}

-	}

-

-	/*

-	 * 

-	 */

-	public static String xmlSafe(String s) {

-		StringBuffer result = new StringBuffer(s.length() + 10);

-		for (int i = 0; i < s.length(); ++i)

-			appendEscapedChar(result, s.charAt(i));

-		return result.toString();

-	}

-	

-	/*

-	 * 

-	 */

-	private static String getReplacement(char c) {

-		// Encode special XML characters into the equivalent character references.

-		// These five are defined by default for all XML documents.

-		switch (c) {

-			case '<' :

-				return "lt"; //$NON-NLS-1$

-			case '>' :

-				return "gt"; //$NON-NLS-1$

-			case '"' :

-				return "quot"; //$NON-NLS-1$

-			case '\'' :

-				return "apos"; //$NON-NLS-1$

-			case '&' :

-				return "amp"; //$NON-NLS-1$

-		}

-		return null;

-	}

-}

-	public static Writer getWriter(File file,String encoding) throws FileNotFoundException, UnsupportedEncodingException {

-		if (writer==null) writer = new Writer();

-		writer.init(file,encoding);

-		return writer;

-	}

-}

diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Volume.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Volume.java
deleted file mode 100644
index e3c5c86..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/Volume.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.core;
-import java.io.File;
-
-import org.eclipse.update.configuration.IVolume;
-import org.eclipse.update.core.model.ModelObject;
-
-/**
- * Default implementation of a IVolume
- */
-public class Volume extends ModelObject implements IVolume {
-
-	private long size;
-	private int type;
-	private String label;
-	private File root;
-
-	/**
-	 * Constructor for Volume.
-	 */
-	public Volume(File root,String label,int type,long size) {
-		super();
-		this.root = root;
-		this.label = label;
-		this.type = type;
-		this.size = size;
-	}
-
-	/**
-	 * @see IVolume#getFreeSpace()
-	 */
-	public long getFreeSpace() {
-		return size;
-	}
-
-	/**
-	 * @see IVolume#getLabel()
-	 */
-	public String getLabel() {
-		return label;
-	}
-
-	/**
-	 * @see IVolume#getType()
-	 */
-	public int getType() {
-		return type;
-	}
-
-	/**
-	 * @see IVolume#getFile()
-	 */
-	public File getFile() {
-		return root;
-	}
-
-	/**
-	 * @see IAdaptable#getAdapter(Class)
-	 */
-	public Object getAdapter(Class arg0) {
-		return null;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/messages.properties b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/messages.properties
deleted file mode 100644
index 610cad7..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/messages.properties
+++ /dev/null
@@ -1,268 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-# Install Update Core Properties File
-# 
-
-BaseSiteFactory.CannotRetriveParentDirectory=Unable to retrieve parent directory for URL \"{0}\".
-BaseSiteFactory.CannotEncodeURL= Unable to encode URL \"{0}\".
-
-ContentReference.UnableToCreateInputStream= Unable to create an input stream for the reference \"{0}\".
-ContentReference.UnableToReturnReferenceAsFile= Unable to return reference \"{0}\" as File.
-ContentReference.UnableToReturnReferenceAsURL= Unable to return reference \"{0}\" as URL.
-ContentReference.HttpNok= Server returned HTTP response code: \"{0} {1}\" for URL: {2}.
-ContentReference.FileDoesNotExist=The file \"{0}\" does not exist on the filesystem.
-
-Feature.SiteAlreadySet= Internal Error: Site already set for the feature \"{0}\".
-Feature.TaskInstallFeatureFiles= Installing feature files: 
-Feature.TaskInstallPluginFiles= Installing plug-in \"{0}\" files:
-Feature.TaskInstallNonPluginsFiles= Installing non-plug-in files: 
-Feature.NoContentProvider= Internal Error. The feature \"{0}\" does not have a content provider.
-Feature.NoFeatureContentConsumer= Internal Error. The Feature \"{0}\" does not have a content consumer.
-Feature.NoURL= Unknown URL.
-Feature.FeatureVersionToString= Feature: \"{0}\" Version: \"{1}\".
-Feature.InstallationCancelled= Installation has been cancelled by the User.
-Feature.UnableToInitializeFeatureReference= Unable to initialize feature reference for versioned identifier \"{0}\".
-
-FeatureContentProvider.Downloading= Downloading:
-FeatureContentProvider.UnableToRetrieve= Unable to retrieve remote reference \"{0}\".
-FeatureContentProvider.UnableToCreate= Unable to create local file \"{0}\".
-
-InstallHandler.unableToCreateHandler = Unable to create custom install handler for feature \"{0}\".
-InstallHandler.notFound = Custom install handler required by feature \"{0}\" was not found.
-InstallHandler.invalidHandler = Feature \"{0}\" contains invalid custom install handler.
-InstallHandler.callException = Error reported by custom install handler for feature \"{0}\".
-InstallHandler.deactivated = Custom install handler for feature \"{0}\" deactivated due to errors.
-InstallHandler.error = Unable to complete action for feature \"{0}\" due to errors.
-
-InstallMonitor.DownloadSize = ({0}K bytes)
-InstallMonitor.DownloadSizeLong = ({0}K of {1}K bytes)
-
-Reconciler.appNotFound = Application \"{0}\" not found.
-
-JarContentReference.Unpacking= Unpacking:
-
-Site.CannotSaveSiteInto= Cannot save Site information into the File: \"{0}\".
-Site.CannotFindCategory= Unable to find category: \"{0}\" in Site: \"{1}\".
-Site.NoCategories= The Site does not contain any categories.
-Site.NoContentProvider= Internal Error. Content Provider not set for Site: \"{0}\".
-
-VersionedIdentifier.IdOrVersionNull= Internal Error. Unable to create an Identifier. The unique identifier or the version is null or empty: unique identifier=\"{0}\" version=\"{1}\".
-
-SiteFile.CannotRemovePlugin= Unable to remove plugin: \"{0}\" from Site: \"{1}\".
-SiteFile.CannotRemoveFeature= Unable to remove feature: \"{0}\" from Site: \"{1}\".
-SiteFile.UnableToCreateURL= Unable to create URL for location \"{0}\".
-SiteFile.Removing= Removing: 
-
-SiteFileFactory.UnableToCreateURL= Internal Error. Unable to create URL from \"{0}\".
-SiteFileFactory.UnableToAccessSite= Unable to access Site stream.
-SiteFileFactory.DirectoryDoesNotExist=The directory \"{0}\" does not exist on the file system.
-
-DefaultFeatureParser.NoFeatureTag= Error parsing feature stream. Unable to find root element \"feature\" in the stream.
-DefaultFeatureParser.WrongParsingStack= Internal Error parsing feature stream. Unexpected Parsing Stack: \"{0}\"
-DefaultFeatureParser.UnknownElement= Error parsing feature stream. Unknown element \"{0}\" in parsing state \"{1}\". Check the validity of the XML file.
-DefaultFeatureParser.TooManyURLtag= Error parsing feature stream. There is more than one \"URL\" element in the XML stream. There should be only one.
-DefaultFeatureParser.UnknownStartState= Internal Error parsing feature stream. Unknown start state \"{0}\".
-DefaultFeatureParser.IdOrVersionInvalid= Error parsing feature stream. The unique identifier or the version is null or empty for the State: \"{2}\": unique identifier=\"{0}\" version=\"{1}\".
-DefaultFeatureParser.MissingId= Error parsing feature stream. The \"id\" tag of the element \"{0}\" is null or empty. Value is required.
-DefaultFeatureParser.ParsingStackBackToInitialState= Internal Error parsing feature stream. Parsing stack back to Initial State.
-DefaultFeatureParser.ElementAlreadySet= Error parsing feature stream. Element: \"{0}\" already set for the feature.
-DefaultFeatureParser.StateIncludeWrongElement= Error parsing feature stream. State: \"{0}\" should not include Element \"{1}\".
-DefaultFeatureParser.RequireStateWithoutImportElement=Error parsing feature stream. State: \"require\" must include at least an \"import\" element.
-DefaultFeatureParser.MissingPatchVersion=Error parsing feature stream. Attribute "version" of the element "import" must be set when "patch" is set to "true".
-DefaultFeatureParser.wrongMatchForPatch=Error parsing feature stream. When attribute "patch" of the element "import" is set to "true", the only valid value for the "match" attribute is "perfect". 
-DefaultFeatureParser.patchWithPlugin=Error parsing feature stream. Attribute "patch" can only be used for features.
-DefaultFeatureParser.MultiplePatchImports=Error parsing feature stream. State: "require" must not contain more than one "import" element with the attribute "patch" set to "true".
-DefaultFeatureParser.UnknownEndState= Internal Error parsing feature stream. Unknown end state \"{0}\".
-DefaultFeatureParser.ErrorParsing= Error Parsing feature stream. Error: \"{0}\"
-DefaultFeatureParser.ErrorlineColumnMessage= Error Parsing feature stream. Element \"{0}\" line: \"{1}\" column:\"{2}\". Error: \"{3}\".
-DefaultFeatureParser.ErrorParsingFeature= Error Parsing feature stream.
-DefaultFeatureParser.UnknownState= Unknown State \"{0}\".
-DefaultFeatureParser.NoLicenseText= Error parsing feature stream. State: \"license\" must include some text.
-
-# 2.0.2
-DefaultFeatureParser.PluginAndFeatureId=One Import statement is incorrect: Both feature and plugin ID are either null or specified.
-
-SiteContentProvider.ErrorCreatingURLForArchiveID= Internal Error. Unable to create URL for Archive Identifier \"{0}\" on Site \"{1}\".
-
-DefaultSiteParser.NoSiteTag= Error parsing site stream. Unable to find root element \"site\" in the stream.
-DefaultSiteParser.WrongParsingStack= Internal Error parsing site stream. Unexpected Parsing Stack: \"{0}\"
-DefaultSiteParser.UnknownElement= Error parsing site stream. Unknown element \"{0}\" in parsing state \"{1}\". Check the validity of the XML file.
-DefaultSiteParser.UnknownStartState= Internal Error parsing site stream. Unknown start state \"{0}\".
-DefaultSiteParser.Missing= Error parsing site stream. The \"{0}\" tag of the element \"{1}\" is null or empty. Value is required.
-DefaultSiteParser.ParsingStackBackToInitialState= Internal Error parsing site stream. Parsing stack back to Initial State.
-DefaultSiteParser.ElementAlreadySet= Error parsing site stream. Element: \"{0}\" already set for the Site.
-DefaultSiteParser.CategoryAlreadySet= Error parsing site stream. Element: \"{0}\": \"{1}\" already set for the Site.
-DefaultSiteParser.UnknownEndState= Internal Error parsing site stream. Unknown end state \"{0}\".
-DefaultSiteParser.ErrorParsing= Error Parsing site stream. Error: \"{0}\"
-DefaultSiteParser.ErrorlineColumnMessage= Error Parsing site stream. Element \"{0}\" line: \"{1}\" column:\"{2}\". Error: \"{3}\".
-DefaultSiteParser.ErrorParsingSite= Error Parsing site stream.
-DefaultSiteParser.UnknownState= Unknown State \"{0}\".
-DefaultSiteParser.InvalidXMLStream= The XML stream is not a valid default site.xml file. The root tag is not site.
-
-ModelObject.ModelReadOnly= Internal Error. The Model Object is read-only.
-
-SiteModelObject.ErrorParsingSiteStream= Error parsing site stream.
-SiteModelObject.ErrorAccessingSiteStream= Error accessing site stream.
-
-InstallConfiguration.ParsingErrorDuringCreation= Internal Error parsing \"{0}\": \"{1}\".
-InstallConfiguration.ErrorDuringFileAccess= Error accessing file: \"{0}\".
-
-Parser.UnableToCreateURL= Internal Error parsing stream. Check the validity of the URLs.
-Parser.InternalError= Error Parsing Stream. An internal error occurred. \"{0}\".
-Parser.UnableToResolveURL= Internal Error parsing stream. Unable to resolve URL \"{0}\".
-
-InstallConfigurationParser.FeatureReferenceNoURL= Error Parsing Stream. A feature reference element does not have a URL tag. Value is required.
-
-FeatureExecutableContentProvider.FileDoesNotExist= The file \"{0}\" does not exist.
-FeatureExecutableContentProvider.InvalidDirectory= The path \"{0}\" is not a valid directory.
-FeatureExecutableContentProvider.UnableToCreateURLFor=Unable to create a URL for \"{0}\".
-FeatureExecutableContentProvider.UnableToRetrieveArchive=Error retrieving the archive entry: \"{0}\".
-FeatureExecutableContentProvider.UnableToRetrieveNonPluginEntry=Error retrieving the non-plugin entry: \"{0}\". 
-FeatureExecutableContentProvider.UnableToRetrieveFeatureEntry=Error retrieving feature entry content reference: \"{0}\".
-FeatureExecutableContentProvider.UnableToRetrievePluginEntry =Error retrieving the plugin entry: \"{0}\". 
-
-ConfiguredSite.NonInstallableSite= You cannot install in the site \"{0}\". It is considered non updatable.
-ConfiguredSite.NullFeatureToInstall= Internal Error. The feature to be installed is null.
-ConfiguredSite.NonUninstallableSite= You cannot uninstall from the site \"{0}\". It is considered non updatable.
-ConfiguredSite.NoSite= No Site
-ConfiguredSite.CannotFindFeatureToUnconfigure= Internal Error. Unable to disable feature \"{0}\" on site \"{1}\". Cannot find feature.
-ConfiguredSite.CannotFindFeatureToConfigure= Internal Error. Unable to enable feature \"{0}\". Cannot find feature. 
-ConfiguredSite.CannotFindPluginEntry= Unable to retrieve Plugin Entry \"{0}\" on site \"{1}\". Cannot find plugin entry. Continue ?
-ConfiguredSite.MissingPluginsBrokenFeature= Plugin \"{0}\" version \"{1}\" referenced by this feature is missing.
-ConfiguredSite.UnableToRemoveConfiguredFeature= Unable to remove a enabled feature: \"{0}\" You must disable the feature first.
-ConfiguredSite.UnableToFindFeature= Unable to Find the feature \"{0}\" on this site.
-ConfiguredSite.SiteURLNull=The Site url is null.
-ConfiguredSite.NonLocalSite=The Site is not on the local file system. Cannot validate. 
-ConfiguredSite.NotSameProductId=The site cannot be modifed by this product. It is already associated with product: \"{0}\".
-ConfiguredSite.ContainedInAnotherSite=This site is contained in another site: \"{0}\".
-ConfiguredSite.ReadOnlySite=The site is marked as read only.
-ConfiguredSite.UnableResolveURL= InternalError. Unable to resolve url \"{0}\".
-ConfiguredSite.UnableToAccessSite= InternalError. Unable to access platform site \"{0}\".
-
-FeatureFactory.CreatingError= Error creating feature \"{0}\".
-FeatureModelFactory.ErrorAccesingFeatureStream= Error accessing feature stream.
-
-FeatureExecutableFactory.NullURL= Error creating feature. The URL used to create the feature is null.
-FeatureExecutableFactory.CannotCreateURL= Error creating feature. Unable to create URL for \"{0}\".
-
-FeaturePackagedContentProvider.NoManifestFile= Unable to retrieve \"{0}\" in feature located at \"{1}\". 
-FeaturePackagedContentProvider.NoFeature= No feature
-FeaturePackagedContentProvider.FileDoesNotExist= The File \"{0}\" does not exist.
-FeaturePackagedContentProvider.InvalidDirectory= The directory \"{0}\" is not a valid directory.
-FeaturePackagedContentProvider.ErrorRetrieving= Error retrieving \"{0}\".
-FeaturePackagedContentProvider.ContentReferenceString= from \"{0}\"
-FeaturePackagedContentProvider.URLString= located at \"{0}\"
-
-FeatureReference.UnableToResolveURL= Internal Error: Unable to resolve model using URL: \"{0}\".
-
-FeatureTypeFactory.UnableToFindFeatureFactory= Unable to find a feature factory for the extension id \"{0}\". 
-
-InstallConfiguration.UnableToSaveConfiguration= Unable to save configuration in \"{0}\".
-InstallConfiguration.UnableToEncodeConfiguration= Unable to encode configuration in \"{0}\".
-InstallConfiguration.UnableToCreateURL= Unable to create URL from \"{0}\".
-InstallConfiguration.UnableToCast= Internal Error. The Configuration Site object is not a subclass of ConfiguredSiteModel
-InstallConfiguration.UnableToSavePlatformConfiguration=Unable to save platform configuration in \"{0}\".
-InstallConfiguration.AlreadyNativelyLinked=The site is already linked.
-InstallConfiguration.NotAnExtensionSite=The site cannot be linked to. It is not an extension site.
-
-InternalSiteManager.UnableToCreateSiteWithType= Extension Error. The Site Factory of type \"{0}\" cannot access the Site \"{1}\".
-InternalSiteManager.UnableToAccessURL= Unable to access \"{0}\".
-InternalSiteManager.UnableToCreateURL= Unable to create URL from \"{0}\".
-InternalSiteManager.UnableToParseURL= Unable to parse the stream \"{0}\".
-InternalSiteManager.FailedRetryAccessingSite= Failed retry accessing site using default installed format instead of default packaged format.
-InternalSiteManager.ConnectingToSite = Connecting To Site...
-
-SiteReconciler.UnableToFindInstallDeltaFactory= Internal Error: Unable to find factory to display changes. Open the Update Manager manually.
-
-Policy.NoMessageAvailable= No message available.
-Policy.MissingMessage= Missing message: \"{0}\".
-Policy.Missing= missing \"{0}\".
-
-GlobalConsumer.ErrorCreatingFile= Unable to create file \"{0}\".
-
-SiteFileContentConsumer.UnableToCreateURL= Unable to create URL from \"{0}\".
-SiteFileContentConsumer.UnableToCreateURLForFile= Unable to create URL for the file \"{0}\".
-
-ContentConsumer.UnableToRename = Internal Error. Unable to rename \"{0}\" to \"{1}\".
-
-SiteFileFactory.UnableToRetriveSite= Unable retrieve this Site from a directory. The URL should point to a file instead.
-SiteFileFactory.UnableToObtainParentDirectory= Unable obtain the parent directory from the file \"{0}\".
-SiteFileFactory.FileDoesNotExist= Unable to access site \"{0}\". The directory does not exist.
-SiteFileFactory.UnableToCreateURLForFile= Unable to create URL from \"{0}\".
-SiteFileFactory.ErrorParsingFile= Unable to parse file \"{0}\".
-SiteFileFactory.ErrorAccessing= Unable to access file \"{0}\".
-
-SiteTypeFactory.UnableToFindSiteFactory= Unable to find a site factory for the extension id \"{0}\". 
-
-UpdateManagerUtils.UnableToRemoveFile= Unable to remove \"{0}\" from the file system.
-UpdateManagerUtils.FileAlreadyExists= Unable to create \"{0}\" on the file system. File already exists.
-
-SiteLocal.ErrorParsingSavedState= Error during parsing of the configuration saved state \"{0}\".
-SiteLocal.UnableToCreateURLFor= Unable to create URL from \"{0}\".
-SiteLocal.UnableToAccessFile= Unable to access file \"{0}\".
-SiteLocal.UnableToSaveStateIn= Unable to persist configurations into \"{0}\".
-SiteLocal.UnableToEncodeConfiguration= Unable to encode configurations into \"{0}\".
-SiteLocal.UnableToResolve= Internal Error. Unable to resolve \"{0}\".
-SiteLocal.UnableToRetrieveRWArea= Internal Error. Unable to retrieve location to write metadata.
-SiteLocal.SiteUrlIsNull= Internal Error: URL of local site is null.
-SiteLocal.UnableToDetermineFeatureStatusSiteNull=Unable to determine status of feature\"{0}\" The site is NULL.
-SiteLocal.TwoVersionSamePlugin1=Plugin: \"{0}\" version: \"{1}\" referenced by this feature is not included at runtime. Runtime includes plugin version \"{2}\".
-SiteLocal.TwoVersionSamePlugin2=Plugin: \"{0}\" version: \"{1}\" referenced by this feature is not included at runtime. Runtime includes plugin version \"{2}\" supplied by feature \"{3}\" version \"{4}\".
-SiteLocal.FeatureUnHappy=The feature is not configured properly.
-SiteLocal.FeatureHappy=The feature is configured properly.
-SiteLocal.FeatureAmbiguous=The feature may not be configured properly.
-SiteLocal.NestedFeatureUnHappy=Included feature \"{0}\" version \"{1}\" contains problems.
-SiteLocal.NestedFeatureUnavailable=Included feature \"{0}\" is missing.
-SiteLocal.NoPluginVersion=No plugin: \"{0}\" included at runtime.
-
-#202
-SiteLocal.UnableToDetermineFeatureStatusConfiguredSiteNull=Unable to determine status of feature\"{0}\" The Configured Site is NULL.
-SiteLocal.FeatureDisable=The feature is disabled.
-SiteLocal.FeatureStatusUnknown=Unknown state.
-SiteLocal.NestedFeatureDisable=Included feature \"{0}\" version \"{1}\" is disabled.
-SiteLocal.NullFeature=The feature is null.
-SiteLocal.WrongURL=A URL of an Originating site is not valid.
-
-SiteReconciler.UnableToSaveStateIn= Unable to persist delta change into \"{0}\".
-SiteReconciler.UnableToEncodeConfiguration= Unable to encode delta change into \"{0}\".
-
-SiteURLFactory.UnableToCreateURL= Internal Error. Unable to create a URL from \"{0}\".
-SiteURLFactory.UnableToAccessSiteStream= Unable to access Site stream: \"{0}\"
-
-JarVerifier.Verify= Verifying: \"{0}\"
-JarVerifier.UnableToFindEncryption= Unable to find algorithm to verify integrity of KeyStore \"{0}\".
-JarVerifier.UnableToLoadCertificate= Unable to load one or multiples certificates in the KeyStore \"{0}\".
-JarVerifier.UnableToFindProviderForKeystore= Unable to find provider for the KeyStore type \"{0}\".
-JarVerifier.KeyStoreNotLoaded= Internal Error. KeyStore not Initialized/Loaded.
-JarVerifier.UnableToAccessJar= Unable to access JAR file \"{0}\".
-JarVerifier.InvalidFile= The File \"{0}\" is not a valid JAR file. It does not contain a Manifest.
-JarVerifier.InvalidJar= The File \"{0}\" is not a valid JAR file.
-
-JarVerificationResult.ValidBetween= Valid between \"{0}\" and \"{1}\".
-JarVerificationResult.ExpiredCertificate= * EXPIRED CERTIFICATE *
-JarVerificationResult.CertificateNotYetValid= * CERTIFICATE NOT YET VALID *
-JarVerificationResult.CertificateValid= Valid certificate.
-
-JarVerificationService.UnsucessfulVerification=Verification of feature unsuccessful. Installation cancelled.
-JarVerificationService.CancelInstall=Installation cancelled.
-
-UpdateManagerUtils.UnableToLog=Unable to access error recovery log file: \"{0}\".
-
-SessionDelta.EnableFeatures=Enabling selected features...
-
-ConfigurationPolicy.UnableToDisable= Unable to disable feature \"{0}\".
-ConfigurationPolicy.ParentIsEnable= The parent feature: \"{0}\" is enable.
-
-ConnectionThreadManager.tooManyConnections = There are too many network connections still active. \
-If you are experiencing network problems, try again later. If the error persists, restart the \
-application.
-ConnectionThreadManager.unresponsiveURL = Still waiting for response: {0}
-
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationActivityModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationActivityModel.java
deleted file mode 100644
index 03c5562..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationActivityModel.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
- 
-import java.util.Date;
-
-import org.eclipse.update.core.model.ModelObject;
-
-public class ConfigurationActivityModel extends ModelObject{
-	
-	private String label;
-	private int action;
-	private Date date;
-	private int status;
-	private InstallConfigurationModel installConfiguration;
-	
-
-	/**
-	 * Constructor for ConfigurationActivityModel.
-	 */
-	public ConfigurationActivityModel() {
-		super();
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public int getAction() {
-		return action;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public Date getDate() {
-		return date;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public int getStatus() {
-		return status;
-	}
-
-	/**
-	 * Sets the date.
-	 * @param date The date to set
-	 */
-	public void setDate(Date date) {
-		assertIsWriteable();
-		this.date = date;
-	}
-
-	/**
-	 * Sets the status.
-	 * @param status The status to set
-	 */
-	public void setStatus(int status) {
-		assertIsWriteable();
-		this.status = status;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public String getLabel() {
-		return label;
-	}
-
-	/**
-	 * Sets the label.
-	 * @param label The label to set
-	 */
-	public void setLabel(String label) {
-		assertIsWriteable();
-		this.label = label;
-	}
-
-	/**
-	 * Sets the action.
-	 * @param action The action to set
-	 */
-	public void setAction(int action) {
-		assertIsWriteable();
-		this.action = action;
-	}
-
-	/**
-	 * Gets the installConfiguration.
-	 * @return Returns a InstallConfigurationModel
-	 */
-	public InstallConfigurationModel getInstallConfigurationModel() {
-		return installConfiguration;
-	}
-
-	/**
-	 * Sets the installConfiguration.
-	 * @param installConfiguration The installConfiguration to set
-	 */
-	public void setInstallConfigurationModel(InstallConfigurationModel installConfiguration) {
-		assertIsWriteable();		
-		this.installConfiguration = installConfiguration;
-	}
-
-}
-
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationPolicyModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationPolicyModel.java
deleted file mode 100644
index 6f00d64..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfigurationPolicyModel.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.update.core.IFeatureReference;
-import org.eclipse.update.core.model.FeatureReferenceModel;
-import org.eclipse.update.core.model.ModelObject;
-import org.eclipse.update.internal.core.UpdateCore;
-import org.eclipse.update.internal.core.UpdateManagerUtils;
-
-/**
- * 
- */
-public class ConfigurationPolicyModel extends ModelObject {
-
-	
-	
-
-	private int policy;
-	private Map /* of FeatureReferenceModel */configuredFeatureReferences;
-	private Map /* of FeatureReferenceModel */unconfiguredFeatureReferences;
-	
-	// since 2.0.2
-	private ConfiguredSiteModel configuredSiteModel;
-	
-	// since 2.1
-	private boolean enable;
-
-	/**
-	 * Constructor for ConfigurationPolicyModel.
-	 */
-	public ConfigurationPolicyModel() {
-		super();
-		enable = true;
-		configuredFeatureReferences = new HashMap();
-		unconfiguredFeatureReferences = new HashMap();		
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public int getPolicy() {
-		return policy;
-	}
-
-	/**
-	 * Sets the policy.
-	 * @param policy The policy to set
-	 */
-	public void setPolicy(int policy) {
-		assertIsWriteable();
-		this.policy = policy;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public FeatureReferenceModel[] getConfiguredFeaturesModel() {
-		if (configuredFeatureReferences==null || configuredFeatureReferences.isEmpty())
-			return new FeatureReferenceModel[0];
-		return (FeatureReferenceModel[]) configuredFeatureReferences.keySet().toArray(arrayTypeFor(configuredFeatureReferences.keySet()));
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public FeatureReferenceModel[] getUnconfiguredFeaturesModel() {
-	if (unconfiguredFeatureReferences==null || unconfiguredFeatureReferences.isEmpty())
-			return new FeatureReferenceModel[0];			
-		return (FeatureReferenceModel[]) unconfiguredFeatureReferences.keySet().toArray(arrayTypeFor(unconfiguredFeatureReferences.keySet()));		
-	}
-
-	/**
-	 * Gets the configuredSiteModel.
-	 * @return Returns a ConfiguredSiteModel
-	 * @since 2.0.2
-	 */
-	public ConfiguredSiteModel getConfiguredSiteModel() {
-		return configuredSiteModel;
-	}
-
-	/**
-	 * Sets the configuredSiteModel.
-	 * @param configuredSiteModel The configuredSiteModel to set
-	 * @since 2.0.2
-	 */
-	public void setConfiguredSiteModel(ConfiguredSiteModel configuredSiteModel) {
-		this.configuredSiteModel = configuredSiteModel;
-	}
-
-	/**
-	 * 
-	 */
-	private boolean remove(FeatureReferenceModel feature, Map list) {
-		URL featureURL = feature.getURL();
-		boolean found = false;
-		Iterator iter = list.keySet().iterator();
-		while (iter.hasNext() && !found) {
-			FeatureReferenceModel element = (FeatureReferenceModel) iter.next();
-			if (UpdateManagerUtils.sameURL(element.getURL(),featureURL)) {
-				list.remove(element);
-				found = true;
-			}
-		}
-		return found;
-	}
-
-	/**
-	 * returns an array of string corresponding to plugins file
-	 */
-	/*package*/
-
-	
-	/**
-	 * 
-	 */
-	private void add(FeatureReferenceModel feature, Map list) {
-		URL featureURL = feature.getURL();
-		boolean found = false;
-		Iterator iter = list.keySet().iterator();
-		while (iter.hasNext() && !found) {
-			FeatureReferenceModel element = (FeatureReferenceModel) iter.next();
-			if (UpdateManagerUtils.sameURL(element.getURL(),featureURL)) {
-				found = true;
-			}
-		}
-
-		if (!found) {
-			list.put(feature,null);
-		} else {
-			UpdateCore.warn("Feature Reference :"+feature+" already part of the list.");
-		}
-	}
-
-	/**
-	 * adds a feature in the configuredReference list
-	 * also used by the parser to avoid creating another activity
-	 */
-	public void addConfiguredFeatureReference(FeatureReferenceModel feature) {
-		assertIsWriteable();
-		
-		if (configuredFeatureReferences == null)
-			this.configuredFeatureReferences = new HashMap();
-		if (!configuredFeatureReferences.containsKey(feature)){
-			//DEBUG:
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION){
-				UpdateCore.debug("Configuring "+feature.getURLString());
-			}
-			this.add(feature, configuredFeatureReferences);
-		}	
-
-		// when user configure a feature,
-		// we have to remove it from unconfigured feature if it exists
-		// because the user doesn't know...
-		if (unconfiguredFeatureReferences != null) {
-			boolean success = remove(feature, unconfiguredFeatureReferences);
-			if (!success)
-				UpdateCore.warn("Feature not part of Unconfigured list: "+feature.getURLString());			
-		}
-
-	}
-
-	/**
-	 * adds a feature in the list
-	 * also used by the parser to avoid creating another activity
-	 */
-	public void addUnconfiguredFeatureReference(FeatureReferenceModel feature) {
-		assertIsWriteable();
-		if (unconfiguredFeatureReferences == null)
-			this.unconfiguredFeatureReferences = new HashMap();
-		if (!unconfiguredFeatureReferences.containsKey(feature)){
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_CONFIGURATION){
-				UpdateCore.debug("Unconfiguring "+feature.getURLString());
-			}
-			this.add(feature, unconfiguredFeatureReferences);
-		}	
-
-		// an unconfigured feature is always from a configured one no ?
-		// unless it was parsed right ?
-		if (configuredFeatureReferences != null) {
-			boolean success = remove(feature, configuredFeatureReferences);
-			if (!success)
-				UpdateCore.warn("Feature not part of Configured list: "+feature.getURLString());				
-		}
-	}
-
-	/**
-	 * removes a feature from any list
-	 */
-	public void removeFeatureReference(FeatureReferenceModel feature) {
-		assertIsWriteable();
-		if (unconfiguredFeatureReferences!=null){
-			boolean success = remove(feature, unconfiguredFeatureReferences);
-			if (!success)
-				UpdateCore.warn(feature.getURLString()+" not part of unconfigured list.");							
-		}
-
-		if (configuredFeatureReferences != null) {
-			boolean success = remove(feature, configuredFeatureReferences);
-			if (!success)
-				UpdateCore.warn(feature.getURLString()+" not part of configured list.");							
-		}
-	}
-	
-	/**
-	 * Sets the unconfiguredFeatureReferences.
-	 * @param unconfiguredFeatureReferences The unconfiguredFeatureReferences to set
-	 */
-	protected void setUnconfiguredFeatureReferences(IFeatureReference[] featureReferences) {
-		unconfiguredFeatureReferences = new HashMap();
-		for (int i = 0; i < featureReferences.length; i++) {
-			unconfiguredFeatureReferences.put(featureReferences[i],null);
-		}
-	}
-
-
-	/**
-	 * Sets the configuredFeatureReferences.
-	 * @param configuredFeatureReferences The configuredFeatureReferences to set
-	 */
-	protected void setConfiguredFeatureReferences(IFeatureReference[] featureReferences) {
-		configuredFeatureReferences = new HashMap();
-		for (int i = 0; i < featureReferences.length; i++) {
-			configuredFeatureReferences.put(featureReferences[i],null);
-		}		
-	
-	}
-
-	/**
-	 * @return boolean
-	 */
-	public boolean isEnabled() {
-		return enable;
-	}
-
-	/**
-	 * @param value
-	 */
-	public void setEnabled(boolean value) {
-		enable = value;
-	}
-
-
-	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfiguredSiteModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfiguredSiteModel.java
deleted file mode 100644
index 3971b10..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/ConfiguredSiteModel.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.update.core.model.ModelObject;
-import org.eclipse.update.core.model.SiteModel;
-import org.eclipse.update.internal.core.UpdateCore;
-
-/**
- * 
- */
-public class ConfiguredSiteModel extends ModelObject {
-	private String[] previousPluginPath;
-
-	private SiteModel site;
-	private String platformURLString;
-	private ConfigurationPolicyModel policy;
-	private InstallConfigurationModel installConfiguration;
-	private boolean installable = false;
-
-	/**
-	 * Constructor
-	 */
-	public ConfiguredSiteModel() {
-		super();
-	}
-
-	/**
-	 * returns the site
-	 * @return The ISite 
-	 * @since 2.0
-	 */
-	public SiteModel getSiteModel() {
-		return site;
-	}
-
-	/**
-	 * Sets the site.
-	 * @param site The site to set
-	 */
-	public void setSiteModel(SiteModel site) {
-		assertIsWriteable();
-		this.site = site;
-	}
-
-	/**
-	 * returns the policy
-	 */
-	public ConfigurationPolicyModel getConfigurationPolicyModel() {
-		return policy;
-	}
-
-	/**
-	 * 
-	 * @since 2.0
-	 */
-	public void setConfigurationPolicyModel(ConfigurationPolicyModel policy) {
-		assertIsWriteable();
-		this.policy = policy;
-		policy.setConfiguredSiteModel(this);
-	}
-
-	/**
-	 * @since
-	 */
-	public boolean isUpdatable() {
-		return installable;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public void setUpdatable(boolean installable) {
-		assertIsWriteable();
-		this.installable = installable;
-	}
-
-	/**
-	 * Gets the installConfiguration.
-	 * @return Returns a InstallConfigurationModel
-	 */
-	public InstallConfigurationModel getInstallConfigurationModel() {
-		return installConfiguration;
-	}
-
-	/**
-	 * Sets the installConfiguration.
-	 * @param installConfiguration The installConfiguration to set
-	 */
-	public void setInstallConfigurationModel(InstallConfigurationModel installConfiguration) {
-		assertIsWriteable();
-		this.installConfiguration = installConfiguration;
-	}
-
-	/**
-	 * Gets the platformURLString.
-	 * @return Returns a String
-	 */
-	public String getPlatformURLString() {
-		return platformURLString;
-	}
-
-	/**
-	 * Sets the platformURLString.
-	 * @param platformURLString The platformURLString to set
-	 */
-	public void setPlatformURLString(String platformURLString) {
-		this.platformURLString = platformURLString;
-	}
-
-	
-		/**
-	 * Gets the previousPluginPath. The list of plugins the platform had.
-	 * @return Returns a String[]
-	 */
-	public String[] getPreviousPluginPath() {
-		if (previousPluginPath == null)
-			previousPluginPath = new String[0];
-		return previousPluginPath;
-	}
-
-	/**
-	 * Sets the previousPluginPath.
-	 * @param previousPluginPath The previousPluginPath to set
-	 */
-	public void setPreviousPluginPath(String[] previousPluginPath) {
-		this.previousPluginPath = new String[previousPluginPath.length];
-		System.arraycopy(previousPluginPath, 0, this.previousPluginPath, 0, previousPluginPath.length);
-	}
-
-	/*
-	 * creates a Status
-	 */
-	protected IStatus createStatus(int statusType, String msg, Exception e){
-		if (statusType!=IStatus.OK) statusType = IStatus.ERROR;
-		return createStatus(statusType,IStatus.OK, msg.toString(), e);
-	}
-
-	/*
-	 * creates a Status
-	 */
-	protected IStatus createStatus(int statusSeverity, int statusCode, String msg, Exception e){
-		String id =
-			UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier();
-	
-		StringBuffer completeString = new StringBuffer("");
-		if (msg!=null)
-			completeString.append(msg);
-		if (e!=null){
-			completeString.append("\r\n[");
-			completeString.append(e.toString());
-			completeString.append("]\r\n");
-		}
-		return new Status(statusSeverity, id, statusCode, completeString.toString(), e);
-	}
-	
-	/**
-	 * @see org.eclipse.update.configuration.IConfiguredSite#isEnabled()
-	 */
-	public boolean isEnabled() {
-		return getConfigurationPolicyModel().isEnabled();
-	}
-
-	/**
-	 * @see org.eclipse.update.configuration.IConfiguredSite#setEnabled(boolean)
-	 */
-	public void setEnabled(boolean value) {
-		getConfigurationPolicyModel().setEnabled(value);
-	}
-	
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/DefaultPluginParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/DefaultPluginParser.java
deleted file mode 100644
index ab960c3..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/DefaultPluginParser.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.apache.xerces.parsers.SAXParser;
-import org.eclipse.update.core.PluginEntry;
-import org.eclipse.update.core.VersionedIdentifier;
-import org.xml.sax.*;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * Parse default feature.xml
- */
-
-public class DefaultPluginParser extends DefaultHandler {
-
-	private SAXParser parser;
-	private String id = null;
-	private String version = null;
-	private PluginEntry pluginEntry;
-
-	private static final String PLUGIN = "plugin"; //$NON-NLS-1$
-	private static final String FRAGMENT = "fragment"; //$NON-NLS-1$
-	private static final String ID = "id"; //$NON-NLS-1$
-	private static final String VERSION = "version"; //$NON-NLS-1$
-
-	private class ParseCompleteException extends SAXException {
-		public ParseCompleteException(String arg0) {
-			super(arg0);
-		}
-	}
-
-	/**
-	 * Constructor for DefaultFeatureParser
-	 */
-	public DefaultPluginParser() {
-		super();
-		this.parser = new SAXParser();
-		this.parser.setContentHandler(this);
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public synchronized PluginEntry parse(InputStream in) throws SAXException, IOException {
-		try {
-			pluginEntry = new PluginEntry();
-			parser.parse(new InputSource(in));
-		} catch (ParseCompleteException e) {
-			// expected, we stopped the parsing when we have the information we need
-			/// no need to pursue the parsing
-		}
-
-		pluginEntry.setVersionedIdentifier(new VersionedIdentifier(id, version));
-		return pluginEntry;
-	}
-
-	/**
-	 * @see DefaultHandler#startElement(String, String, String, Attributes)
-	 */
-	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
-
-		String tag = localName.trim();
-
-		if (tag.equalsIgnoreCase(PLUGIN)) {
-			pluginEntry.isFragment(false);			
-			processPlugin(attributes);
-			return;
-		}
-
-		if (tag.equalsIgnoreCase(FRAGMENT)) {
-			pluginEntry.isFragment(true);			
-			processPlugin(attributes);
-			return;
-		}
-	}
-
-	/** 
-	 * process plugin entry info
-	 */
-	private void processPlugin(Attributes attributes) throws ParseCompleteException {
-		id = attributes.getValue("id"); //$NON-NLS-1$
-		version = attributes.getValue("version"); //$NON-NLS-1$
-		throw new ParseCompleteException(""); //$NON-NLS-1$
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallChangeParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallChangeParser.java
deleted file mode 100644
index 9241b67..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallChangeParser.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.io.*;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Date;
-import java.util.ResourceBundle;
-
-import org.apache.xerces.parsers.SAXParser;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.update.configuration.ISessionDelta;
-import org.eclipse.update.core.*;
-import org.eclipse.update.internal.core.*;
-import org.xml.sax.*;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * parse the default site.xml
- */
-
-public class InstallChangeParser extends DefaultHandler {
-
-	private SAXParser parser;
-	private SessionDelta change;
-	private File file;
-
-	public static final String CHANGE = "change"; //$NON-NLS-1$
-	public static final String NEW_FEATURE = "newFeatures"; //$NON-NLS-1$
-	public static final String REFERENCE = "reference"; //$NON-NLS-1$
-
-	private ResourceBundle bundle;
-
-	/**
-	 * Constructor for InstallChangeParser
-	 */
-	public InstallChangeParser(File file)
-		throws IOException, SAXException, CoreException {
-		super();
-		parser = new SAXParser();
-		parser.setContentHandler(this);
-
-		InputStream changeStream = new FileInputStream(file);
-		this.file = file;
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG
-			&& UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug(
-				"Start parsing Install Change:");
-			//$NON-NLS-1$
-		}
-
-		InputSource source = new InputSource(changeStream);
-		parser.parse(source);
-		
-		// 16366
-		if (change!=null) change.setFile(file);
-	}
-
-	/*
-	 * returns the parsed InstallChanged
-	 */
-	public ISessionDelta getInstallChange() {
-		return change;
-	}
-
-	/*
-	 * @see DefaultHandler#startElement(String, String, String, Attributes)
-	 */
-	public void startElement(
-		String uri,
-		String localName,
-		String qName,
-		Attributes attributes)
-		throws SAXException {
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG
-			&& UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug(
-				"Start Element: uri:"
-					+ uri
-					+ " local Name:"
-					+ localName
-					+ " qName:"
-					+ qName);
-			//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-		try {
-
-			String tag = localName.trim();
-
-			if (tag.equalsIgnoreCase(CHANGE)) {
-				processChange(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(NEW_FEATURE)) {
-				processNewFeature(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(REFERENCE)) {
-				processFeatureReference(attributes);
-				return;
-			}
-		} catch (MalformedURLException e) {
-			throw new SAXException(
-				Policy.bind("Parser.UnableToCreateURL", e.getMessage()),
-				e);
-			//$NON-NLS-1$
-		} catch (CoreException e) {
-			throw new SAXException(
-				Policy.bind("Parser.InternalError", e.toString()),
-				e);
-			//$NON-NLS-1$
-		}
-	}
-
-	/* 
-	 * 
-	 */
-	private void processFeatureReference(Attributes attributes)
-		throws MalformedURLException, CoreException {
-
-		//site url
-		String siteUrlPath = attributes.getValue("siteURL"); //$NON-NLS-1$
-		URL siteURL = new URL(siteUrlPath);
-		try {
-			siteURL = Platform.resolve(siteURL); 
-		} catch (IOException e) {
-			throw Utilities.newCoreException(
-				Policy.bind("Parser.UnableToResolveURL", new Object[]{siteURL}),
-				e);
-			//$NON-NLS-1$
-		}
-		ISite currentSite = SiteManager.getSite(siteURL,null);
-
-		// feature url
-		String featureUrlPath = attributes.getValue("featureURL"); //$NON-NLS-1$
-		URL featureURL = new URL(siteURL, featureUrlPath);
-
-		if (featureURL != null) {
-			SiteFeatureReference ref = new SiteFeatureReference();
-			ref.setSite(currentSite);
-			ref.setURL(featureURL);
-			change.addReference(ref);
-
-			// DEBUG:		
-			if (UpdateCore.DEBUG
-				&& UpdateCore.DEBUG_SHOW_RECONCILER) {
-				UpdateCore.debug(
-					"End Processing Feature Reference: url:"
-						+ featureURL.toExternalForm());
-				//$NON-NLS-1$
-			}
-		} else {
-			String msg=
-					Policy.bind(
-						"InstallConfigurationParser.FeatureReferenceNoURL");
-			//$NON-NLS-1$
-			UpdateCore.log(msg,new Exception());
-		}
-	}
-
-	/* 
-	 * 
-	 */
-	private void processNewFeature(Attributes attributes) {
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG
-			&& UpdateCore.DEBUG_SHOW_RECONCILER) {
-			UpdateCore.debug(
-				"End Processing New Features:");
-			//$NON-NLS-1$
-		}
-	}
-
-	/* 
-	 * 
-	 */
-	private void processChange(Attributes attributes) {
-
-		change = new SessionDelta();
-			
-		// date
-		long date = Long.parseLong(attributes.getValue("date")); //$NON-NLS-1$
-		change.setCreationDate(new Date(date));
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG
-			&& UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug(
-				"End Processing Change: date:" + date);
-			//$NON-NLS-1$
-		}
-
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationModel.java
deleted file mode 100644
index c2b603d..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationModel.java
+++ /dev/null
@@ -1,286 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.io.*;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.Utilities;
-import org.eclipse.update.core.model.ModelObject;
-import org.eclipse.update.internal.core.*;
-import org.xml.sax.SAXException;
-
-/**
- * An InstallConfigurationModel is 
- * 
- */
-
-public class InstallConfigurationModel extends ModelObject {
-
-	// performance
-	private URL bundleURL;
-	private URL base;
-	private boolean resolved = false;
-
-	private boolean isCurrent;
-	private URL locationURL;
-	private String locationURLString;
-	private Date date;
-	private String label;
-	private List /* of ConfiguretionActivityModel */
-	activities;
-	private List /* of configurationSiteModel */
-	configurationSites;
-
-	private long timeline;
-	protected boolean initialized = false;
-
-	/**
-	 * default constructor. Create
-	 */
-	public InstallConfigurationModel() {
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public ConfiguredSiteModel[] getConfigurationSitesModel() {
-		if (!initialized) initialize();
-		if (configurationSites == null)
-			return new ConfiguredSiteModel[0];
-	
-		return (ConfiguredSiteModel[]) configurationSites.toArray(arrayTypeFor(configurationSites));
-	}
-
-	/**
-	 * Adds the configuration to the list
-	 * is called when adding a Site or parsing the XML file
-	 * in this case we do not want to create a new activity, so we do not want t call
-	 * addConfigurationSite()
-	 */
-	public void addConfigurationSiteModel(ConfiguredSiteModel site) {
-		if (configurationSites == null) {
-			configurationSites = new ArrayList();
-		}
-		if (!configurationSites.contains(site)) {
-			configurationSites.add(site);
-		}
-	}
-
-	public void setConfigurationSiteModel(ConfiguredSiteModel[] sites) {
-		configurationSites = null;
-		for (int i = 0; i < sites.length; i++) {
-			addConfigurationSiteModel(sites[i]);
-		}
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public boolean removeConfigurationSiteModel(ConfiguredSiteModel site) {
-		if (!initialized) initialize();
-
-		if (configurationSites != null) {
-			return configurationSites.remove(site);
-		}
-
-		return false;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public boolean isCurrent() {
-		if (!initialized) initialize();
-		return isCurrent;
-	}
-
-	/**
-	 *  @since 2.0
-	 */
-	public void setCurrent(boolean isCurrent) {
-		// do not check if writable as we may
-		// set an install config as Not current
-		this.isCurrent = isCurrent;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public ConfigurationActivityModel[] getActivityModel() {
-		if (!initialized) initialize();
-		if (activities == null)
-			return new ConfigurationActivityModel[0];
-		return (ConfigurationActivityModel[]) activities.toArray(arrayTypeFor(activities));
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public void addActivityModel(ConfigurationActivityModel activity) {
-		if (activities == null)
-			activities = new ArrayList();
-		if (!activities.contains(activity)) {
-			activities.add(activity);
-			activity.setInstallConfigurationModel(this);
-		}
-	}
-	/**
-	 * 
-	 */
-	public Date getCreationDate() {
-		if (!initialized) initialize();
-		return date;
-	}
-	/**
-	 * Sets the date.
-	 * @param date The date to set
-	 */
-	public void setCreationDate(Date date) {
-		assertIsWriteable();
-		this.date = date;
-	}
-	/**
-	 * @since 2.0
-	 */
-	public URL getURL() {
-		//if (!initialized) initialize();
-		//no need to initialize, always set
-		delayedResolve();
-		return locationURL;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public String getLabel() {
-		if (!initialized) initialize();
-		return label;
-	}
-
-	/**
-	 * @since 2.0.2
-	 */
-
-	public String toString() {
-		return getLabel();
-	}
-
-	/**
-	 * Sets the label.
-	 * @param label The label to set
-	 */
-	public void setLabel(String label) {
-		assertIsWriteable();
-		this.label = label;
-	}
-
-	/**
-	 * Gets the locationURLString.
-	 * @return Returns a String
-	 */
-	public String getLocationURLString() {
-		if (!initialized) delayedResolve();
-		return locationURLString;
-	}
-
-	/**
-	 * Sets the locationURLString.
-	 * @param locationURLString The locationURLString to set
-	 */
-	public void setLocationURLString(String locationURLString) {
-		assertIsWriteable();
-		this.locationURLString = locationURLString;
-		this.locationURL = null;
-	}
-
-	/*
-	 * @see ModelObject#resolve(URL, ResourceBundle)
-	 */
-	public void resolve(URL base, URL bundleURL) throws MalformedURLException {
-
-		this.base = base;
-		this.bundleURL = bundleURL;
-
-	}
-
-	/**
-	 * Returns the timeline.
-	 * @return long
-	 */
-	public long getTimeline() {
-		if (!initialized) initialize();
-		return timeline;
-	}
-
-	/**
-	 * Sets the timeline.
-	 * @param timeline The timeline to set
-	 */
-	public void setTimeline(long timeline) {
-		this.timeline = timeline;
-	}
-
-	/*
-	 * initialize the configurations from the persistent model.
-	 */
-	private void initialize() {
-		
-		try {
-			try {
-				URL resolvedURL = URLEncoder.encode(getURL());
-				InputStream in = UpdateCore.getPlugin().get(resolvedURL).getInputStream();
-				new InstallConfigurationParser(in, this);
-			} catch (FileNotFoundException exception) {
-				UpdateCore.warn(locationURLString + " does not exist, The local site is not in synch with the file system and is pointing to a file that doesn't exist.", exception); //$NON-NLS-1$
-				throw Utilities.newCoreException(Policy.bind("InstallConfiguration.ErrorDuringFileAccess", locationURLString), exception); //$NON-NLS-1$
-			} catch (SAXException exception) {
-				throw Utilities.newCoreException(Policy.bind("InstallConfiguration.ParsingErrorDuringCreation", locationURLString, "\r\n" + exception.toString()), exception); //$NON-NLS-1$ //$NON-NLS-2$
-			} catch (IOException exception) {
-				throw Utilities.newCoreException(Policy.bind("InstallConfiguration.ErrorDuringFileAccess", locationURLString), exception); //$NON-NLS-1$
-			}
-			
-		} catch (CoreException e) {
-			UpdateCore.warn("Error processing configuration history:" + locationURL.toExternalForm(), e);
-		} finally {
-			initialized = true;
-		}
-		
-		//finish resolve
-		// PERF:
-		try {
-			// delegate
-			resolveListReference(getActivityModel(), base, bundleURL);
-			resolveListReference(getConfigurationSitesModel(), base, bundleURL);
-		} catch (MalformedURLException e){}		
-	}
-
-	/*
-	 * 
-	 */
-	private void delayedResolve() {
-
-		// PERF: delay resolution
-		if (resolved)
-			return;
-
-		resolved = true;
-		// resolve local elements
-		try {
-			locationURL = resolveURL(base, bundleURL, locationURLString);			
-		} catch (MalformedURLException e){}
-		
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationParser.java
deleted file mode 100644
index 7dde0ff..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/InstallConfigurationParser.java
+++ /dev/null
@@ -1,297 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.*;
-import java.util.*;
-
-import org.apache.xerces.parsers.SAXParser;
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.model.FeatureReferenceModel;
-import org.eclipse.update.core.model.SiteModel;
-import org.eclipse.update.internal.core.*;
-import org.xml.sax.*;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * parse the default site.xml
- */
-
-public class InstallConfigurationParser extends DefaultHandler {
-
-	private SAXParser parser;
-	private InputStream siteStream;
-	private URL siteURL;
-	private InstallConfigurationModel config;
-	private ConfiguredSiteModel configSite;
-	public static final String CONFIGURATION = "configuration"; //$NON-NLS-1$
-	public static final String CONFIGURATION_SITE = "site"; //$NON-NLS-1$
-	public static final String FEATURE = "feature"; //$NON-NLS-1$
-	public static final String ACTIVITY = "activity"; //$NON-NLS-1$
-
-	// optimization: cache Site
-	private Map sites = new HashMap();
-
-	private ResourceBundle bundle;
-
-	/**
-	 * Constructor for DefaultSiteParser
-	 */
-	public InstallConfigurationParser(
-		InputStream siteStream,
-		InstallConfigurationModel config)
-		throws IOException, SAXException, CoreException {
-		super();
-		parser = new SAXParser();
-		parser.setContentHandler(this);
-
-		this.siteStream = siteStream;
-		Assert.isTrue(config instanceof InstallConfigurationModel);
-		this.config = (InstallConfigurationModel) config;
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("Start parsing Configuration:" + (config).getURL().toExternalForm()); //$NON-NLS-1$
-		}
-
-		bundle = getResourceBundle();
-
-		parser.parse(new InputSource(this.siteStream));
-	}
-
-	/**
-	 * return the appropriate resource bundle for this sitelocal
-	 */
-	private ResourceBundle getResourceBundle() throws IOException, CoreException {
-		ResourceBundle bundle = null;
-		URL url = null;
-		try {
-			url = UpdateManagerUtils.asDirectoryURL(config.getURL());
-			ClassLoader l = new URLClassLoader(new URL[] { url }, null);
-			bundle =
-				ResourceBundle.getBundle(
-					SiteLocalModel.SITE_LOCAL_FILE,
-					Locale.getDefault(),
-					l);
-		} catch (MissingResourceException e) {
-			UpdateCore.warn(e.getLocalizedMessage() + ":" + url.toExternalForm()); //$NON-NLS-1$
-		} catch (MalformedURLException e) {
-			UpdateCore.warn(e.getLocalizedMessage()); //$NON-NLS-1$
-		}
-		return bundle;
-	}
-
-	/**
-	 * @see DefaultHandler#startElement(String, String, String, Attributes)
-	 */
-	public void startElement(
-		String uri,
-		String localName,
-		String qName,
-		Attributes attributes)
-		throws SAXException {
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("Start Element: uri:" + uri + " local Name:" + localName + " qName:" + qName); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-		try {
-
-			String tag = localName.trim();
-
-			if (tag.equalsIgnoreCase(CONFIGURATION)) {
-				processConfig(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(CONFIGURATION_SITE)) {
-				processSite(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(FEATURE)) {
-				processFeature(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(ACTIVITY)) {
-				processActivity(attributes);
-				return;
-			}
-
-		} catch (MalformedURLException e) {
-			throw new SAXException(Policy.bind("Parser.UnableToCreateURL", e.getMessage()), e); //$NON-NLS-1$
-		} catch (CoreException e) {
-			throw new SAXException(Policy.bind("Parser.InternalError", e.toString()), e); //$NON-NLS-1$
-		}
-
-	}
-
-	/** 
-	 * process the Site info
-	 */
-	private void processSite(Attributes attributes)
-		throws MalformedURLException, CoreException {
-
-		//site url
-		String urlString = attributes.getValue("url"); //$NON-NLS-1$
-		siteURL = new URL(urlString);
-		ISite site = SiteManager.getSite(siteURL,null);
-		sites.put(urlString,site);
-
-		// policy
-		String policyString = attributes.getValue("policy"); //$NON-NLS-1$
-		int policy = Integer.parseInt(policyString);
-
-		// configuration site
-		BaseSiteLocalFactory factory = new BaseSiteLocalFactory();
-		configSite = factory.createConfigurationSiteModel((SiteModel) site, policy);
-
-		//platform url
-		String platformURLString = attributes.getValue("platformURL"); //$NON-NLS-1$
-		configSite.setPlatformURLString(platformURLString);
-
-		//platform url
-		String enableString = attributes.getValue("enable"); //$NON-NLS-1$
-		boolean enable = (enableString==null || enableString.equalsIgnoreCase("true"));
-		configSite.setEnabled(enable);
-
-		// check if the site exists and is updatable
-		// update configSite
-		URL	urlToCheck = new URL(configSite.getPlatformURLString());
-	 	IPlatformConfiguration runtimeConfig = BootLoader.getCurrentPlatformConfiguration();			
-	 	IPlatformConfiguration.ISiteEntry entry = runtimeConfig.findConfiguredSite(urlToCheck);	 
-	 	if (entry!=null){	
-		 	configSite.setUpdatable(entry.isUpdateable());
-	 	} else {
-	 		UpdateCore.warn("Unable to retrieve site:" +platformURLString+" from platform.");
-	 	}
-	 	String updatable = configSite.isUpdatable()?"true":"false";
-
-		// add to install configuration
-		config.addConfigurationSiteModel(configSite);
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End process config site url:" + urlString + " policy:" + policyString + " updatable:"+updatable ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-
-	}
-
-	/** 
-	 * process the DefaultFeature info
-	 */
-	private void processFeature(Attributes attributes)
-		throws MalformedURLException, CoreException {
-
-		// url
-		String path = attributes.getValue("url"); //$NON-NLS-1$
-		URL url = UpdateManagerUtils.getURL(siteURL, path, null);
-
-		// configured ?
-		String configuredString = attributes.getValue("configured"); //$NON-NLS-1$
-		boolean configured = configuredString.trim().equalsIgnoreCase("true") ? true : false; //$NON-NLS-1$
-
-		if (url != null) {
-			SiteFeatureReference ref = new SiteFeatureReference();
-			ref.setSite((ISite) configSite.getSiteModel());
-			ref.setURL(url);
-			if (ref != null)
-				if (configured) {
-					(configSite.getConfigurationPolicyModel()).addConfiguredFeatureReference(
-						(FeatureReferenceModel) ref);
-				} else
-					(configSite.getConfigurationPolicyModel()).addUnconfiguredFeatureReference(
-						(FeatureReferenceModel) ref);
-
-			//updateURL
-			String updateURLString = attributes.getValue("updateURL"); //$NON-NLS-1$
-			URLEntry entry = new URLEntry();
-			entry.setURLString(updateURLString);
-			entry.resolve(siteURL,null);
-
-			// DEBUG:		
-			if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-				UpdateCore.debug("End Processing DefaultFeature Tag: url:" + url.toExternalForm()); //$NON-NLS-1$
-			}
-
-		} else {
-			UpdateCore.log( Policy.bind("InstallConfigurationParser.FeatureReferenceNoURL"), new Exception());
-		}
-
-	}
-
-	/** 
-	 * process the Activity info
-	 */
-	private void processActivity(Attributes attributes) {
-
-		// action
-		String actionString = attributes.getValue("action"); //$NON-NLS-1$
-		int action = Integer.parseInt(actionString);
-
-		// create
-		ConfigurationActivityModel activity =
-			new BaseSiteLocalFactory().createConfigurationActivityModel();
-		activity.setAction(action);
-
-		// label
-		String label = attributes.getValue("label"); //$NON-NLS-1$
-		if (label != null)
-			activity.setLabel(label);
-
-		// date
-		String dateString = attributes.getValue("date"); //$NON-NLS-1$
-		Date date = new Date(Long.parseLong(dateString));
-		activity.setDate(date);
-
-		// status
-		String statusString = attributes.getValue("status"); //$NON-NLS-1$
-		int status = Integer.parseInt(statusString);
-		activity.setStatus(status);
-
-		config.addActivityModel(activity);
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End Processing Activity: action:" + actionString + " label: " + label + " date:" + dateString + " status" + statusString); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
-		}
-
-	}
-
-	/** 
-	 * process the Config info
-	 */
-	private void processConfig(Attributes attributes) {
-
-		// date
-		long date = Long.parseLong(attributes.getValue("date")); //$NON-NLS-1$
-		config.setCreationDate(new Date(date));
-		
-		//timeline
-		String timelineString = attributes.getValue("timeline"); //$NON-NLS-1$
-		long timeline = date;
-		if (timelineString!=null) {
-			timeline = Long.parseLong(timelineString);
-		}
-		config.setTimeline(timeline);
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End Processing Config Tag: date:" + date+" timeline:"+ timeline); //$NON-NLS-1$
-		}
-
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalModel.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalModel.java
deleted file mode 100644
index 1ac87ea..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalModel.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.*;
-
-import org.eclipse.update.core.model.ModelObject;
-
-/**
- * This class manages the configurations.
- */
-
-public class SiteLocalModel extends ModelObject {
-
-
-	public static final String SITE_LOCAL_PREFIX = "v2LocalSite"; //$NON-NLS-1$
-	public static final String DEFAULT_CONFIG_PREFIX = "v2Config"; //$NON-NLS-1$
-	public static final String DEFAULT_PRESERVED_CONFIG_PREFIX = "v2PreservedConfig"; //$NON-NLS-1$
-
-	public static final String SITE_LOCAL_FILE = SITE_LOCAL_PREFIX +".xml"; //$NON-NLS-1$
-	public static final String DEFAULT_CONFIG_FILE = DEFAULT_CONFIG_PREFIX+".xml"; //$NON-NLS-1$
-	public static final String DEFAULT_PRESERVED_CONFIG_FILE = DEFAULT_PRESERVED_CONFIG_PREFIX+".xml"; //$NON-NLS-1$
-	public static int DEFAULT_HISTORY = Integer.MAX_VALUE;	
-
-
-	private long stamp;
-	private String label;
-	private URL location;
-	private String locationURLString;
-	private int history = DEFAULT_HISTORY;
-	private List /* of InstallConfigurationModel */configurations;
-	private List /* of InstallConfigurationModel */preservedConfigurations;
-	private InstallConfigurationModel currentConfiguration;
-
-	/**
-	 * Constructor for LocalSite
-	 */
-	public SiteLocalModel(){
-		super();
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public InstallConfigurationModel getCurrentConfigurationModel() {
-		return currentConfiguration;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public InstallConfigurationModel[] getConfigurationHistoryModel() {
-		if (configurations==null) return new InstallConfigurationModel[0];
-		return (InstallConfigurationModel[])configurations.toArray(arrayTypeFor(configurations));
-	}
-
-	/**
-	 * adds a new configuration to the LocalSite
-	 *  the newly added configuration is teh current one
-	 */
-	public void addConfigurationModel(InstallConfigurationModel config) {
-		if (config != null) {
-			if (configurations == null)
-				configurations = new ArrayList();
-			if (!configurations.contains(config))
-				configurations.add(config);
-		}
-	}
-
-	/**
-	 * adds a new configuration to the LocalSite
-	 *  the newly added configuration is teh current one
-	 */
-	public boolean removeConfigurationModel(InstallConfigurationModel config) {
-		if (config != null) {
-			return configurations.remove(config);
-		}
-		return false;
-	}
-	/**
-	 * Gets the location of the local site.
-	 * @return Returns a URL
-	 */
-	public URL getLocationURL() {
-		return location;
-	}
-
-	/**
-	 * Gets the locationURLString.
-	 * @return Returns a String
-	 */
-	public String getLocationURLString() {
-		return locationURLString;
-	}
-
-
-	/**
-	 * Sets the locationURLString.
-	 * @param locationURLString The locationURLString to set
-	 */
-	public void setLocationURLString(String locationURLString) {
-		assertIsWriteable();
-		this.locationURLString = locationURLString;
-		this.location=null;
-	}
-
-
-	/**
-	 * @since 2.0
-	 */
-	public String getLabel() {
-		return label;
-	}
-
-	/**
-	 * Sets the label.
-	 * @param label The label to set
-	 */
-	public void setLabel(String label) {
-		assertIsWriteable();
-		this.label = label;
-	}
-
-	
-	/**
-	 * @since 2.0
-	 */
-	public int getMaximumHistoryCount() {
-		return history;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public void setMaximumHistoryCount(int history) {
-		assertIsWriteable();
-		this.history = history;
-	}
-
-	
-	/**
-	 * Adds a preserved configuration into teh collection
-	 * do not save the configuration
-	 * @since 2.0
-	 */
-	public void addPreservedInstallConfigurationModel(InstallConfigurationModel configuration) {
-		if (preservedConfigurations == null)
-			preservedConfigurations = new ArrayList();
-
-		preservedConfigurations.add(configuration);
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public boolean removePreservedConfigurationModel(InstallConfigurationModel configuration) {
-		if (preservedConfigurations != null) {
-			return preservedConfigurations.remove(configuration);
-		}
-		return false;
-	}
-
-	/**
-	 * @since 2.0
-	 */
-	public InstallConfigurationModel[] getPreservedConfigurationsModel() {
-		if (preservedConfigurations==null || preservedConfigurations.isEmpty())
-			return new InstallConfigurationModel[0];
-		return (InstallConfigurationModel[])preservedConfigurations.toArray(arrayTypeFor(preservedConfigurations));
-	}
-
-
-	/**
-	 * Sets the currentConfiguration.
-	 * @param currentConfiguration The currentConfiguration to set
-	 */
-	public void setCurrentConfigurationModel(InstallConfigurationModel currentConfiguration) {
-		assertIsWriteable();
-		this.currentConfiguration = currentConfiguration;
-		
-		//2.0.2 set the configuredSite of sites
-		ConfiguredSiteModel[] confSites = currentConfiguration.getConfigurationSitesModel();
-		for (int i = 0; i < confSites.length; i++) {
-			confSites[i].getSiteModel().setConfiguredSiteModel(confSites[i]);
-		}
-	}
-
-	/*
-	 * @see ModelObject#resolve(URL)
-	 */
-	public void resolve(URL base,URL bundleURL) throws MalformedURLException {
-		// local
-		location = resolveURL(base,bundleURL,getLocationURLString());
-		
-		// delegate
-		resolveListReference(getConfigurationHistoryModel(),base,bundleURL);
-		resolveListReference(getPreservedConfigurationsModel(),base,bundleURL);
-		resolveReference(getCurrentConfigurationModel(),base,bundleURL);
-	}
-	
-
-	/**
-	 * Gets the stamp.
-	 * @return Returns a long
-	 */
-	public long getStamp() {
-		return stamp;
-	}
-
-	/**
-	 * Sets the stamp.
-	 * @param stamp The stamp to set
-	 */
-	public void setStamp(long stamp) {
-		this.stamp = stamp;
-	}
-
-	/**
-	 * @see org.eclipse.update.core.model.ModelObject#getPropertyName()
-	 */
-	protected String getPropertyName() {
-		return SiteLocalModel.SITE_LOCAL_FILE;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalParser.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalParser.java
deleted file mode 100644
index 74bf5f5..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/model/SiteLocalParser.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.model;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.*;
-import java.util.*;
-
-import org.apache.xerces.parsers.SAXParser;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.configuration.ILocalSite;
-import org.eclipse.update.core.IFeatureReference;
-import org.eclipse.update.internal.core.*;
-import org.xml.sax.*;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * parse the default site.xml
- */
-
-public class SiteLocalParser extends DefaultHandler {
-
-	/**
-	 * return the appropriate resource bundle for this sitelocal
-	 */
-	private ResourceBundle getResourceBundle() throws CoreException {
-		ResourceBundle bundle = null;
-		URL url = null;
-		try {
-			url = UpdateManagerUtils.asDirectoryURL(site.getLocationURL());
-			ClassLoader l = new URLClassLoader(new URL[] { url }, null);
-			bundle = ResourceBundle.getBundle(SiteLocalModel.SITE_LOCAL_FILE, Locale.getDefault(), l);
-		} catch (MissingResourceException e) {
-			UpdateCore.warn(e.getLocalizedMessage() + ":" + url.toExternalForm()); //$NON-NLS-1$
-		} catch (MalformedURLException e) {
-			UpdateCore.warn(e.getLocalizedMessage()); //$NON-NLS-1$
-		}
-		return bundle;
-	}
-
-	private SAXParser parser;
-	private InputStream siteStream;
-	private SiteLocalModel site;
-	private String text;
-	public static final String SITE = "localsite"; //$NON-NLS-1$
-	public static final String CONFIG = "config"; //$NON-NLS-1$
-	public static final String PRESERVED_CONFIGURATIONS = "preservedConfigurations"; //$NON-NLS-1$
-	private ResourceBundle bundle;
-	private IFeatureReference feature;
-
-	// trus if we are now parsing preserved config
-	private boolean preserved = false;
-
-	/**
-	 * Constructor for DefaultSiteParser
-	 */
-	public SiteLocalParser(InputStream siteStream, ILocalSite site) throws IOException, SAXException, CoreException {
-		super();
-		parser = new SAXParser();
-		parser.setContentHandler(this);
-
-		this.siteStream = siteStream;
-		Assert.isTrue(site instanceof SiteLocalModel);
-		this.site = (SiteLocalModel) site;
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("Start parsing localsite:" + ((SiteLocalModel) site).getLocationURLString()); //$NON-NLS-1$
-		}
-		
-		bundle = getResourceBundle();
-
-		parser.parse(new InputSource(this.siteStream));
-	}
-
-	/**
-	 * return the appropriate resource bundle for this sitelocal
-	 */
-	private URL getResourceBundleURL() throws CoreException {
-		URL url = null;
-		try {
-			url = UpdateManagerUtils.asDirectoryURL(site.getLocationURL());
-		} catch (MissingResourceException e) {
-			UpdateCore.warn(e.getLocalizedMessage() + ":" + url.toExternalForm()); //$NON-NLS-1$
-		} catch (MalformedURLException e) {
-			UpdateCore.warn(e.getLocalizedMessage()); //$NON-NLS-1$
-		}
-		return url;
-	}
-
-	/**
-	 * @see DefaultHandler#startElement(String, String, String, Attributes)
-	 */
-	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
-
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("Start Element: uri:" + uri + " local Name:" + localName + " qName:" + qName); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-		try {
-
-			String tag = localName.trim();
-
-			if (tag.equalsIgnoreCase(SITE)) {
-				processSite(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(CONFIG)) {
-				processConfig(attributes);
-				return;
-			}
-
-			if (tag.equalsIgnoreCase(PRESERVED_CONFIGURATIONS)) {
-				preserved = true;
-				return;
-			}
-
-		} catch (MalformedURLException e) {
-			throw new SAXException(Policy.bind("Parser.UnableToCreateURL", e.getMessage()), e); //$NON-NLS-1$
-		} catch (CoreException e) {
-			throw new SAXException(Policy.bind("Parser.InternalError", e.toString()), e); //$NON-NLS-1$
-		}
-
-	}
-
-	/** 
-	 * process the Site info
-	 */
-	private void processSite(Attributes attributes) throws MalformedURLException {
-		//
-		String info = attributes.getValue("label"); //$NON-NLS-1$
-		info = UpdateManagerUtils.getResourceString(info, bundle);
-		site.setLabel(info);
-	
-		// history
-		String historyString = attributes.getValue("history"); //$NON-NLS-1$
-		int history;
-		if (historyString == null || historyString.equals("")) { //$NON-NLS-1$
-			history = SiteLocalModel.DEFAULT_HISTORY;
-		} else {
-			history = Integer.parseInt(historyString);
-		}
-		site.setMaximumHistoryCount(history);
-	
-		//stamp
-		String stampString = attributes.getValue("stamp"); //$NON-NLS-1$
-		long stamp = Long.parseLong(stampString);
-		site.setStamp(stamp);
-	
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End process Site label:" + info); //$NON-NLS-1$
-		}
-	
-	}
-
-	/** 
-	 * process the Config info
-	 */
-	private void processConfig(Attributes attributes) throws MalformedURLException, CoreException {
-		// url
-		URL url = UpdateManagerUtils.getURL(site.getLocationURL(), attributes.getValue("url"), null); //$NON-NLS-1$
-		String label = attributes.getValue("label"); //$NON-NLS-1$
-		label = UpdateManagerUtils.getResourceString(label, bundle);
-
-		InstallConfigurationModel config = new BaseSiteLocalFactory().createInstallConfigurationModel();
-		config.setLocationURLString(url.toExternalForm());
-		config.setLabel(label);
-		config.resolve(url, getResourceBundleURL());
-
-		// add the config
-		if (preserved) {
-			site.addPreservedInstallConfigurationModel(config);
-		} else {
-			site.addConfigurationModel(config);
-		}
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End Processing Config Tag: url:" + url.toExternalForm()); //$NON-NLS-1$
-		}
-	}
-
-	/*
-	 * @see ContentHandler#endElement(String, String, String)
-	 */
-	public void endElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
-		// DEBUG:		
-		if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_PARSING) {
-			UpdateCore.debug("End Element: uri:" + uri + " local Name:" + localName + " qName:" + qName); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-
-		String tag = localName.trim();
-
-		if (tag.equalsIgnoreCase(PRESERVED_CONFIGURATIONS)) {
-			preserved = false;
-			return;
-		}
-
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/CertificatePair.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/CertificatePair.java
deleted file mode 100644
index 1ba8c45..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/CertificatePair.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.update.internal.security;
- 
- import java.security.cert.Certificate;
- 
-/**
- *
- */
-public class CertificatePair {
-	private Certificate root;
-	private Certificate issuer;
-	
-	
-
-	/**
-	 * Gets the root.
-	 * @return Returns a Certificate
-	 */
-	public Certificate getRoot() {
-		return root;
-	}
-
-	/**
-	 * Sets the root.
-	 * @param root The root to set
-	 */
-	public void setRoot(Certificate root) {
-		this.root = root;
-	}
-
-	/**
-	 * Gets the issuer.
-	 * @return Returns a Certificate
-	 */
-	public Certificate getIssuer() {
-		return issuer;
-	}
-
-	/**
-	 * Sets the issuer.
-	 * @param issuer The issuer to set
-	 */
-	public void setIssuer(Certificate issuer) {
-		this.issuer = issuer;
-	}
-
-	/*
-	 * @see Object#equals(Object)
-	 */
-	public boolean equals(Object obj) {
-		
-		if (obj==null) return false;
-		
-		if (!(obj instanceof CertificatePair)) return false;
-		
-		if (root==null || issuer==null) return false;
-		
-		CertificatePair pair = (CertificatePair)obj;
-		
-		return (root.equals(pair.getRoot()) && issuer.equals(pair.getIssuer()));
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerificationResult.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerificationResult.java
deleted file mode 100644
index eac2eed..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerificationResult.java
+++ /dev/null
@@ -1,340 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.security;
-
-import java.security.Principal;
-import java.security.cert.*;
-import java.text.DateFormat;
-import java.util.*;
-
-import org.eclipse.update.core.*;
-import org.eclipse.update.internal.core.Policy;
-
-/**
- * Result of the service
- */
-public class JarVerificationResult implements IVerificationResult {
-
-
-	private int resultCode;
-	private int verificationCode;
-	private Exception resultException;
-	private List /*of Certificates[] */
-	certificates;
-	private CertificatePair[] rootCertificates;
-	private CertificatePair foundCertificate; // certificate found in one keystore
-	
-	private String signerInfo;
-	private String verifierInfo;
-	private ContentReference contentReference;
-	private String text;
-	private IFeature feature;
-	private boolean featureVerification;
-	private boolean alreadySeen;
-
-	/*
-	 * 
-	 */
-	public int getResultCode() {
-		return resultCode;
-	}
-	
-	/*
-	 * 
-	 */
-	public Exception getVerificationException() {
-		return resultException;
-	}
-	
-	/*
-	 * 
-	 */
-	public void setResultCode(int newResultCode) {
-		resultCode = newResultCode;
-	}
-	
-	/*
-	 * 
-	 */
-	public void setResultException(Exception newResultException) {
-		resultException = newResultException;
-	}
-	
-	/*
-	 * 
-	 */
-	public int getVerificationCode() {
-		return verificationCode;
-	}
-
-	/*
-	 * 
-	 */
-	public void setVerificationCode(int verificationCode) {
-		this.verificationCode = verificationCode;
-	}
-
-	/*
-	 * adds an array of Certificates to the list
-	 * force recomputation of root cert
-	 */
-	public void addCertificates(Certificate[] certs) {
-		if (certificates == null)
-			certificates = new ArrayList();
-		certificates.add(certs);
-		rootCertificates = null;
-	}
-
-	/*
-	 * 
-	 */
-	private List getCertificates() {
-		return certificates;
-	}
-
-	/*
-	 * Returns the list of root certificates
-	 * The list of certificates we received is an array of certificates
-	 * we have to determine 
-	 * 1) how many chain do we have (a chain stops when verifier of a cert is 
-	 * not the signer of the next cert in the list 
-	 * 2) build a cert with the leaf signer and the root verifier for each chain
-	 */
-	public CertificatePair[] getRootCertificates() {
-		if (rootCertificates == null) {
-			rootCertificates = new CertificatePair[0];			
-			List rootCertificatesList = new ArrayList();
-			if (certificates != null && certificates.size() > 0) {
-				Iterator iter = certificates.iterator();
-				while (iter.hasNext()) {
-
-					Certificate[] certs = (Certificate[]) iter.next();
-					if (certs != null && certs.length > 0) {
-
-						CertificatePair pair = new CertificatePair();
-						pair.setIssuer(certs[0]);
-
-						for (int i = 0; i < certs.length - 1; i++) {
-							X509Certificate x509certRoot = (X509Certificate) certs[i];
-							X509Certificate x509certIssuer = (X509Certificate) certs[i+1];
-							if (!x509certRoot.getIssuerDN().equals(x509certIssuer.getSubjectDN())) {
-								pair.setRoot(x509certRoot);
-								if (!rootCertificatesList.contains(pair)) {
-									rootCertificatesList.add(pair);
-								}
-								pair = new CertificatePair();
-								pair.setIssuer(x509certIssuer);
-							}
-						}
-
-						// add the latest one
-						if (pair != null) {
-							pair.setRoot(certs[certs.length - 1]);
-							if (!rootCertificatesList.contains(pair)) {
-								rootCertificatesList.add(pair);
-							}
-						}
-					}
-				}
-
-			}
-			
-			if (rootCertificatesList.size() > 0) {
-				rootCertificates = new CertificatePair[rootCertificatesList.size()];				
-				rootCertificatesList.toArray(rootCertificates);
-			}
-		}
-		return rootCertificates;
-	}
-
-	/*
-	 * 
-	 */
-	private CertificatePair getFoundCertificate() {
-		return foundCertificate;
-	}
-
-	/*
-	 * 
-	 */
-	public void setFoundCertificate(CertificatePair foundCertificate) {
-		this.foundCertificate = foundCertificate;
-	}
-
-
-	/*
-	 * Initializes the signerInfo and the VerifierInfo from the Certificate Pair
-	 */
-	private void initializeCertificates(){
-		X509Certificate certRoot = null;
-		X509Certificate certIssuer = null;
-		CertificatePair trustedCertificate;
-		if (getFoundCertificate() == null) {
-			CertificatePair[] certs = getRootCertificates();
-			if (certs.length == 0)
-				return;
-			trustedCertificate = (CertificatePair) certs[0];
-		} else {
-			trustedCertificate = (CertificatePair) getFoundCertificate();
-		}
-		certRoot = (X509Certificate) trustedCertificate.getRoot();
-		certIssuer = (X509Certificate) trustedCertificate.getIssuer();
-
-		StringBuffer strb = new StringBuffer();
-		strb.append(issuerString(certIssuer.getSubjectDN()));
-		strb.append("\r\n"); //$NON-NLS-1$
-		strb.append(Policy.bind("JarVerificationResult.ValidBetween", dateString(certIssuer.getNotBefore()), dateString(certIssuer.getNotAfter()))); //$NON-NLS-1$
-		strb.append(checkValidity(certIssuer));
-		signerInfo = strb.toString();
-		if (certIssuer != null && !certIssuer.equals(certRoot)) {
-			strb = new StringBuffer();	
-			strb.append(issuerString(certIssuer.getIssuerDN()));
-			strb.append("\r\n"); //$NON-NLS-1$
-			strb.append(Policy.bind("JarVerificationResult.ValidBetween", dateString(certRoot.getNotBefore()), dateString(certRoot.getNotAfter()))); //$NON-NLS-1$ 
-			strb.append(checkValidity(certRoot));
-			verifierInfo = strb.toString();
-		}
-
-	}
-
-	/*
-	 * Returns a String to show if the certificate is valid
-	 */
-	private String checkValidity(X509Certificate cert) {
-
-		try {
-			cert.checkValidity();
-		} catch (CertificateExpiredException e) {
-			return ("\r\n" + Policy.bind("JarVerificationResult.ExpiredCertificate")); //$NON-NLS-1$ 
-		} catch (CertificateNotYetValidException e) {
-			return ("\r\n" + Policy.bind("JarVerificationResult.CertificateNotYetValid")); //$NON-NLS-1$ 
-		}
-		return ("\r\n" + Policy.bind("JarVerificationResult.CertificateValid")); //$NON-NLS-1$
-	}
-
-	/*
-	 * Returns the label String from a X50name
-	 */
-	private String issuerString(Principal principal) {
-// 19902
-//		try {
-//			if (principal instanceof X500Name) {
-//				StringBuffer buf = new StringBuffer();
-//				X500Name name = (X500Name) principal;
-//				buf.append((name.getDNQualifier() != null) ? name.getDNQualifier() + ", " : "");
-//				buf.append(name.getCommonName());
-//				buf.append((name.getOrganizationalUnit() != null) ? ", " + name.getOrganizationalUnit() : "");
-//				buf.append((name.getOrganization() != null) ? ", " + name.getOrganization() : "");
-//				buf.append((name.getLocality() != null) ? ", " + name.getLocality() : "");
-//				buf.append((name.getCountry() != null) ? ", " + name.getCountry() : "");
-//				return new String(buf);
-//			}
-//		} catch (Exception e) {
-//			UpdateCore.warn("Error parsing X500 Certificate",e);
-//		}
-		return principal.toString();
-	}
-
-	/*
-	 * 
-	 */
-	private String dateString(Date date) {
-		return DateFormat.getDateInstance().format(date);
-	}
-
-	/*
-	 *
-	 */
-	public String getSignerInfo() {
-		if (signerInfo==null) initializeCertificates();
-		return signerInfo;
-	}
-
-	/*
-	 *
-	 */
-	public String getVerifierInfo() {
-		if (signerInfo==null) initializeCertificates();		
-		return verifierInfo;
-	}
-
-	/*
-	 *
-	 */
-	public ContentReference getContentReference() {
-		return contentReference;
-	}
-
-	/*
-	 * 
-	 */
-	public void setContentReference(ContentReference ref) {
-		this.contentReference = ref;
-	}
-
-
-	/*
-	 *
-	 */
-	public IFeature getFeature() {
-		return feature;
-	}
-
-	/*
-	 * 
-	 */
-	public void setFeature(IFeature feature) {
-		this.feature = feature;
-	}
-
-	/*
-	 * 
-	 */
-	public String getText() {
-		return null;
-	}
-
-	/*
-	 * 
-	 */
-	public void setText(String text) {
-		this.text = text;
-	}
-
-	/*
-	 * 
-	 */
-	public boolean isFeatureVerification() {
-		return featureVerification;
-	}
-	
-	/*
-	 * 
-	 */
-	public void isFeatureVerification(boolean featureVerification) {
-		this.featureVerification = featureVerification;
-	}
-
-	/*
-	 *
-	 */
-	public boolean alreadySeen() {
-		return alreadySeen;
-	}
-
-	/*
-	 * 
-	 */
-	public boolean alreadySeen(boolean seen) {
-		return this.alreadySeen = seen;
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java
deleted file mode 100644
index 578b7e4..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/JarVerifier.java
+++ /dev/null
@@ -1,435 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.security;
-
-import java.io.*;
-import java.security.*;
-import java.security.cert.Certificate;
-import java.security.cert.CertificateException;
-import java.util.*;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import java.util.zip.ZipException;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.update.core.*;
-import org.eclipse.update.internal.core.Policy;
-import org.eclipse.update.internal.core.UpdateCore;
-
-/**
- * The JarVerifier will check the integrity of the JAR.
- * If the Jar is signed and the integrity is validated,
- * it will check if one of the certificate of each file
- * is in one of the keystore.
- *
- */
-
-public class JarVerifier extends Verifier {
-
-	private static final String MANIFEST = "META-INF"; //$NON-NLS-1$
-
-	private JarVerificationResult result;
-	private List /*of CertificatePair*/
-	trustedCertificates;
-	private boolean acceptUnsignedFiles;
-	private List /* of KeyStore */
-	listOfKeystores;
-	private int entries;
-	private IProgressMonitor monitor;
-	private String jarFileName;
-	private File jarFile;
-
-	/*
-	 * Default Constructor
-	 */
-	public JarVerifier() {
-		initialize();
-	}
-
-	/*
-	 * Returns the list of the keystores.
-	 */
-	private List getKeyStores() throws CoreException {
-		if (listOfKeystores == null) {
-			listOfKeystores = new ArrayList(0);
-			KeyStores listOfKeystoreHandles = new KeyStores();
-			InputStream in = null;
-			KeyStore keystore = null;
-			KeystoreHandle handle = null;
-			while (listOfKeystoreHandles.hasNext()) {
-				try {
-					handle = listOfKeystoreHandles.next();
-					in = UpdateCore.getPlugin().get(handle.getLocation()).getInputStream();;
-					try {
-						keystore = KeyStore.getInstance(handle.getType());
-						keystore.load(in, null); // no password
-					} catch (NoSuchAlgorithmException e) {
-						throw Utilities.newCoreException(Policy.bind("JarVerifier.UnableToFindEncryption", handle.getLocation().toExternalForm()), e); //$NON-NLS-1$
-					} catch (CertificateException e) {
-						throw Utilities.newCoreException(Policy.bind("JarVerifier.UnableToLoadCertificate", handle.getLocation().toExternalForm()), e); //$NON-NLS-1$
-					} catch (KeyStoreException e) {
-						throw Utilities.newCoreException(Policy.bind("JarVerifier.UnableToFindProviderForKeystore", handle.getType()), e); //$NON-NLS-1$
-					} finally {
-						if (in != null) {
-							try {
-								in.close();
-							} catch (IOException e) {
-							} // nothing
-						}
-					} // try loading a keyStore
-
-					// keystore was loaded
-					listOfKeystores.add(keystore);
-				} catch (IOException e) {
-					// nothing... if the keystore doesn't exist, continue	
-				}
-
-			} // while all key stores
-
-		}
-
-		return listOfKeystores;
-	}
-
-	/*
-	 * 
-	 */
-	private void initialize() {
-		result = null;
-		trustedCertificates = null;
-		acceptUnsignedFiles = false;
-		listOfKeystores = null;
-	}
-
-	/*
-	 * init
-	 */
-	private void init(IFeature feature, ContentReference contentRef) throws CoreException {
-		jarFile = null;
-		if (contentRef instanceof JarContentReference) {
-			JarContentReference jarReference = (JarContentReference) contentRef;
-			try {
-				jarFile = jarReference.asFile();
-				if (UpdateCore.DEBUG && UpdateCore.DEBUG_SHOW_INSTALL)
-					UpdateCore.debug("Attempting to read JAR file:"+jarFile);
-			
-				// # of entries
-				if (!jarFile.exists()) throw new IOException();
-				JarFile jar = new JarFile(jarFile);
-				entries = jar.size();
-				if (jar !=null){
-					try {
-						jar.close();
-					} catch (IOException ex) {
-						// unchecked
-					}
-				}
-				jarFileName = jarFile.getName();
-			} catch (ZipException e){
-				throw Utilities.newCoreException(Policy.bind("JarVerifier.InvalidJar", jarReference.toString()), e); //$NON-NLS-1$				
-			} catch (IOException e) {
-				throw Utilities.newCoreException(Policy.bind("JarVerifier.UnableToAccessJar", jarReference.toString()), e); //$NON-NLS-1$
-			}
-		}
-
-		result = new JarVerificationResult();
-		result.setVerificationCode(IVerificationResult.UNKNOWN_ERROR);
-		result.setResultException(null);
-		result.setFeature(feature);
-		result.setContentReference(contentRef);
-	}
-
-	/*
-	 * Returns true if one of the certificate exists in the keystore
-	 */
-	private boolean existsInKeystore(Certificate cert) throws CoreException {
-		try {
-			List keyStores = getKeyStores();
-			if (!keyStores.isEmpty()) {
-				Iterator listOfKeystores = keyStores.iterator();
-				while (listOfKeystores.hasNext()) {
-					KeyStore keystore = (KeyStore) listOfKeystores.next();
-
-					if (keystore.getCertificateAlias(cert) != null) {
-						return true;
-					}
-				}
-			}
-		} catch (KeyStoreException e) {
-			throw Utilities.newCoreException(Policy.bind("JarVerifier.KeyStoreNotLoaded"), e); //$NON-NLS-1$
-		}
-		return false;
-	}
-
-	/*
-	 * 
-	 */
-	private List readJarFile(JarFile jarFile)
-		throws IOException, InterruptedException {
-		List list = new ArrayList();
-		byte[] buffer = new byte[4096];
-		Enumeration entries = jarFile.entries();
-		JarEntry currentEntry = null;
-		InputStream in = null;
-		if (monitor != null)
-			monitor.setTaskName(Policy.bind("JarVerifier.Verify", jarFile.getName())); //$NON-NLS-1$ 
-
-		try {
-			while (entries.hasMoreElements()) {
-				currentEntry = (JarEntry) entries.nextElement();
-				list.add(currentEntry);
-				in = jarFile.getInputStream(currentEntry);
-				while ((in.read(buffer, 0, buffer.length)) != -1) {
-					// Security error thrown if tempered
-				}
-				if (in!=null)
-					in.close();
-			}
-		} catch (IOException e) {
-			result.setVerificationCode(IVerificationResult.UNKNOWN_ERROR);
-			result.setResultException(e);
-		}
-
-		return list;
-	}
-
-	/*
-	 * @param newMonitor org.eclipse.core.runtime.IProgressMonitor
-	 */
-	public void setMonitor(IProgressMonitor newMonitor) {
-		monitor = newMonitor;
-	}
-
-	/*
-	 * @see IVerifier#verify(IFeature,ContentReference,boolean, InstallMonitor)
-	 */
-	public IVerificationResult verify(
-		IFeature feature,
-		ContentReference reference,
-		boolean isFeatureVerification,
-		InstallMonitor monitor)
-		throws CoreException {
-
-		if (reference == null)
-			return result;
-
-		// if parent knows how to verify, ask the parent first
-		if (getParent() != null) {
-			IVerificationResult vr =
-				getParent().verify(feature, reference, isFeatureVerification, monitor);
-			if (vr.getVerificationCode() != IVerificationResult.TYPE_ENTRY_UNRECOGNIZED)
-				return vr;
-		}
-
-		// the parent couldn't verify
-		setMonitor(monitor);
-		init(feature, reference);
-		result.isFeatureVerification(isFeatureVerification);
-
-		if (jarFile!=null) {
-				result = verify(jarFile.getAbsolutePath());
-		} else {
-			result.setVerificationCode(IVerificationResult.TYPE_ENTRY_UNRECOGNIZED);
-		}
-
-		return result;
-	}
-
-	/*
-	 * 
-	 */
-	private JarVerificationResult verify(String file) {
-
-		try {
-
-			// verify integrity
-			verifyIntegrity(file);
-
-			// do not close input stream
-			// as verifyIntegrity already did it
-
-			//if user already said yes
-			result.alreadySeen(alreadyValidated());
-
-			// verify source certificate
-			if (result.getVerificationCode()
-				== IVerificationResult.TYPE_ENTRY_SIGNED_UNRECOGNIZED) {
-				verifyAuthentication();
-			}
-
-			// save the fact the file is not signed, so the user will not be prompted again 
-			if (result.getVerificationCode()
-				== IVerificationResult.TYPE_ENTRY_NOT_SIGNED) {
-				acceptUnsignedFiles = true;
-			}
-
-		} catch (Exception e) {
-			result.setVerificationCode(IVerificationResult.UNKNOWN_ERROR);
-			result.setResultException(e);
-		}
-
-		if (monitor != null) {
-			monitor.worked(1);
-			if (monitor.isCanceled()) {
-				result.setVerificationCode(IVerificationResult.VERIFICATION_CANCELLED);
-			}
-		}
-
-		return result;
-	}
-
-	/*
-	 * Verifies that each file has at least one certificate
-	 * valid in the keystore
-	 *
-	 * At least one certificate from each Certificate Array
-	 * of the Jar file must be found in the known Certificates
-	 */
-	private void verifyAuthentication() throws CoreException {
-
-		CertificatePair[] entries = result.getRootCertificates();
-		boolean certificateFound = false;
-
-		// If all the certificate of an entry are
-		// not found in the list of known certifcate
-		// the certificate is not trusted by any keystore.
-		for (int i = 0; i < entries.length; i++) {
-			certificateFound = existsInKeystore(entries[i].getRoot());
-			if (certificateFound) {
-				result.setVerificationCode(IVerificationResult.TYPE_ENTRY_SIGNED_RECOGNIZED);
-				result.setFoundCertificate(entries[i]);
-				return;
-			}
-		}
-	}
-
-	/*
-	 * Verifies the integrity of the JAR
-	 */
-	private void verifyIntegrity(String file) {
-
-		JarFile jarFile = null;
-
-		try {
-			// If the JAR is signed and not valid
-			// a security exception will be thrown
-			// while reading it
-			jarFile = new JarFile(file, true);
-			List filesInJar = readJarFile(jarFile);
-
-			// you have to read all the files once
-			// before getting the certificates 
-			if (jarFile.getManifest() != null) {
-				Iterator iter = filesInJar.iterator();
-				boolean certificateFound = false;
-				while (iter.hasNext()) {
-					JarEntry currentJarEntry = (JarEntry) iter.next();
-					Certificate[] certs = currentJarEntry.getCertificates();
-					if ((certs != null) && (certs.length != 0)) {
-						certificateFound = true;
-						result.addCertificates(certs);
-					} else {
-						String jarEntryName = currentJarEntry.getName();
-						if (!jarEntryName.toUpperCase().startsWith(MANIFEST)
-							&& !currentJarEntry.isDirectory()) {
-							// if the jarEntry is not in MANIFEST, consider the whole file unsigned							
-							break;
-						}
-
-					}
-				}
-
-				if (certificateFound)
-					result.setVerificationCode(IVerificationResult.TYPE_ENTRY_SIGNED_UNRECOGNIZED);
-				else
-					result.setVerificationCode(IVerificationResult.TYPE_ENTRY_NOT_SIGNED);
-			} else {
-				Exception e = new Exception(Policy.bind("JarVerifier.InvalidFile", file)); //$NON-NLS-1$
-				result.setResultException(e);
-				result.setVerificationCode(IVerificationResult.TYPE_ENTRY_NOT_SIGNED);
-				UpdateCore.warn(null,e);
-			}
-		} catch (SecurityException e) {
-			// Jar file is signed
-			// but content has changed since signed
-			result.setVerificationCode(IVerificationResult.TYPE_ENTRY_CORRUPTED);
-		} catch (InterruptedException e) {
-			result.setVerificationCode(IVerificationResult.VERIFICATION_CANCELLED);
-		} catch (Exception e) {
-			result.setVerificationCode(IVerificationResult.UNKNOWN_ERROR);
-			result.setResultException(e);
-		} finally {
-			if (jarFile!=null){
-				try {jarFile.close();} catch (IOException e){}
-			}
-		}
-
-	}
-
-	/*
-	 * 
-	 */
-	private boolean alreadyValidated() {
-
-		if (result.getVerificationCode() == IVerificationResult.TYPE_ENTRY_NOT_SIGNED)
-			return (acceptUnsignedFiles);
-
-		if (getTrustedCertificates() != null) {
-			Iterator iter = getTrustedCertificates().iterator();
-			CertificatePair[] jarPairs = result.getRootCertificates();
-
-			// check if this is not a user accepted certificate for this feature	
-			while (iter.hasNext()) {
-				CertificatePair trustedCertificate = (CertificatePair) iter.next();
-				for (int i = 0; i < jarPairs.length; i++) {
-					if (trustedCertificate.equals(jarPairs[i])) {
-						return true;
-					}
-				}
-			}
-
-			// if certificate pair not found in trusted add it for next time
-			for (int i = 0; i < jarPairs.length; i++) {
-				addTrustedCertificate(jarPairs[i]);
-			}
-		}
-
-		return false;
-	}
-
-	/*
-	 * 
-	 */
-	private void addTrustedCertificate(CertificatePair pair) {
-		if (trustedCertificates == null)
-			trustedCertificates = new ArrayList();
-		if (pair != null)
-			trustedCertificates.add(pair);
-	}
-
-	/*
-	 * 
-	 */
-	private List getTrustedCertificates() {
-		if (trustedCertificates == null)
-			trustedCertificates = new ArrayList();
-		return trustedCertificates;
-	}
-
-	/**
-	 * @see IVerifier#setParent(IVerifier)
-	 */
-	public void setParent(IVerifier parentVerifier) {
-		super.setParent(parentVerifier);
-		initialize();
-	}
-
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeyStores.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeyStores.java
deleted file mode 100644
index 1b0afb7..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeyStores.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.security;
-
-import java.io.*;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.security.Security;
-import java.util.*;
-
-import org.eclipse.update.internal.core.UpdateCore;
-/**
- * Class to manage the different KeyStores we should
- * check for certificates of Signed JAR
- */
-public class KeyStores {
-
-
-	/**
-	 * java.policy files properties of the java.security file
-	 */
-	private static final String JAVA_POLICY_URL = "policy.url."; //$NON-NLS-1$
-
-	/**
-	 * Default keystore type in java.security file
-	 */	
-    private static final String DEFAULT_KEYSTORE_TYPE = "keystore.type"; //$NON-NLS-1$
-
-	/**
-	 * List of KeystoreHandle pointing of valid KeyStores
-	 * the URL of the KeystoreHandle is not tested yet...
-	 */
-	private List /* of KeystoreHandle */ listOfKeyStores;
-
-	/**
-	 * Iterator
-	 */
-	private Iterator iterator;
-	/**
-	 * KeyStores constructor comment.
-	 */
-	public KeyStores() {
-		super();
-		initializeDefaultKeyStores();
-	}
-	/**
-	 * 
-	 */
-	private Iterator getIterator() {
-		if (iterator == null)
-			iterator = listOfKeyStores.iterator();
-		return iterator;
-	}
-	/**
-	 * returns trus if there is more Keystores in the list
-	 */
-	public boolean hasNext() {
-		return getIterator().hasNext();
-	}
-	/**
-	 * populate the list of Keystores
-	 * should be done with Dialog with Cancel/Skip button if
-	 * the connection to the URL is down...
-	 */
-	private void initializeDefaultKeyStores() {
-
-		listOfKeyStores = new ArrayList(5);
-
-		// get JRE cacerts
-		try {
-			URL url = new URL("file", null, 0, System.getProperty("java.home") + File.separator + "lib" + File.separator + "security" + File.separator + "cacerts");  //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
-			listOfKeyStores.add(new KeystoreHandle(url,Security.getProperty(DEFAULT_KEYSTORE_TYPE)));
-		}
-		catch (MalformedURLException e) {
-			// should not happen, hardcoded...
-		}
-
-		// get java.home .keystore
-		try {
-			URL url = new URL("file", null, 0, System.getProperty("user.home") + File.separator + ".keystore"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-			listOfKeyStores.add(new KeystoreHandle(url,Security.getProperty(DEFAULT_KEYSTORE_TYPE)));
-		}
-		catch (MalformedURLException e) {
-			// should not happen, hardcoded...
-		}
-
-		// get KeyStores from policy files...
-		int index = 1;
-		String java_policy = Security.getProperty(JAVA_POLICY_URL+index);
-		while (java_policy!=null){
-			// retrieve keystore url from java.policy
-			// also retrieve keystore type
-			KeystoreHandle keystore = getKeystoreFromLocation(java_policy);
-			if (keystore!=null){
-				listOfKeyStores.add(keystore);
-			}
-			index++;	
-			java_policy = Security.getProperty(JAVA_POLICY_URL+index);			
-		}
-
-	}
-	/**
-	 * returns the URL for the Next KeystoreHandle
-	 */
-	public KeystoreHandle next() {
-		return (KeystoreHandle) getIterator().next();
-	}
-	
-	/**
-	 * retrieve the keystore from java.policy file
-	 */
-	private KeystoreHandle getKeystoreFromLocation(String location){
-		
-		InputStream in = null;
-		char[] buff = new char[4096];
-		
-		
-		int indexOf$ = location.indexOf("${"); //$NON-NLS-1$
-		int indexOfCurly = location.indexOf('}',indexOf$);
-		if (indexOf$!=-1 && indexOfCurly!=-1){
-			String prop = System.getProperty(location.substring(indexOf$+2,indexOfCurly));
-			String location2 = location.substring(0,indexOf$);
-			location2 += prop;
-			location2 += location.substring(indexOfCurly+1);
-			location = location2;
-		}
-		
-		
-		try {
-			URL url = new URL(location);
-			in = UpdateCore.getPlugin().get(url).getInputStream();;
-			Reader reader = new InputStreamReader(in);
-			int result = reader.read(buff);
-			StringBuffer contentBuff = new StringBuffer();
-			while (result!=-1){
-				contentBuff.append(buff,0,result);
-				result = reader.read(buff);				
-			}
-
-			if (contentBuff.length()>0){			
-				String content = new String(contentBuff);
-				int indexOfKeystore = content.indexOf("keystore"); //$NON-NLS-1$
-				if (indexOfKeystore != -1){
-					int indexOfSemiColumn = content.indexOf(';',indexOfKeystore);
-					return getKeystoreFromString(content.substring(indexOfKeystore,indexOfSemiColumn),url);
-				}
-			}
-		} catch (MalformedURLException e){
-			log(e);
-		} catch (IOException e){
-			// url.openStream, reader.read (x2)
-			// only log, the keystore may not exist
-			log(e);	
-		} finally {
-			if (in!=null){
-				try {
-					in.close();
-				} catch (IOException e){}
-			}
-		}
-		return null;
-	}
-	
-	/**
-	 * retrieve the keystore from java.policy file
-	 */
-	private KeystoreHandle getKeystoreFromString(String content,URL rootURL){
-		KeystoreHandle handle = null;
-		String keyStoreType = Security.getProperty(DEFAULT_KEYSTORE_TYPE);
-		
-		
-		int indexOfSpace = content.indexOf(' ');
-		if (indexOfSpace==-1) return null;
-		
-		int secondSpace = content.lastIndexOf(',');
-		if (secondSpace==-1) {
-			secondSpace = content.length();
-		} else {
-			keyStoreType = content.substring(secondSpace+1,content.length()).trim();
-		}
-		
-		URL url = null;
-		try {
-			url = new URL(content.substring(indexOfSpace,secondSpace));
-		} catch (MalformedURLException e){
-			log(e);
-			// the url maybe relative
-			try {
-			url = new URL(rootURL,content.substring(indexOfSpace,secondSpace));				
-			} catch (MalformedURLException e1){
-				log(e1);			
-			}
-		}
-
-		if (url!=null)
-			handle = new KeystoreHandle(url,keyStoreType);				
-			
-		return handle;
-	}	
-	
-	private void log(Exception e){
-		UpdateCore.warn("Cannot retrieve a KeyStore",e);
-	}
-}
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeystoreHandle.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeystoreHandle.java
deleted file mode 100644
index 684477e..0000000
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/security/KeystoreHandle.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.security;
-
-import java.net.URL;
-
-
- 
-/**
- * Manages a handle to a keystore
- */
-public class KeystoreHandle {
-	
-	private URL location;
-	private String type;
-	
-	public KeystoreHandle(URL url, String type){
-		this.location = url;
-		this.type = type;
-	}
-
-	/**
-	 * Gets the location.
-	 * @return Returns a URL
-	 */
-	public URL getLocation() {
-		return location;
-	}
-
-	/**
-	 * Sets the location.
-	 * @param location The location to set
-	 */
-	public void setLocation(URL location) {
-		this.location = location;
-	}
-
-	/**
-	 * Gets the type.
-	 * @return Returns a String
-	 */
-	public String getType() {
-		return type;
-	}
-
-	/**
-	 * Sets the type.
-	 * @param type The type to set
-	 */
-	public void setType(String type) {
-		this.type = type;
-	}
-
-}
diff --git a/update/org.eclipse.update.examples/.classpath b/update/org.eclipse.update.examples/.classpath
deleted file mode 100644
index b48fe2a..0000000
--- a/update/org.eclipse.update.examples/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="src/"/>
-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
-    <classpathentry kind="src" path="/org.apache.xerces"/>
-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>
-    <classpathentry kind="src" path="/org.eclipse.update.core"/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update.examples/.cvsignore b/update/org.eclipse.update.examples/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.examples/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/.project b/update/org.eclipse.update.examples/.project
deleted file mode 100644
index 39cb54a..0000000
--- a/update/org.eclipse.update.examples/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.examples</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.update.core</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ui.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ui.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.ui.PluginNature</nature>

-		<nature>org.eclipse.team.cvs.core.cvsnature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.examples/Scrapbook2.jpage b/update/org.eclipse.update.examples/Scrapbook2.jpage
deleted file mode 100644
index b5da99a..0000000
--- a/update/org.eclipse.update.examples/Scrapbook2.jpage
+++ /dev/null
@@ -1,111 +0,0 @@
-SiteManager.getSite(URL)throws CoreException

-  String type = getTypeForprotocol(URL.getprotocol);

-  try {

-    if (type != null){

-	attemptCreationSite(type,URL);

-    } else {

-	attemptCreationSite("http",URL);

-    }

-  } catch (CoreException e){

-    throw new CoreException("Cannot create site",e.getMessage());

-  }

-

-SiteManager.attemptCreationSite(type,URL)throws CoreException

-  try {

-    createSite(type,URL);

-  } catch (InvalidTypeException e){

-    try {

-      createSite(e.getRealType(),URL);

-    } catch (InvalidSiteExeption e){

-      throw new CoreException("Wrong site type");

-    }

-  }

-

-SiteManager.createSite(type,URL) throws CoreExeption, InvalidSiteTypeException

-

-

-try {

-			

-	factory.createSite(url, forceCreation);

-	

-} catch (IOException e) {

-	// if the URL is pointing to either a file 

-// or a directory, without reference			

-if (url.getRef() != null) {

-	// 4 nothing we can do

-	throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);

-} else if (url.getFile().endsWith("/")) {

-	// 1 try to add site.xml

-	try {

-		url = new URL(url,Site.SITE_XML);

-	} catch (MalformedURLException e1){

-		throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);

-	}

-	try {

-		site = factory.createSite(url, forceCreation);

-	} catch (ParsingException e1){

-		throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);					

-	} catch (IOException e1){

-		throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);					

-	}

-} else if (url.getFile().endsWith(Site.SITE_XML)) {

-	// 3 nothing we can do

-	throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);

-} else {

-	// 2 try to add /site.xml

-	try {

-		url = new URL(url.getProtocol(),url.getHost(), url.getPort(), url.getFile()+"/"+Site.SITE_XML);

-	} catch (MalformedURLException e1){

-		throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);

-	}

-	

-	try {

-		site = factory.createSite(url, forceCreation);

-	} catch (ParsingException e1){

-		throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Input/Output Error:"+e.getMessage(),e1);					

-	} catch (IOException e1){

-		throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Input/Output Error:"+e.getMessage(),e1);					

-				}				

-			}

-

-		} catch (ParsingException e) {

-			

-			// if the URL is pointing to either a file 

-// or a directory, without reference			

-if (url.getRef() != null) {

-	// 4 nothing we can do

-	throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);

-} else if (url.getFile().endsWith("/")) {

-	// 1 try to add site.xml

-	try {

-		url = new URL(url,Site.SITE_XML);

-	} catch (MalformedURLException e1){

-		throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);

-	}

-	try {

-		site = factory.createSite(url, forceCreation);

-	} catch (ParsingException e1){

-		throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);					

-	} catch (IOException e1){

-		throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);

-				}				

-

-			} else if (url.getFile().endsWith(Site.SITE_XML)) {

-				// 3 nothing we can do

-	throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);					

-} else {

-	// 2 try to add /site.xml

-	

-	try {

-		url = new URL(url.getProtocol(),url.getHost(), url.getPort(), url.getFile()+"/"+Site.SITE_XML);

-	} catch (MalformedURLException e1){

-		throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);

-	}

-	try {

-		site = factory.createSite(url, forceCreation);

-	} catch (ParsingException e1){

-		throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Parsing error:"+e.getMessage(),e1);					

-	} catch (IOException e1){

-		throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Parsing error:"+e.getMessage(),e1);

-	

-

diff --git a/update/org.eclipse.update.examples/about.html b/update/org.eclipse.update.examples/about.html
deleted file mode 100644
index 768324e..0000000
--- a/update/org.eclipse.update.examples/about.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>

-<head>

-<title>About</title>

-<style type="text/css">

-p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt}

-pre { font-family: "Courier New", Courier, mono; font-size: 10pt}

-h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}

-code { font-family: "Courier New", Courier, mono; font-size: 10pt}

-sup { font-family: arial,helvetica,geneva; font-size: 10px}

-h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}

-li { font-family: arial, helvetica, geneva; font-size: 10pt}

-h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}

-body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect(   ); margin-top: 5mm; margin-left: 3mm}

-</style>

-</head>

-<body lang="EN-US" link="blue" vlink="purple">

-<table border="0" cellspacing="5" cellpadding="2" width="100%" >

-  <tr> 

-    <td align="LEFT" valign="TOP" colspan="2" bgcolor="#0080C0"><b><font color="#FFFFFF">About This Content</font></b></td>

-  </tr>

-  <tr> 

-    <td> 

-<p>11th December, 2001</p>	

-<h3>License</h3>

-<p>Eclipse.org makes available all content in this plug-in &quot;Content&quot;.  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the

-<a href="http://www.eclipse.org/legal/cpl-v05.html">Common Public License Version 0.5</a> &quot;CPL&quot;.  For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>

-

-<h3>Contributions</h3>

-

-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise

-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such

-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>

-

-<p>If this Content is licensed to you under license terms and conditions other than the CPL &quot;Other License&quot;, any modifications, enhancements and/or

-other code and/or documentation &quot;Modifications&quot; uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the

-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available

-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also

-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of

-the CPL.</p>

-</td></tr></table>

-</body>

-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/build.properties b/update/org.eclipse.update.examples/build.properties
deleted file mode 100644
index fda21a6..0000000
--- a/update/org.eclipse.update.examples/build.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-source.updateexamplescore.jar = src/

-src.includes=about.html

-bin.includes=plugin.xml,plugin.properties,*.jar,about.html

diff --git a/update/org.eclipse.update.examples/plugin.properties b/update/org.eclipse.update.examples/plugin.properties
deleted file mode 100644
index 9a31f8c..0000000
--- a/update/org.eclipse.update.examples/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-

-name = Install/Update BuildZip Example

-provider-name = Eclipse.org
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/plugin.xml b/update/org.eclipse.update.examples/plugin.xml
deleted file mode 100644
index e8b4092..0000000
--- a/update/org.eclipse.update.examples/plugin.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin

-   id="org.eclipse.update.examples"

-   name="%name"

-   version="2.0.0"

-   provider-name="%provider-name">

-

-   <runtime>

-      <library name="updateexamples.jar">

-         <export name="*"/>

-      </library>

-   </runtime>

-   <requires>

-      <import plugin="org.eclipse.core.runtime"/>

-      <import plugin="org.apache.xerces"/>

-      <import plugin="org.eclipse.core.boot"/>

-      <import plugin="org.eclipse.update.core"/>

-   </requires>

-

-

-   <extension

-         id="zip"

-         point="org.eclipse.update.core.featureTypes">

-      <feature-factory

-            class="org.eclipse.update.examples.buildzip.BuildZipFeatureFactory">

-      </feature-factory>

-   </extension>

-   <extension

-         id="site.zip"

-         point="org.eclipse.update.core.siteTypes">

-      <site-factory

-            class="org.eclipse.update.examples.buildzip.BuildZipSiteFactory">

-      </site-factory>

-   </extension>

-   <extension

-         id="site.freeform"

-         point="org.eclipse.update.core.siteTypes">

-      <site-factory

-            class="org.eclipse.update.examples.freeform.FreeFormSiteFactory">

-      </site-factory>

-   </extension>

-

-</plugin>

diff --git a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar b/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
deleted file mode 100644
index 06507a7..0000000
--- a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar b/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
deleted file mode 100644
index 7236815..0000000
--- a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/info/images/redDot.jpg b/update/org.eclipse.update.examples/site/info/images/redDot.jpg
deleted file mode 100644
index f0fb5c3..0000000
--- a/update/org.eclipse.update.examples/site/info/images/redDot.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/info/siteInfo.html b/update/org.eclipse.update.examples/site/info/siteInfo.html
deleted file mode 100644
index ceca97d..0000000
--- a/update/org.eclipse.update.examples/site/info/siteInfo.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!-- saved from url=(0040)http://dejan/testSite/info/siteInfo.html -->
-<HTML><HEAD>
-<META http-equiv=Content-Type content="text/html; charset=windows-1252">
-<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
-<BODY>
-<H1 align=left><IMG height=55 src="images/redDot.jpg" width=56 
-align=center border=0> <FONT color=#c0c0c0>Follow the Red Dot&nbsp;</FONT></H1>
-<P>Welcome to the <B><FONT color=#800000>Red Dot</FONT> </B>update site. Use 
-your Eclipse <B>Update Sites</B> view to locate the feature version you want to 
-install or update to.</P>
-<H2>About Red Dot Feature</H2>
-<P>Our revolutionary Red Dot Eclipse feature changed all preconceptions about 
-what Eclipse features can and cannot do. Using our strikingly simple concept of 
-adding buttons to the Eclipse tool bar, we allow you to open dialogs that show 
-you the version of the Red Dot feature. The beauty of the concept stems from its 
-simplicity, ease of use, high performance and small footprint. Never before was 
-it so easy to press a button on the tool bar to get some text shown in the 
-dialog.</P>
-<H2>News</H2>
-<UL>
-  <LI><B>November 2001</B> - version 2.0.0 of the Red Dot feature is available 
-  for download. This version brings improvements across the board, further 
-  strengthening an already established Eclipse feature classic. Improvements 
-  will be visible the moment you update your feature - our famous red dot tool 
-  bar button is now <B>25% more red</B>, making it even easier to spot among 
-  other buttons. 
-  <LI><B>October 2001</B> - version 1.0.0 of the Red Dot feature is available 
-  for download. Select it in the 'Sites' view of the Update Manager and press 
-  'Install' button. </LI></UL>
-<HR>
-<I>Copyright 2001 Red Dot Corporation Ltd. All rights reserved.</I> 
-</BODY></HTML>
diff --git a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar b/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
deleted file mode 100644
index c88b793..0000000
--- a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar b/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
deleted file mode 100644
index da31ad3..0000000
--- a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/site.xml b/update/org.eclipse.update.examples/site/site.xml
deleted file mode 100644
index b091324..0000000
--- a/update/org.eclipse.update.examples/site/site.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<site>
-   <description url="info/siteInfo.html"/>
-
-   <feature url="features/com.reddot.reddot_1.0.0.jar">
-      <category name="reddot"/>
-   </feature>
-
-   <feature url="features/com.reddot.reddot_2.0.0.jar">
-      <category name="reddot"/>
-   </feature>
-
-   <category-def label="Red Dot Versions" name="reddot">
-      <description url="info/RedDotVersions.html">
-         This category contains all of the currently available versions of Red Dot feature.
-      </description>
-   </category-def>
-
-</site>   
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
deleted file mode 100644
index c104c18..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
+++ /dev/null
@@ -1,157 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */ 
- 
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringBufferInputStream;
-import java.net.URL;
-import java.util.Properties;
-import java.util.jar.JarEntry;
-import java.util.jar.JarOutputStream;
-
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.ContentReference;
-import org.eclipse.update.core.IFeature;
-import org.eclipse.update.core.IFeatureContentProvider;
-import org.eclipse.update.core.IPluginEntry;
-import org.eclipse.update.core.JarContentReference;
-import org.eclipse.update.core.model.InstallAbortedException;
-

-/**

- * Converts eclipse build .zip files into packaged feature

- */

-public class BuildZipConverter {

-

-	public static void main(String[] args) {
-		if (args.length <=0) {
-			System.out.println("Usage:     BuildZipConverter <path to the zip file>.\r\nExample: BuildZipConverter d:/download/integration-eclipse-SDK-20020109-win32.zip");
-			return;
-		}
-		try {
-			URL buildzip = new URL(("file:"+args[0]).replace(File.separatorChar, '/'));
-			BuildZipFeatureFactory factory = new BuildZipFeatureFactory();
-			IFeature feature = factory.createFeature(buildzip, null);
-			IFeatureContentProvider provider = feature.getFeatureContentProvider();
-			
-			ContentReference[] refs = provider.getFeatureEntryContentReferences(null);
-			
-			File site = new File((args[0]+".packaged/").replace('/',File.separatorChar));
-			site.mkdirs();
-			File featuresDir = new File(site,"features");
-			featuresDir.mkdirs();
-			File pluginsDir = new File(site, "plugins");
-			pluginsDir.mkdirs();
-			
-			File jarFile = new File(featuresDir,feature.getVersionedIdentifier()+".jar");
-			System.out.println("writing feature archive: "+feature.getVersionedIdentifier()+".jar");
-			writeJar(jarFile, refs, feature, null, null);
-			JarContentReference jar = new JarContentReference("build.zip",buildzip);
-			Properties manifest = getBuildManifest(jar);
-			
-			IPluginEntry[] plugins = feature.getPluginEntries();
-			for (int i=0; i<plugins.length; i++) {
-				refs = provider.getPluginEntryContentReferences(plugins[i], null);
-				jarFile = new File(pluginsDir,plugins[i].getVersionedIdentifier()+".jar");
-				System.out.println("writing plugin archive: "+plugins[i].getVersionedIdentifier()+".jar");
-				writeJar(jarFile, refs, feature, plugins[i].getVersionedIdentifier().getIdentifier(), manifest);
-			}
-			
-			writeSiteManifest(site, feature);
-		} catch(Exception e) {
-			e.printStackTrace();
-		}

-	}
-	
-	public static void writeJar(File jarFile,ContentReference[] refs, IFeature feature, String pluginId, Properties manifest) {
-			
-		JarOutputStream jos = null;
-		FileOutputStream os = null;
-		InputStream is = null;
-		
-		try {
-			os = new FileOutputStream(jarFile);
-			jos = new JarOutputStream(os);
-			JarEntry entry = null;
-			String buf = null;
-			StringBufferInputStream sbis = null;
-			
-			// write jar manifest (first entry in output stream)
-			buf = "Manifest-Version: 1.0\nCreated-By: 2.0.0 (www.eclipse.org Feature Packager)\n";
-			sbis = new StringBufferInputStream(buf);
-			entry = new JarEntry("META-INF/MANIFEST.MF");
-			jos.putNextEntry(entry);
-			Utilities.copy(sbis,jos,null);
-			sbis.close();
-			
-			// jar up the references
-			for (int i=0; i<refs.length; i++) {
-				String id = refs[i].getIdentifier();
-				entry = new JarEntry(id);
-				jos.putNextEntry(entry);
-				is = refs[i].getInputStream();
-				Utilities.copy(is,jos,null);
-				is.close(); is = null;
-			}
-			
-			// for plugin jars, write build manifest
-			if (pluginId != null && manifest != null) {
-				String key = "plugin@"+pluginId;
-				String value = manifest.getProperty(key);
-				if (value != null) {
-					if (value.equals("HEAD")) {
-						value += "-" + feature.getVersionedIdentifier().getVersion().getMajorComponent();
-					}
-					buf = key + "=" + value;
-					sbis = new StringBufferInputStream(buf);
-					entry = new JarEntry("buildmanifest.properties");
-					jos.putNextEntry(entry);
-					Utilities.copy(sbis,jos,null);
-					sbis.close();
-				}
-			}
-			
-			// close jar
-			jos.close(); jos = null; os = null;
-		} catch(Exception e) {
-			e.printStackTrace();
-		} finally {
-			if (is != null) 
-				try {is.close();} catch(IOException e) {}
-				
-			if (jos != null) 
-				try {jos.close();} catch(IOException e) {}
-			else if (os != null)
-				try {os.close();} catch(IOException e) {}
-		}		
-	}
-	
-	public static void writeSiteManifest(File site, IFeature feature) throws IOException, InstallAbortedException {
-		File manifest = new File(site, "site.xml");
-		FileOutputStream os = new FileOutputStream(manifest);
-		String siteXML = "<site>\n   <feature url=\"features/"+feature.getVersionedIdentifier().toString()+".jar\"/>\n</site>";
-		StringBufferInputStream sbis = new StringBufferInputStream(siteXML);
-		Utilities.copy(sbis,os,null);
-		os.close();
-		sbis.close();
-	}
-	
-	public static Properties getBuildManifest(JarContentReference jar) throws IOException {
-		ContentReference manifestEntry = jar.peek("eclipse/buildmanifest.properties",null/*ContentSelector*/, null/*ProgressMonitor*/);
-		InputStream is = null;
-		Properties props = null;
-		try {
-			props = new Properties();
-			is = manifestEntry.getInputStream();
-			props.load(is);
-		} finally {
-			if (is != null) try{ is.close(); } catch(IOException e) {}
-		}
-		return props;
-	}

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
deleted file mode 100644
index a0f1c0e..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
+++ /dev/null
@@ -1,256 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */ 

-

-import java.io.File;

-import java.io.FileOutputStream;

-import java.io.IOException;

-import java.net.URL;

-import java.util.jar.JarEntry;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IStatus;

-import org.eclipse.core.runtime.Status;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.ContentReference;

-import org.eclipse.update.core.FeatureContentProvider;

-import org.eclipse.update.core.IFeatureContentProvider;

-import org.eclipse.update.core.INonPluginEntry;

-import org.eclipse.update.core.IPluginEntry;

-import org.eclipse.update.core.IVerifier;

-import org.eclipse.update.core.InstallMonitor;

-import org.eclipse.update.core.JarContentReference;

-import org.eclipse.update.core.JarContentReference.ContentSelector;

-import org.eclipse.update.core.model.FeatureModel;

-import org.eclipse.update.core.model.InstallAbortedException;

-

-/**

- * An example feature content provider. It handles features packaged as

- * build zip's using the format used for integration and stable builds

- * posted on the downloads pages at www.eclipse.org

- * </p>

- * @since 2.0

- */

-

-public class BuildZipFeatureContentProvider extends FeatureContentProvider implements IFeatureContentProvider {

-

-	private JarContentReference baseReference;

-	private ContentReference generatedFeatureManifest;	

-	private ContentReference[] featureEntryContentReferences;

-	private IPluginEntry currentPluginEntry;

-	private INonPluginEntry currentNonPluginEntry;

-	

-	public BuildZipFeatureContentProvider(URL base) {

-		super(base);

-		this.baseReference = new JarContentReference("build.zip",base);

-	}

-	

-	/*

-	 * @see IFeatureContentProvider#getFeatureManifest()

-	 */

-	public ContentReference getFeatureManifestReference(InstallMonitor monitor) throws CoreException {

-		if (generatedFeatureManifest == null) {

-			throw newCoreException("Feature manifest is not available",null);

-		}

-		else

-			return generatedFeatureManifest;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getArchiveReferences()

-	 */

-	public ContentReference[] getArchiveReferences(InstallMonitor monitor) {

-		// the feature and all its plugins files are packaged in a single archive

-		return new ContentReference[] { baseReference };

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryArchiveReferences()

-	 */

-	public ContentReference[] getFeatureEntryArchiveReferences(InstallMonitor monitor) {

-		// the feature and all its plugins files are packaged in a single archive

-		return new ContentReference[] { baseReference };

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryArchiveReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryArchiveReferences(IPluginEntry pluginEntry, InstallMonitor monitor) {

-		// the feature and all its plugins files are packaged in a single archive

-		return new ContentReference[] { baseReference };

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getNonPluginEntryArchiveReferences(INonPluginEntry)

-	 */

-	public ContentReference[] getNonPluginEntryArchiveReferences(INonPluginEntry nonPluginEntry, InstallMonitor monitor) 

-		throws CoreException {

-		try {

-			return peekNonPluginEntryContent(nonPluginEntry,monitor);

-		} catch(IOException e) {

-			throw newCoreException("Unable to return content for non plugin entry "+nonPluginEntry.getIdentifier(),e);

-		}

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getFeatureEntryContentReferences()

-	 */

-	public ContentReference[] getFeatureEntryContentReferences(InstallMonitor monitor) {

-		if (featureEntryContentReferences == null)

-			return new ContentReference[0];

-		else

-			return  featureEntryContentReferences;

-	}

-

-	/*

-	 * @see IFeatureContentProvider#getPluginEntryContentReferences(IPluginEntry)

-	 */

-	public ContentReference[] getPluginEntryContentReferences(IPluginEntry pluginEntry, InstallMonitor monitor)

-		throws CoreException {

-		try {

-			return peekPluginEntryContent(pluginEntry, monitor);

-		} catch(IOException e) {

-			throw newCoreException("Unable to return content for plugin entry "+pluginEntry.getVersionedIdentifier(),e);

-		}

-	}

-	

-	public URL getFeatureBaseURL() throws IOException {

-		return getWorkingDirectory().toURL();

-			

-	}

-

-	ContentReference getFeatureBuildManifest() throws Exception {

-		return baseReference.peek("eclipse/buildmanifest.properties",null/*ContentSelector*/, null/*ProgressMonitor*/);

-	}

-

-	ContentReference getPluginManifest(String pluginId, boolean isFragment) throws Exception {			

-		String manifestName = "eclipse/plugins/" + pluginId + "/" + (isFragment ? "fragment.xml" : "plugin.xml");

-		return baseReference.peek(manifestName, null/*ContentSelector*/, null/*ProgressMonitor*/);

-	}

-	

-	void unpackFeatureEntryContent(FeatureModel feature, InstallMonitor monitor) throws IOException, InstallAbortedException {

-			

-		// define selector for feature entry files

-		ContentSelector selector = new ContentSelector() {

-			public boolean include(JarEntry jarEntry) {

-				if (jarEntry.isDirectory())

-					return false;					

-				String entry = jarEntry.getName();

-				if (entry.startsWith("eclipse/readme/"))

-					return true;

-				else if (entry.startsWith("eclipse/splash/"))

-					return true;

-				else if (entry.startsWith("eclipse/") && entry.indexOf("/",8)==-1 && entry.endsWith(".html"))

-					return true;

-				else

-					return false;	

-			}

-			public String defineIdentifier(JarEntry jarEntry) {

-				String entry = jarEntry.getName();

-				if (entry.startsWith("eclipse/"))

-					return entry.substring(8);

-				else

-					return entry;

-			}

-		};

-		

-		// unpack feature entry files

-		File tmpDir = getWorkingDirectory();

-		ContentReference[] refs = baseReference.unpack(tmpDir, selector, monitor);

-		

-		// write out feature manifest (feature.xml);

-		File manifest = Utilities.createLocalFile(tmpDir,"feature.xml");

-		ContentReference manifestReference = new ContentReference("feature.xml", manifest);

-		DefaultModelWriter w = new DefaultModelWriter(feature);

-		FileOutputStream os = null;

-		try {

-			os = new FileOutputStream(manifest);

-			w.writeFeatureManifest(os);

-		} finally {

-			if (os != null) try { os.close(); } catch(IOException e) {}

-		}

-		this.generatedFeatureManifest = manifestReference;

-		

-		// save references (newly-written feature.xml plus rest of selected feature files)

-		ContentReference[] allRefs = new ContentReference[refs.length+1];

-		allRefs[0] = manifestReference;

-		System.arraycopy(refs,0,allRefs,1,refs.length);

-		featureEntryContentReferences = allRefs;

-	}

-		

-	ContentReference[] peekPluginEntryContent(IPluginEntry plugin, InstallMonitor monitor) throws IOException {

-		

-		// define selector for plugin entry files

-		ContentSelector selector = new ContentSelector() {

-			public boolean include(JarEntry jarEntry) {

-				if (jarEntry.isDirectory())

-					return false;

-				String entry = jarEntry.getName();

-				String id = currentPluginEntry.getVersionedIdentifier().getIdentifier();

-				if (id==null)

-					return false;

-				else if (entry.startsWith("eclipse/plugins/"+id+"/"))

-					return true;

-				else

-					return false;	

-			}

-			public String defineIdentifier(JarEntry jarEntry) {

-				String entry = jarEntry.getName();

-				int ix = entry.indexOf("/",16);

-				if (ix != -1) {

-					return entry.substring(ix+1);

-				} else {

-					return entry;

-				}

-			}

-		};

-		

-		// unpack plugin entry files

-		currentPluginEntry = plugin;

-		return baseReference.peek(selector, monitor);

-	}

-		

-	ContentReference[] peekNonPluginEntryContent(INonPluginEntry data, InstallMonitor monitor) throws IOException {

-		

-		// define selector for non plugin entry files

-		ContentSelector selector = new ContentSelector() {

-			public boolean include(JarEntry jarEntry) {

-				if (jarEntry.isDirectory())

-					return false;

-				String entry = jarEntry.getName();

-				String id = currentNonPluginEntry.getIdentifier();

-				if (!id.equals("root"))

-					return false;

-				else if (!entry.startsWith("eclipse/plugins/"))

-					return true;

-				else

-					return false;	

-			}

-			public String defineIdentifier(JarEntry jarEntry) {

-				String entry = jarEntry.getName();

-				if (entry.startsWith("eclipse/"))

-					return entry.substring(8);

-				else

-					return entry;

-			}

-		};

-		

-		// unpack non plugin entry files

-		currentNonPluginEntry = data;

-		return baseReference.peek(selector, monitor);

-	}

-	

-	private CoreException newCoreException(String s, Throwable e) throws CoreException {

-		return new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples",0,s,e));

-	}

-	/*

-	 * @see IFeatureContentProvider#getVerifier()

-	 */

-	public IVerifier getVerifier() throws CoreException {

-		return null;

-	}

-

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
deleted file mode 100644
index d6150b7..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */ 

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.runtime.IStatus;

-import org.eclipse.core.runtime.Status;

-import org.eclipse.update.core.BaseFeatureFactory;

-import org.eclipse.update.core.Feature;

-import org.eclipse.update.core.IFeature;

-import org.eclipse.update.core.IFeatureFactory;

-import org.eclipse.update.core.ISite;

-import org.eclipse.update.core.model.FeatureModel;

-

-/**

- * An example feature factory based on the packaging 

- * format used for integration and stable builds

- * posted on the downloads pages at www.eclipse.org

- * </p>

- * @since 2.0

- */

-

-public class BuildZipFeatureFactory

-	extends BaseFeatureFactory

-	implements IFeatureFactory {

-

-	/*

-	 * @see IFeatureFactory#createFeature(URL, ISite, IProgressMonitor)

-	 */

-	public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException {

-		try {

-			// create content provider for feature

-			BuildZipFeatureContentProvider cp = new BuildZipFeatureContentProvider(url);

-			Feature feature = null;

-			

-			// parse the feature

-			feature = (Feature) parseFeature(cp);

-			

-			// initialize feature

-			feature.setFeatureContentProvider(cp);

-			feature.setSite(site);

-			feature.resolve(cp.getFeatureBaseURL(), null); 

-			feature.markReadOnly();

-			return feature;

-		} catch (Exception e) {

-			throw new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples.buildzip",0,"Unable to create feature",e));

-		}

-	}

-

-	/*

-	 * parse the build zip to reconstruct a feature model

-	 */

-	public FeatureModel parseFeature(BuildZipFeatureContentProvider cp) throws Exception {

-		return (new BuildZipFeatureParser(this)).parse(cp);

-	}

-

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
deleted file mode 100644
index 6748ded..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
+++ /dev/null
@@ -1,203 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */ 

- 

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.URLDecoder;

-import java.util.Enumeration;

-import java.util.Properties;

-import java.util.StringTokenizer;

-

-import org.eclipse.core.runtime.PluginVersionIdentifier;

-import org.eclipse.update.core.ContentReference;

-import org.eclipse.update.core.model.FeatureModel;

-import org.eclipse.update.core.model.PluginEntryModel;

-import org.eclipse.update.core.model.URLEntryModel;

-

-/**

- * An example feature parser. It handles features packaged as

- * build zip's using the format used for integration and stable builds

- * posted on the downloads pages at www.eclipse.org

- * </p>

- * @since 2.0

- */

-

-public class BuildZipFeatureParser {	

-	

-	private BuildZipFeatureFactory factory;

-	private BuildZipPluginParser pluginParser;

-	

-	public BuildZipFeatureParser(BuildZipFeatureFactory factory) {

-		this.factory = factory;

-	}

-	

-	public FeatureModel parse(BuildZipFeatureContentProvider cp) throws Exception {				

-		return parseFeature(cp);

-	}

-	

-	private FeatureModel parseFeature(BuildZipFeatureContentProvider cp) throws Exception {		

-		

-		// get reference to the build manifest

-		ContentReference manifestRef = cp.getFeatureBuildManifest();

-		InputStream is = manifestRef.getInputStream();		

-		

-		// load buildmanifest.properties

-		Properties manifest = new Properties();

-		try {

-			manifest.load(is);

-		} finally {

-			if (is!=null) try { is.close(); } catch(IOException e) {}

-		}

-		

-		// populate feature model

-		FeatureModel feature = factory.createFeatureModel();

-		parseFeatureEntry(cp, feature, manifest);

-		

-		// parse plugin entries

-		parsePluginEntries(cp, feature, manifest); 

-		

-		// parse non-plugin entries

-		parseNonPluginEntries(cp, feature, manifest);

-		

-		// unpack feature entry content

-		cp.unpackFeatureEntryContent(feature, null/*IProgressMonitor*/);

-		

-		return feature;

-	}

-	

-	private void parseFeatureEntry(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {

-		

-		// parse out build zip file name. It is assumed to be in the

-		// form <package identifier>-<build date>-<target platform>.zip,

-		// where

-		//		<package identifier> is hyphen (-) separaterd token list

-		//		<build date> is single all-numeric token

-		//		<target platform> is hyphen (-) separaterd token list

-		

-		String pkgId = "";

-		String target = "";

-		String build = "";

-		String state = "ID";

-		boolean firstToken = true;

-		String zipName = URLDecoder.decode(cp.getURL().getFile());

-		int ix = zipName.lastIndexOf("/");

-		if (ix != -1)

-			zipName = zipName.substring(ix+1);

-		if (zipName.endsWith(".zip")) {

-			zipName = zipName.substring(0,zipName.length()-4);

-		}

-		StringTokenizer tokenizer = new StringTokenizer(zipName,"-",false);

-		String token;

-		while(tokenizer.hasMoreTokens()) {

-			token = tokenizer.nextToken();

-			try {

-				Long.parseLong(token);

-				state = "TARGET";

-				target = "";

-				firstToken = true;

-				build = token+".0.0";

-			} catch (NumberFormatException e) {

-				if (state.equals("ID")) {

-					pkgId += (firstToken ? "" : " ") + token;

-				} else {

-					target += (firstToken ? "" : " ") + token;

-				}

-				firstToken = false;

-			}

-		}

-		

-		// generate base feature attributes

-		feature.setFeatureIdentifier(pkgId.replace(' ','.'));

-		feature.setFeatureVersion(build);

-		feature.setLabel(pkgId.substring(0,1).toUpperCase() + pkgId.substring(1) + " for " + target);

-		feature.setProvider("www.eclipse.org");

-		feature.setImageURLString("splash/splash_full.bmp");

-		feature.setOS(target.replace(' ','-'));	

-		

-		// add description

-		URLEntryModel description = factory.createURLEntryModel();

-		description.setURLString("readme/readme.html");

-		description.setAnnotation("x");

-		feature.setDescriptionModel(description);

-		

-		// add license

-		URLEntryModel license = factory.createURLEntryModel();

-		license.setURLString("about.html");

-		license.setAnnotation("You must view the full license by following the \"License\" link in the feature preview.\nSelecting \"Accept\" indicates that you have viewed and accepted the feature license.");

-		feature.setLicenseModel(license);

-		

-		// add copyright

-		URLEntryModel copyright = factory.createURLEntryModel();

-		copyright.setURLString("notice.html");

-		copyright.setAnnotation("x");

-		feature.setCopyrightModel(copyright);

-	}	

-	

-	private void parsePluginEntries(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {

-		

-		Enumeration entries = manifest.keys();

-		String plugin;

-		String pluginId;

-		String pluginVersion;

-		String pluginBuildVersion;

-		PluginEntryModel pluginEntry;

-		while(entries.hasMoreElements()) {

-			plugin = (String) entries.nextElement();

-			if (plugin.startsWith("plugin@")) {

-				pluginId = plugin.substring(7);

-				pluginBuildVersion = manifest.getProperty(plugin);

-				if (pluginBuildVersion.equals("HEAD")) {

-					String featureVersion = feature.getFeatureVersion();

-					int ix = featureVersion.indexOf(".");

-					String featureMajor = ix==-1 ? featureVersion : featureVersion.substring(0,ix);

-					pluginBuildVersion += "-" + featureMajor;

-				}

-				pluginEntry = factory.createPluginEntryModel();

-				pluginVersion = parsePluginVersionInManifest(cp, pluginId, pluginEntry);

-				if (pluginVersion != null) {

-					pluginEntry.setPluginIdentifier(pluginId);

-					pluginEntry.setPluginVersion((new PluginVersionIdentifier(pluginVersion)).toString()+"."+pluginBuildVersion);

-					feature.addPluginEntryModel(pluginEntry);

-				}

-			}

-		}		

-	}

-	

-	private void parseNonPluginEntries(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {

-	//	NonPluginEntryModel nonPluginEntry = factory.createNonPluginEntryModel();

-	//	nonPluginEntry.setIdentifier("root");

-	//	feature.addNonPluginEntryModel(nonPluginEntry);

-	}

-	

-	private String parsePluginVersionInManifest(BuildZipFeatureContentProvider cp, String pluginId, PluginEntryModel pluginEntry) {

-

-		if (pluginParser == null)

-			pluginParser = new BuildZipPluginParser();

-				

-		InputStream is = null;				

-		ContentReference pluginManifest;

-		try {

-			// try plugin.xml

-			pluginManifest  = cp.getPluginManifest(pluginId, false);

-			is = pluginManifest.getInputStream();

-			return pluginParser.parse(is);

-		} catch (Exception e) {

-			try {

-				// retry with feature.xml

-				pluginManifest  = cp.getPluginManifest(pluginId, true);

-				is = pluginManifest.getInputStream();

-				String result = pluginParser.parse(is);

-				pluginEntry.isFragment(true);

-				return result;

-			} catch (Exception e2) {

-				return null;

-			}

-		} finally {

-			if (is != null) try { is.close(); } catch (IOException e) {}

-		}

-	}

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
deleted file mode 100644
index 90e1d1f..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */

-

-import java.io.IOException;

-import java.io.InputStream;

-

-import org.apache.xerces.parsers.SAXParser;

-import org.xml.sax.Attributes;

-import org.xml.sax.InputSource;

-import org.xml.sax.SAXException;

-import org.xml.sax.helpers.DefaultHandler;

-

-/**

- * Parse default feature.xml

- */

-

-public class BuildZipPluginParser extends DefaultHandler {

-

-	private SAXParser parser;

-	private String version;

-	

-	private static final String PLUGIN = "plugin";

-	private static final String FRAGMENT = "fragment";

-	private static final String ID = "id";

-	private static final String VERSION = "version";	

-	

-	private class ParseCompleteException extends SAXException {

-		public ParseCompleteException(String arg0) {

-			super(arg0);

-		}

-	}

-

-	/**

-	 * Constructor for DefaultFeatureParser

-	 */

-	public BuildZipPluginParser() {

-		super();

-		this.parser = new SAXParser();

-		this.parser.setContentHandler(this);

-	}

-	

-	/**

-	 * @since 2.0

-	 */

-	public synchronized String parse(InputStream in) throws SAXException, IOException {

-		try {

-			version = null;

-			parser.parse(new InputSource(in));

-		} catch(ParseCompleteException e) {

-		}

-		return version;

-	}

-	

-	/**

-	 * @see DefaultHandler#startElement(String, String, String, Attributes)

-	 */

-	public void startElement(String uri, String localName,String qName, Attributes attributes) throws SAXException {

-		

-		String tag = localName.trim();

-	

-		if (tag.equalsIgnoreCase(PLUGIN)) {

-			processPlugin(attributes);

-			return;

-		}

-	

-		if (tag.equalsIgnoreCase(FRAGMENT)) {

-			processPlugin(attributes);

-			return;

-		}

-	}

-	

-	/** 

-	 * process plugin entry info

-	 */

-	private void processPlugin(Attributes attributes) throws ParseCompleteException {

-		version = attributes.getValue("version");

-		throw new ParseCompleteException("");

-	}

-}

-

-

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
deleted file mode 100644
index 05ec032..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.SiteContentProvider;

-

-public class BuildZipSiteContentProvider extends SiteContentProvider {

-

-	/**

-	 * Constructor for SiteContentProvider.

-	 */

-	public BuildZipSiteContentProvider(URL url) {

-		super(url);

-	}

-	

-	/*

-	 * @see ISiteContentProvider#getArchiveReference(String)

-	 */

-	public URL getArchiveReference(String id) throws CoreException {

-		// build zip features do not have associated archives

-		// the zip file also contains the archives files

-		return null;

-	}

-

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
deleted file mode 100644
index df9196b..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */

-

-import java.io.File;

-import java.io.FileFilter;

-import java.io.IOException;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.net.URLDecoder;

-import java.util.zip.ZipEntry;

-import java.util.zip.ZipFile;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.BaseSiteFactory;

-import org.eclipse.update.core.ISite;

-import org.eclipse.update.core.Site;

-import org.eclipse.update.core.model.InvalidSiteTypeException;

-import org.eclipse.update.core.model.CategoryModel;

-

-public class BuildZipSiteFactory extends BaseSiteFactory {

-

-	/*

-	 * @see ISiteFactory#createSite(URL)

-	 */

-	public ISite createSite(URL url) throws CoreException,InvalidSiteTypeException {

-

-		Site site = null;

-

-		// create site and add category

-		site = (Site) createSiteMapModel();

-		CategoryModel category = createSiteCategoryModel();

-		category.setName("eclipse-builds");

-		category.setLabel("Eclipse Builds");

-		site.addCategoryModel(category);

-

-		// set content provider

-		BuildZipSiteContentProvider contentProvider = new BuildZipSiteContentProvider(url);

-		site.setSiteContentProvider(contentProvider);

-

-		// get all matching zip files on the site

-		FileFilter filter = new FileFilter() {

-			public boolean accept(File file) {

-				if (file.getName().endsWith(".zip")) {

-					try {

-						ZipFile zip = new ZipFile(file);

-						ZipEntry entry = zip.getEntry("eclipse/buildmanifest.properties");

-						if (entry == null)

-							return false;

-						else

-							return true;

-					} catch (IOException e) {

-						return false;

-					}

-				} else

-					return false;

-			}

-		};

-		File file = new File(URLDecoder.decode(url.getFile()));

-		File[] zips = file.listFiles(filter);

-

-		// create a reference for each matching zip

-		SiteFeatureReferenceModel ref = null;

-		for (int i = 0; zips != null && i < zips.length; i++) {

-			ref = createFeatureReferenceModel();

-			ref.setType("org.eclipse.update.examples.zip");

-			ref.setSiteModel(site);

-			ref.setURLString("file:" + zips[i].getAbsolutePath());

-			ref.setCategoryNames(new String[] { "eclipse-builds" });

-			site.addFeatureReferenceModel(ref);

-		}

-		try {

-			site.resolve(url, null); // resolve any URLs relative to the site

-		} catch (MalformedURLException e){

-			throw Utilities.newCoreException("",e);

-		}

-

-		return site;

-	}

-

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
deleted file mode 100644
index 9ca8bc4..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
+++ /dev/null
@@ -1,228 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */ 
- 
-import java.io.OutputStream;
-import java.io.PrintWriter;
-
-import org.eclipse.update.core.model.*;
-
-/**
- * Write standard feature manifest (feature.xml) from model.
- * </p>
- * @since 2.0
- */
-
-public class DefaultModelWriter {
-	
-	private FeatureModel feature;
-	
-	/**
-	 * @since 2.0
-	 */
-	public DefaultModelWriter(FeatureModel feature) {
-		this.feature = feature;
-	}
-	
-	/**
-	 * @since 2.0
-	 */
-	public void writeFeatureManifest(OutputStream os) {
-		PrintWriter w = new PrintWriter(os);
-		writeFeature(w,0,feature);
-		w.flush();
-	}
-	
-	private void writeFeature(PrintWriter w, int level, FeatureModel feature) {
-		if (feature == null) return;
-		
-		String in = getIndent(level);
-		w.println(in+"<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
-		
-		w.println(in+"<feature");
-		if (feature.getFeatureIdentifier()!=null)
-			w.println(in+"   "+"id=\""+feature.getFeatureIdentifier()+"\"");
-		if (feature.getFeatureVersion()!=null)
-			w.println(in+"   "+"version=\""+feature.getFeatureVersion()+"\"");
-		if (feature.getLabelNonLocalized()!=null)
-			w.println(in+"   "+"label=\""+feature.getLabelNonLocalized()+"\"");
-		if (feature.getProviderNonLocalized()!=null)
-			w.println(in+"   "+"provider-name=\""+feature.getProviderNonLocalized()+"\"");
-		if (feature.getImageURLString()!=null)
-			w.println(in+"   "+"image=\""+feature.getImageURLString()+"\"");
-		if (feature.getOS()!=null)
-			w.println(in+"   "+"os=\""+feature.getOS()+"\"");
-		if (feature.getWS()!=null)
-			w.println(in+"   "+"ws=\""+feature.getWS()+"\"");
-		if (feature.getNL()!=null)
-			w.println(in+"   "+"nl=\""+feature.getNL()+"\"");
-		if (feature.getApplication()!=null)
-			w.println(in+"   "+"application=\""+feature.getApplication()+"\"");
-		w.println(in+"   "+">");
-		
-		writeDescription(w, level+1, feature.getDescriptionModel());
-		writeCopyright(w, level+1, feature.getCopyrightModel());
-		writeLicense(w, level+1, feature.getLicenseModel());
-		writeURLs(w, level+1, feature);
-		writePrereqs(w, level+1, feature);
-		writePluginEntries(w, level+1, feature);
-		writeNonPluginEntries(w, level+1, feature);
-         
-        w.println("");
-        w.println(in+"</feature>");
-	}
-	
-	private void writeDescription(PrintWriter w, int level, URLEntryModel ue) {
-		writeDescriptionEntry(w,level, ue, "description");
-	}
-	
-	private void writeCopyright(PrintWriter w, int level, URLEntryModel ue) {
-		writeDescriptionEntry(w,level, ue, "copyright");
-	}
-	
-	private void writeLicense(PrintWriter w, int level, URLEntryModel ue) {
-		writeDescriptionEntry(w,level, ue, "license");
-	}
-	
-	private void writeDescriptionEntry(PrintWriter w, int level, URLEntryModel ue, String tag) {
-		if (ue == null) return;
-		String url = ue.getURLString();
-		String txt = ue.getAnnotationNonLocalized();
-		if (url==null && txt==null) return;
-		
-		String in = getIndent(level);
-		w.println("");
-		if (url==null)
-			w.println(in+"<"+tag+">");
-		else {
-			w.print(in+"<"+tag+" url=\""+ue.getURLString()+"\"");
-			if (txt==null)
-				w.println("/>");
-			else
-				w.println(">");
-		}
-		if (txt!=null) {
-			w.println(in + txt);
-			w.println(in+"</"+tag+">");
-		}
-	}
-	
-	private void writeURLs(PrintWriter w, int level, FeatureModel feature) {	
-		URLEntryModel update = feature.getUpdateSiteEntryModel();
-		URLEntryModel[] discovery = feature.getDiscoverySiteEntryModels();		
-		if (update == null && (discovery == null || discovery.length==0)) return;
-		
-		String in = getIndent(level);
-		String in2 = getIndent(level+1);		
-		w.println("");
-		w.println(in+"<url>");
-		
-		if (update != null) {
-			w.println(in2+"<update");
-			if (update.getURLString()!=null)
-				w.println(in2+"   "+"url=\""+update.getURLString()+"\"");
-			if (update.getAnnotationNonLocalized()!=null)
-				w.println(in2+"   "+"label=\""+update.getAnnotationNonLocalized()+"\"");
-			w.println(in2+"   "+"/>");
-		}
-		
-		for (int i=0; discovery!=null && i<discovery.length; i++) {
-			w.println(in2+"<discovery");
-			if (discovery[i].getURLString()!=null)	
-				w.println(in2+"   "+"url=\""+discovery[i].getURLString()+"\"");
-			if (discovery[i].getAnnotationNonLocalized()!=null)
-				w.println(in2+"   "+"label=\""+discovery[i].getAnnotationNonLocalized()+"\"");
-			w.println(in2+"   "+"/>");
-		}
-		
-		w.println(in+"</url>");
-	}
-	
-	private void writePrereqs(PrintWriter w, int level, FeatureModel feature) {	
-		ImportModel[] imp = feature.getImportModels();	
-		if (imp == null || imp.length == 0) return;
-		
-		String in = getIndent(level);
-		String in2 = getIndent(level+1);
-		w.println("");
-		w.println(in+"<requires>");
-		
-		for (int i=0; imp!=null && i<imp.length; i++) {
-			w.println(in2+"<import");
-			if (imp[i].getIdentifier()!=null)
-				w.println(in2+"   "+"plugin=\""+imp[i].getIdentifier()+"\"");
-			if (imp[i].getVersion()!=null)
-				w.println(in2+"   "+"version=\""+imp[i].getVersion()+"\"");
-			if (imp[i].getMatchingRuleName()!=null)
-				w.println(in2+"   "+"match=\""+imp[i].getMatchingRuleName()+"\"");
-			w.println(in2+"   "+"/>");
-		}
-		
-		w.println(in+"</requires>");
-	}
-	
-	private void writePluginEntries(PrintWriter w, int level, FeatureModel feature) {
-		PluginEntryModel[] plugin = feature.getPluginEntryModels();
-		if (plugin == null || plugin.length == 0) return;
-		
-		String in = getIndent(level);
-		w.println("");
-		
-		for (int i=0; i<plugin.length; i++) {
-			w.println(in+"<plugin");
-			if (plugin[i].getPluginIdentifier()!=null)
-				w.println(in+"   "+"id=\""+plugin[i].getPluginIdentifier()+"\"");
-			if (plugin[i].getPluginVersion()!=null)
-				w.println(in+"   "+"version=\""+plugin[i].getPluginVersion()+"\"");
-			if (plugin[i].isFragment())
-				w.println(in+"   "+"fragment=\""+plugin[i].isFragment()+"\"");
-			if (plugin[i].getOS()!=null)
-				w.println(in+"   "+"os=\""+plugin[i].getOS()+"\"");
-			if (plugin[i].getWS()!=null)
-				w.println(in+"   "+"ws=\""+plugin[i].getWS()+"\"");
-			if (plugin[i].getNL()!=null)
-				w.println(in+"   "+"nl=\""+plugin[i].getNL()+"\"");
-			if (plugin[i].getDownloadSize()!=ContentEntryModel.UNKNOWN_SIZE)
-				w.println(in+"   "+"download-size=\""+plugin[i].getDownloadSize()+"\"");
-			if (plugin[i].getInstallSize()!=ContentEntryModel.UNKNOWN_SIZE)
-				w.println(in+"   "+"install-size=\""+plugin[i].getInstallSize()+"\"");
-			w.println(in+"   "+"/>");
-		}
-	}
-	
-	private void writeNonPluginEntries(PrintWriter w, int level, FeatureModel feature) {
-		NonPluginEntryModel[] data = feature.getNonPluginEntryModels();
-		if (data == null || data.length == 0) return;
-		
-		String in = getIndent(level);
-		w.println("");
-		
-		for (int i=0; i<data.length; i++) {
-			w.println(in+"<data");
-			if (data[i].getIdentifier()!=null)
-				w.println(in+"   "+"id=\""+data[i].getIdentifier()+"\"");
-			if (data[i].getOS()!=null)
-				w.println(in+"   "+"os=\""+data[i].getOS()+"\"");
-			if (data[i].getWS()!=null)
-				w.println(in+"   "+"ws=\""+data[i].getWS()+"\"");
-			if (data[i].getNL()!=null)
-				w.println(in+"   "+"nl=\""+data[i].getNL()+"\"");
-			if (data[i].getDownloadSize()!=ContentEntryModel.UNKNOWN_SIZE)
-				w.println(in+"   "+"download-size=\""+data[i].getDownloadSize()+"\"");
-			if (data[i].getInstallSize()!=ContentEntryModel.UNKNOWN_SIZE)
-				w.println(in+"   "+"install-size=\""+data[i].getInstallSize()+"\"");
-			w.println(in+"   "+"/>");
-		}
-	}
-	
-	
-	private String getIndent(int level) {
-		String indent = "";
-		for (int i=0; i<level; i++) 
-			indent += "   ";
-		return indent;
-	}
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
deleted file mode 100644
index 1e189df..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.eclipse.update.examples.buildzip;

-

-/*

- * (c) Copyright IBM Corp. 2000, 2002.

- * All Rights Reserved.

- */ 

-

-import java.net.URL;

-

-import org.eclipse.update.core.*;

- 

-/**

- * unit test harness

- */

-

-public class Test {

-

-	public static void main(String[] args) {

-		

-		try {

-			URL url = new URL("file:d:/downloads/eclipse 2.0/integration-eclipse-SDK-20020109-win32.zip");

-			BuildZipFeatureFactory factory = new BuildZipFeatureFactory();

-			Feature feature = (Feature) factory.createFeature(url,null/*ISite*/);

-			DefaultModelWriter w = new DefaultModelWriter(feature);

-			w.writeFeatureManifest(System.out);

-			

-			System.out.println("");

-			System.out.println("Feature entry references");

-			ContentReference[] refs = feature.getFeatureContentProvider().getFeatureEntryContentReferences(null);

-			for (int i=0; i< refs.length; i++) {

-				System.out.println("   "+refs[i].getIdentifier());

-			}

-			

-			System.out.println("");

-			System.out.println("Plug-in entry references");

-			IPluginEntry[] entry = feature.getPluginEntries();

-			refs = feature.getFeatureContentProvider().getPluginEntryContentReferences(entry[0], null);

-			for (int i=0; i< refs.length; i++) {

-				System.out.println("   "+refs[i].getIdentifier());

-			}			

-			

-			System.out.println("");

-			System.out.println("Non-plug-in entry references");

-			INonPluginEntry[] data = feature.getNonPluginEntries();

-			refs = feature.getFeatureContentProvider().getNonPluginEntryArchiveReferences(data[0], null);

-			for (int i=0; i< refs.length; i++) {

-				System.out.println("   "+refs[i].getIdentifier());

-			}			

-			

-			System.out.println("Done ...");

-		} catch (Exception e) {

-			e.printStackTrace();

-		}		

-	}

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
deleted file mode 100644
index 8b3ca30..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
deleted file mode 100644
index 2cbeab4..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.update.examples.freeform;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IStatus;

-import org.eclipse.core.runtime.Status;

-import org.eclipse.update.core.SiteContentProvider;

-

-public class FreeFormSiteContentProvider extends SiteContentProvider {

-

-	/**

-	 * Constructor for SiteContentProvider.

-	 */

-	public FreeFormSiteContentProvider(URL url) {

-		super(url);

-	}

-	

-	/*

-	 * @see ISiteContentProvider#getArchiveReference(String)

-	 */

-	public URL getArchiveReference(String id) throws CoreException {

-		try {

-			return new URL(getURL(),id);

-		} catch(MalformedURLException e) {

-			throw newCoreException("Unable to return archive URL",e);

-		}

-	}

-	

-	private CoreException newCoreException(String s, Throwable e) throws CoreException {

-		return new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples",0,s,e));

-	}

-

-}

diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
deleted file mode 100644
index cb3c7fc..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package org.eclipse.update.examples.freeform;

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.BaseSiteFactory;

-import org.eclipse.update.core.ISite;

-import org.eclipse.update.core.Site;

-import org.eclipse.update.core.model.InvalidSiteTypeException;

-import org.eclipse.update.core.model.URLEntryModel;

-

-public class FreeFormSiteFactory extends BaseSiteFactory {

-

-	/*

-	 * @see ISiteFactory#createSite(URL)

-	 */

-	public ISite createSite(URL url)

-		throws CoreException, InvalidSiteTypeException {

-

-		// Create site

-		Site site = null;

-		InputStream is = null;

-		try {

-			is = url.openStream();

-			site = (Site) parseSite(is);

-

-			URLEntryModel realSiteRef = site.getDescriptionModel();

-			if (realSiteRef == null)

-				throw Utilities.newCoreException(

-					"Unable to obtain update site reference",

-					null);

-			String siteURLString = realSiteRef.getURLString();

-			if (siteURLString == null)

-				throw Utilities.newCoreException(

-					"Unable to obtain update site reference",

-					null);

-			URL siteURL = new URL(siteURLString);

-			FreeFormSiteContentProvider contentProvider =

-				new FreeFormSiteContentProvider(siteURL);

-			site.setSiteContentProvider(contentProvider);

-			site.resolve(siteURL, null); // resolve any URLs relative to the site

-

-		} catch (MalformedURLException e){

-			throw Utilities.newCoreException("Unable to create URL",e);

-		} catch (IOException e){

-			throw Utilities.newCoreException("Unable to access URL",e);

-		} finally {

-			if (is != null)

-				try {

-					is.close();

-				} catch (IOException e) {

-				}

-		}

-

-		return site;

-	}

-

-	/*

-	 * @see SiteModelFactory#canParseSiteType(String)

-	 */

-	public boolean canParseSiteType(String type) {

-		return type != null

-			&& type.equals("org.eclipse.update.examples.site.freeform");

-	}

-

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/.classpath b/update/org.eclipse.update.tests.core/.classpath
deleted file mode 100644
index 399777c..0000000
--- a/update/org.eclipse.update.tests.core/.classpath
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<classpath>

-    <classpathentry kind="src" path="src/"/>

-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>

-    <classpathentry kind="src" path="/org.junit"/>

-    <classpathentry kind="src" path="/org.apache.xerces"/>

-    <classpathentry kind="src" path="/org.eclipse.core.resources"/>

-    <classpathentry kind="src" path="/org.eclipse.update.core"/>

-    <classpathentry exported="true" kind="src" path="/org.eclipse.update.core.linux"/>

-    <classpathentry exported="true" kind="src" path="/org.eclipse.update.core.win32"/>

-    <classpathentry kind="src" path="/org.eclipse.tomcat"/>

-    <classpathentry kind="src" path="/org.eclipse.help.appserver"/>

-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>

-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>

-    <classpathentry kind="output" path="bin"/>

-</classpath>

diff --git a/update/org.eclipse.update.tests.core/.cvsignore b/update/org.eclipse.update.tests.core/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.tests.core/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/.project b/update/org.eclipse.update.tests.core/.project
deleted file mode 100644
index 2d3215f..0000000
--- a/update/org.eclipse.update.tests.core/.project
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.tests.core</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.resources</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.help.appserver</project>

-		<project>org.eclipse.tomcat</project>

-		<project>org.eclipse.update.core</project>

-		<project>org.eclipse.update.core.linux</project>

-		<project>org.eclipse.update.core.win32</project>

-		<project>org.junit</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ui.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ui.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.ui.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.tests.core/about.html b/update/org.eclipse.update.tests.core/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.tests.core/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/build.properties b/update/org.eclipse.update.tests.core/build.properties
deleted file mode 100644
index 2861d65..0000000
--- a/update/org.eclipse.update.tests.core/build.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-source.updatetests.jar=src/

-bin.includes=*.jar,about.html,test.xml,plugin.xml,data/,webserver/
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/features/feature3/feature.xml
deleted file mode 100644
index 2c80deb..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.core.tests.feature1.plugin1" install-size="1000" fragment="false" nl="en" os="WIN32,LINUX" version="3.5.6" ws="WIN32,MOTIF,GTK"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/Pde_core.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/help.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/junit_3.7.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index 7f05d82..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">

-  <runtime>

-    <library name="junit.jar">

-      <export name="*"/>

-    </library>

-  </runtime>

-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/feature3/feature.xml
deleted file mode 100644
index b406d65..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.plugin1" install-size="1000" fragment="false" nl="en,fr" os="WIN32,LINUX" version="1.1.1" ws="WIN32,GTK,MOTIF"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/helpFeature.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/helpFeature.jar
deleted file mode 100644
index 2d1ed77..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/helpFeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/org.eclipse.pde.feature_1.0.0.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/org.eclipse.pde.feature_1.0.0.jar
deleted file mode 100644
index 7e23cab..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/features/org.eclipse.pde.feature_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/top_titlsm.gif b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/top_titlsm.gif
deleted file mode 100644
index 3917bb6..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/top_titlsm.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/wel_ml.jpg b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/wel_ml.jpg
deleted file mode 100644
index 01e33df..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/img/wel_ml.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/siteInfo.html b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/siteInfo.html
deleted file mode 100644
index b065aa3..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/info/siteInfo.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

-<html>

-<head>

-</head>

-  <body>

-<img src="img/top_titlsm.gif" alt="" width="460" height="50">

-<br>

-<br>

-     It started with Smalltalk<br>

-    OTI has been building tools for platform-independent OO development since

-  1988. Our ENVY&reg; technology first brought collaborative software development,

-  version management and shared repositories to Smalltalk. IBM is one of

-many   companies to license ENVY, which continues to be the foundation of

-VisualAge&reg;   Smalltalk.<br>

-<br>

-<br>

-<br>

-      Next came Java&#8482;<br>

-    Because of our expertise in OO technology, IBM turned to OTI for a next-generation

-  development environment for Java. The result is VisualAge for Java, which

-  continues to win awards for its innovative IDE and team support. InfoWorld

-  has chosen VisualAge for Java as development tool of the year - year after

-  year after year!<br>

-<br>

-<br>

-<br>

-      Then pervasive computing<br>

-    OTI continues its development of IBM's VisualAge Micro Edition, a state-of-the-art

-  platform for collaborative development of embedded applications and systems

-  that are very lean. As the steady stream of press releases attests, VisualAge

-  Micro Edition is already licensed to the leading microchip manufacturers,

-  microkernel developers, and producers of handheld and consumer devices.<br>

-<br>

-<br>

-<br>

-      Now it's Eclipse<br>

-    OTI has built the next generation IBM application development tools platform.

-  Eclipse is a kind of universal tool platform - an open extensible IDE for

-  anything and nothing in particular. The real value comes from tool plug-ins

-  that "teach" Eclipse how to work with things - java files, web content,

-graphics,  video - almost anything you can imagine. Eclipse allows you to

-independently  develop tools that integrate with other people's tools so

-seamlessly you won't know where one tool ends and another starts. The IBM

-supported version of this technology, WebSphere Studio Workbench, will be

-the core of the next  generation of IBM and IBM Business Partner e-business

-tools optimized for  the WebSphere software platform.<br>

-<br>

-<br>

-<br>

-      So what's next?<br>

-    OTI continues to deliver object-oriented technology that scales across

- platforms,  across teams and across project size. From a mainframe to a

-watch  - we're  closing in on that vision.<br>

-<br>

-<img src="img/wel_ml.jpg" width="460" height="460" alt="">

-<br>

-<br>

-<br>

-<br>

-<br>

-<br>

-</body>

-</html>

diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/Pde_core.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/help.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/junit_3.7.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index 7f05d82..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">

-  <runtime>

-    <library name="junit.jar">

-      <export name="*"/>

-    </library>

-  </runtime>

-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/site.xml b/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/site.xml
deleted file mode 100644
index b6211a8..0000000
--- a/update/org.eclipse.update.tests.core/data/ExecutableFeaturePackagedSite/data2/site.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-<description url="info/siteInfo.html"/>

-  <feature url="features/helpFeature.jar" type="org.eclipse.update.core.packaged">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature url="features/org.eclipse.pde.feature_1.0.0.jar" type="org.eclipse.update.core.packaged">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <feature url="features/feature3/" os="LINUX">

-    <category name="eclipse"/>

-  </feature>

-  <archive path="plugins/org.eclipse.help_1.0.0.jar" url="plugins/help.jar"/>

-  <archive path="plugins/org.eclipse.pde.core_1.0.0.jar" url="plugins/Pde_core.jar"/>

-  <archive path="plugins/org.junit_3.5.0.jar" url="plugins/junit_3.7.jar"/>

-  <archive path="plugins/org.eclipse.update.plugin1_1.1.1.jar" url="plugins/org.eclipse.update.plugin1_1.1.1"/>  

-  <category-def label="IBM WSAD Tools" name="eclipse"/>

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>  

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/FTPLikeSite/site.xml b/update/org.eclipse.update.tests.core/data/FTPLikeSite/site.xml
deleted file mode 100644
index da62e2e..0000000
--- a/update/org.eclipse.update.tests.core/data/FTPLikeSite/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.tests.core.ftp">

-  <feature url="features/feature3/features2.jarfile"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/features/feature3/feature.xml
deleted file mode 100644
index 2c98f42..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0">

-  <description>Description</description>

-  <copyright>copyright</copyright>

-  <license>license</license>

-  <url>

-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>

-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>

-  </url>

-  <plugin download-size="1500" id="org.eclipse.update.plugin1" install-size="1000" fragment="false" os="WIN32,LINUX" version="1.1.1" ws="WIN32,MOTIF,GTK"/>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/site.xml b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/site.xml
deleted file mode 100644
index 486d119..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site1/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-  <feature url="features/feature3" type="org.eclipse.update.tests.core.feature1"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/features/feature3/features2.jarfile b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/features/feature3/features2.jarfile
deleted file mode 100644
index 240ab4f..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/features/feature3/features2.jarfile
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/site.xml b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/site.xml
deleted file mode 100644
index fb5fe0e..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site2/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-  <feature url="features/feature3/features2.jarfile" type="org.eclipse.update.core.packaged"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/features/feature3/features2.jarfile b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/features/feature3/features2.jarfile
deleted file mode 100644
index 240ab4f..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/features/feature3/features2.jarfile
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/site.xml b/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/site.xml
deleted file mode 100644
index daf372d..0000000
--- a/update/org.eclipse.update.tests.core/data/FeatureTypeExamples/site3/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-  <feature url="features/feature3/features2.jarfile" type="org.eclipse.update.core.unknowntype.jar"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/features space/helpFeature.jar b/update/org.eclipse.update.tests.core/data/Site with space/features space/helpFeature.jar
deleted file mode 100644
index 161abde..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/features space/helpFeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/features space/space feature.jar b/update/org.eclipse.update.tests.core/data/Site with space/features space/space feature.jar
deleted file mode 100644
index 173fbf7..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/features space/space feature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/info/img/top_titlsm.gif b/update/org.eclipse.update.tests.core/data/Site with space/info/img/top_titlsm.gif
deleted file mode 100644
index 3917bb6..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/info/img/top_titlsm.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/info/img/wel_ml.jpg b/update/org.eclipse.update.tests.core/data/Site with space/info/img/wel_ml.jpg
deleted file mode 100644
index 01e33df..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/info/img/wel_ml.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/info/siteInfo.html b/update/org.eclipse.update.tests.core/data/Site with space/info/siteInfo.html
deleted file mode 100644
index b065aa3..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/info/siteInfo.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

-<html>

-<head>

-</head>

-  <body>

-<img src="img/top_titlsm.gif" alt="" width="460" height="50">

-<br>

-<br>

-     It started with Smalltalk<br>

-    OTI has been building tools for platform-independent OO development since

-  1988. Our ENVY&reg; technology first brought collaborative software development,

-  version management and shared repositories to Smalltalk. IBM is one of

-many   companies to license ENVY, which continues to be the foundation of

-VisualAge&reg;   Smalltalk.<br>

-<br>

-<br>

-<br>

-      Next came Java&#8482;<br>

-    Because of our expertise in OO technology, IBM turned to OTI for a next-generation

-  development environment for Java. The result is VisualAge for Java, which

-  continues to win awards for its innovative IDE and team support. InfoWorld

-  has chosen VisualAge for Java as development tool of the year - year after

-  year after year!<br>

-<br>

-<br>

-<br>

-      Then pervasive computing<br>

-    OTI continues its development of IBM's VisualAge Micro Edition, a state-of-the-art

-  platform for collaborative development of embedded applications and systems

-  that are very lean. As the steady stream of press releases attests, VisualAge

-  Micro Edition is already licensed to the leading microchip manufacturers,

-  microkernel developers, and producers of handheld and consumer devices.<br>

-<br>

-<br>

-<br>

-      Now it's Eclipse<br>

-    OTI has built the next generation IBM application development tools platform.

-  Eclipse is a kind of universal tool platform - an open extensible IDE for

-  anything and nothing in particular. The real value comes from tool plug-ins

-  that "teach" Eclipse how to work with things - java files, web content,

-graphics,  video - almost anything you can imagine. Eclipse allows you to

-independently  develop tools that integrate with other people's tools so

-seamlessly you won't know where one tool ends and another starts. The IBM

-supported version of this technology, WebSphere Studio Workbench, will be

-the core of the next  generation of IBM and IBM Business Partner e-business

-tools optimized for  the WebSphere software platform.<br>

-<br>

-<br>

-<br>

-      So what's next?<br>

-    OTI continues to deliver object-oriented technology that scales across

- platforms,  across teams and across project size. From a mainframe to a

-watch  - we're  closing in on that vision.<br>

-<br>

-<img src="img/wel_ml.jpg" width="460" height="460" alt="">

-<br>

-<br>

-<br>

-<br>

-<br>

-<br>

-</body>

-</html>

diff --git a/update/org.eclipse.update.tests.core/data/Site with space/install/features space/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/Site with space/install/features space/feature3/feature.xml
deleted file mode 100644
index e82ec30..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/install/features space/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.plugin1" install-size="1000" fragment="false" nl="en,fr" os="WIN32,LINUX" version="1.1.1" ws="WIN32,MOTIF,GTK"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/Pde_core.jar b/update/org.eclipse.update.tests.core/data/Site with space/plugins space/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/help.jar b/update/org.eclipse.update.tests.core/data/Site with space/plugins space/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/junit_3.7.jar b/update/org.eclipse.update.tests.core/data/Site with space/plugins space/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index e01846c..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">
-  <runtime>
-    <library name="junit.jar">
-      <export name="*"/>
-    </library>
-  </runtime>
-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/plugins space/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/Site with space/site.xml b/update/org.eclipse.update.tests.core/data/Site with space/site.xml
deleted file mode 100644
index 54928fb..0000000
--- a/update/org.eclipse.update.tests.core/data/Site with space/site.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-<description url="info/siteInfo.html"/>

-  <feature url="features space/helpFeature.jar" type="org.eclipse.update.core.packaged">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature url="features space/space feature.jar" type="org.eclipse.update.core.packaged">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <feature url="install/features space/feature3/">

-    <category name="eclipse"/>

-  </feature>

-  <archive path="plugins/org.eclipse.help_1.0.0.jar" url="plugins space/help.jar"/>

-  <archive path="plugins/org.eclipse.pde.core_1.0.0.jar" url="plugins space/Pde_core.jar"/>

-  <archive path="plugins/org.junit_3.5.0.jar" url="plugins space/junit_3.7.jar"/>

-  <archive path="plugins/org.eclipse.update.plugin1_1.1.1.jar" url="plugins space/org.eclipse.update.plugin1_1.1.1"/>  

-  <category-def label="IBM WSAD Tools" name="eclipse"/>

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>  

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/features/feature3/features2.jarfile b/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/features/feature3/features2.jarfile
deleted file mode 100644
index 240ab4f..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/features/feature3/features2.jarfile
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/site.xml b/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/site.xml
deleted file mode 100644
index 6f7165a..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteTypeExamples/site1/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.http">

-  <feature url="features/feature3/features2.jarfile"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/helpFeature.jar b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/helpFeature.jar
deleted file mode 100644
index 9809713..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/helpFeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/org.eclipse.pde.feature_1.0.0.jar b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/org.eclipse.pde.feature_1.0.0.jar
deleted file mode 100644
index f592c1d..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/features/org.eclipse.pde.feature_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/Pde_core.jar b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/help.jar b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/junit_3.7.jar b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/artifacts/plugins/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/top_titlsm.gif b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/top_titlsm.gif
deleted file mode 100644
index 3917bb6..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/top_titlsm.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/wel_ml.jpg b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/wel_ml.jpg
deleted file mode 100644
index 01e33df..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/img/wel_ml.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/siteInfo.html b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/siteInfo.html
deleted file mode 100644
index b065aa3..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/info/siteInfo.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

-<html>

-<head>

-</head>

-  <body>

-<img src="img/top_titlsm.gif" alt="" width="460" height="50">

-<br>

-<br>

-     It started with Smalltalk<br>

-    OTI has been building tools for platform-independent OO development since

-  1988. Our ENVY&reg; technology first brought collaborative software development,

-  version management and shared repositories to Smalltalk. IBM is one of

-many   companies to license ENVY, which continues to be the foundation of

-VisualAge&reg;   Smalltalk.<br>

-<br>

-<br>

-<br>

-      Next came Java&#8482;<br>

-    Because of our expertise in OO technology, IBM turned to OTI for a next-generation

-  development environment for Java. The result is VisualAge for Java, which

-  continues to win awards for its innovative IDE and team support. InfoWorld

-  has chosen VisualAge for Java as development tool of the year - year after

-  year after year!<br>

-<br>

-<br>

-<br>

-      Then pervasive computing<br>

-    OTI continues its development of IBM's VisualAge Micro Edition, a state-of-the-art

-  platform for collaborative development of embedded applications and systems

-  that are very lean. As the steady stream of press releases attests, VisualAge

-  Micro Edition is already licensed to the leading microchip manufacturers,

-  microkernel developers, and producers of handheld and consumer devices.<br>

-<br>

-<br>

-<br>

-      Now it's Eclipse<br>

-    OTI has built the next generation IBM application development tools platform.

-  Eclipse is a kind of universal tool platform - an open extensible IDE for

-  anything and nothing in particular. The real value comes from tool plug-ins

-  that "teach" Eclipse how to work with things - java files, web content,

-graphics,  video - almost anything you can imagine. Eclipse allows you to

-independently  develop tools that integrate with other people's tools so

-seamlessly you won't know where one tool ends and another starts. The IBM

-supported version of this technology, WebSphere Studio Workbench, will be

-the core of the next  generation of IBM and IBM Business Partner e-business

-tools optimized for  the WebSphere software platform.<br>

-<br>

-<br>

-<br>

-      So what's next?<br>

-    OTI continues to deliver object-oriented technology that scales across

- platforms,  across teams and across project size. From a mainframe to a

-watch  - we're  closing in on that vision.<br>

-<br>

-<img src="img/wel_ml.jpg" width="460" height="460" alt="">

-<br>

-<br>

-<br>

-<br>

-<br>

-<br>

-</body>

-</html>

diff --git a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/site.xml b/update/org.eclipse.update.tests.core/data/SiteURLTest/data/site.xml
deleted file mode 100644
index e3ea684..0000000
--- a/update/org.eclipse.update.tests.core/data/SiteURLTest/data/site.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site url = "artifacts/">
-<description url="info/siteInfo.html"/>
-  <feature url="features/helpFeature.jar" type="org.eclipse.update.core.packaged">
-    <category name="eclipse/UML"/>
-  </feature>
-  <feature url="features/org.eclipse.pde.feature_1.0.0.jar" type="org.eclipse.update.core.packaged">
-    <category name="eclipse/J2EE"/>
-  </feature>
-  <archive path="plugins/org.eclipse.help_1.0.0.jar" url="plugins/help.jar"/>
-  <archive path="plugins/org.eclipse.pde.core_1.0.0.jar" url="plugins/Pde_core.jar"/>
-  <archive path="plugins/org.junit_3.5.0.jar" url="plugins/junit_3.7.jar"/>
-  <category-def label="IBM WSAD Tools" name="eclipse"/>
-  <category-def label="J2EE tools" name="eclipse/J2EE"/>
-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>
-  <category-def label="UML tools" name="eclipse/UML"/>
-  <category-def label="Messaging Tools" name="B2B"/>  
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/file1.zip b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/file1.zip
deleted file mode 100644
index 1a70b7e..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/file1.zip
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/install/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/install/features/feature3/feature.xml
deleted file mode 100644
index 6b454ec..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/install/features/feature3/feature.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0">

-	<install-handler handler="org.eclipse.update.core.DefaultInstallHandler"/>

-  	<data download-size="1500" id="file.zip" install-size="1000"/>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/site.xml b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/site.xml
deleted file mode 100644
index c41f21d..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site1/site.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-<description url="info/siteInfo.html"/>

-  <feature url="install/features/feature3">

-  </feature>

-  <archive path="features/org.eclipse.update.core.tests.feature3_1.0.0/file.zip" url="file1.zip"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/features/features3.jar b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/features/features3.jar
deleted file mode 100644
index 74c6eca..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/features/features3.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/non data/another file.zip b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/non data/another file.zip
deleted file mode 100644
index 1a70b7e..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/non data/another file.zip
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/site.xml b/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/site.xml
deleted file mode 100644
index 040943c..0000000
--- a/update/org.eclipse.update.tests.core/data/dataEntrySiteTest/site2/site.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-<description url="info/siteInfo.html"/>

-  <feature url="features/features3.jar" type="org.eclipse.update.core.packaged">

-  </feature>

-  <archive path="features/org.eclipse.update.core.tests.feature3_1.0.0/file.zip" url="non data/another file.zip"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/features/features2.jar b/update/org.eclipse.update.tests.core/data/features/features2.jar
deleted file mode 100644
index e8d004d..0000000
--- a/update/org.eclipse.update.tests.core/data/features/features2.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/features/org.eclipse.test.feature_1.0.0.jar b/update/org.eclipse.update.tests.core/data/features/org.eclipse.test.feature_1.0.0.jar
deleted file mode 100644
index 870a70d..0000000
--- a/update/org.eclipse.update.tests.core/data/features/org.eclipse.test.feature_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/features/org.eclipse.update.core.tests.feature1_1.0.4.jar b/update/org.eclipse.update.tests.core/data/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
deleted file mode 100644
index 9dc9463..0000000
--- a/update/org.eclipse.update.tests.core/data/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/features/org.eclipse_test_feature.jar b/update/org.eclipse.update.tests.core/data/features/org.eclipse_test_feature.jar
deleted file mode 100644
index 938ddc4..0000000
--- a/update/org.eclipse.update.tests.core/data/features/org.eclipse_test_feature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
deleted file mode 100644
index 6658034..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/rootfeature.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/rootfeature.jar
deleted file mode 100644
index b011050..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/features/rootfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index 5d9f5bc..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index 8b4b04a..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
deleted file mode 100644
index 52208fe..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/site.xml b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/site.xml
deleted file mode 100644
index 623cb1a..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature url="features/rootfeature.jar"/>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/childrenfeature.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/childrenfeature.jar
deleted file mode 100644
index 7e057e6..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/childrenfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/rootfeature.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/rootfeature.jar
deleted file mode 100644
index 38a0a3c..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/features/rootfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index 5d9f5bc..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index 8b4b04a..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
deleted file mode 100644
index 52208fe..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/site.xml b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/site.xml
deleted file mode 100644
index 1752da2..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest2/site.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature url="features/rootfeature.jar"/>
-  <feature url="features/childrenfeature.jar"/>  
-  
-  <archive path="features/org.eclipse.update.core.tests.childrenfeature_2.1.0.jar" url="features/childrenfeature.jar"/>  
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/childrenfeature.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/childrenfeature.jar
deleted file mode 100644
index 12ee4ba..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/childrenfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/rootfeature.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/rootfeature.jar
deleted file mode 100644
index 899bdda..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/features/rootfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index 5d9f5bc..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index 8b4b04a..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
deleted file mode 100644
index 52208fe..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/site.xml b/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/site.xml
deleted file mode 100644
index 4f696ba..0000000
--- a/update/org.eclipse.update.tests.core/data/nestedFeatureSiteTest3/site.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature url="features/rootfeature.jar"/>
-  
-  <archive path="features/org.eclipse.update.core.tests.childrenfeature_2.1.0.jar" url="features/childrenfeature.jar"/>  
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/feature1.xml b/update/org.eclipse.update.tests.core/data/parsertests/feature1.xml
deleted file mode 100644
index 93d7080..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/feature1.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-   id="org.eclipse.platform"
-   version="2.1.0"
-   label="Eclipse Platform"
-   provider-name="www.eclipse.org"
-   image="splash/splash_full.bmp"
-   >
-
-	<license>
-    	 license
-	</license>
-
-   <copyright url="notice.html"/>
-   x
-	
-   <license url="about.html">
-   x
-   </license>
-
-   <url>
-      <update url="file:/D:/" label="Eclipse Update Site"/>
-   </url>
-
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/feature1bis.xml b/update/org.eclipse.update.tests.core/data/parsertests/feature1bis.xml
deleted file mode 100644
index e855f97..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/feature1bis.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-   id="org.eclipse.platform"
-   version="2.1.0"
-   label="Eclipse Platform"
-   provider-name="www.eclipse.org"
-   image="splash/splash_full.bmp"
-   >
-
-   <description>
-   Eclipse platform feature.
-   </description>
-
-   <copyright url="notice.html"/>
-   <blah />
-	
-   <license url="about.html">
-
-   </license>
-
-   <url>
-      <update url="file:/D:/" label="Eclipse Update Site"/>
-   </url>
-
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/feature2.xml b/update/org.eclipse.update.tests.core/data/parsertests/feature2.xml
deleted file mode 100644
index 9c2df9b..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/feature2.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-   id="org.eclipse.platform"
-   version="2.1.0"
-   label="Eclipse Platform"
-   provider-name="www.eclipse.org"
-   image="splash/splash_full.bmp"
-   blah="blah"
-   >
-
-   <description blah="blah">
-   Eclipse platform feature.
-   </description>
-
-   <copyright url="notice.html" blah="blah"/>
-	
-   <license url="about.html" blah="blah">
-   </license>
-
-   <url blah="blah">
-      <update url="file:/D:/" label="Eclipse Update Site" blah="blah"/>
-   </url>
-
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/feature3.xml b/update/org.eclipse.update.tests.core/data/parsertests/feature3.xml
deleted file mode 100644
index ca660be..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/feature3.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-   id="org.eclipse.platform"
-   version="2.1.0"
-   label="Eclipse Platform"
-   provider-name="www.eclipse.org"
-   image="splash/splash_full.bmp"
-   >
-
-   <description>
-   Eclipse platform feature.
-   </description>
-
-   <copyright url="$os$/$ws$/notice.html"/>
-   x
-	
-   <license url="about.html">
-   x
-   </license>
-
-   <url>
-      <update url="file:/D:/" label="Eclipse Update Site"/>
-   </url>
-
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/feature4.xml b/update/org.eclipse.update.tests.core/data/parsertests/feature4.xml
deleted file mode 100644
index 17187c9..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/feature4.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-   id="org.eclipse.platform"
-   version="2.1.0"
-   label="Eclipse Platform"
-   provider-name="www.eclipse.org"
-   image="splash/splash_full.bmp"
-   >
-
-   <description>
-   Eclipse platform feature.
-   </description>
-
-   <copyright url="$os$/$ws$/notice.html"/>
-   x
-	
-   <license url="about.html">
-   x
-   </license>
-
-   <url>
-      <update url="file:/D:/" label="Eclipse Update Site"/>
-      <discovery url="file:/c:/" label = "Discovery" type="web"/>
-   </url>
-
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/reddot.xml b/update/org.eclipse.update.tests.core/data/parsertests/reddot.xml
deleted file mode 100644
index f3f1701..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/reddot.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>

-<site url="info/siteInfo.html">

-<feature url="features/reddot_1.0.0.jar"> 

-<category name="reddot"/>

-</feature>

-<feature url="features/reddot_2.1.0.jar">

-<category name="reddot"/>

-</feature>

-<archive path="com.reddot.redot_1.0.0" url="plugins/com.reddot.reddot_1.0.0.jar"/>

-<archive path="com.reddot.redot_2.1.0" url="plugins/com.reddot.reddot_2.1.0.jar"/>

-<category-def label="Red Dot Versions" name="reddot">

-<description url="RedDotVersions.html">

-This category contains all of the &lt;currently&gt; available versions of Red Dot feature.

-<![CDATA[<greeting>Hello, world!</greeting>]]>

-</description>

-</category-def>

-</site>

-

-

diff --git a/update/org.eclipse.update.tests.core/data/parsertests/reddot1.xml b/update/org.eclipse.update.tests.core/data/parsertests/reddot1.xml
deleted file mode 100644
index 074490e..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/reddot1.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>

-<site url="info/siteInfo.html">

-<feature url="features/reddot_1.0.0.jar"> 

-<category name="reddot"/>

-</feature>

-<feature url="features/reddot_2.1.0.jar">

-<category name="reddot"/>

-</feature>

-<archive path="com.reddot.redot_1.0.0" url="plugins/com.reddot.reddot_1.0.0.jar"/>

-<archive path="com.reddot.redot_2.1.0" url="plugins/com.reddot.reddot_2.1.0.jar"/>

-<category-def label="Red Dot Versions" name="reddot">

-<description url="RedDotVersions.html">

-This category contains all of the &lt;currently&gt; available versions of Red Dot feature.

-</description>

-</category-def>

-</site>

-

-

diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site.properties b/update/org.eclipse.update.tests.core/data/parsertests/site.properties
deleted file mode 100644
index 8e1ced4..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-drivers=Required Drivers

-security=Security Fixes
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site.xml b/update/org.eclipse.update.tests.core/data/parsertests/site.xml
deleted file mode 100644
index b40d831..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1" type="org.eclipse.update.core.file">

-  <handler>

-  	<boo class ="unknown"/>

-  </handler>

-  

-  <feature url="features/org.eclipse.test.feature_1.0.0.jar">

-    <category name="category1"/>

-  </feature>

-  

-  <feature url="features/features2.jar">

-    <category name="category1/subcat1"/>

-    <category name="category2"/>

-  </feature>

-  

-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar">

-    <category name="category1"/>

-    <category name="category2"/>

-    <blah/>

-  </feature>

-  

-  <feature url="features/org.eclipse_test_feature.jar"/>

-  

-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">

-    <category name="category1"/>

-  </feature>

-  

-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">

-  </feature>

-  

-  <archive path="plugins/hello" >

-  	<default/>

-  </archive>

-

-  <category-def name="category2" label="%security"/>

-  <category-def name="category1/subcat1" label="Special Fix"/>

-  <category-def name="category1" label="%drivers"/>  

-

-

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site10.xml b/update/org.eclipse.update.tests.core/data/parsertests/site10.xml
deleted file mode 100644
index e42680d..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site10.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1" type="org.eclipse.update.core.file" blah="blah">
-  
-  <feature url="features/org.eclipse.test.feature_1.0.0.jar" blah="blah" id="org.eclipse.test.feature" version="1.0.0"/>
-  
-  <feature url="features/features2.jar" id="unknwon.id" version="bad version"/>
-  
-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar" id="only.id"/>
-    
-  <feature url="features/org.eclipse_test_feature.jar" version="1.0.0"/>
-  
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site2.xml b/update/org.eclipse.update.tests.core/data/parsertests/site2.xml
deleted file mode 100644
index 007550e..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site2.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature id="com.ibm.jdt" url="http://www.not-eclipse.org/feature3" version="1.0.0"/>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site3.xml b/update/org.eclipse.update.tests.core/data/parsertests/site3.xml
deleted file mode 100644
index dbbb682..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site3.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature id="com.ibm.jdt" url="feature3/feature.jar" version="1.0.0">
-        <category name="unknown"/>
-  </feature>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site4.xml b/update/org.eclipse.update.tests.core/data/parsertests/site4.xml
deleted file mode 100644
index 41b7d16..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site4.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<site>
-   <description url="info/siteInfo.html"/>
-
-  <category-def label="Red Dot Versions" name="reddot">
-      <description url="RedDotVersions.html">
-         This category contains all of the currently available versions of Red Dot feature.
-      </description>
-   </category-def>
-   
-   <feature url="features/com.reddot.reddot_1.0.0.jar">
-      <category name="reddot"/>
-   </feature>
-
-   <feature url="features/com.reddot.reddot_2.1.0.jar">
-      <category name="reddot"/>
-   </feature>
-
- 
-</site>   
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site7.xml b/update/org.eclipse.update.tests.core/data/parsertests/site7.xml
deleted file mode 100644
index 2190d70..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site7.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1" type="org.eclipse.update.core.file">
-  <handler>
-  	<boo class ="unknown"/>
-  </handler>
-  
-  <feature url="features/org.eclipse.test.feature_1.0.0.jar">
-    <category name="category1"/>
-  </feature>
-  
-  <feature url="features/features2.jar">
-    <category name="category1/subcat1"/>
-    <category name="category2"/>
-  </feature>
-  
-  <blah/>
-  
-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar">
-    <category name="category1"/>
-    <category name="category2"/>
-    <blah/>
-  </feature>
-  
-  <feature url="features/org.eclipse_test_feature.jar"/>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-    <category name="category1"/>
-  </feature>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-  </feature>
-  
-  <archive path="plugins/hello" >
-  	<default/>
-  </archive>
-
-  <category-def name="category2" label="%security"/>
-  <category-def name="category1/subcat1" label="Special Fix"/>
-  <category-def name="category1" label="%drivers"/>  
-
-
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site8.xml b/update/org.eclipse.update.tests.core/data/parsertests/site8.xml
deleted file mode 100644
index afcbaa1..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site8.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1" type="org.eclipse.update.core.file">
-  <handler>
-  	<boo class ="unknown"/>
-  </handler>
-  
-  <feature url="features/org.eclipse.test.feature_1.0.0.jar">
-    <category name="category1"/>
-  </feature>
-  
-  <feature url="features/features2.jar">
-    <category name="category1/subcat1"/>
-    <category name="category2"/>
-  </feature>
-  xcxgfsdfgsdsd
-  
-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar">
-    <category name="category1"/>
-    <category name="category2"/>
-    <blah/>
-  </feature>
-  
-  <feature url="features/org.eclipse_test_feature.jar"/>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-    <category name="category1"/>
-  </feature>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-  </feature>
-  
-  <archive path="plugins/hello" >
-  	<default/>
-  </archive>
-
-  <category-def name="category2" label="%security"/>
-  <category-def name="category1/subcat1" label="Special Fix"/>
-  <category-def name="category1" label="%drivers"/>  
-
-
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/site9.xml b/update/org.eclipse.update.tests.core/data/parsertests/site9.xml
deleted file mode 100644
index f38c5a4..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/site9.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1" type="org.eclipse.update.core.file" blah="blah">
-  <handler blah="blah">
-  	<boo class ="unknown" blah="blah"/>
-  </handler>
-  
-  <feature url="features/org.eclipse.test.feature_1.0.0.jar" blah="blah">
-    <category name="category1" blah="blah" />
-  </feature>
-  
-  <feature url="features/features2.jar">
-    <category name="category1/subcat1"/>
-    <category name="category2"/>
-  </feature>
-  
-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar">
-    <category name="category1"/>
-    <category name="category2"/>
-    <blah/>
-  </feature>
-  
-  <feature url="features/org.eclipse_test_feature.jar"/>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-    <category name="category1"/>
-  </feature>
-  
-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">
-  </feature>
-  
-  <archive path="plugins/hello" blah="blah">
-  	<default blah="blah"/>
-  </archive>
-
-  <category-def name="category2" label="%security" blah="blah"/>
-  <category-def name="category1/subcat1" label="Special Fix" blah="blah"/>
-  <category-def name="category1" label="%drivers"/>  
-
-
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/parsertests/siteftp.xml b/update/org.eclipse.update.tests.core/data/parsertests/siteftp.xml
deleted file mode 100644
index f883ec0..0000000
--- a/update/org.eclipse.update.tests.core/data/parsertests/siteftp.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site type="org.eclipse.update.tests.core.ftp">
-  <feature url="features/feature3/features2.jarfile"/>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
deleted file mode 100644
index 0c995d5..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
deleted file mode 100644
index 0c995d5..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
deleted file mode 100644
index 78f193d..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index 2275ade..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index ea958c7..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index 7f05d82..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">

-  <runtime>

-    <library name="junit.jar">

-      <export name="*"/>

-    </library>

-  </runtime>

-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/install/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/install/features/feature3/feature.xml
deleted file mode 100644
index 3141af8..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/install/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.plugin1" install-size="1000" fragment="false" nl="us" os="OS_WIN32" version="1.1.1" ws="WS_WIN32"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index e01846c..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">
-  <runtime>
-    <library name="junit.jar">
-      <export name="*"/>
-    </library>
-  </runtime>
-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site1/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/install/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/install/features/feature3/feature.xml
deleted file mode 100644
index 68a7de8..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/install/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.core" install-size="1000" fragment="false" nl="us" os="OS_WIN32" version="2.1.0" ws="WS_WIN32"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/plugin.xml b/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/plugin.xml
deleted file mode 100644
index e01846c..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">
-  <runtime>
-    <library name="junit.jar">
-      <export name="*"/>
-    </library>
-  </runtime>
-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/src.jar b/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/reconciliationSites/site2/plugins/org.eclipse.update.core_2.0.0/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/resources.properties b/update/org.eclipse.update.tests.core/data/resources.properties
deleted file mode 100644
index 1a3ab90..0000000
--- a/update/org.eclipse.update.tests.core/data/resources.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-HTTP_PATH_1=/org.eclipse.update.tests.core.updatetests/UpdateManager2/

-HTTP_PATH_2=/org.eclipse.update.tests.core.updatetests/UpdateManager/

-HTTP_PATH_3=/org.eclipse.update.tests.core.updatetests/Site with space/
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/site.xml b/update/org.eclipse.update.tests.core/data/site.xml
deleted file mode 100644
index 3fc60c7..0000000
--- a/update/org.eclipse.update.tests.core/data/site.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site type="org.eclipse.update.core.file">

-<description url="info/siteInfo.html"/>

-  <feature url="testAPI/features/feature3">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature url="http://www.eclipse.org/feature2">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <feature url="http://www.eclipse.org/feature1">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <archive path="plugins/org.eclipse.update.plugin1_1.1.1.jar" url="plugins/org.eclipse.update.plugin1_1.1.1"/>    

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>

-  <category-def label="Eclipse Tools" name="eclipse"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/site2/site.xml b/update/org.eclipse.update.tests.core/data/site2/site.xml
deleted file mode 100644
index 39d1c11..0000000
--- a/update/org.eclipse.update.tests.core/data/site2/site.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site url="Info.html" type="org.eclipse.update.core.file">

-  <feature url="features/feature1"/>

-  <archive path="org.eclipse.update.plugin1" url="plugins/plugin1"/>

-  <archive path="org.eclipse.update.archive2" url="plugins/plugin2"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/plugin.xml b/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/plugin.xml
deleted file mode 100644
index 7f81c46..0000000
--- a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin2" version="5.0.0" vendor-name="junit.org">

-  <runtime>

-    <library name="junit.jar">

-      <export name="*"/>

-    </library>

-  </runtime>

-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/src.jar b/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.0/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/plugin.xml b/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/plugin.xml
deleted file mode 100644
index efb3c26..0000000
--- a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin2" version="5.0.1" vendor-name="junit.org">

-  <runtime>

-    <library name="junit.jar">

-      <export name="*"/>

-    </library>

-  </runtime>

-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/src.jar b/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/siteTestLocalSite/plugins/feature1_plugin2_5.0.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/testAPI/features/feature3/feature.xml b/update/org.eclipse.update.tests.core/data/testAPI/features/feature3/feature.xml
deleted file mode 100644
index f878d60..0000000
--- a/update/org.eclipse.update.tests.core/data/testAPI/features/feature3/feature.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >
-  <description>Description</description>
-  <copyright>copyright</copyright>
-  <license>license</license>
-  <url>
-    <update label="URL to update the feature" url="http://www.eclipse.org/"/>
-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>
-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>
-  </url>
-  <plugin download-size="1500" id="org.eclipse.update.plugin1" install-size="1000" fragment="false" nl="us" os="WIN32,LINUX" version="1.1.1"/>
-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml b/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
deleted file mode 100644
index e01846c..0000000
--- a/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/plugin.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin name="JUnit Test Framework" id="org.eclipse.update.core.tests.feature1.plugin1" version="3.5.6" vendor-name="junit.org">
-  <runtime>
-    <library name="junit.jar">
-      <export name="*"/>
-    </library>
-  </runtime>
-</plugin>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/src.jar b/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
deleted file mode 100644
index 2d4d609..0000000
--- a/update/org.eclipse.update.tests.core/data/testAPI/plugins/org.eclipse.update.plugin1_1.1.1/src.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/testAPI/site.xml b/update/org.eclipse.update.tests.core/data/testAPI/site.xml
deleted file mode 100644
index 4c15d43..0000000
--- a/update/org.eclipse.update.tests.core/data/testAPI/site.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site type="org.eclipse.update.core.file">
-<description url="info/siteInfo.html"/>
-  <feature url="features/feature3">
-    <category name="eclipse/UML"/>
-  </feature>
-  <feature url="http://www.eclipse.org/feature2">
-    <category name="eclipse/J2EE"/>
-  </feature>
-  <feature url="http://www.eclipse.org/feature1">
-    <category name="eclipse/J2EE"/>
-  </feature>
-  <archive path="plugins/org.eclipse.update.plugin1_1.1.1.jar" url="plugins/org.eclipse.update.plugin1_1.1.1"/>    
-  <category-def label="J2EE tools" name="eclipse/J2EE"/>
-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>
-  <category-def label="UML tools" name="eclipse/UML"/>
-  <category-def label="Messaging Tools" name="B2B"/>
-  <category-def label="Eclipse Tools" name="eclipse"/>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/validation/site2/.eclipseproduct b/update/org.eclipse.update.tests.core/data/validation/site2/.eclipseproduct
deleted file mode 100644
index 8b829aa..0000000
--- a/update/org.eclipse.update.tests.core/data/validation/site2/.eclipseproduct
+++ /dev/null
@@ -1,3 +0,0 @@
-id=another.product.id

-name=Name of the product

-ver=1.2.4
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/validation/site3/.eclipseextension b/update/org.eclipse.update.tests.core/data/validation/site3/.eclipseextension
deleted file mode 100644
index 6d72df7..0000000
--- a/update/org.eclipse.update.tests.core/data/validation/site3/.eclipseextension
+++ /dev/null
@@ -1 +0,0 @@
-id=id.of.extended.product
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/validation/site4/.eclipseUM b/update/org.eclipse.update.tests.core/data/validation/site4/.eclipseUM
deleted file mode 100644
index acc84e9..0000000
--- a/update/org.eclipse.update.tests.core/data/validation/site4/.eclipseUM
+++ /dev/null
@@ -1 +0,0 @@
-id=different.product.id
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/validation/site5/.eclipseUM b/update/org.eclipse.update.tests.core/data/validation/site5/.eclipseUM
deleted file mode 100644
index 196c522..0000000
--- a/update/org.eclipse.update.tests.core/data/validation/site5/.eclipseUM
+++ /dev/null
@@ -1,3 +0,0 @@
-id=org.eclipse.platform

-name=a Product 

-version=3.5.6
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/validation/site6/.eclipseUM b/update/org.eclipse.update.tests.core/data/validation/site6/.eclipseUM
deleted file mode 100644
index 597f9f8..0000000
--- a/update/org.eclipse.update.tests.core/data/validation/site6/.eclipseUM
+++ /dev/null
@@ -1 +0,0 @@
-id=org.eclipse.sdk
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse.test.feature_1.0.0/feature.xml b/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse.test.feature_1.0.0/feature.xml
deleted file mode 100644
index 1511800..0000000
--- a/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse.test.feature_1.0.0/feature.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.test1.ident1" label="Feature One" nl="en_us,fr,de" os="OS_WIN32,OS_LINUX" provider-name="Object Technology International" version="1.0.0" ws="WS_WIN32,WS_MOTIF,WS_GTK">

-  <description>Test feature for testIdentifier test</description>

-  <copyright>Copyright (c) the company</copyright>

-  <license>Do you accept the license ?</license>

-  <url>

-    <update label="URL to update teh feature" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>

-  </url>

-  <plugin download-size="1500" id="org.eclipse.update.core.tests.feature1.plugin1" install-size="1000" fragment="false" nl="us" os="OS_WIN32" version="3.5.6" ws="WS_WIN32"/>

-  <plugin download-size="1200" id="org.eclipse.update.core.tests.feature1.plugin2" install-size="978" fragment="false" version="5.0.0"/>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse_test_feature/feature.xml b/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse_test_feature/feature.xml
deleted file mode 100644
index 9f05cda..0000000
--- a/update/org.eclipse.update.tests.core/data/xmls/apitests/org.eclipse_test_feature/feature.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.test1.ident2" label="Feature One" nl="en_us,fr,de" os="OS_WIN32,OS_LINUX" provider-name="Object Technology International" version="1.0.0" ws="WS_WIN32,WS_MOTIF,WS_GTK">

-  <description>Test feature for testIdentifier test</description>

-  <copyright>Copyright (c) the company</copyright>

-  <license>Do you accept the license ?</license>

-  <url>

-    <update label="URL to update teh feature" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>

-  </url>

-  <plugin download-size="1500" url="org.eclipse.update.core.tests.feature1.plugin1" id="org.eclipse.update.core.tests.feature1.plugin1" install-size="1000" fragment="false" nl="us" os="OS_WIN32" version="3.5.6" ws="WS_WIN32"/>

-  <plugin download-size="1200" id="org.eclipse.update.core.tests.feature1.plugin2" install-size="978" fragment="false" version="5.0.0"/>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature.xml b/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature.xml
deleted file mode 100644
index c4ee139..0000000
--- a/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.eclipse.update.core.tests.feature1" image="feature1.gif" label="Feature One" nl="en,fr,de" os="OS_WIN32,OS_LINUX" provider-name="Object Technology International" version="1.0.4" ws="WS_WIN32,WS_MOTIF,WS_GTK">

-  <description>I believe this is the description of feature 1, well, feature 1 is an exceptional feature that you should install right NOW on your machine... try it.</description>

-  <copyright>Ok, now, this is a very very complex Copyright  not prepared by a lawyer Copyright (c) the company</copyright>

-  <license>#1 Do you accept it #2 you do nto accept it ...Do you accpt it ?</license>

-  <url>

-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>

-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>

-  </url>

-  <plugin download-size="1500" id="org.eclipse.update.core.tests.feature1.plugin1" install-size="1000" fragment="false" nl="us" os="OS_WIN32" version="3.5.6" ws="WS_WIN32"/>

-  <plugin download-size="1200" id="org.eclipse.update.core.tests.feature1.plugin2" install-size="978" fragment="false" version="5.0.0"/>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature1.gif b/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature1.gif
deleted file mode 100644
index 03e30a2..0000000
--- a/update/org.eclipse.update.tests.core/data/xmls/feature_1.0.0/feature1.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/data/xmls/site1/site.xml b/update/org.eclipse.update.tests.core/data/xmls/site1/site.xml
deleted file mode 100644
index 44823c0..0000000
--- a/update/org.eclipse.update.tests.core/data/xmls/site1/site.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site url="info" type="org.eclipse.update.core.file">

-  <feature id="org.isv.feature3" url="www.eclipse.org/feature3" version="3.4.5">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature id="org.eclipse.update.core.tests.feature2" url="www.eclipse.org/feature2" version="3.4.6">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <feature id="org.eclipse.update.core.tests.fature1" url="www.eclipse.org/feature1" version="2.3.5">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <archive path="org.eclipse.update.plugin1" url="www.eclipse.org/pluign1"/>

-  <archive path="org.eclipse.update.archive2" url="www.eclipse.org/plugin2"/>

-  <archive path="org.eclipse.update.plugin3" url="www.eclipse.org/plugin3"/>

-  <archive path="org.eclipse.unknown.plugin" url="www.eclipse.org/plugins/plugin4"/>

-  <archive path="org.eclipse.update.core.tests.feature1.foo1" url="www.eclipse.org/plugin1"/>

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>

-  <category-def label="Eclipse tools" name="eclipse"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/plugin.properties b/update/org.eclipse.update.tests.core/plugin.properties
deleted file mode 100644
index 1caa664..0000000
--- a/update/org.eclipse.update.tests.core/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-

-name = Install/Update Core Tests

-provider-name = Eclipse.org
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/plugin.xml b/update/org.eclipse.update.tests.core/plugin.xml
deleted file mode 100644
index 30bd540..0000000
--- a/update/org.eclipse.update.tests.core/plugin.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin

-   id="org.eclipse.update.tests.core"

-   name="%name"

-   version="2.1.0"

-   provider-name="%provider-name"

-   class="org.eclipse.update.tests.UpdateTestsPlugin">

-

-   <runtime>

-      <library name="updatetests.jar">

-         <export name="*"/>

-      </library>

-   </runtime>

-   <requires>

-      <import plugin="org.eclipse.core.runtime"/>

-      <import plugin="org.junit"/>

-      <import plugin="org.apache.xerces"/>

-      <import plugin="org.eclipse.core.resources"/>

-      <import plugin="org.eclipse.update.core"/>

-      <import plugin="org.eclipse.tomcat"/>

-      <import plugin="org.eclipse.help.appserver"/>

-   </requires>

-

-

-   <extension

-         id="feature1"

-         point="org.eclipse.update.core.featureTypes">

-      <feature-factory

-            class="org.eclipse.update.internal.core.FeatureExecutableFactory">

-      </feature-factory>

-   </extension>

-   <extension

-         id="ftp"

-         point="org.eclipse.update.core.siteTypes">

-      <site-factory

-            class="org.eclipse.update.tests.implementation.SiteFTPFactory">

-      </site-factory>

-   </extension>

-

-</plugin>

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
deleted file mode 100644
index cc441bd..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/AllTests.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests;

-

-import junit.framework.Test;

-import junit.framework.TestSuite;

-import org.eclipse.update.tests.api.AllAPITests;

-import org.eclipse.update.tests.configurations.AllConfigurationsTests;

-import org.eclipse.update.tests.core.boot.AllPlatformConfigurationTests;

-import org.eclipse.update.tests.model.AllModelTests;

-import org.eclipse.update.tests.nestedfeatures.AllNestedTests;

-import org.eclipse.update.tests.parser.AllParserTests;

-import org.eclipse.update.tests.reconciliation.AllReconciliationTests;

-import org.eclipse.update.tests.regularInstall.AllRegularInstallTests;

-import org.eclipse.update.tests.regularRemove.AllRegularRemoveTests;

-import org.eclipse.update.tests.sitevalidation.AllSiteValidationTests;

-import org.eclipse.update.tests.types.AllTypesTests;

-import org.eclipse.update.tests.uivalues.AllCoreUITests;

-

-public class AllTests extends TestSuite {

-	public AllTests(String name) {

-		super(name);

-	}

-	public static Test suite() throws Exception {

-		TestSuite suite = new TestSuite();

-		suite.setName("All Update Manager Tests");

-		suite.addTest(AllSiteValidationTests.suite());

-		suite.addTest(AllPlatformConfigurationTests.suite());

-		suite.addTest(AllRegularInstallTests.suite());

-		suite.addTest(AllAPITests.suite());

-		suite.addTest(AllParserTests.suite());

-		suite.addTest(AllCoreUITests.suite());

-		suite.addTest(AllConfigurationsTests.suite());

-		suite.addTest(AllTypesTests.suite());

-		suite.addTest(AllRegularRemoveTests.suite());

-		suite.addTest(AllNestedTests.suite());	

-		suite.addTest(AllReconciliationTests.suite());					

-		suite.addTest(AllModelTests.suite());		

-		return suite;

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateManagerTestCase.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateManagerTestCase.java
deleted file mode 100644
index 6462a1b..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateManagerTestCase.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests;

-

-

-import java.io.File;

-import java.io.IOException;

-import java.net.*;

-import java.util.*;

-

-import junit.framework.TestCase;

-import org.eclipse.core.runtime.*;

-import org.eclipse.core.runtime.IPluginDescriptor;

-import org.eclipse.core.runtime.Platform;

-import org.eclipse.update.configuration.IConfiguredSite;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.IFeature;

-import org.eclipse.update.core.IPluginEntry;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-/**

- * All Help System Test cases must subclass this base Testcase.

- * See SampleTestCase.java for a template.

- */

-

-public abstract class UpdateManagerTestCase extends TestCase {

-

-	protected static ResourceBundle bundle;

-	protected static String dataPath;

-

-	protected static URL SOURCE_FILE_SITE;

-	protected static URL SOURCE_FILE_SITE_INSTALLED;

-	protected static URL SOURCE_HTTP_SITE;

-	protected static URL TARGET_FILE_SITE;

-

-	private static final String DATA_PATH = "data/";

-

-	/**

-	 * Default Constructor

-	 */

-	public UpdateManagerTestCase(String name) {

-		super(name);

-		try {

-			init();

-		} catch (Exception e) {

-			fail(e.toString());

-			e.printStackTrace();

-		}

-	}

-

-	protected static void init() throws MissingResourceException, IOException, MalformedURLException {

-

-		IPluginDescriptor dataDesc = Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.update.tests.core");

-		URL resolvedURL = Platform.resolve(dataDesc.getInstallURL());

-		URL dataURL = new URL(resolvedURL, DATA_PATH);

-		dataPath = dataURL.getFile();

-		String homePath = (System.getProperty("user.home")).replace(File.separatorChar, '/');

-

-		if (bundle == null) {

-			ClassLoader l = new URLClassLoader(new URL[] { dataURL }, null);

-			bundle = ResourceBundle.getBundle("resources", Locale.getDefault(), l);

-		}

-

-		try {

-			SOURCE_FILE_SITE = new File(dataPath).toURL();

-			SOURCE_FILE_SITE_INSTALLED = new File(dataPath + "testAPI/").toURL();

-			SOURCE_HTTP_SITE = new URL("http", getHttpHost(), getHttpPort(), bundle.getString("HTTP_PATH_1"));

-			TARGET_FILE_SITE = new URL("file", null, homePath + "/target/");

-		} catch (Exception e) {

-			fail(e.toString());

-			e.printStackTrace();

-		}

-

-		//cleanup target 

-		File target = new File(homePath + "/target/");

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-		// setup cache site to false

-		InternalSiteManager.globalUseCache = false;

-	}

-

-	/**

-	 * Simple implementation of setUp. Subclasses are prevented 

-	 * from overriding this method to maintain logging consistency.

-	 * umSetUp() should be overriden instead.

-	 */

-	protected final void setUp() throws Exception {

-		System.out.println("----- " + this.getName());

-		System.out.println(this.getName() + ": setUp...");

-		umSetUp();

-	}

-

-	/**

-	 * Sets up the fixture, for example, open a network connection.

-	 * This method is called before a test is executed.

-	 */

-	protected void umSetUp() throws Exception {

-		// do nothing.

-	}

-

-	/**

-	 * Simple implementation of tearDown.  Subclasses are prevented 

-	 * from overriding this method to maintain logging consistency.

-	 * umTearDown() should be overriden instead.

-	 */

-	protected final void tearDown() throws Exception {

-		System.out.println(this.getName() + ": tearDown...\n");

-		umTearDown();

-	}

-

-	/**

-	 * Tears down the fixture, for example, close a network connection.

-	 * This method is called after a test is executed.

-	 */

-	protected void umTearDown() throws Exception {

-		// do nothing.

-	}

-

-	protected static String getHttpHost() {

-		return UpdateTestsPlugin.getWebAppServerHost();

-	}

-

-	protected static int getHttpPort() {

-		return UpdateTestsPlugin.getWebAppServerPort();

-	}

-

-	protected void remove(IFeature feature, IConfiguredSite configSite) throws CoreException {

-		ISite site = configSite.getSite();

-		remove(feature, site);

-	}

-

-	protected void remove(IFeature feature, ISite site) throws CoreException {

-		site.getFeatureReference(feature);

-		// remove the plugins and features dir

-		String sitePath = site.getURL().getFile();

-		File file = null;

-

-		String featureName = feature.getVersionedIdentifier().getIdentifier().toString() + "_" + feature.getVersionedIdentifier().getVersion().toString();

-		file = new File(sitePath, "features" + File.separator + featureName);

-		System.out.println("****************************************Removing :" + file);

-		UpdateManagerUtils.removeFromFileSystem(file);

-

-		IPluginEntry[] entries = feature.getPluginEntries();

-		for (int i = 0; i < entries.length; i++) {

-			String name = entries[i].getVersionedIdentifier().getIdentifier().toString() + "_" + entries[i].getVersionedIdentifier().getVersion().toString() + File.separator;

-			file = new File(sitePath, "plugins" + File.separator + name);

-			System.out.println("****************************************Removing :" + file);

-			UpdateManagerUtils.removeFromFileSystem(file);

-		}

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateTestsPlugin.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateTestsPlugin.java
deleted file mode 100644
index 5beceeb..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/UpdateTestsPlugin.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests;

-import org.eclipse.core.runtime.*;

-import org.eclipse.help.internal.appserver.WebappManager;

-import org.eclipse.update.internal.core.UpdateCore;

-

-/**

- * manages the startuo and shutown of the 

- * web server

- */

-public class UpdateTestsPlugin extends Plugin {

-

-	private static String appServerHost = null;

-	private static int appServerPort = 0;

-	private static UpdateTestsPlugin plugin;

-	private static boolean initialized=false;

-

-	public UpdateTestsPlugin(IPluginDescriptor descriptor) {

-		super(descriptor);

-		plugin = this;

-	}

-

-	public static UpdateTestsPlugin getPlugin() {

-		return plugin;

-	}

-

-	/**

-	 * Called by Platform after loading the plugin

-	 */

-	public void startup() throws CoreException {

-

-	}

-

-	/**

-	 * Shuts down this plug-in and discards all plug-in state.

-	 * @exception CoreException if this method fails to shut down

-	 *   this plug-in 

-	 */

-	public void shutdown() throws CoreException {

-		WebappManager.stop("org.eclipse.update.tests.core.updatetests");

-		super.shutdown();

-	}

-

-	/**

-	 * Returns the host identifier for the web app server

-	 */

-	public static String getWebAppServerHost() {

-		if (!initialized) initialize();

-		return appServerHost;

-	}

-

-	/**

-	 * Returns the port identifier for the web app server

-	 */

-	public static int getWebAppServerPort() {

-		if (!initialized) initialize();		

-		return appServerPort;

-	}

-	/**

-	 * Method initialize.

-	 */

-	private static void initialize() {

-		String text = null;

-		try {

-			WebappManager.start("org.eclipse.update.tests.core.updatetests", "org.eclipse.update.tests.core", new Path("webserver"));

-			appServerHost = WebappManager.getHost();

-			appServerPort = WebappManager.getPort();

-

-			text = "The webServer did start ip:" + appServerHost + ":" + appServerPort;

-		} catch (CoreException e) {

-			text = "The webServer didn't start ";

-			IStatus status = new Status(IStatus.ERROR, "org.eclipse.update.tests.core", IStatus.OK, "WebServer not started. Update Tests results are invalid", null);

-			UpdateCore.warn("",new CoreException(status));

-		}finally {

-			System.out.println(text);

-			initialized = true;

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/AllAPITests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/AllAPITests.java
deleted file mode 100644
index ab96b39..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/AllAPITests.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import junit.framework.Test;

-import junit.framework.TestSuite;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-/**

- * Manages the API tests

- */

-public class AllAPITests extends UpdateManagerTestCase {

-	/**

-	 * Constructor

-	 */

-	public AllAPITests(String name) {

-		super(name);

-	}

-	

-	/**

-	 * List of API tests

-	 */

-	public static Test suite() throws Exception {

-		TestSuite suite = new TestSuite();

-		suite.setName("API Tests");

-

-		suite.addTest(new TestSuite(TestSiteAPI.class));

-		suite.addTest(new TestSuite(TestLocalSiteAPI.class));		

-		suite.addTest(new TestSuite(TestUpdateManagerUtilsAPI.class));		

-		suite.addTest(new TestSuite(TestDefaultExecutableFeatureAPI.class));

-		suite.addTest(new TestSuite(TestDefaultPackageFeatureAPI.class));

-		suite.addTest(new TestSuite(TestPluginContainerAPI.class));

-		suite.addTest(new TestSuite(TestSiteManagerAPI.class));		

-		suite.addTest(new TestSuite(TestNestedFeatureAPI.class));

-		suite.addTest(new TestSuite(TestFeatureContentProvider_FileFilterAPI.class));

-		return suite;

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/DefaultFeature.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/DefaultFeature.java
deleted file mode 100644
index 3456bb3..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/DefaultFeature.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.FeatureExecutableContentProvider;

-/**

- * Abstract Class that implements most of the behavior of a feature

- * A feature ALWAYS belongs to an ISite

- */

-public class DefaultFeature extends Feature {

-

-

-	/**

-	 * Copy constructor

-	 */

-	public DefaultFeature(IFeature sourceFeature, ISite targetSite) throws CoreException {

-		this(targetSite);

-		this.setFeatureContentProvider(sourceFeature.getFeatureContentProvider());

-		this.setIdentifier(sourceFeature.getVersionedIdentifier());

-		this.setLabel(sourceFeature.getLabel());

-		this.setUpdateSiteEntry(sourceFeature.getUpdateSiteEntry());

-		this.setDiscoverySiteEntries(sourceFeature.getDiscoverySiteEntries());

-		this.setProvider(sourceFeature.getProvider());

-		this.setDescription(sourceFeature.getDescription());

-		this.setCopyright(sourceFeature.getCopyright());

-		this.setLicense(sourceFeature.getLicense());

-		this.setPluginEntries(sourceFeature.getPluginEntries());

-		this.setImage(sourceFeature.getImage());

-	}

-	

-	/**

-	 * Constructor

-	 */

-	public DefaultFeature(ISite targetSite) throws CoreException {

-		super();

-		this.setSite(targetSite);		

-	}	

-	

-	

-	/**

-	 * Sets the identifier

-	 * @param identifier The identifier to set

-	 */

-	public void setIdentifier(VersionedIdentifier identifier) {

-		setFeatureIdentifier(identifier.getIdentifier());

-		setFeatureVersion(identifier.getVersion().toString());

-	}

-

-	/**

-	 * Sets the discoverySiteEntries

-	 * @param discoveryInfos The discoveryInfos to set

-	 */

-	public void setDiscoverySiteEntries(IURLEntry[] discoveryInfos) {

-		setDiscoverySiteEntryModels((URLEntryModel[]) discoveryInfos);

-	}

-

-	/**

-	 * Sets the updateSiteEntry

-	 * @param updateInfo The updateInfo to set

-	 */

-	public void setUpdateSiteEntry(IURLEntry updateInfo) {

-		setUpdateSiteEntryModel((URLEntryModel) updateInfo);

-	}

-

-	/**

-	 * Adds a discoveryInfo

-	 * @param discoveryInfo The discoveryInfo to add

-	 */

-	public void addDiscoverySiteEntry(IURLEntry discoveryInfo) {

-		addDiscoverySiteEntryModel((URLEntryModel) discoveryInfo);

-	}

-

-	/**

-	 * Sets the description

-	 * @param description The description to set

-	 */

-	public void setDescription(IURLEntry description) {

-		setDescriptionModel((URLEntryModel) description);

-	}

-

-	/**

-	 * Sets the copyright

-	 * @param copyright The copyright to set

-	 */

-	public void setCopyright(IURLEntry copyright) {

-		setCopyrightModel((URLEntryModel) copyright);

-	}

-

-	/**

-	 * Sets the license

-	 * @param license The license to set

-	 */

-	public void setLicense(IURLEntry license) {

-		setLicenseModel((URLEntryModel) license);

-	}

-

-	/**

-	 * Sets the image

-	 * @param image The image to set

-	 */

-	public void setImage(URL image) {

-		if (image==null) return;

-		setImageURLString(image.toExternalForm());

-	}

-

-	/**

-	 * Adds an import

-	 * @param anImport The import to add

-	 */

-	public void addImport(IImport anImport) {

-		if (anImport != null) {

-			addImportModel((ImportModel) anImport);

-		}

-	}

-

-

-	/**

-	 * Sets the pluginEntries

-	 * @param pluginEntries The pluginEntries to set

-	 */

-	public void setPluginEntries(IPluginEntry[] pluginEntries) {

-		if (pluginEntries != null) {

-			for (int i = 0; i < pluginEntries.length; i++) {

-				addPluginEntry(pluginEntries[i]);

-			}

-		}

-	}

-

-

-	/**

-	 * sets teh URL isf not already present

-	 */

-	public void setURL(URL url) throws CoreException{

-		//if (getFeatureContentProvider()==null){

-			FeatureContentProvider contentProvider = new FeatureExecutableContentProvider(url);

-			this.setFeatureContentProvider(contentProvider);

-			contentProvider.setFeature(this);

-		//}

-	}

-	

-	

-	/*

-	 * @see IPluginContainer#addPluginEntry(IPluginEntry)

-	 */

-	public void addPluginEntry(IPluginEntry pluginEntry) {

-		if (pluginEntry != null) {

-			addPluginEntryModel((PluginEntryModel) pluginEntry);

-		}

-	}

-

-	/*

-	 * @see IFeature#addNonPluginEntry(INonPluginEntry)

-	 */

-	public void addNonPluginEntry(INonPluginEntry dataEntry) {

-		if (dataEntry != null) {

-			addNonPluginEntryModel((NonPluginEntryModel) dataEntry);

-		}

-	}	

-

-	}
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/MyURLEntry.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/MyURLEntry.java
deleted file mode 100644
index 5944db4..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/MyURLEntry.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.update.core.URLEntry;

-

-/**

- * Wrapper around URLEntry

- */

-public class MyURLEntry extends URLEntry {

-	

-	public MyURLEntry(String annotation, URL url) throws MalformedURLException {

-		super();

-		setAnnotation(annotation);

-		if (url!=null) {

-			setURLString(url.toExternalForm());

-			resolve(null,null);

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultExecutableFeatureAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultExecutableFeatureAPI.java
deleted file mode 100644
index 6c8b84f..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultExecutableFeatureAPI.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-

-public class TestDefaultExecutableFeatureAPI extends UpdateManagerTestCase {

-	

-	private DefaultFeature remoteFeature=null;

-	

-	/**

-	 * Test the testFeatures()

-	 */

-	public TestDefaultExecutableFeatureAPI(String arg0) {

-		super(arg0);

-	}

-	

-	/**

-	 * the feature to test

-	 */

-	private DefaultFeature getFeature() throws MalformedURLException, CoreException {

-		if (remoteFeature == null){

-

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		URL url = UpdateManagerUtils.getURL(site.getURL(),"testAPI/"+Site.DEFAULT_INSTALLED_FEATURE_PATH+"feature3/",null);

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(site);

-		ref.setURL(url);

-		IFeature feature = ref.getFeature();

-		remoteFeature = new DefaultFeature(feature,site);

-

-		}

-		return remoteFeature;

-	}

-	

-	/**

-	 * @see IFeature#testIdentifier()

-	 */

-	public void testIdentifier() throws CoreException, MalformedURLException {

-		String id1 = "xmls/apitests/org.eclipse.test.feature_1.0.0/";

-		String id2 = "xmls/apitests/org.eclipse_test_feature";

-		VersionedIdentifier ident1 = new VersionedIdentifier("org.test1.ident1","1.0.0");

-		VersionedIdentifier ident2 = new VersionedIdentifier("org.test1.ident2","1.0.0");		

-		

-

-			ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-			

-			URL url1 = UpdateManagerUtils.getURL(site.getURL(),id1,null);			

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(url1);

-			remoteFeature.setIdentifier(ident1);

-			assertEquals(ident1.toString(),remoteFeature.getVersionedIdentifier().toString());

-	 	

-			 URL url2 = UpdateManagerUtils.getURL(site.getURL(),id2,null);		

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(url2);

-			remoteFeature.setIdentifier(ident2);

-			assertEquals(ident2.toString(),remoteFeature.getVersionedIdentifier().toString());

-		

-

-	}

-

-

-	/**

-	 * @see IFeature#testSite()

-	 */

-	public void testSite() throws MalformedURLException, CoreException{

-		String ident1 = Site.DEFAULT_INSTALLED_FEATURE_PATH+"feature3/";		

-

-			ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-			

-			URL id = UpdateManagerUtils.getURL(site.getURL(),ident1,null);			

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(id);

-			assertEquals(site,remoteFeature.getSite());

-

-	}

-

-

-	/**

-	 * @see IFeature#testLabel()

-	 */

-	public void testLabel() throws CoreException,MalformedURLException {

-		String label = "dummy label";

-		Feature feature = getFeature();

-		feature.setLabel(label);

-		assertEquals(label,feature.getLabel());

-	}

-

-

-	/**

-	 * @see IFeature#testUpdateURL()

-	 */

-	public void testUpdateURL() throws CoreException,MalformedURLException {

-		URL url = null;

-		String label = "OTI Site";

-		try {

-			url = new URL("http://www.oti.com/");

-			

-		} catch (java.net.MalformedURLException e){} // impossible eh !

-		DefaultFeature feature = getFeature();

-		feature.setUpdateSiteEntry(new MyURLEntry(label, url));

-		assertEquals(url,feature.getUpdateSiteEntry().getURL());

-		assertEquals(label,feature.getUpdateSiteEntry().getAnnotation());

-

-	} 

-

-

-	

-	/**

-	 * @see IFeature#testDiscoveryURLs()

-	 */

-	public void testDiscoveryURLs() throws CoreException,MalformedURLException {

-		IURLEntry[] urlInfo = new MyURLEntry[2];

-		URL[] url = new URL[2];

-		String[] label = new String[2];

-		try {

-			url[0] = new URL("http://www.oti.com/");

-			url[1] = new URL("http://eclipse.org/");

-			label[0] = "OTI Site";

-			label[1] = "Eclipse Site";

-		} catch (java.net.MalformedURLException e){} // impossible eh !

-		DefaultFeature feature = getFeature();

-		for (int i=0;i<2;i++){

-				urlInfo[i] = new MyURLEntry(label[i],url[i]);

-		}

-		feature.setDiscoverySiteEntries(urlInfo);

-		for (int i=0; i<feature.getDiscoverySiteEntries().length;i++){

-			assertEquals(urlInfo[i],feature.getDiscoverySiteEntries()[i]);

-		}

-

-	}

-

-

-	/**

-	 * @see IFeature#testProvider()

-	 */

-	public void testProvider() throws CoreException,MalformedURLException {

-		String provider = "not so dummy provider";

-		IFeature feature = getFeature();

-		((Feature)feature).setProvider(provider);

-		assertEquals(provider,feature.getProvider());

-	}

-

-

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription() throws CoreException,MalformedURLException {

-		String desc = "pretty long description as a string with \r\n and \t and \n";

-		IURLEntry info = new MyURLEntry(desc,null);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		assertEquals(desc,feature.getDescription().getAnnotation());

-	}

-	

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription1() throws CoreException, MalformedURLException {

-		URL url = null;

-		try {

-			url = new URL("http://www.oti.com");

-		} catch (MalformedURLException e){/*pretty impossible*/}

-		IURLEntry info = new MyURLEntry(null,url);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		assertEquals(url,feature.getDescription().getURL());

-	}	

-	

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription2() throws CoreException, MalformedURLException {

-		

- 	 URL url = null;

-		try {

-			url = new URL("http://www.oti.com");

-		} catch (MalformedURLException e){/*pretty impossible*/}

-		String desc = "pretty long description as a string with \r\n and \t and \n";

-		IURLEntry info = new MyURLEntry(desc,url);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		String result = feature.getDescription().getAnnotation();

-		assertEquals(desc,result);

-		assertEquals(url,feature.getDescription().getURL());

-	}	

-

-

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultPackageFeatureAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultPackageFeatureAPI.java
deleted file mode 100644
index 95d0157..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestDefaultPackageFeatureAPI.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-

-public class TestDefaultPackageFeatureAPI extends UpdateManagerTestCase {

-	

-	private	DefaultFeature remoteFeature=null;

-	

-	/**

-	 * Test the testFeatures()

-	 */

-	public TestDefaultPackageFeatureAPI(String arg0) {

-		super(arg0);

-	}

-	

-	/**

-	 * the feature to test

-	 */

-	private DefaultFeature getFeature() throws MalformedURLException, CoreException {

-		if (remoteFeature == null){

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		URL id = UpdateManagerUtils.getURL(site.getURL(),"org.eclipse.update.core.feature1_1.0.0.jar",null);	

-		remoteFeature = new DefaultFeature(site);

-		remoteFeature.setURL(id);

-		}

-		return remoteFeature;

-	}

-	

-	/**

-	 * @see IFeature#testIdentifier()

-	 */

-	public void testIdentifier() throws CoreException, MalformedURLException {

-		

-		String id1 = "features/org.eclipse.test.feature_1.0.0.jar";

-		String id2 = "features/org.eclipse_test_feature.jar";

-		VersionedIdentifier ident1 = new VersionedIdentifier("org.test1.ident1","1.0.0");

-		VersionedIdentifier ident2 = new VersionedIdentifier("org.test1.ident2","1.0.0");		

-		

-

-			ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-			

-			URL url1 = UpdateManagerUtils.getURL(site.getURL(),id1,null);			

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(url1);

-			remoteFeature.setIdentifier(ident1);

-			assertEquals(ident1.toString(),remoteFeature.getVersionedIdentifier().toString());

-		

-			 URL url2 = UpdateManagerUtils.getURL(site.getURL(),id2,null);		

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(url2);

-			remoteFeature.setIdentifier(ident2);			

-			assertEquals(ident2.toString(),remoteFeature.getVersionedIdentifier().toString());

-	}

-

-

-	/**

-	 * @see IFeature#testSite()

-	 */

-	public void testSite() throws MalformedURLException, CoreException {

-		String ident1 = "org.eclipse.test.feature_1.0.0.jar";		

-

-			ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-			

-			URL id = UpdateManagerUtils.getURL(site.getURL(),ident1,null);		

-			remoteFeature = new DefaultFeature(site);

-			remoteFeature.setURL(id);	

-			assertEquals(site,remoteFeature.getSite());

-

-	}

-

-

-	/**

-	 * @see IFeature#testLabel()

-	 */

-	public void testLabel() throws CoreException, MalformedURLException {

-		String label = "dummy label";

-		Feature feature = getFeature();

-		feature.setLabel(label);

-		assertEquals(label,feature.getLabel());

-	}

-

-

-	/**

-	 * @see IFeature#testUpdateURL()

-	 */

-	public void testUpdateURL() throws CoreException, MalformedURLException {

-		URL url = null;

-		String label = "OTI Site";

-		try {

-			url = new URL("http://www.oti.com/");

-			

-		} catch (java.net.MalformedURLException e){} // impossible eh !

-		DefaultFeature feature = getFeature();

-		feature.setUpdateSiteEntry(new MyURLEntry(label, url));

-		assertEquals(url,feature.getUpdateSiteEntry().getURL());

-		assertEquals(label,feature.getUpdateSiteEntry().getAnnotation());

-

-	} 

-

-

-	

-	/**

-	 * @see IFeature#testDiscoveryURLs()

-	 */

-	public void testDiscoveryURLs() throws CoreException, MalformedURLException {

-		IURLEntry[] urlInfo = new URLEntry[2];

-		URL[] url = new URL[2];

-		String[] label = new String[2];

-		try {

-			url[0] = new URL("http://www.oti.com/");

-			url[1] = new URL("http://eclipse.org/");

-			label[0] = "OTI Site";

-			label[1] = "Eclipse Site";

-		} catch (java.net.MalformedURLException e){} // impossible eh !

-		DefaultFeature feature = getFeature();

-		for (int i=0;i<2;i++){

-				urlInfo[i] = new MyURLEntry(label[i],url[i]);

-		}

-		feature.setDiscoverySiteEntries(urlInfo);

-		for (int i=0; i<feature.getDiscoverySiteEntries().length;i++){

-			assertEquals(urlInfo[i],feature.getDiscoverySiteEntries()[i]);

-		}

-

-

-	}

-

-

-	/**

-	 * @see IFeature#testProvider()

-	 */

-	public void testProvider() throws CoreException, MalformedURLException {

-		String provider = "not so dummy provider";

-		Feature feature = getFeature();

-		feature.setProvider(provider);

-		assertEquals(provider,feature.getProvider());

-	}

-

-

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription() throws CoreException, MalformedURLException {

-		String desc = "pretty long description as a string with \r\n and \t and \n";

-		IURLEntry info = new MyURLEntry(desc,null);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		assertEquals(desc,feature.getDescription().getAnnotation());

-	}

-	

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription1() throws CoreException, MalformedURLException {

-		URL url = null;

-		try {

-			url = new URL("http://www.oti.com");

-		} catch (MalformedURLException e){/*pretty impossible*/}

-		IURLEntry info = new MyURLEntry(null,url);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		assertEquals(url,feature.getDescription().getURL());

-	}	

-	

-	/**

-	 * @see IFeature#testDescription()

-	 */

-	public void testDescription2() throws CoreException, MalformedURLException {

-		

-		URL url = null;

-		try {

-			url = new URL("http://www.oti.com");

-		} catch (MalformedURLException e){/*pretty impossible*/}

-		String desc = "pretty long description as a string with \r\n and \t and \n";

-		IURLEntry info = new MyURLEntry(desc,url);

-		DefaultFeature feature = getFeature();

-		feature.setDescription(info);

-		assertEquals(desc,feature.getDescription().getAnnotation());

-		assertEquals(url,feature.getDescription().getURL());

-	}

-

-

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestFeatureContentProvider_FileFilterAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestFeatureContentProvider_FileFilterAPI.java
deleted file mode 100644
index 011305a..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestFeatureContentProvider_FileFilterAPI.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.api;
-import org.eclipse.update.core.FeatureContentProvider;
-import org.eclipse.update.internal.core.FeatureExecutableContentProvider;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-
-
-public class TestFeatureContentProvider_FileFilterAPI extends UpdateManagerTestCase {
-	
-	private DefaultFeature remoteFeature=null;
-	
-	/**
-	 * Test the testFeatures()
-	 */
-	public TestFeatureContentProvider_FileFilterAPI(String arg0) {
-		super(arg0);
-	}
-	
-	public void testFileFilter(){
-		
-		String p1 = "/p1/p2/a.*";
-		String p2 = "p1/p2/b.*";
-		String p3 = "/p1/p2/a.txt";
-		String p4 = "/p1/p2/*.txt";
-		
-		String name1 = "/p1/p2/a.txt";
-		String name2 = "/p1/p2/b.txt";
-		String name3 = "/p3/p2/a.txt";
-		String name4 = "p1/p2/a.txt";
-		String name5 = "/p1/p2/b.txt";
-		String name6 = "/p1/p2/c.txt";
-		String name7 = "/p1/p2/p3/a.txt";
-		
-		
-		FeatureContentProvider cp = new FeatureExecutableContentProvider(null);
-		
-		FeatureContentProvider.FileFilter filter1 = cp.new FileFilter(p1);
-		FeatureContentProvider.FileFilter filter2 = cp.new FileFilter(p2);
-		FeatureContentProvider.FileFilter filter3 = cp.new FileFilter(p3);
-		FeatureContentProvider.FileFilter filter4 = cp.new FileFilter(p4);
-
-		assertTrue("1.1",filter1.accept(name1));		
-		assertTrue("1.2",!filter1.accept(name2));		
-		assertTrue("1.3",!filter1.accept(name3));	
-		assertTrue("1.4",!filter1.accept(name4));		
-		assertTrue("1.5",!filter1.accept(name5));		
-		assertTrue("1.6",!filter1.accept(name6));		
-		assertTrue("1.7",!filter1.accept(name7));
-	
-		assertTrue("2.1",!filter2.accept(name1));		
-		assertTrue("2.2",!filter2.accept(name2));		
-		assertTrue("2.3",!filter2.accept(name3));	
-		assertTrue("2.4",!filter2.accept(name4));		
-		assertTrue("2.5",!filter2.accept(name5));		
-		assertTrue("2.6",!filter2.accept(name6));		
-		assertTrue("2.7",!filter2.accept(name7));
-
-		assertTrue("3.1",filter3.accept(name1));		
-		assertTrue("3.2",!filter3.accept(name2));		
-		assertTrue("3.3",!filter3.accept(name3));	
-		assertTrue("3.4",!filter3.accept(name4));		
-		assertTrue("3.5",!filter3.accept(name5));		
-		assertTrue("3.6",!filter3.accept(name6));		
-		assertTrue("3.7",!filter3.accept(name7));
-		
-		assertTrue("4.1",filter4.accept(name1));		
-		assertTrue("4.2",filter4.accept(name2));		
-		assertTrue("4.3",!filter4.accept(name3));	
-		assertTrue("4.4",!filter4.accept(name4));		
-		assertTrue("4.5",filter4.accept(name5));		
-		assertTrue("4.6",filter4.accept(name6));		
-		assertTrue("4.7",!filter4.accept(name7));								
-					
-	}
-}
-
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestLocalSiteAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestLocalSiteAPI.java
deleted file mode 100644
index 2ea68ec..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestLocalSiteAPI.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.CategoryModel;

-import org.eclipse.update.core.model.SiteModel;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestLocalSiteAPI extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestLocalSiteAPI(String arg0) {

-		super(arg0);

-	}

-	

-	public void testFileParsing() throws Exception {

-

-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE,"siteTestLocalSite/"));

-		IArchiveReference[] info = site.getArchives();

-		

-		if (info.length<=0){

-			fail("no plugins in site: "+site.getURL().toExternalForm());

-		}

-		 

-		boolean found1 = false;

-		boolean found2 = false;

-		String name1= "plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar";

-		String name2 = "plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar";

-		

-		for (int i =0; i<info.length; i++){

-			if (info[i].getPath().equals(name1)) found1 = true;

-			if (info[i].getPath().equals(name2)) found2 = true;

-		}

-		

-		if (!found1 || !found2){

-			fail("Cannot find plugin : org.eclipse.update.core.tests.feature1.plugin2 version 5.0.0 and 5.0.1 on the site, by parsing file system");

-		}

-		

-

-	}

-	

-	

-	public void testCategories() throws Exception {

-

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		

-		ICategory category = new Category("category","Label of category");

-		

-		((SiteModel)site).addCategoryModel((CategoryModel)category);

-		

-		ICategory[] categories = site.getCategories();

-		boolean found = false;

-		for (int index = 0; index < categories.length; index++) {

-			ICategory element = categories[index];

-			if (element.getName().equals("category")) found = true;

-		}

-		if (!found) fail("cannot find category 'category' in site");

-

-		ISiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(site);

-		ref.addCategory(category);		

-		categories = ref.getCategories();

-		found = false;

-		for (int index = 0; index < categories.length; index++) {

-			ICategory element = categories[index];

-			if (element.getName().equals("category")) found = true;

-		}

-		if (!found) fail("cannot find category 'category' in feature");

-		

-			}

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestNestedFeatureAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestNestedFeatureAPI.java
deleted file mode 100644
index 5db09e4..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestNestedFeatureAPI.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.api;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-import org.eclipse.update.internal.core.UpdateManagerUtils;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-public class TestNestedFeatureAPI extends UpdateManagerTestCase {
-
-	/**
-	 * Test the testFeatures()
-	 */
-	public TestNestedFeatureAPI(String arg0) {
-		super(arg0);
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getRootFeature() throws MalformedURLException, CoreException {
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest/site.xml"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "rootfeature.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getChildFeature() throws MalformedURLException, CoreException {
-
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest/"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "org.eclipse.update.core.tests.childrenfeature_2.0.0.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/*
-	 * 
-	 */
-	public void testNested() throws Exception {
-
-		IFeature rootFeature = getRootFeature();
-		IFeatureReference[] ref = rootFeature.getIncludedFeatureReferences();
-		IFeature childFeature = getChildFeature();
-		assertEquals("Children feature are not equal", childFeature, ref[0].getFeature());
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getRootFeature2() throws MalformedURLException, CoreException {
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest2/site.xml"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "rootfeature.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getChildFeature2() throws MalformedURLException, CoreException {
-
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest2/site.xml"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "childrenfeature.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/*
-	 * 
-	 */
-	public void testNested2() throws Exception {
-
-		IFeature rootFeature = getRootFeature2();
-		IFeatureReference[] ref = rootFeature.getIncludedFeatureReferences();
-		IFeature childFeature = getChildFeature2();
-		assertEquals("Children feature are not equal", childFeature, ref[0].getFeature());
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getRootFeature3() throws MalformedURLException, CoreException {
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest3/site.xml"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "rootfeature.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/**
-	 * the feature to test
-	 */
-	private IFeature getChildFeature3() throws MalformedURLException, CoreException {
-
-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest3/site.xml"));
-		URL url = UpdateManagerUtils.getURL(site.getURL(), Site.DEFAULT_INSTALLED_FEATURE_PATH + "childrenfeature.jar", null);
-		SiteFeatureReference ref = new SiteFeatureReference();
-		ref.setSite(site);
-		ref.setURL(url);
-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);
-		IFeature feature = ref.getFeature();
-		return feature;
-	}
-
-	/*
-	 * 
-	 */
-	/*	public void testNested3() throws Exception {
-	
-			IFeature rootFeature = getRootFeature3();
-			IFeatureReference[] ref = rootFeature.getIncludedFeatureReferences();
-			IFeature childFeature = getChildFeature3();
-			assertEquals(
-				"Children feature are not equal",
-				childFeature,
-				ref[0].getFeature());
-		}
-	*/
-
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestPluginContainerAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestPluginContainerAPI.java
deleted file mode 100644
index 0bd1fef..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestPluginContainerAPI.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestPluginContainerAPI extends UpdateManagerTestCase {

-

-	private Site site;

-	private DefaultFeature feature;

-

-	/**

-	 * the Site to test

-	 */

-	private Site getSite() throws CoreException, MalformedURLException {

-		if (site == null) {

-

-			site = (Site)SiteManager.getSite(new URL(SOURCE_FILE_SITE,"testAPI/"));

-

-		}

-		return site;

-	}

-

-	/**

-	 * the feature to test

-	 */

-	private DefaultFeature getFeature() throws MalformedURLException, CoreException {

-		if (feature == null) {

-			ISite site = getSite();

-			URL id = UpdateManagerUtils.getURL(site.getURL(),"org.eclipse.update.core.feature1_1.0.0.jar",null);						

-			feature = new DefaultFeature(site);

-			feature.setURL(id);	

-		}

-		return feature;

-	}

-

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestPluginContainerAPI(String arg0) throws CoreException {

-		super(arg0);

-	}

-

-	public void testAbstractFeature() throws CoreException, MalformedURLException {

-		PluginEntry pluginEntry = new PluginEntry();

-		pluginEntry.setVersionedIdentifier(new VersionedIdentifier("id", "6"));

-		Feature _feature = getFeature();

-		((DefaultFeature)_feature).addPluginEntry(pluginEntry);

-		assertEquals(_feature.getPluginEntryCount(), 1);

-		assertEquals(_feature.getPluginEntries()[0], pluginEntry);

-

-	}

-

-	public void testAbstactSite() throws CoreException, MalformedURLException {

-		PluginEntry pluginEntry = new PluginEntry();

-		pluginEntry.setVersionedIdentifier(new VersionedIdentifier("id", "6"));

-		Site _site = getSite();

-		_site.addPluginEntry(pluginEntry);

-		assertEquals(_site.getPluginEntryCount(), 1);

-		assertEquals(_site.getPluginEntries()[0], pluginEntry);

-

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteAPI.java
deleted file mode 100644
index 6d7cdfa..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteAPI.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.update.core.ISite;

-import org.eclipse.update.core.SiteManager;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestSiteAPI extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestSiteAPI(String arg0) {

-		super(arg0);

-	}

-	

-	public void testURL() throws Exception {

-

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		assertEquals(new File(site.getURL().getFile()),new File(SOURCE_FILE_SITE.getFile()));

-		

-		ISite site2 = SiteManager.getSite(SOURCE_HTTP_SITE);

-		assertEquals(site2.getURL(),new URL("http", getHttpHost(),getHttpPort(), bundle.getString("HTTP_PATH_1")+"site.xml"));

-

-	}

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java
deleted file mode 100644
index 75fd89e..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestSiteManagerAPI extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestSiteManagerAPI(String arg0) {

-		super(arg0);

-	}

-	

-	public void testFile() throws Exception {

-		ISite fileSite = SiteManager.getSite(TARGET_FILE_SITE);

-		String site = fileSite.getURL().toExternalForm();		

-		assertEquals(TARGET_FILE_SITE.toExternalForm(), site);

-	}

-	

-	public void testUnknown() throws Exception {

-		URL url = new URL("ftp://255.255.255.255/");

-		try {

-		SiteManager.getSite(url);

-		fail("Connected to ftp://255.255.255.255/, should not happen");

-		} catch (CoreException e){

-			// expected

-		} catch (IllegalArgumentException e){

-			// expected as the version of the WebDav HTTP Connection returns so

-		}

-	}

-	

-	public void testLocalSite() throws Exception {

-		

-		ILocalSite site = SiteManager.getLocalSite();

-		IConfiguredSite[] instSites = site.getCurrentConfiguration().getConfiguredSites();

-		assertTrue(instSites.length>0);

-		System.out.println("Local Site:"+instSites[0].getSite().getURL().toExternalForm());

-		

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE_INSTALLED);

-		IFeature remoteFeature = remoteSite.getFeatureReferences()[0].getFeature();

-		remove(remoteFeature,instSites[0].getSite());		

-		instSites[0].getSite().install(remoteFeature,null,null);

-		

-		IFeatureReference[] features = site.getCurrentConfiguration().getConfiguredSites()[0].getSite().getFeatureReferences();

-		assertTrue(features.length>0);

-

-		//cleanup

-		assertNotNull(remoteFeature);		

-		File file = new File(instSites[0].getSite().getURL().getFile()+File.separator+Site.DEFAULT_INSTALLED_FEATURE_PATH+remoteFeature.getVersionedIdentifier());

-		UpdateManagerUtils.removeFromFileSystem(file);

-		file = new File(instSites[0].getSite().getURL().getFile()+File.separator+Site.DEFAULT_PLUGIN_PATH+"org.eclipse.update.plugin1_1.1.1");

-		UpdateManagerUtils.removeFromFileSystem(file);		

-		File localFile = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)site.getCurrentConfiguration()).getURL().getFile()));				

-		

-

-	}

-	

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestUpdateManagerUtilsAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestUpdateManagerUtilsAPI.java
deleted file mode 100644
index d82488e..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestUpdateManagerUtilsAPI.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.api;

-import java.net.URL;

-

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestUpdateManagerUtilsAPI extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestUpdateManagerUtilsAPI(String arg0) {

-		super(arg0);

-	}

-	

-	public void testgetURL() throws Exception {

-		URL url1 = new URL("http://www.eclipse.org");

-		URL url2 = new URL("file://c:/hello");

-		URL url3 = new URL("file:/home/eclipse/");

-		URL url4 = new URL("ftp:/host:8080/path/");

-		URL url5 = new URL("jar:file:/tmp/100100!/");

-		

-		String default1 = "default1/default";

-		String default2 = "/default2/";

-		

-		String str1 = "http://dev.eclipse.org";

-		String str2 = "relative1/path/";

-		String str3 = "/relative2/path";

-		

-		String result1=null;

-		String result2=null;

-		

-		//****************************************************************************************

-		// 1.0

-		result1 = UpdateManagerUtils.getURL(url1,str1,default1).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("1.0",result2,result1);

-		

-		// 1.1

-		 result1 = UpdateManagerUtils.getURL(null,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("1.1",result2,result1);

-		

-		// 1.2

-		 result1 = UpdateManagerUtils.getURL(url1,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("1.2",result2,result1);

-		

-		// 1.3

-		 result1 = UpdateManagerUtils.getURL(url1,str2,default1).toExternalForm();

-		 result2 = "http://www.eclipse.org/relative1/path/";

-		assertEquals("1.3",result2,result1);

-		

-		// 1.4

-		 result1 = UpdateManagerUtils.getURL(url1,str3,default1).toExternalForm();

-		 result2 = "http://www.eclipse.org/relative2/path";

-		assertEquals("1.4",result2,result1);

-		

-		// 1.5

-		 result1 = UpdateManagerUtils.getURL(url1,null,default1).toExternalForm();

-		 result2 = "http://www.eclipse.org/default1/default";

-		assertEquals("1.5",result2,result1);

-		

-		// 1.6

-		 result1 = UpdateManagerUtils.getURL(url1,null,default2).toExternalForm();

-		 result2 = "http://www.eclipse.org/default2/";

-		assertEquals("1.6",result2,result1);

-		

-		//****************************************************************************************

-		// 2.0

-		 result1 = UpdateManagerUtils.getURL(url2,str1,default1).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("2.0",result2,result1);

-		

-		// 2.1

-		 result1 = UpdateManagerUtils.getURL(null,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("2.1",result2,result1);

-		

-		// 2.2

-		 result1 = UpdateManagerUtils.getURL(url2,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("2.2",result2,result1);

-		

-		// 2.3

-		 result1 = UpdateManagerUtils.getURL(url2,str2,default1).toExternalForm();

-		 result2 = "file://c:/relative1/path/";

-		assertEquals("2.3",result2,result1);

-		

-		// 2.4

-		 result1 = UpdateManagerUtils.getURL(url2,str3,default1).toExternalForm();

-		 result2 = "file://c:/relative2/path";

-		assertEquals("2.4",result2,result1);

-		

-		// 2.5

-		 result1 = UpdateManagerUtils.getURL(url2,null,default1).toExternalForm();

-		 result2 = "file://c:/default1/default";

-		assertEquals("2.5",result2,result1);

-		

-		// 2.6

-		 result1 = UpdateManagerUtils.getURL(url2,null,default2).toExternalForm();

-		 result2 = "file://c:/default2/";

-		assertEquals("2.6",result2,result1);

-		

-

-		//****************************************************************************************

-		// 3.0

-		 result1 = UpdateManagerUtils.getURL(url3,str1,default1).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("3.0",result2,result1);

-		

-		// 3.1

-		 result1 = UpdateManagerUtils.getURL(null,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("3.1",result2,result1);

-		

-		// 3.2

-		 result1 = UpdateManagerUtils.getURL(url3,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("3.2",result2,result1);

-		

-		// 3.3

-		 result1 = UpdateManagerUtils.getURL(url3,str2,default1).toExternalForm();

-		 result2 = "file:/home/eclipse/relative1/path/";

-		assertEquals("3.3",result2,result1);

-		

-		// 3.4

-		 result1 = UpdateManagerUtils.getURL(url3,str3,default1).toExternalForm();

-		 result2 = "file:/home/eclipse/relative2/path";

-		assertEquals("3.4",result2,result1);

-		

-		// 3.5

-		 result1 = UpdateManagerUtils.getURL(url3,null,default1).toExternalForm();

-		 result2 = "file:/home/eclipse/default1/default";

-		assertEquals("3.5",result2,result1);

-		

-		// 3.6

-		 result1 = UpdateManagerUtils.getURL(url3,null,default2).toExternalForm();

-		 result2 = "file:/home/eclipse/default2/";

-		assertEquals("3.6",result2,result1);

-				

-		//****************************************************************************************

-		// 4.0

-		 result1 = UpdateManagerUtils.getURL(url4,str1,default1).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("4.0",result2,result1);

-		

-		// 4.1

-		 result1 = UpdateManagerUtils.getURL(null,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("4.1",result2,result1);

-		

-		// 4.2

-		 result1 = UpdateManagerUtils.getURL(url4,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("4.2",result2,result1);

-		

-		// 4.3

-		 result1 = UpdateManagerUtils.getURL(url4,str2,default1).toExternalForm();

-		 result2 = "ftp:/host:8080/path/relative1/path/";

-		assertEquals("4.3",result2,result1);

-		

-		// 4.4

-		 result1 = UpdateManagerUtils.getURL(url4,str3,default1).toExternalForm();

-		 result2 = "ftp:/host:8080/path/relative2/path";

-		assertEquals("4.4",result2,result1);

-		

-		// 4.5

-		 result1 = UpdateManagerUtils.getURL(url4,null,default1).toExternalForm();

-		 result2 = "ftp:/host:8080/path/default1/default";

-		assertEquals("4.5",result2,result1);

-		

-		// 4.6

-		 result1 = UpdateManagerUtils.getURL(url4,null,default2).toExternalForm();

-		 result2 = "ftp:/host:8080/path/default2/";

-		assertEquals("4.6",result2,result1);

-		

-		//****************************************************************************************

-		// 5.0

-		 result1 = UpdateManagerUtils.getURL(url5,str1,default1).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("5.0",result2,result1);

-		

-		// 5.1

-		 result1 = UpdateManagerUtils.getURL(null,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("5.1",result2,result1);

-		

-		// 5.2

-		 result1 = UpdateManagerUtils.getURL(url5,str1,null).toExternalForm();

-		 result2 = "http://dev.eclipse.org";

-		assertEquals("5.2",result2,result1);

-		

-		// 5.3

-		 result1 = UpdateManagerUtils.getURL(url5,str2,default1).toExternalForm();

-		 result2 = "jar:file:/tmp/100100!/relative1/path/";

-		assertEquals("5.3",result2,result1);

-		

-		// 5.4

-		 result1 = UpdateManagerUtils.getURL(url5,str3,default1).toExternalForm();

-		 result2 = "jar:file:/tmp/100100!/relative2/path";

-		assertEquals("5.4",result2,result1);

-		

-		// 5.5

-		 result1 = UpdateManagerUtils.getURL(url5,null,default1).toExternalForm();

-		 result2 = "jar:file:/tmp/100100!/default1/default";

-		assertEquals("5.5",result2,result1);

-		

-		// 5.6

-		 result1 = UpdateManagerUtils.getURL(url5,null,default2).toExternalForm();

-		 result2 = "jar:file:/tmp/100100!/default2/";

-		assertEquals("5.6",result2,result1);				

-

-	}

-	

-	

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/AllConfigurationsTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/AllConfigurationsTests.java
deleted file mode 100644
index 7e4e003..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/AllConfigurationsTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.configurations;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllConfigurationsTests extends UpdateManagerTestCase {

-public AllConfigurationsTests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Regular Install Tests");

-	

-	suite.addTest(new TestSuite(TestRevert.class));

-	suite.addTest(new TestSuite(TestBackward.class));

-		

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestBackward.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestBackward.java
deleted file mode 100644
index fd00cdc..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestBackward.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.configurations;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestBackward extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestBackward(String arg0) {

-		super(arg0);

-	}

-	

-	public void testSimpleBackward() throws Exception {

-

-		// cleanup

-		SiteLocal siteLocal = ((SiteLocal)SiteManager.getLocalSite());

-		File localFile = new File(new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));

-		InternalSiteManager.localSite=null;		

-

-		ILocalSite site = SiteManager.getLocalSite();

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeatureReference featureRef = remoteSite.getFeatureReferences()[0];

-		

-		IInstallConfiguration oldInstallConfig = site.getCurrentConfiguration();

-		IConfiguredSite oldConfigSite = oldInstallConfig.getConfiguredSites()[0];

-		

-		((ConfiguredSite)oldConfigSite).setUpdatable(true);	

-		assertNotNull("Reference is null",featureRef);

-		remove(featureRef.getFeature(),oldConfigSite);	

-		oldConfigSite.install(featureRef.getFeature(),null,null);

-		site.save();

-	

-		

-		// Activity -> InstallConfig

-		IInstallConfiguration current = site.getCurrentConfiguration();

-		IActivity activity = current.getActivities()[0];	

-		assertTrue(activity.getInstallConfiguration().equals(current));

-		

-		// ConfigSite->InstallConfig

-		IConfiguredSite newConfigSite = current.getConfiguredSites()[0];

-		assertTrue(newConfigSite.getInstallConfiguration().equals(current));

-		

-		// cleanup

-		localFile = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		localFile = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-	

-	}

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestRevert.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestRevert.java
deleted file mode 100644
index 8bafde3..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/configurations/TestRevert.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.configurations;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.internal.model.ConfigurationPolicyModel;

-import org.eclipse.update.internal.model.ConfiguredSiteModel;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestRevert extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestRevert(String arg0) {

-		super(arg0);

-	}

-	

-	public void testSimpleRevertInstall() throws Exception {

-

-		// cleanup

-		SiteLocal siteLocal = ((SiteLocal)SiteManager.getLocalSite());

-		File localFile = new File(new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));

-		InternalSiteManager.localSite=null;		

-

-		ILocalSite site = SiteManager.getLocalSite();

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeatureReference featureRef = remoteSite.getFeatureReferences()[0];

-		IFeatureReference featureRef2 = remoteSite.getFeatureReferences()[1];

-		IFeature feature = featureRef.getFeature();

-		

-		// old config, no features installed

-		IInstallConfiguration old = site.getCurrentConfiguration();

-		ConfigurationPolicy excludepolicy = new ConfigurationPolicy();

-		excludepolicy.setPolicy(IPlatformConfiguration.ISitePolicy.USER_EXCLUDE);

-		IConfiguredSite oldConfigSite = old.getConfiguredSites()[0];

-		excludepolicy.setConfiguredSiteModel((ConfiguredSiteModel)oldConfigSite);		

-		((ConfiguredSiteModel)oldConfigSite).setConfigurationPolicyModel((ConfigurationPolicyModel)excludepolicy);

-		

-		// install one feature

-		IInstallConfiguration newConfig = site.cloneCurrentConfiguration();

-		IConfiguredSite configSite = newConfig.getConfiguredSites()[0];

-		if (!configSite.getSite().equals(oldConfigSite.getSite())) fail("Config sites are not equals");

-		site.addConfiguration(newConfig);	

-		

-		((ConfiguredSite)configSite).setUpdatable(true);			

-		IFeatureReference installedFeature = configSite.install(feature,null,null);

-		site.save();

-

-		// unconfigure it

-		configSite.unconfigure(installedFeature.getFeature());

-

-		// install another feature

-		IFeature feature2 = featureRef2.getFeature();

-		IInstallConfiguration newConfig2 = site.cloneCurrentConfiguration();

-		IConfiguredSite anotherConfigSite = newConfig2.getConfiguredSites()[0];

-		if (!anotherConfigSite.getSite().equals(oldConfigSite.getSite())) fail("Config sites are not equals");		

-		site.addConfiguration(newConfig2);		

-		anotherConfigSite.install(feature2,null,null);

-		site.save();

-

-		// revert to old state where no feature where configured

-		site.revertTo(old,null,null);

-		site.save();

-		

-		// check

-		String time = ""+site.getCurrentConfiguration().getCreationDate().getTime();

-		File file = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.DEFAULT_CONFIG_PREFIX+time+".xml").getFile());

-		assertTrue("new configuration does not exist", file.exists());

-		

-		

-		//find configured site

-		IConfiguredSite newConfigSite = null;

-		IConfiguredSite[] sites = site.getCurrentConfiguration().getConfiguredSites();

-		for (int i = 0; i < sites.length; i++) {

-			if (sites[i].getSite().equals(oldConfigSite.getSite())){

-				 newConfigSite = sites[i];

-				 break;

-			}

-		}

-		if (newConfigSite==null) fail("Cannot find configuration site");

-

-		int oldNumber = oldConfigSite.getConfiguredFeatures().length;

-		int newNumber = newConfigSite.getConfiguredFeatures().length;

-		

-		//

-		IFeatureReference[] configFeatures = newConfigSite.getConfiguredFeatures();

-		for (int i = 0; i < configFeatures.length; i++) {

-			System.out.println(configFeatures[i]);

-		}		

-		assertTrue("Wrong number of configured features old:"+oldNumber+" new:"+newNumber,oldNumber==newNumber);

-		

-		// test only 2 install config in local site

-		int newNumberUnconfiguredFeatures = ((ConfiguredSite)newConfigSite).getConfigurationPolicy().getUnconfiguredFeatures().length;

-		int oldNumberUnconfiguredFeatures = ((ConfiguredSite)oldConfigSite).getConfigurationPolicy().getUnconfiguredFeatures().length;		

-		assertEquals("wrong number of unconfigured features",oldNumberUnconfiguredFeatures+2,newNumberUnconfiguredFeatures);

-		

-		// cleanup

-		localFile = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		localFile = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);				

-		UpdateManagerUtils.removeFromFileSystem(file);	

-		time = ""+newConfig.getCreationDate().getTime();

-		file = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),"DefaultConfig"+time+".xml").getFile());	

-		UpdateManagerUtils.removeFromFileSystem(file);	

-		time = ""+newConfig2.getCreationDate().getTime();

-		file = new File(new URL(((SiteLocal)SiteManager.getLocalSite()).getLocationURL(),"DefaultConfig"+time+".xml").getFile());	

-		UpdateManagerUtils.removeFromFileSystem(file);	

-	}

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/AllPlatformConfigurationTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/AllPlatformConfigurationTests.java
deleted file mode 100644
index fc1fef9..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/AllPlatformConfigurationTests.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.core.boot;

-

-import junit.framework.Test;

-import junit.framework.TestSuite;

-

-public class AllPlatformConfigurationTests

-	extends PlatformConfigurationTestCase {

-	/**

-	 * Constructor

-	 */

-	public AllPlatformConfigurationTests(String name) {

-		super(name);

-	}

-	

-	/**

-	 * List of API tests

-	 */

-	public static Test suite() throws Exception {

-		TestSuite suite = new TestSuite();

-		suite.setName("PlatformConfiguration Tests");

-

-		suite.addTest(new TestSuite(TestPlatCfgAPI.class));

-

-		return suite;

-	}

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/PlatformConfigurationTestCase.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/PlatformConfigurationTestCase.java
deleted file mode 100644
index c9fa01e..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/PlatformConfigurationTestCase.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.core.boot;

-

-import java.io.File;

-import java.util.Date;

-

-import junit.framework.TestCase;

-

-public class PlatformConfigurationTestCase extends TestCase {

-	

-	protected String tempDir;

-	

-	public PlatformConfigurationTestCase(String name) {

-		super(name);

-		try {

-			init();

-		} catch (Exception e) {

-			fail(e.toString());

-			e.printStackTrace();

-		}

-	}

-	

-	protected void init() {

-	}

-	

-	protected void setUp() {

-		// get new temp directory for testcase

-		String root = getTempDirectoryName();

-		setupDirectory(root);

-		tempDir = root;

-	}

-	

-	protected void tearDown() {

-		// cleanup testcase temp directory

-		if (tempDir != null)

-			cleanupDirectory(tempDir);

-	}

-	

-	protected String getTempDirectoryName() {

-		String tmp = System.getProperty("java.io.tmpdir");

-		if (!tmp.endsWith(File.separator))

-			tmp += File.separator;

-		return tmp+"eclipse"+File.separator+(new Date().getTime()+File.separator);

-	}

-	

-	protected void setupDirectory(String name) {

-		File dir = new File(name);

-		dir.mkdirs();

-	}

-	

-	protected void cleanupDirectory(String name) {

-		File dir = new File(name);

-		deleteDirectory(dir);

-	}

-	

-	private void deleteDirectory(File dir) {

-		File[] list = dir.listFiles();

-		if (list == null)

-			return;

-			

-		for (int i=0; i<list.length; i++) {

-			if (list[i].isDirectory()) 

-				deleteDirectory(list[i]);

-			if (!list[i].delete())

-				System.out.println("Unable to delete "+list[i].toString());

-		}

-	}

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgAPI.java
deleted file mode 100644
index ab03278..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgAPI.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.core.boot;

-

-import java.io.IOException;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.Date;

-

-import junit.framework.Assert;

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.core.boot.IPlatformConfiguration.ISiteEntry;

-import org.eclipse.core.boot.IPlatformConfiguration.ISitePolicy;

-

-public class TestPlatCfgAPI extends PlatformConfigurationTestCase {

-			

-	public TestPlatCfgAPI(String arg0) {

-		super(arg0);

-	}

-	

-	public void testBasic() throws Exception {

-		

-		// get new config object

-		IPlatformConfiguration cfig = null;

-		try {

-			cfig = BootLoader.getPlatformConfiguration(null);

-		} catch (IOException e) {

-			Assert.fail("0.0.0 "+e.toString());

-		}

-		ISiteEntry[] dflt = cfig.getConfiguredSites();

-		Assert.assertEquals("0.0.1",dflt.length,0);

-		

-		// policy tests

-		ISitePolicy p1 = cfig.createSitePolicy(ISitePolicy.USER_INCLUDE, null);

-		Assert.assertEquals("1.0.0",p1.getType(),ISitePolicy.USER_INCLUDE);

-		Assert.assertEquals("1.0.1",p1.getList().length,0);

-		p1.setList(new String[] {"first"});

-		Assert.assertEquals("1.0.2",p1.getList().length,1);

-		Assert.assertEquals("1.0.3",p1.getList()[0],"first");

-		

-		ISitePolicy p2 = cfig.createSitePolicy(ISitePolicy.USER_EXCLUDE, new String[0]);

-		Assert.assertEquals("1.1.0",p2.getType(),ISitePolicy.USER_EXCLUDE);

-		Assert.assertEquals("1.1.1",p2.getList().length,0);

-		p2.setList(new String[] {"first", "second"});

-		Assert.assertEquals("1.1.2",p2.getList().length,2);

-		Assert.assertEquals("1.1.3",p2.getList()[1],"second");

-		

-		// create some urls

-		URL u1 = null;

-		URL u2 = null;

-

-		URL u4 = null;

-		try {

-			u1 = new URL("file:d:/temp/");

-			u2 = new URL("file://localhost/temp/");

-			new URL("http://some.server/temp/");

-			u4 = new URL("http://bad.url");

-		} catch (MalformedURLException e) {

-			Assert.fail("2.0.0 unable to create URL "+e);

-		}

-				

-		// site creation tests

-		ISiteEntry s1 = cfig.createSiteEntry(u1,p2);

-		Assert.assertEquals("3.0.0",s1.getURL(),u1);

-		Assert.assertEquals("3.0.1",s1.getSitePolicy(),p2);

-		s1.setSitePolicy(p1);

-		Assert.assertEquals("3.0.2",s1.getSitePolicy(),p1);

-		

-		ISiteEntry s2 = cfig.createSiteEntry(u2,p1);

-		Assert.assertEquals("3.1.0",s2.getURL(),u2);

-		Assert.assertEquals("3.1.1",s2.getSitePolicy(),p1);

-		s2.setSitePolicy(p2);

-		Assert.assertEquals("3.1.2",s2.getSitePolicy(),p2);

-		

-		// configure site tests

-		Assert.assertEquals("3.3.0",cfig.getConfiguredSites().length,0);

-		cfig.configureSite(s1);

-		Assert.assertEquals("3.3.1",cfig.getConfiguredSites().length,1);

-		cfig.configureSite(s2);

-		Assert.assertEquals("3.3.2",cfig.getConfiguredSites().length,2);

-		

-		// lookup site tests

-		Assert.assertEquals("3.4.0",cfig.findConfiguredSite(u1),s1);

-		Assert.assertEquals("3.4.1",cfig.findConfiguredSite(u2),s2);

-		Assert.assertNull("3.4.3",cfig.findConfiguredSite(u4));

-		

-		// unconfigure site tests

-		cfig.unconfigureSite(s1);

-		Assert.assertEquals("3.5.0",cfig.getConfiguredSites().length,1);

-		Assert.assertNull("3.5.1",cfig.findConfiguredSite(u1));		

-		cfig.unconfigureSite(s2);

-		Assert.assertEquals("3.5.2",cfig.getConfiguredSites().length,0);

-		Assert.assertNull("3.5.3",cfig.findConfiguredSite(u2));	

-	}

-	

-	public void testSaveRestore() throws Exception {

-				

-		Assert.assertNotNull("0.0 Unable to obtain temp directory",tempDir);

-		

-		// get new config object

-		IPlatformConfiguration cfig = null;

-		try {

-			cfig = BootLoader.getPlatformConfiguration(null);

-		} catch (IOException e) {

-			Assert.fail("0.0.0 "+e.toString());

-		}

-		ISiteEntry[] sites = cfig.getConfiguredSites();

-		Assert.assertEquals("0.0.1",sites.length,0);

-				

-		// create policies

-		ISitePolicy p1 = cfig.createSitePolicy(ISitePolicy.USER_INCLUDE, null);

-		ISitePolicy p2 = cfig.createSitePolicy(ISitePolicy.USER_EXCLUDE, new String[0]);		

-		ISitePolicy p3 = cfig.createSitePolicy(ISitePolicy.USER_INCLUDE, new String[] {"first"});

-		ISitePolicy p4 = cfig.createSitePolicy(ISitePolicy.USER_EXCLUDE, new String[] {"first", "second"});

-						

-		// create some urls

-		URL u1 = null;

-		URL u2 = null;

-		URL u3 = null;

-		URL u4 = null;

-

-		try {

-			u1 = new URL("file:d:/temp/");

-			u2 = new URL("file://localhost/temp/");

-			u3 = new URL("http://some.server/temp/");

-			u4 = new URL("http://another.server/temp/");

-			new URL("http://one.more.server/temp/");

-		} catch (MalformedURLException e) {

-			Assert.fail("1.0 unable to create URL "+e);

-		}

-		

-		// create and configure sites

-		ISiteEntry s1 = cfig.createSiteEntry(u1,p1);

-		cfig.configureSite(s1);

-		ISiteEntry s2 = cfig.createSiteEntry(u2,p2);

-		cfig.configureSite(s2);

-		ISiteEntry s3 = cfig.createSiteEntry(u3,p3);

-		cfig.configureSite(s3);

-		ISiteEntry s4 = cfig.createSiteEntry(u4,p4);

-		cfig.configureSite(s4);

-		sites = cfig.getConfiguredSites();

-		Assert.assertEquals("1.1",sites.length,4);

-		

-		// do save

-		try {

-			cfig.save();

-			Assert.fail("2.0 was expecting IOException");

-		} catch (IOException e) {

-		}

-		

-		URL cfigURL = null;

-		try {

-			cfigURL = new URL("file:"+tempDir+(new Date()).getTime()+"_platform.cfg");

-		} catch(MalformedURLException e) {

-			Assert.fail("2.1 unable to create URL "+e);

-		}

-		

-		try {

-			cfig.save(cfigURL);

-		} catch (IOException e) {

-			Assert.fail("2.2 "+e);

-		}

-		

-		// reload configuration	

-		try {

-			BootLoader.getPlatformConfiguration(cfigURL);

-		} catch (IOException e) {

-			Assert.fail("2.3 "+e.toString());

-		}

-		ISiteEntry[] newSites = cfig.getConfiguredSites();

-		Assert.assertEquals("2.4",newSites.length,4);

-		

-		// check what we've got

-		Assert.assertEquals("3.0.1",sites[0].getURL(),newSites[0].getURL());

-		Assert.assertEquals("3.0.2",sites[0].getSitePolicy().getType(),newSites[0].getSitePolicy().getType());

-		Assert.assertEquals("3.0.3",sites[0].getSitePolicy().getList(),newSites[0].getSitePolicy().getList());

-		

-		Assert.assertEquals("3.1.1",sites[1].getURL(),newSites[1].getURL());

-		Assert.assertEquals("3.1.2",sites[1].getSitePolicy().getType(),newSites[1].getSitePolicy().getType());

-		Assert.assertEquals("3.1.3",sites[1].getSitePolicy().getList(),newSites[1].getSitePolicy().getList());

-		

-		Assert.assertEquals("3.2.1",sites[2].getURL(),newSites[2].getURL());

-		Assert.assertEquals("3.2.2",sites[2].getSitePolicy().getType(),newSites[2].getSitePolicy().getType());

-		Assert.assertEquals("3.2.3",sites[2].getSitePolicy().getList(),newSites[2].getSitePolicy().getList());

-		

-		Assert.assertEquals("3.3.1",sites[3].getURL(),newSites[3].getURL());

-		Assert.assertEquals("3.3.2",sites[3].getSitePolicy().getType(),newSites[3].getSitePolicy().getType());

-		Assert.assertEquals("3.3.3",sites[3].getSitePolicy().getList(),newSites[3].getSitePolicy().getList());

-		

-	}

-	

-	public void testCurrentConfiguration() throws Exception {

-				

-		Assert.assertNotNull("0.0 Unable to obtain temp directory",tempDir);

-		

-		// get new config object

-		IPlatformConfiguration cfig = null;

-		cfig = BootLoader.getCurrentPlatformConfiguration();

-		cfig.getPluginPath();

-		cfig.save();

-	}

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgDefault.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgDefault.java
deleted file mode 100644
index e303fb0..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/core/boot/TestPlatCfgDefault.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.core.boot;

-

-import org.eclipse.core.boot.BootLoader;

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.core.boot.IPlatformConfiguration.ISiteEntry;

-import org.eclipse.core.boot.IPlatformConfiguration.ISitePolicy;

-

-public class TestPlatCfgDefault

-	extends PlatformConfigurationTestCase {

-		

-	public TestPlatCfgDefault(String arg0) {

-		super(arg0);

-	}

-	

-	public void testInitial() throws Exception {

-		IPlatformConfiguration cfig = null;

-		cfig = BootLoader.getCurrentPlatformConfiguration();

-		ISiteEntry se = cfig.getConfiguredSites()[0];

-		ISitePolicy sp = cfig.createSitePolicy(ISitePolicy.USER_EXCLUDE, new String[] {"1", "2","3","4","5","6","7","8","9","10","11","12"});

-		se.setSitePolicy(sp);

-		cfig.save();

-		System.out.println("done ...");

-	}

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTP.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTP.java
deleted file mode 100644
index 9f70081..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTP.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.implementation;

-

-import java.io.InputStream;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.IFeature;

-import org.eclipse.update.core.IFeatureReference;

-import org.eclipse.update.core.IPluginEntry;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.IURLEntry;

-import org.eclipse.update.core.model.InstallAbortedException;

-import org.eclipse.update.internal.core.*;

-

-public class SiteFTP implements ISite {

-

-	private URL url;

-	public SiteFTP(URL url){

-		this.url = url;

-	}

-

-	/*

-	 * @see ISite#getFeatureReferences()

-	 */

-	public ISiteFeatureReference[] getFeatureReferences() {

-		return null;

-	}

-

-	/*

-	 * @see ISite#install(IFeature, FeatureVerification verifier,IProgressMonitor)

-	 */

-	public IFeatureReference install(IFeature feature,IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException {

-		return null;

-	}

-

-	/*

-	 * @see ISite#remove(IFeature, IProgressMonitor)

-	 */

-	public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException {

-	}

-

-	/*

-	 * @see ISite#addSiteChangedListener(IConfiguredSiteChangedListener)

-	 */

-	public void addSiteChangedListener(IConfiguredSiteChangedListener listener) {

-	}

-

-	/*

-	 * @see ISite#removeSiteChangedListener(IConfiguredSiteChangedListener)

-	 */

-	public void removeSiteChangedListener(IConfiguredSiteChangedListener listener) {

-	}

-

-	/*

-	 * @see ISite#getURL()

-	 */

-	public URL getURL() {

-		return url;

-	}

-

-	/*

-	 * @see ISite#getType()

-	 */

-	public String getType() {

-		return "org.eclipse.update.tests.ftp";

-	}

-

-	/*

-	 * @see ISite#getCategories()

-	 */

-	public ICategory[] getCategories() {

-		return null;

-	}

-

-	/*

-	 * @see ISite#getArchives()

-	 */

-	public IArchiveReference[] getArchives() {

-		return null;

-	}

- 

-	/*

-	 * @see ISite#addCategory(ICategory)

-	 */

-	public void addCategory(ICategory category) {

-	}

-

-	/*

-	 * @see ISite#save()

-	 */

-	public void save() throws CoreException {

-	}

-

-	/*

-	 * @see IPluginContainer#getPluginEntries()

-	 */

-	public IPluginEntry[] getPluginEntries() {

-		return null;

-	}

-

-	/*

-	 * @see IPluginContainer#getPluginEntryCount()

-	 */

-	public int getPluginEntryCount() {

-		return 0;

-	}

-

-	/*

-	 * @see ISite#getDownloadSizeFor(IFeature)

-	 */

-	public long getDownloadSizeFor(IFeature feature) {

-		return 0;

-	}

-

-	/*

-	 * @see ISite#getInstallSizeFor(IFeature)

-	 */

-	public long getInstallSizeFor(IFeature feature) {

-		return 0;

-	}

-

-

-	/*

-	 * @see IPluginContainer#store(IPluginEntry, String, InputStream)

-	 */

-	public void store(IPluginEntry entry, String name, InputStream inStream) throws CoreException {

-	}

-

-	/*

-	 * @see IAdaptable#getAdapter(Class)

-	 */

-	public Object getAdapter(Class adapter) {

-		return null;

-	}

-

-	/*

-	 * @see IPluginContainer#remove(IPluginEntry)

-	 */

-	public void remove(IPluginEntry entry) throws CoreException {

-	}

-

-	/*

-	 * @see ISite#setSiteContentConsumer(ISiteContentConsumer)

-	 */

-	public void setSiteContentConsumer(ISiteContentConsumer contentConsumer) {

-	}

-

-	/*

-	 * @see ISite#setSiteContentProvider(ISiteContentProvider)

-	 */

-	public void setSiteContentProvider(ISiteContentProvider siteContentProvider) {

-	}

-

-	/*

-	 * @see ISite#getSiteContentProvider()

-	 */

-	public ISiteContentProvider getSiteContentProvider() {

-		return null;

-	}

-

-	/*

-	 * @see ISite#getDefaultPackagedFeatureType()

-	 */

-	public String getDefaultPackagedFeatureType() {

-		return null;

-	}

-

-	/*

-	 * @see ISite#store(IFeature, String, InputStream, IProgressMonitor)

-	 */

-	public void store(IFeature feature, String name, InputStream inStream, IProgressMonitor monitor) throws CoreException {

-	}

-

-

-	/*

-	 * @see IPluginContainer#remove(IPluginEntry, IProgressMonitor)

-	 */

-	public void remove(IPluginEntry entry, IProgressMonitor monitor) throws CoreException {

-	}

-

-	/*

-	 * @see ISite#getCategory(String)

-	 */

-	public ICategory getCategory(String key) {

-		return null;

-	}

-

-	/*

-	 * @see ISite#createSiteContentConsumer(IFeature)

-	 */

-	public ISiteContentConsumer createSiteContentConsumer(IFeature feature) throws CoreException {

-		return null;

-	}

-

-	/*

-	 * @see ISite#getFeatureReference(IFeature)

-	 */

-	public ISiteFeatureReference getFeatureReference(IFeature feature) {

-		return null;

-	}

-

-	/*

-	 * @see ISite#getDescription()

-	 */

-	public IURLEntry getDescription() {

-		return null;

-	}

-

-	/*

-	 * @see ISite#getPluginEntriesOnlyReferencedBy(IFeature)

-	 */

-	public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature) throws CoreException {

-		return null;

-	}

-

-	/**

-	 * @see ISite#addPluginEntry(IPluginEntry)

-	 */

-	public void addPluginEntry(IPluginEntry pluginEntry) {

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#install(IFeature, IFeatureReference[], IVerificationListener, IProgressMonitor)

-	 */

-	public IFeatureReference install(IFeature feature, IFeatureReference[] optionalfeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException {

-		return null;

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#getConfiguredSite()

-	 */

-	public IConfiguredSite getCurrentConfiguredSite() {

-		return null;

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#createFeature(String, URL)

-	 */

-	public IFeature createFeature(String type, URL url) throws CoreException {

-		return null;

-	}

-

-	/**

-	 * @see org.eclipse.update.core.ISite#createFeature(java.lang.String, java.net.URL, org.eclipse.core.runtime.IProgressMonitor)

-	 */

-	public IFeature createFeature(String type, URL url, IProgressMonitor monitor) throws CoreException {

-		return null;

-	}

-

-

-	/**

-	 * @see org.eclipse.update.core.ISite#getRawFeatureReferences()

-	 */

-	public ISiteFeatureReference[] getRawFeatureReferences() {

-		return null;

-	}

-

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTPFactory.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTPFactory.java
deleted file mode 100644
index 03cb986..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/implementation/SiteFTPFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.implementation;

-import java.io.IOException;

-import java.io.InputStream;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.URLEncoder;

-

-public class SiteFTPFactory extends SiteModelFactory implements ISiteFactory {

-

-	public static final String FILE = "a/b/c/";

-

-	/*

-	 * @see ISiteFactory#createSite(URL, boolean)

-	 */

-	public ISite createSite(URL url)

-		throws CoreException, InvalidSiteTypeException {

-		ISite site = null;

-		InputStream siteStream = null;

-

-		try {

-			URL resolvedURL = URLEncoder.encode(url);

-			siteStream = resolvedURL.openStream();

-

-			SiteModelFactory factory = (SiteModelFactory) this;

-			factory.parseSite(siteStream);

-

-			site = new SiteFTP(new URL("http://eclipse.org/" + FILE));

-			

-		} catch (MalformedURLException e) {

-			throw Utilities.newCoreException("Unable to create URL", e);

-		} catch (IOException e) {

-			throw Utilities.newCoreException("Unable to access URL",ISite.SITE_ACCESS_EXCEPTION, e);

-		} finally {

-			try {

-				siteStream.close();

-			} catch (Exception e) {

-			}

-		}

-		return site;

-	}

-

-	/*

-	 * @see SiteModelFactory#canParseSiteType(String)

-	 */

-	public boolean canParseSiteType(String type) {

-		return "org.eclipse.update.tests.core.ftp".equalsIgnoreCase(type);

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/AllModelTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/AllModelTests.java
deleted file mode 100644
index dad8de5..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/AllModelTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.model;

-import junit.framework.Test;

-import junit.framework.TestSuite;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-/**

- * Manages the API tests

- */

-public class AllModelTests extends UpdateManagerTestCase {

-	/**

-	 * Constructor

-	 */

-	public AllModelTests(String name) {

-		super(name);

-	}

-	

-	/**

-	 * List of API tests

-	 */

-	public static Test suite() throws Exception {

-		TestSuite suite = new TestSuite();

-		suite.setName("Model Tests");

-

-		suite.addTest(new TestSuite(FeatureMain.class));

-		suite.addTest(new TestSuite(SiteMain.class));		

-

-		return suite;

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/FeatureMain.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/FeatureMain.java
deleted file mode 100644
index 4ec15e7..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/FeatureMain.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.model;

-

-import java.io.*;

-import java.net.URL;

-import java.util.ResourceBundle;

-

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class FeatureMain extends UpdateManagerTestCase {

-

-	public FeatureMain(String testcase){

-		super(testcase);

-	}

-

-	public void testMain() throws Exception {

-		

-		FeatureModelFactory factory = new FeatureModelFactory();

-		InputStream is = null;

-		FeatureModel feature = null;

-		PrintWriter w = new PrintWriter(System.out);

-		

-		w.println("Parsing feature ...");

-		try {

-			is = FeatureMain.class.getResourceAsStream("feature.xml");		

-			feature = factory.parseFeature(is);

-		} finally {

-			if (is != null) {

-				try { is.close();} catch(IOException e) {}

-			}

-		}

-		

-		String base = "http://another.server/feature.xml";

-		w.println("Resolving feature using "+base+" ...");

-		ResourceBundle bundle = null;

-		bundle = ResourceBundle.getBundle("org/eclipse/update/tests/model/test");

-		feature.resolve(new URL(base), new URL(base));

-				

-		w.close();

-	}

-	

-	private static void writeFeature(PrintWriter w, int level, FeatureModel feature) {

-		if (feature == null) return;

-		

-		String in = getIndent(level);

-		w.println(in+"<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

-		

-		w.println(in+"<feature");

-		w.println(in+"   "+"id=\""+feature.getFeatureIdentifier()+"\"");

-		w.println(in+"   "+"version=\""+feature.getFeatureVersion()+"\"");

-		w.println(in+"   "+"label=\""+feature.getLabel()+"\"");

-		w.println(in+"   "+"provider-name=\""+feature.getProvider()+"\"");

-		w.println(in+"   "+"image=\""+feature.getImageURLString()+"\" -> "+feature.getImageURL());

-		w.println(in+"   "+"os=\""+feature.getOS()+"\"");

-		w.println(in+"   "+"ws=\""+feature.getWS()+"\"");

-		w.println(in+"   "+"nl=\""+feature.getNL()+"\"");

-		w.println(in+"   "+"application=\""+feature.getApplication()+"\"");

-		w.println(in+"   "+">");

-		

-		writeDescription(w, level+1, feature.getDescriptionModel());

-		writeCopyright(w, level+1, feature.getCopyrightModel());

-		writeLicense(w, level+1, feature.getLicenseModel());

-		writeURLs(w, level+1, feature);

-		writePrereqs(w, level+1, feature);

-		writePluginEntries(w, level+1, feature);

-		writeNonPluginEntries(w, level+1, feature);

-		         

-        w.println(in+"</feature>");

-	}

-	

-	private static void writeDescription(PrintWriter w, int level, URLEntryModel ue) {

-		String in = getIndent(level);

-		w.println("");

-		w.println(in+"<description url=\""+ue.getURLString()+"\" -> "+ue.getURL()+">");

-		w.println(in+ue.getAnnotation());

-		w.println(in+"</description>");

-	}

-	

-	private static void writeCopyright(PrintWriter w, int level, URLEntryModel ue) {

-		String in = getIndent(level);

-		w.println("");

-		w.println(in+"<copyright url=\""+ue.getURLString()+"\" -> "+ue.getURL()+">");

-		w.println(in+ue.getAnnotation());

-		w.println(in+"</copyright>");

-	}

-	

-	private static void writeLicense(PrintWriter w, int level, URLEntryModel ue) {

-		String in = getIndent(level);

-		w.println("");

-		w.println(in+"<license url=\""+ue.getURLString()+"\" -> "+ue.getURL()+">");

-		w.println(in+ue.getAnnotation());

-		w.println(in+"</license>");

-	}

-	

-	private static void writeURLs(PrintWriter w, int level, FeatureModel feature) {

-		String in = getIndent(level);

-		String in2 = getIndent(level+1);

-		w.println("");

-		w.println(in+"<url>");

-		

-		URLEntryModel update = feature.getUpdateSiteEntryModel();

-		w.println(in2+"<update");

-		w.println(in2+"   "+"url=\""+update.getURLString()+"\" -> "+update.getURL());

-		w.println(in2+"   "+"label=\""+update.getAnnotation()+"\"");

-		w.println(in2+"   "+"/>");

-		

-		URLEntryModel[] discovery = feature.getDiscoverySiteEntryModels();

-		for (int i=0; i<discovery.length; i++) {

-			w.println(in2+"<discovery");

-			w.println(in2+"   "+"url=\""+discovery[i].getURLString()+"\" -> "+discovery[i].getURL());

-			w.println(in2+"   "+"label=\""+discovery[i].getAnnotation()+"\"");

-			w.println(in2+"   "+"/>");

-		}

-		

-		w.println(in+"</url>");

-	}

-	

-	private static void writePrereqs(PrintWriter w, int level, FeatureModel feature) {

-		String in = getIndent(level);

-		String in2 = getIndent(level+1);

-		w.println("");

-		w.println(in+"<requires>");

-		

-		ImportModel[] imp = feature.getImportModels();

-		for (int i=0; i<imp.length; i++) {

-			w.println(in2+"<import");

-			w.println(in2+"   "+"plugin=\""+imp[i].getIdentifier()+"\"");

-			w.println(in2+"   "+"version=\""+imp[i].getVersion()+"\"");

-			w.println(in2+"   "+"match=\""+imp[i].getMatchingRuleName()+"\"");

-			w.println(in2+"   "+"/>");

-		}

-		

-		w.println(in+"</requires>");

-	}

-	

-	private static void writePluginEntries(PrintWriter w, int level, FeatureModel feature) {

-		String in = getIndent(level);

-		w.println("");

-		

-		PluginEntryModel[] plugin = feature.getPluginEntryModels();

-		for (int i=0; i<plugin.length; i++) {

-			w.println(in+"<plugin");

-			w.println(in+"   "+"id=\""+plugin[i].getPluginIdentifier()+"\"");

-			w.println(in+"   "+"version=\""+plugin[i].getPluginVersion()+"\"");

-			w.println(in+"   "+"fragment=\""+plugin[i].isFragment()+"\"");

-			w.println(in+"   "+"os=\""+plugin[i].getOS()+"\"");

-			w.println(in+"   "+"ws=\""+plugin[i].getWS()+"\"");

-			w.println(in+"   "+"nl=\""+plugin[i].getNL()+"\"");

-			w.println(in+"   "+"download-size=\""+plugin[i].getDownloadSize()+"\"");

-			w.println(in+"   "+"install-size=\""+plugin[i].getInstallSize()+"\"");

-			w.println(in+"   "+"/>");

-		}

-	}

-	

-	private static void writeNonPluginEntries(PrintWriter w, int level, FeatureModel feature) {

-		String in = getIndent(level);

-		w.println("");

-		

-		NonPluginEntryModel[] data = feature.getNonPluginEntryModels();

-		for (int i=0; i<data.length; i++) {

-			w.println(in+"<data");

-			w.println(in+"   "+"id=\""+data[i].getIdentifier()+"\"");

-			w.println(in+"   "+"download-size=\""+data[i].getDownloadSize()+"\"");

-			w.println(in+"   "+"install-size=\""+data[i].getInstallSize()+"\"");

-			w.println(in+"   "+"/>");

-		}

-	}

-	

-	

-	private static String getIndent(int level) {

-		String indent = "";

-		for (int i=0; i<level; i++) 

-			indent += "   ";

-		return indent;

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/SiteMain.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/SiteMain.java
deleted file mode 100644
index 890837d..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/SiteMain.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.model;

-

-import java.io.*;

-import java.net.URL;

-

-import org.eclipse.update.core.SiteFeatureReferenceModel;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class SiteMain extends UpdateManagerTestCase {

-	

-	public SiteMain(String name){

-		super(name);

-	}

-

-	public void testMain() throws Exception {

-		

-		PrintWriter w = new PrintWriter(System.out);

-		process("site_old_format.xml",w);

-		process("site.xml",w);

-		try {

-			process("site_with_type.xml",w);

-			fail("InvalidSiteTypeException not thrown");

-		} catch (InvalidSiteTypeException e) {

-			assertEquals(e.getNewType(),"some.other.site.type");

-		} finally {

-			w.close();

-		}

-	}

-	

-	private static void process(String xml, PrintWriter w) throws Exception {

-		

-		SiteModelFactory factory = new SiteModelFactory();

-		InputStream is = null;

-		SiteModel site = null;

-		

-		w.println("");

-		w.println("Parsing site map ...");

-		try {

-			is = SiteMain.class.getResourceAsStream(xml);		

-			site = factory.parseSite(is);

-		}  finally {

-			if (is != null) {

-				try { is.close();} catch(IOException e) {}

-			}

-		}

-		

-		if (site == null) return;

-		

-		String base = "http://another.server/site.xml";

-		w.println("Resolving site using "+base+" ...");

-		site.resolve(new URL(base), null);

-		

-		w.println("Writing site ...");

-		writeSite(w,0,site);

-	}

-	

-	private static void writeSite(PrintWriter w, int level, SiteModel site) {

-		if (site == null) return;

-		

-		String in = getIndent(level);

-		w.println(in+"<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

-		

-		w.println(in+"<site");

-		w.println(in+"   "+"type=\""+site.getType()+"\"");

-		w.println(in+"   "+">");

-		

-		writeDescription(w, level+1, site.getDescriptionModel());

-		writeFeatures(w, level+1, site);

-		writeArchives(w, level+1, site);

-		writeCategoryDefs(w, level+1, site);

-         

-        w.println(in+"</feature>");

-	}

-	

-	private static void writeDescription(PrintWriter w, int level, URLEntryModel ue) {

-		if (ue == null) return;

-		String in = getIndent(level);

-		w.println("");

-		w.println(in+"<description url=\""+ue.getURLString()+"\" -> "+ue.getURL()+">");

-		w.println(in+ue.getAnnotation());

-		w.println(in+"</description>");

-	}

-	

-	private static void writeFeatures(PrintWriter w, int level, SiteModel site) {

-		String in = getIndent(level);

-		getIndent(level+1);

-		w.println("");

-		

-		SiteFeatureReferenceModel[] features = site.getFeatureReferenceModels();

-		for (int i=0; i<features.length; i++) {

-			w.println(in+"<feature");

-			w.println(in+"   "+"type=\""+features[i].getType()+"\"");

-			w.println(in+"   "+"url=\""+features[i].getURLString()+"\" -> "+features[i].getURL());

-			w.println(in+"   "+">");

-			writeCategories(w, level+1, features[i]);

-			w.println(in+"</feature>");

-		}

-	}

-	

-	private static void writeArchives(PrintWriter w, int level, SiteModel site) {

-		String in = getIndent(level);

-		w.println("");

-		

-		ArchiveReferenceModel[] archive = site.getArchiveReferenceModels();

-		for (int i=0; i<archive.length; i++) {

-			w.println(in+"<archive");

-			w.println(in+"   "+"path=\""+archive[i].getPath()+"\"");

-			w.println(in+"   "+"url=\""+archive[i].getURLString()+"\" -> "+archive[i].getURL());

-			w.println(in+"   "+"/>");

-		}

-	}

-	

-	private static void writeCategoryDefs(PrintWriter w, int level, SiteModel site) {

-		String in = getIndent(level);

-		getIndent(level+1);

-		w.println("");

-		

-		CategoryModel[] cat = site.getCategoryModels();

-		for (int i=0; i<cat.length; i++) {

-			w.println(in+"<category-def");

-			w.println(in+"   "+"name=\""+cat[i].getName()+"\"");

-			w.println(in+"   "+"label=\""+cat[i].getLabel()+"\"");

-			w.println(in+"   "+">");

-			writeDescription(w, level+1, cat[i].getDescriptionModel());

-			w.println(in+"</category-def>");

-		}

-	}

-	

-	private static void writeCategories(PrintWriter w, int level, SiteFeatureReferenceModel feature) {

-		String in = getIndent(level);

-		String[] cat = feature.getCategoryNames();

-		for (int i=0; i<cat.length; i++) {

-			w.println(in+"<category name=\""+cat[i]+"\"");

-		}

-	}

-	

-	private static String getIndent(int level) {

-		String indent = "";

-		for (int i=0; i<level; i++) 

-			indent += "   ";

-		return indent;

-	}

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/feature.xml b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/feature.xml
deleted file mode 100644
index 1db9650..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/feature.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<feature id="my.feature" version="3.7.1" label="%s1" provider-name="VK Inc."

-         image="images/feature.gif" os="Win32" ws="Win32" nl="en_CA,en_US"

-         application="org.eclipse.ui.workbench">

-

-   <install-handler url="install/handler.html" library="custom.jar" class="InstallHandler"/>

-   

-   <description url="http://www.tools.com/features/my.feature">

-      Description of my.feature

-   </description>

-   

-   <copyright url="copyright/my.feature">

-      Copyright for my.feature

-   </copyright>

-   

-   <license url="%url1">

-      License for my.feature

-   </license>

-   

-   <url>

-      <update url="http://www.tools.com/update" label="Update site"/>

-      <discovery url="http://www.tools.com/discovery1" label="%s2"/>

-      <discovery url="%url2" label="%s3 Discovery site 2"/>

-      <discovery url="%url3 http://www.tools.com/discovery3" label="Discovery site 3"/>

-   </url>

-   

-   <requires>

-      <import plugin="plugin.1" version="1.0.0" match="perfect"/>

-      <import plugin="plugin.2" version="3.2.0"/>

-      <import plugin="plugin.3"/>

-   </requires>

-   

-   <plugin id="my.plugin.1" version="1.0.0" fragment="true"

-           os="Win32" ws="Win32" nl="en_US" download-size="23456" install-size="1234567"/>

-   <plugin id="my.plugin.2" version="1.0.1"/>

-   <plugin id="my.plugin.3" version="1.0.2"/>

-   

-   <data id="examples.zip" download-size="23456" install-size="1234567"/>

-   <data id="custom/rt.jar"/>

-

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site.xml b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site.xml
deleted file mode 100644
index 7516f26..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<site>

-

-   <description url="http://www.tools.com/updateSite">

-      Site description

-   </description>

-

-   <feature type="my.feature.type" url="feature1.jar">

-      <category name="tools"/>

-      <category name="utilities"/>

-      <category name="windows.tools"/>

-   </feature>

-   

-   <feature type="" url="file:/feature2.jar">

-      <category name="utilities"/>

-   </feature>

-   

-   

-   <archive path="first/archive" url="archive1.jar"/>

-   <archive path="second/archive" url="archive2.jar"/>

-   

-   <category-def name="tools" label="Development Tools">

-      <description url="http://www.tools.com/tools">

-         This is description for tools

-      </description>

-   </category-def>

-   

-   <category-def name="utilities" label="Utilities">

-      <description url="tools.html"/>/

-   </category-def>

-   

-   <category-def name="windows.tools" label="Windows Development Tools"/>

-

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_old_format.xml b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_old_format.xml
deleted file mode 100644
index dd10ef7..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_old_format.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<site url="www.tools.com/updateSite">

-

-   <feature type="my.feature.type" url="feature1.jar">

-      <category name="tools"/>

-      <category name="utilities"/>

-      <category name="windows.tools"/>

-   </feature>

-   

-   <feature type="" url="feature2.jar">

-      <category name="utilities"/>

-   </feature>

-  

-   <archive path="first/archive" url="archive1.jar"/>

-   <archive path="second/archive" url="archive2.jar"/>

-   

-   <category-def name="tools" label="Development Tools">

-      <description url="http://www.tools.com/tools">

-         This is description for tools

-      </description>

-   </category-def>

-   

-   <category-def name="utilities" label="Utilities">

-      <description url="utilities.html"/>

-   </category-def>

-   

-   <category-def name="windows.tools" label="Windows Development Tools"/>

-

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_with_type.xml b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_with_type.xml
deleted file mode 100644
index 2ee3a3f..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/site_with_type.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<site url="http://www.tools.com/updateSite" type="some.other.site.type">

-

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/test.properties b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/test.properties
deleted file mode 100644
index 4201818..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/model/test.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-s1 = String 1

-s2 = String 2

-url1 = relative/index.html

-url2 = http://some.server/tools.html

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nativeTests/TestLocalSystemInfo.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nativeTests/TestLocalSystemInfo.java
deleted file mode 100644
index ffcccbd..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nativeTests/TestLocalSystemInfo.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.nativeTests;
-import java.io.File;
-
-import org.eclipse.update.configuration.IVolume;
-import org.eclipse.update.configuration.LocalSystemInfo;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-public class TestLocalSystemInfo extends UpdateManagerTestCase {
-
-	/**
-	 * Test the natives
-	 */
-	public TestLocalSystemInfo(String arg0) {
-		super(arg0);
-	}
-
-	public void testNative() throws Exception {
-	
-		// mount point
-       IVolume[] a = LocalSystemInfo.getVolumes();
-        if (a==null) throw new Exception("cannot find native library");
-		System.out.println("Found "+a.length+" mount points.");
-		for (int i =0; i<a.length;i++){
-			System.out.print("#"+i+" - "+a[i]);
-			
-			File root = a[i].getFile();
-			String label = a[i].getLabel();
-			if (label==null) label="NO LABEL";
-			int type = a[i].getType();
-			long size = LocalSystemInfo.getFreeSpace(root);
-			System.out.println(" ->:"+label+":"+getType(type)+":"+getSize(size));
-		}
-	}
-	
-	private String getType(int type){
-		switch (type) {
-			case LocalSystemInfo.VOLUME_FIXED :
-				return "VOLUME FIXED";
-			case LocalSystemInfo.VOLUME_REMOTE :
-				return "VOLUME REMOTE";
-			case LocalSystemInfo.VOLUME_REMOVABLE :
-				return "VOLUME REMOVABLE";
-			case LocalSystemInfo.VOLUME_CDROM :
-				return "VOLUME CDROM";				
-			case LocalSystemInfo.VOLUME_UNKNOWN :
-				return "VOLUME UNKNOWN";
-			default :
-				return "WRONG VOLUME INFO";
-		}
-	}
-	
-	private String getSize(long size){
-		if (size==LocalSystemInfo.SIZE_UNKNOWN) return "UNKNOWN SIZE";
-		
-		long kb = size/(1024*1024);
-		return new String(size+" ("+kb+"MB)");
-	}
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/AllNestedTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/AllNestedTests.java
deleted file mode 100644
index dc233c0..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/AllNestedTests.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.nestedfeatures;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-import junit.framework.*;
-
-public class AllNestedTests extends UpdateManagerTestCase {
-public AllNestedTests(String name) {
-	super(name);
-}
-public static Test suite() {
-	TestSuite suite = new TestSuite();
-	suite.setName("Nested Install Tests");
-	
-	// the following will take all teh test methods in teh class that start with 'test'
-
-	suite.addTest(new TestSuite(TestInstall.class));
-
-	// or you can specify the method
-	//suite.addTest(new TestGetFeature("methodThatDoesNotStartWithtest"));	
-	
-	return suite;
-}
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/TestInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/TestInstall.java
deleted file mode 100644
index 6325657..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/nestedfeatures/TestInstall.java
+++ /dev/null
@@ -1,294 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.nestedfeatures;
-import java.io.File;
-import java.net.URL;
-
-import org.eclipse.update.configuration.IConfiguredSite;
-import org.eclipse.update.configuration.ILocalSite;
-import org.eclipse.update.core.*;
-import org.eclipse.update.internal.core.*;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-public class TestInstall extends UpdateManagerTestCase {
-
-	/**
-	 * Constructor for Test1
-	 */
-	public TestInstall(String arg0) {
-		super(arg0);
-	}
-
-	public void testFileSite() throws Exception {
-
-		ISite remoteSite =
-			SiteManager.getSite(new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest/site.xml"));
-		IFeature remoteFeature = remoteSite.getFeatureReferences()[0].getFeature();
-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);
-		localSite.install(remoteFeature, null, null);
-
-		// verify root Feature
-		String site = localSite.getURL().getFile();
-		IPluginEntry[] entries = remoteFeature.getPluginEntries();
-		assertTrue("no plugins entry", (entries != null && entries.length != 0));
-		String pluginName = entries[0].getVersionedIdentifier().toString();
-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-		assertTrue(
-			"plugin files not installed locally:" + pluginFile,
-			pluginFile.exists());
-		File pluginXMLFile =
-			new File(
-				site,
-				Site.DEFAULT_PLUGIN_PATH + pluginName + File.separator + "plugin.xml");
-		assertTrue("plugin.xml file not installed locally", pluginXMLFile.exists());
-
-		File featureFile =
-			new File(
-				site,
-				Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ remoteFeature.getVersionedIdentifier().toString());
-		assertTrue(
-			"feature info not installed locally:" + featureFile,
-			featureFile.exists());
-
-		// clean plugins & feature
-		for (int i = 0; i < entries.length; i++) {
-			pluginName = entries[0].getVersionedIdentifier().toString();
-			pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-			UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		}
-		UpdateManagerUtils.removeFromFileSystem(featureFile);
-
-		// verify child Feature
-		IFeature childFeature =
-			remoteFeature.getIncludedFeatureReferences()[0].getFeature();
-		entries = childFeature.getPluginEntries();
-		assertTrue("no plugins entry", (entries != null && entries.length != 0));
-		pluginName = entries[0].getVersionedIdentifier().toString();
-		pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-		assertTrue(
-			"plugin files not installed locally:" + pluginFile,
-			pluginFile.exists());
-		pluginXMLFile =
-			new File(
-				site,
-				Site.DEFAULT_PLUGIN_PATH + pluginName + File.separator + "plugin.xml");
-		assertTrue("plugin.xml file not installed locally", pluginXMLFile.exists());
-
-		featureFile =
-			new File(
-				site,
-				Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ childFeature.getVersionedIdentifier().toString());
-		assertTrue(
-			"feature info not installed locally:" + featureFile,
-			featureFile.exists());
-
-		// clean plugins
-		for (int i = 0; i < entries.length; i++) {
-			pluginName = entries[0].getVersionedIdentifier().toString();
-			pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-			UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		}
-
-		// clean features
-		UpdateManagerUtils.removeFromFileSystem(featureFile);
-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));
-	}
-
-	/**
-	 * 
-	 */
-	public void testHTTPSite() throws Exception {
-
-		ISite remoteSite =
-			SiteManager.getSite(new URL(SOURCE_HTTP_SITE, "nestedFeatureSiteTest/"));
-		IFeatureReference[] features = remoteSite.getFeatureReferences();
-		IFeature remoteFeature = null;
-
-		if (features == null || features.length == 0)
-			fail("No features on the site");
-
-		for (int i = 0; i < features.length; i++) {
-			if (features[i].getURL().toExternalForm().endsWith("rootfeature.jar")) {
-				remoteFeature = features[i].getFeature();
-				break;
-			}
-		}
-
-		assertNotNull("Cannot find rootfeature.jar on site", remoteFeature);
-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);
-		localSite.install(remoteFeature, null, null);
-
-		// rootfeature.jar should not be in the local site
-		IFeatureReference[] localFeatures = localSite.getFeatureReferences();
-		if (localFeatures == null || localFeatures.length == 0)
-			fail("No features on the target site");
-
-		boolean found = false;
-		for (int i = 0; i < localFeatures.length; i++) {
-			if (localFeatures[i].getURL().toExternalForm().endsWith("rootfeature.jar")) {
-				found = true;
-				break;
-			}
-		}
-
-		assertTrue(
-			"Found rootfeature.jar on target site. Target site feature ref shouldnot contain JAR file",
-			!found);
-
-		// check root
-		String site = localSite.getURL().getFile();
-		IPluginEntry[] entries = remoteFeature.getPluginEntries();
-		assertTrue("no plugins entry", (entries != null && entries.length != 0));
-
-		String pluginName = entries[0].getVersionedIdentifier().toString();
-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-		assertTrue(
-			"plugin files not installed locally:" + pluginFile,
-			pluginFile.exists());		
-		File pluginXMLFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName+ File.separator + "plugin.xml");
-		assertTrue(
-			"plugin info not installed locally:" + pluginXMLFile,
-			pluginXMLFile.exists());
-
-		File featureFile =
-			new File(
-				site,
-				Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ remoteFeature.getVersionedIdentifier().toString());
-		assertTrue("feature info not installed locally", featureFile.exists());
-
-		// clean plugins & feature
-		for (int i = 0; i < entries.length; i++) {
-			pluginName = entries[0].getVersionedIdentifier().toString();
-			pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-			UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		}
-		UpdateManagerUtils.removeFromFileSystem(featureFile);
-
-		// verify child Feature
-		IFeature childFeature =
-			remoteFeature.getIncludedFeatureReferences()[0].getFeature();
-		entries = childFeature.getPluginEntries();
-		assertTrue("no plugins entry", (entries != null && entries.length != 0));
-		pluginName = entries[0].getVersionedIdentifier().toString();
-		pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-		assertTrue(
-			"plugin files not installed locally:" + pluginFile,
-			pluginFile.exists());
-		pluginXMLFile =
-			new File(
-				site,
-				Site.DEFAULT_PLUGIN_PATH + pluginName + File.separator + "plugin.xml");
-		assertTrue("plugin.xml file not installed locally", pluginXMLFile.exists());
-
-		featureFile =
-			new File(
-				site,
-				Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ childFeature.getVersionedIdentifier().toString());
-		assertTrue(
-			"feature info not installed locally:" + featureFile,
-			featureFile.exists());
-
-		// clean plugins
-		for (int i = 0; i < entries.length; i++) {
-			pluginName = entries[0].getVersionedIdentifier().toString();
-			pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);
-			UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		}
-
-		// clean features
-		UpdateManagerUtils.removeFromFileSystem(featureFile);
-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));
-	}
-
-	public void testInstall() throws Exception {
-
-		// cleanup local files...
-		URL localURL = ((SiteLocal) SiteManager.getLocalSite()).getLocationURL();
-		File localFile =
-			new File(new URL(localURL, SiteLocal.SITE_LOCAL_FILE).getFile());
-		UpdateManagerUtils.removeFromFileSystem(localFile);
-
-		URL INSTALL_SITE = null;
-		try {
-			INSTALL_SITE = new URL(SOURCE_FILE_SITE, "nestedFeatureSiteTest/site.xml");
-		} catch (Exception e) {
-			fail(e.toString());
-			e.printStackTrace();
-		}
-
-		ISite remoteSite = SiteManager.getSite(INSTALL_SITE);
-		IFeatureReference[] features = remoteSite.getFeatureReferences();
-		IFeature remoteFeature = null;
-
-		if (features == null || features.length == 0)
-			fail("No features on the site");
-
-		for (int i = 0; i < features.length; i++) {
-			if (features[i].getURL().toExternalForm().endsWith("rootfeature.jar")) {
-				remoteFeature = features[i].getFeature();
-				break;
-			}
-		}
-
-		assertNotNull("Cannot find rootfeature.jar on site", remoteFeature);
-		ILocalSite localSite = SiteManager.getLocalSite();
-		IConfiguredSite site =
-			localSite.getCurrentConfiguration().getConfiguredSites()[0];
-
-		((ConfiguredSite)site).setUpdatable(true);
-		site.install(remoteFeature, null, null);
-
-		IPluginEntry[] entries = remoteFeature.getPluginEntries();
-		assertTrue("no plugins entry", (entries != null && entries.length != 0));
-
-		String sitePath = site.getSite().getURL().getFile();
-		String pluginName = entries[0].getVersionedIdentifier().toString();
-		File pluginFile = new File(sitePath, Site.DEFAULT_PLUGIN_PATH + pluginName);
-		assertTrue("plugin info not installed locally"+pluginFile, pluginFile.exists());
-
-		File featureFile =
-			new File(
-				sitePath,
-				Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ remoteFeature.getVersionedIdentifier().toString());
-		assertTrue("feature info not installed locally", featureFile.exists());
-
-		//cleanup
-		File file =
-			new File(
-				site.getSite().getURL().getFile()
-					+ File.separator
-					+ Site.DEFAULT_INSTALLED_FEATURE_PATH
-					+ remoteFeature.getVersionedIdentifier());
-		// clean plugins
-		for (int i = 0; i < entries.length; i++) {
-			pluginName = entries[0].getVersionedIdentifier().toString();
-			pluginFile =
-				new File(
-					site.getSite().getURL().getFile(),
-					Site.DEFAULT_PLUGIN_PATH + pluginName);
-			UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		}
-
-		UpdateManagerUtils.removeFromFileSystem(file);
-		UpdateManagerUtils.removeFromFileSystem(pluginFile);
-		UpdateManagerUtils.removeFromFileSystem(localFile);
-		UpdateManagerUtils.removeFromFileSystem(
-			new File(
-				((InstallConfiguration) localSite.getCurrentConfiguration())
-					.getURL()
-					.getFile()));
-	}
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/AllParserTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/AllParserTests.java
deleted file mode 100644
index 4cc01a9..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/AllParserTests.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.parser;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllParserTests extends UpdateManagerTestCase {

-public AllParserTests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Parsing Tests");

-	

-	// the following will take all teh test methods in teh class that start with 'test'

-	suite.addTest(new TestSuite(TestFeatureParse.class));

-	suite.addTest(new TestSuite(TestSiteParse.class));	

-	suite.addTest(new TestSuite(TestCategories.class));		

-	

-	// or you can specify the method

-	//suite.addTest(new TestGetFeature("methodThatDoesNotStartWithtest"));	

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestCategories.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestCategories.java
deleted file mode 100644
index a150186..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestCategories.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.parser;

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestCategories extends UpdateManagerTestCase {

-	/**

-	 * Constructor for Test1

-	 */

-	public TestCategories(String arg0) {

-		super(arg0);

-	}

-

-	public void testCategories() throws Exception {

-

-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "xmls/site1/");

-		ISite remoteSite = SiteManager.getSite(remoteUrl);

-

-		ISiteFeatureReference[] feature = remoteSite.getFeatureReferences();

-		//ICategory[] categories = remoteSite.getCategories();

-

-		ICategory featureCategory = feature[0].getCategories()[0];

-

-		assertEquals("UML tools", featureCategory.getLabel());

-

-	}

-

-	public void testOrderedCategories() throws Exception {

-

-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "xmls/site1/");

-		ISite remoteSite = SiteManager.getSite(remoteUrl);

-

-		ICategory[] categories = remoteSite.getCategories();

-		for (int i = 0; i < categories.length; i++) {

-			System.out.println("Cat ordered->" + categories[i].getName());

-		}

-

-		assertEquals("Eclipse tools", categories[1].getLabel());

-

-	}

-

-	public void testTranslatedCategories() throws Exception {

-

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-

-		ICategory[] categories = remoteSite.getCategories();

-

-		assertEquals("Required Drivers", categories[0].getLabel());

-

-	}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestFeatureParse.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestFeatureParse.java
deleted file mode 100644
index 48d30ab..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestFeatureParse.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.parser;

-

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.DefaultFeatureParser;

-import org.eclipse.update.core.model.FeatureModel;

-import org.eclipse.update.core.model.URLEntryModel;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import org.xml.sax.SAXParseException;

-

-public class TestFeatureParse extends UpdateManagerTestCase {

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestFeatureParse(String arg0) {

-		super(arg0);

-	}

-

-	public void testParse() throws Exception {

-

-		String xmlFile = "xmls/feature_1.0.0/";

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE);

-		URL url = UpdateManagerUtils.getURL(remoteSite.getURL(), xmlFile, null);

-

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(remoteSite);

-		ref.setURL(url);

-		IFeature feature = ref.getFeature();

-

-		String prov = feature.getProvider();

-		assertEquals("Object Technology International", prov);

-

-	}

-

-	public void testParseValid1() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/feature1.xml");

-			DefaultFeatureParser parser = new DefaultFeatureParser();

-			parser.init(new FeatureExecutableFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			FeatureModel remoteFeature = parser.parse(resolvedURL.openStream());

-			remoteFeature.resolve(remoteURL, null);

-

-		} catch (SAXParseException e) {

-			fail("Exception should NOT be thrown");

-		}

-	}

-

-	public void testParseValid1bis() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/feature1bis.xml");

-			DefaultFeatureParser parser = new DefaultFeatureParser();

-			parser.init(new FeatureExecutableFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			FeatureModel remoteFeature = parser.parse(resolvedURL.openStream());

-			remoteFeature.resolve(remoteURL, null);

-

-		} catch (SAXParseException e) {

-			fail("Exception should NOT be thrown");

-		}

-	}

-

-	public void testParseValid2() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/feature2.xml");

-			DefaultFeatureParser parser = new DefaultFeatureParser();

-			parser.init(new FeatureExecutableFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			FeatureModel remoteFeature = parser.parse(resolvedURL.openStream());

-			remoteFeature.resolve(remoteURL, null);

-

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-	public void testParseValid3() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/feature3.xml");

-			DefaultFeatureParser parser = new DefaultFeatureParser();

-			parser.init(new FeatureExecutableFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			FeatureModel remoteFeature = parser.parse(resolvedURL.openStream());

-			remoteFeature.resolve(remoteURL, null);

-

-			String copyrightString = remoteFeature.getCopyrightModel().getURL().getFile();

-			boolean resolved = copyrightString.indexOf(SiteManager.getOS()) != -1;

-			assertTrue("Copyright URL not resolved:" + copyrightString, resolved);

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-	// parse type

-	public void testParseValid4() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/feature4.xml");

-			DefaultFeatureParser parser = new DefaultFeatureParser();

-			parser.init(new FeatureExecutableFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			FeatureModel remoteFeature = parser.parse(resolvedURL.openStream());

-			remoteFeature.resolve(remoteURL, null);

-

-			URLEntryModel[] models = remoteFeature.getDiscoverySiteEntryModels();

-			assertTrue("Discovery model is not a Web Model", models[0].getType()==IURLEntry.WEB_SITE);

-			URLEntryModel copyright = remoteFeature.getCopyrightModel();

-			assertTrue("Copyright model is not an Update Model", copyright.getType()==IURLEntry.UPDATE_SITE);

-			

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestSiteParse.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestSiteParse.java
deleted file mode 100644
index bc00473..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/parser/TestSiteParse.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.parser;

-

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.core.model.*;

-import org.eclipse.update.internal.core.SiteFileFactory;

-import org.eclipse.update.internal.core.URLEncoder;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import org.xml.sax.SAXParseException;

-

-public class TestSiteParse extends UpdateManagerTestCase {

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestSiteParse(String arg0) {

-		super(arg0);

-	}

-

-	public void testParse() throws Exception {

-

-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "xmls/site1/");

-		ISite remoteSite = SiteManager.getSite(remoteUrl);

-

-		//IFeatureReference[] feature = remoteSite.getFeatureReferences();

-		//ICategory[] categories = remoteSite.getCategories();

-

-		String path = remoteUrl.getFile();

-		String path2 = remoteSite.getDescription().getURL().getFile();

-		assertEquals(new File(path + "index.html"), new File(path2));

-

-	}

-

-	public void testNumberOfFeatures() throws Exception {

-

-		URL remoteURL = new URL("http", getHttpHost(), getHttpPort(), bundle.getString("HTTP_PATH_2"));

-		ISite remoteSite = SiteManager.getSite(remoteURL);

-

-		IFeatureReference[] feature = remoteSite.getFeatureReferences();

-		assertEquals(feature.length, 2);

-

-	}

-

-	public void testParseValid1() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] feature = remoteSite.getFeatureReferenceModels();

-		CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", feature.length == 6);

-		assertTrue("Wrong number of categories", categories.length == 3);

-		assertTrue("Wrong number of archives", archives.length == 0);

-

-		String path = new URL(SOURCE_FILE_SITE + "parsertests/").getFile();

-		String path2 = remoteSite.getDescriptionModel().getURL().getFile();

-		assertEquals(path + "index.html", path2);

-

-	}

-

-	public void testParseValid2() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/reddot.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] feature = remoteSite.getFeatureReferenceModels();

-		CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", feature.length == 2);

-		assertTrue("Wrong number of categories", categories.length == 1);

-		assertTrue("Wrong number of archives", archives.length == 2);

-

-		String valideString = "This category contains all of the<currently>available versions of Red Dot feature.<greeting>Hello, world!</greeting>";

-		assertEquals(valideString, remoteSite.getCategoryModels()[0].getDescriptionModel().getAnnotation());

-

-		String path = new URL(SOURCE_FILE_SITE + "parsertests/").getFile();

-		String path2 = remoteSite.getDescriptionModel().getURL().getFile();

-		assertEquals(path + "index.html", path2);

-

-	}

-

-	public void testParseValid3() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/reddot1.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] feature = remoteSite.getFeatureReferenceModels();

-		CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", feature.length == 2);

-		assertTrue("Wrong number of categories", categories.length == 1);

-		assertTrue("Wrong number of archives", archives.length == 2);

-

-		String valideString = "This category contains all of the<currently>available versions of Red Dot feature.";

-		assertEquals(valideString, remoteSite.getCategoryModels()[0].getDescriptionModel().getAnnotation());

-

-		String path = new URL(SOURCE_FILE_SITE + "parsertests/").getFile();

-		String path2 = remoteSite.getDescriptionModel().getURL().getFile();

-		assertEquals(path + "index.html", path2);

-

-	}

-

-	public void testParseValid4() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "SiteURLTest/data/site.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] feature = remoteSite.getFeatureReferenceModels();

-		//CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", feature.length == 2);

-		assertTrue("Wrong number of archives", archives.length == 3);

-

-		URL path1 = new URL(SOURCE_FILE_SITE + "SiteURLTest/data/artifacts/features/helpFeature.jar");

-		URL url1 = feature[0].getURL();

-		assertEquals(path1, url1);

-		URL path2 = new URL(SOURCE_FILE_SITE + "SiteURLTest/data/artifacts/plugins/help.jar");

-		assertEquals(path2, archives[0].getURL());

-

-		String path = new URL(SOURCE_FILE_SITE + "SiteURLTest/data/info/").getFile();

-		String path3 = remoteSite.getDescriptionModel().getURL().getFile();

-		assertEquals(path + "siteInfo.html", path3);

-

-	}

-

-	public void testParseValid5() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site2.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] featureRef = remoteSite.getFeatureReferenceModels();

-		//CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", featureRef.length == 1);

-		assertTrue("Wrong number of archives", archives.length == 0);

-

-		try {

-			((FeatureReference) featureRef[0]).getFeature();

-		} catch (CoreException e) {

-			Throwable e1 = e.getStatus().getException();

-			if (e1.getMessage().indexOf("not-eclipse") == -1) {

-				throw e;

-			}

-		}

-	}

-

-	public void testParseValid6() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site4.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] featureRef = remoteSite.getFeatureReferenceModels();

-		//CategoryModel[] categories = remoteSite.getCategoryModels();

-		ArchiveReferenceModel[] archives = remoteSite.getArchiveReferenceModels();

-

-		assertTrue("Wrong number of features", featureRef.length == 2);

-		assertTrue("Wrong number of archives", archives.length == 0);

-

-		try {

-			((FeatureReference) featureRef[0]).getFeature();

-		} catch (CoreException e) {

-			Throwable e1 = e.getStatus().getException();

-			String msg = e1.getMessage().replace(File.separatorChar, '/');

-			if (msg.indexOf("_1.0.0.jar/feature.xml") == -1) {

-				throw e;

-			}

-		}

-	}

-

-	public void testParseUnknownCategory() throws Exception {

-

-		URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site3.xml");

-		DefaultSiteParser parser = new DefaultSiteParser();

-		parser.init(new SiteFileFactory());

-		URL resolvedURL = URLEncoder.encode(remoteURL);

-		SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-		remoteSite.resolve(remoteURL, null);

-

-		FeatureReferenceModel[] featureRef = remoteSite.getFeatureReferenceModels();

-		ICategory[] categories = ((SiteFeatureReference) featureRef[0]).getCategories();

-		assertTrue(categories.length == 0);

-	}

-

-	public void testParseValid7() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site7.xml");

-			DefaultSiteParser parser = new DefaultSiteParser();

-			parser.init(new SiteFileFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-			remoteSite.resolve(remoteURL, null);

-

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-	public void testParseValid8() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site8.xml");

-			DefaultSiteParser parser = new DefaultSiteParser();

-			parser.init(new SiteFileFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-			remoteSite.resolve(remoteURL, null);

-

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-	public void testParseValid9() throws Exception {

-

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site9.xml");

-			DefaultSiteParser parser = new DefaultSiteParser();

-			parser.init(new SiteFileFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			SiteModel remoteSite = parser.parse(resolvedURL.openStream());

-			remoteSite.resolve(remoteURL, null);

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-	}

-

-	public void testParseValid10() throws Exception {

-

-		SiteModel remoteSite = null;

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/site10.xml");

-			DefaultSiteParser parser = new DefaultSiteParser();

-			parser.init(new SiteFileFactory());

-			URL resolvedURL = URLEncoder.encode(remoteURL);

-			remoteSite = parser.parse(resolvedURL.openStream());

-			remoteSite.resolve(remoteURL, null);

-		} catch (SAXParseException e) {

-			fail("Exception should not be thrown" + e.getMessage());

-		}

-		FeatureReferenceModel[] models = remoteSite.getFeatureReferenceModels();

-		assertEquals("Invalid versioned identifier", models[0].getFeatureIdentifier(), "org.eclipse.test.feature");

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/AllReconciliationTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/AllReconciliationTests.java
deleted file mode 100644
index 8b9d17a..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/AllReconciliationTests.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.reconciliation;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-/**
- * Manages the API tests
- */
-public class AllReconciliationTests extends UpdateManagerTestCase {
-	/**
-	 * Constructor
-	 */
-	public AllReconciliationTests(String name) {
-		super(name);
-	}
-	
-	/**
-	 * List of API tests
-	 */
-	public static Test suite() throws Exception {
-		TestSuite suite = new TestSuite();
-		suite.setName("API Tests");
-
-
-		suite.addTest(new TestSuite(TestSiteReconciliation.class));
-
-		return suite;
-	}
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/TestSiteReconciliation.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/TestSiteReconciliation.java
deleted file mode 100644
index 59dcf9c..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/reconciliation/TestSiteReconciliation.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.reconciliation;
-import java.io.File;
-import java.net.URL;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration.ISiteEntry;
-import org.eclipse.core.boot.IPlatformConfiguration.ISitePolicy;
-import org.eclipse.core.internal.boot.PlatformConfiguration;
-import org.eclipse.update.configuration.IConfiguredSite;
-import org.eclipse.update.configuration.ILocalSite;
-import org.eclipse.update.core.IFeatureReference;
-import org.eclipse.update.core.SiteManager;
-import org.eclipse.update.internal.core.*;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-public class TestSiteReconciliation extends UpdateManagerTestCase {
-	
-
-	
-
-	/**
-	 * Test the getFeatures()
-	 */
-	public TestSiteReconciliation(String arg0) {
-		super(arg0);
-	}
-
-	private void addConfigSite(int policy, URL url,String[] listOfPlugins) throws Exception {
-		String xmlFile = ((SiteLocal)SiteManager.getLocalSite()).getLocationURL().getFile();
-		UpdateManagerUtils.removeFromFileSystem(new File(xmlFile));		
-		InternalSiteManager.localSite=null;
-		// get new config object
-		PlatformConfiguration cfig = (PlatformConfiguration)BootLoader.getCurrentPlatformConfiguration();
-		ISitePolicy p1 = cfig.createSitePolicy(policy, listOfPlugins);	
-		ISiteEntry s1 = cfig.createSiteEntry(url,p1);
-		cfig.configureSite(s1);	
-	}
-	
-	private void removeConfigSite(URL url) throws Exception {
-		// get new config object
-		PlatformConfiguration cfig = (PlatformConfiguration)BootLoader.getCurrentPlatformConfiguration();
-		ISiteEntry s1 = cfig.findConfiguredSite(url);
-		assertNotNull("Unable to find site entry:"+url,s1);
-		cfig.unconfigureSite(s1);
-		cfig.save();
-	}	
-	/**
-	 * Site 1 contains a feature which needs a plugin taht is not on the path when we start
-	 * it will never be configured
-	 */
-	public void testNewSiteInclude1() throws Exception {
-	
-		int policy  = ISitePolicy.USER_INCLUDE;
-		URL url = new URL("file",null,dataPath+"reconciliationSites/site1/");
-		String[] plugins = new String[]{};
-		addConfigSite(policy,url, plugins);
-
-		ILocalSite local = SiteManager.getLocalSite();
-		((SiteLocal)local).setStamp(0);
-		IConfiguredSite[] newSites = local.getCurrentConfiguration().getConfiguredSites();
-		IConfiguredSite newSite = null;
-		for (int i = 0; i < newSites.length; i++) {
-			if (UpdateManagerUtils.sameURL(newSites[i].getSite().getURL(),url)){
-				newSite = newSites[i];
-			}
-		}
-		
-		if (newSite==null) fail("Site not found in configuration");
-		
-		IFeatureReference[] ref = newSite.getConfiguredFeatures();
-		assertEquals("Wrong number of configured features",0,ref.length);		
-		ref = ((ConfiguredSite)newSite).getConfigurationPolicy().getUnconfiguredFeatures();
-		assertEquals("Wrong number of unconfigured features",0,ref.length);		
-		
-		removeConfigSite(url);
-	}
-
-	public void testNewSiteExclude1() throws Exception {
-		
-		int policy  = ISitePolicy.USER_EXCLUDE;
-		URL url = new URL("file",null,dataPath+"reconciliationSites/site1/");
-		String[] plugins = new String[]{};
-		addConfigSite(policy,url, plugins);
-		
-		ILocalSite local = SiteManager.getLocalSite();
-		((SiteLocal)local).setStamp(0);		
-		IConfiguredSite[] newSites = local.getCurrentConfiguration().getConfiguredSites();
-		IConfiguredSite newSite = null;
-		for (int i = 0; i < newSites.length; i++) {
-			if (UpdateManagerUtils.sameURL(newSites[i].getSite().getURL(),url)){
-				newSite = newSites[i];
-			}
-		}
-		
-		if (newSite==null) fail("Site not found in configuration");
-		
-		IFeatureReference[] ref = newSite.getConfiguredFeatures();
-		assertEquals("Wrong number of configured features",0,ref.length);		
-		ref = ((ConfiguredSite)newSite).getConfigurationPolicy().getUnconfiguredFeatures();
-		assertEquals("Wrong number of unconfigured features",0,ref.length);				
-		removeConfigSite(url);
-	}
-
-	/**
-	 * Site 2 contains a feature which needs a plugin taht is on the path when we start
-	 * it will be configured
-	 */
-	public void testNewSiteInclude2() throws Exception {
-		
-		int policy  = ISitePolicy.USER_INCLUDE;
-		URL url = new URL("file",null,dataPath+"reconciliationSites/site2/");
-		String[] plugins = new String[]{};
-		addConfigSite(policy,url, plugins);
-		ILocalSite local = SiteManager.getLocalSite();
-		((SiteLocal)local).setStamp(0);		
-		IConfiguredSite[] newSites = local.getCurrentConfiguration().getConfiguredSites();
-		IConfiguredSite newSite = null;
-		for (int i = 0; i < newSites.length; i++) {
-			if (UpdateManagerUtils.sameURL(newSites[i].getSite().getURL(),url)){
-				newSite = newSites[i];
-			}
-		}
-		
-		if (newSite==null) fail("Site not found in configuration");
-		
-		IFeatureReference[] ref = newSite.getConfiguredFeatures();
-		assertEquals("Wrong number of configured features",0,ref.length);
-		ref = ((ConfiguredSite)newSite).getConfigurationPolicy().getUnconfiguredFeatures();
-		assertEquals("Wrong number of unconfigured features",0,ref.length);
-		
-		removeConfigSite(url);
-	}
-
-
-
-	public void testNewSiteExclude2() throws Exception {
-		
-		int policy  = ISitePolicy.USER_EXCLUDE;
-		URL url = new URL("file",null,dataPath+"reconciliationSites/site2/");
-		String[] plugins = new String[]{};
-		addConfigSite(policy,url, plugins);
-		ILocalSite local = SiteManager.getLocalSite();
-		((SiteLocal)local).setStamp(0);		
-		IConfiguredSite[] newSites = local.getCurrentConfiguration().getConfiguredSites();
-		IConfiguredSite newSite = null;
-		for (int i = 0; i < newSites.length; i++) {
-			if (UpdateManagerUtils.sameURL(newSites[i].getSite().getURL(),url)){
-				newSite = newSites[i];
-			}
-		}
-		
-		if (newSite==null) fail("Site not found in configuration");
-		
-		IFeatureReference[] ref = newSite.getConfiguredFeatures();
-		assertEquals("Wrong number of configured features",0,ref.length);
-		ref = ((ConfiguredSite)newSite).getConfigurationPolicy().getUnconfiguredFeatures();
-		assertEquals("Wrong number of unconfigured features",0,ref.length);
-
-		removeConfigSite(url);
-	}
-}
-
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/AllRegularInstallTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/AllRegularInstallTests.java
deleted file mode 100644
index d857b55..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/AllRegularInstallTests.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllRegularInstallTests extends UpdateManagerTestCase {

-public AllRegularInstallTests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Regular Install Tests");

-	

-	// the following will take all teh test methods in teh class that start with 'test'

-

-	suite.addTest(new TestSuite(TestInstall.class));

-	suite.addTest(new TestSuite(TestInstallURLSIteXML.class));	

-	suite.addTest(new TestSuite(TestSpaceInInstall.class));	

-	suite.addTest(new TestSuite(TestGetFeature.class));

-	suite.addTest(new TestSuite(TestExecutableInstall.class));	

-	suite.addTest(new TestSuite(TestExecutablePackagedInstall.class));		

-	suite.addTest(new TestSuite(TestDataEntryInstall.class));

-	suite.addTest(new TestSuite(TestLocalSite.class));		

-	

-	// or you can specify the method

-	//suite.addTest(new TestGetFeature("methodThatDoesNotStartWithtest"));	

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/MultipleTestLocalSite.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/MultipleTestLocalSite.java
deleted file mode 100644
index f0325b2..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/MultipleTestLocalSite.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class MultipleTestLocalSite extends UpdateManagerTestCase {

-public MultipleTestLocalSite(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Multiple Test Local Site");

-	

-	// the following will take all teh test methods in teh class that start with 'test'

-	

-	for(int i=0; i<50; i++){

-		suite.addTest(new TestSuite(TestLocalSite.class));

-	}

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestDataEntryInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestDataEntryInstall.java
deleted file mode 100644
index 44357af..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestDataEntryInstall.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestDataEntryInstall extends UpdateManagerTestCase {

-	/**

-	 * Constructor for Test1

-	 */

-	public TestDataEntryInstall(String arg0) {

-		super(arg0);

-	}

-

-	/**

-	 * With site.xml

-	 */

-	public void testDataEntrySite() throws Exception {

-

-		//cleanup target 

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		URL newURL =new File(dataPath + "dataEntrySiteTest/site1/site.xml").toURL();

-		ISite remoteSite = SiteManager.getSite(newURL);

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeature remoteFeature = null;

-		

-		for (int i = 0; i < featuresRef.length; i++) {

-			remoteFeature = featuresRef[i].getFeature();

-			localSite.install(remoteFeature, null,null);

-

-			// verify

-			String site = localSite.getURL().getFile();

-			INonPluginEntry[] entries = remoteFeature.getNonPluginEntries();

-			assertTrue("no data entry", (entries != null && entries.length != 0));

-			String pluginName = entries[0].getIdentifier().toString();

-			File pluginFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString()+File.separator+ pluginName);

-			assertTrue("data files not installed locally:"+pluginFile, pluginFile.exists());

-		} 

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}

-	

-	

-	/**

-	 * With site.xml

-	 */

-	public void testDataEntrySitePackaged() throws Exception {

-

-		//cleanup target 

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		URL newURL =new File(dataPath + "dataEntrySiteTest/site2/site.xml").toURL();

-		ISite remoteSite = SiteManager.getSite(newURL);

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeature remoteFeature = null;

-		

-		for (int i = 0; i < featuresRef.length; i++) {

-			remoteFeature = featuresRef[i].getFeature();

-			localSite.install(remoteFeature, null,null);

-

-			// verify

-			String site = localSite.getURL().getFile();

-			INonPluginEntry[] entries = remoteFeature.getNonPluginEntries();

-			assertTrue("no data entry", (entries != null && entries.length != 0));

-			entries[0].getIdentifier().toString();

-			File pluginFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString()+File.separator+ "nondata"+File.separator+"file1.zip");

-			assertTrue("Data file inside the jar not installed locally:"+pluginFile, pluginFile.exists());

-			pluginFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString()+File.separator+ "file.zip");

-			assertTrue("Data file outside the jar not installed locally:"+pluginFile, pluginFile.exists());

-			

-		} 

-		

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}	

-	

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutableInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutableInstall.java
deleted file mode 100644
index fa865d9..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutableInstall.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-

-import java.io.File;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.UpdateManagerUtils;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-public class TestExecutableInstall extends UpdateManagerTestCase {

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestExecutableInstall(String arg0) {

-		super(arg0);

-	}

-	

-

-

-	public void testFileSite() throws Exception{

-		

-		//cleanup target 

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);		

-		

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE_INSTALLED);

-		IFeatureReference[] remoteFeatureReference = remoteSite.getFeatureReferences();

-		IFeature remoteFeature = remoteFeatureReference[0].getFeature();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		assertNotNull(remoteFeature);

-		remove(remoteFeature,localSite);		

-		localSite.install(remoteFeature,null,null);

-		

-		// verify

-		String site = localSite.getURL().getFile();

-		IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-		assertTrue("no plugins entry",(entries!=null && entries.length!=0));

-		String pluginName= entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(site,Site.DEFAULT_PLUGIN_PATH+pluginName);

-		assertTrue("plugin files not installed locally",pluginFile.exists());

-

-		File featureFile = new File(site,Site.DEFAULT_INSTALLED_FEATURE_PATH+remoteFeature.getVersionedIdentifier().toString());

-		assertTrue("feature info not installed locally:"+featureFile,featureFile.exists());

-		assertTrue("feature is a file, not a directory:"+featureFile,featureFile.isDirectory());

-

-		

-		File featureFileXML = new File(site,Site.DEFAULT_INSTALLED_FEATURE_PATH+remoteFeature.getVersionedIdentifier().toString()+File.separator+"feature.xml");

-		assertTrue("feature info not installed locally: no feature.xml",featureFileXML.exists());

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-	}

-

-}

-

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutablePackagedInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutablePackagedInstall.java
deleted file mode 100644
index 4a73836..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestExecutablePackagedInstall.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestExecutablePackagedInstall extends UpdateManagerTestCase {

-	/**

-	 * Constructor for Test1

-	 */

-	public TestExecutablePackagedInstall(String arg0) {

-		super(arg0);

-	}

-

-	/**

-	 * With site.xml

-	 */

-	public void testFilePackageExecutableFeatureSite() throws Exception {

-

-		//cleanup target  

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		URL newURL = new File(dataPath + "ExecutableFeaturePackagedSite/data2/site.xml").toURL();

-		ISite remoteSite = SiteManager.getSite(newURL);

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeature remoteFeature = null;

-		

-		// at least one executable feature and on packaged

-		boolean execFeature = false;

-		boolean packFeature = false;

-

-		if (featuresRef.length==0) fail ("no feature found");

-	

-		for (int i = 0; i < featuresRef.length; i++) {

-			remoteFeature = featuresRef[i].getFeature();

-			remove(remoteFeature,localSite);			

-			localSite.install(remoteFeature, null,null);

-			

-			if (remoteFeature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider) packFeature = true;

-			if (remoteFeature.getFeatureContentProvider() instanceof FeatureExecutableContentProvider) execFeature = true;

-

-			// verify

-			String site = localSite.getURL().getFile();

-			IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-			assertTrue("no plugins entry", (entries != null && entries.length != 0));

-			String pluginName = entries[0].getVersionedIdentifier().toString();

-			File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-			assertTrue("plugin files not installed locally:"+pluginFile, pluginFile.exists());

-

-			File featureFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString());

-			assertTrue("feature info not installed locally:"+featureFile, featureFile.exists());

-

-			File featureFileXML = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString() + File.separator + "feature.xml");

-			assertTrue("feature info not installed locally: no feature.xml", featureFileXML.exists());

-		}

-

-		if (!execFeature && !packFeature){

-			fail("cannot find one executable and one package feature on teh site");

-		}

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}

-	

-	

-	/**

-	 * Without site.xml

-	 */

-	public void testFileNoSiteXMLSite() throws Exception {

-

-		//cleanup target 

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		URL newURL = new File(dataPath + "ExecutableFeaturePackagedSite/data/").toURL();

-		ISite remoteSite = SiteManager.getSite(newURL);

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeature remoteFeature = null;

-		

-		// at least one executable feature and on packaged

-		boolean execFeature = false;

-		boolean packFeature = false;

-

-		if (featuresRef.length==0) fail ("no feature found");

-	

-		for (int i = 0; i < featuresRef.length; i++) {

-			try {

-				remoteFeature = featuresRef[i].getFeature();

-			} catch (CoreException e){

-				Throwable e1 = e.getStatus().getException();

-				String msg = e1.getMessage().replace(File.separatorChar,'/');

-				if (msg.indexOf("CVS/feature.xml")==-1){

-					throw e;

-				}				

-			}

-			if (remoteFeature!=null){

-				remove(remoteFeature,localSite);

-				localSite.install(remoteFeature,null, null);

-				

-				if (remoteFeature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider) packFeature = true;

-				if (remoteFeature.getFeatureContentProvider() instanceof FeatureExecutableContentProvider) execFeature = true;

-	

-				// verify

-				String site = localSite.getURL().getFile();

-				IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-				assertTrue("no plugins entry", (entries != null && entries.length != 0));

-				String pluginName = entries[0].getVersionedIdentifier().toString();

-				File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-				assertTrue("plugin files not installed locally:"+pluginFile, pluginFile.exists());

-	

-				File featureFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString());

-				assertTrue("feature info not installed locally:"+featureFile, featureFile.exists());

-	

-				File featureFileXML = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString() + File.separator + "feature.xml");

-				assertTrue("feature info not installed locally: no feature.xml", featureFileXML.exists());

-			}

-		}

-

-		if (!execFeature && !packFeature){

-			fail("cannot find one executable and one package feature on teh site");

-		}

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}

-	

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestGetFeature.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestGetFeature.java
deleted file mode 100644
index b3d4356..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestGetFeature.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-public class TestGetFeature extends UpdateManagerTestCase {

-

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestGetFeature(String arg0) {

-		super(arg0);

-	}

-	

-	

-	public void testFeatureFileSite() throws Exception{

-		

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE);

-		IFeatureReference[] remoteFeatures = remoteSite.getFeatureReferences();

-		if (remoteFeatures==null || remoteFeatures.length==0) fail("No feature available for testing");

-		for (int i=0;i<remoteFeatures.length;i++){

-			System.out.println("feature:"+remoteFeatures[i].getURL().toExternalForm());

-		}

-	}

-

-

-	public void testFeatureHTTPSite() throws Exception{ 

-		

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeatureReference[] remoteFeatures = remoteSite.getFeatureReferences();

-		if (remoteFeatures==null || remoteFeatures.length==0) fail("No feature available for testing");		

-		for (int i=0;i<remoteFeatures.length;i++){

-			System.out.println("feature:"+remoteFeatures[i].getURL().toExternalForm());

-		}

-	}

-}

-

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstall.java
deleted file mode 100644
index 7e367e2..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstall.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestInstall extends UpdateManagerTestCase {

-

-	/**

-	 * 

-	 */

-	public static final String PACKAGED_FEATURE_TYPE = "packaged"; //$NON-NLS-1$

-

-	public class Listener implements IConfiguredSiteChangedListener {

-

-		public boolean notified = false;

-

-		public void featureInstalled(IFeature feature) {

-			notified = true;

-			System.out.println("Notified DefaultFeature Installed");

-		}

-

-		public void featureRemoved(IFeature feature) {

-		}

-

-		public void featureConfigured(IFeature feature) {

-		};

-		public void featureUnconfigured(IFeature feature) {

-		};

-

-		public boolean isNotified() {

-			return notified;

-		}

-	}

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestInstall(String arg0) {

-		super(arg0);

-	}

-

-	private IFeature getFeature1(ISite site)

-		throws MalformedURLException, CoreException {

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(site);

-		ref.setURLString("features/org.eclipse.update.core.tests.feature1_1.0.4.jar");

-		ref.setType(getDefaultInstallableFeatureType());

-		ref.resolve(site.getURL(), null);

-		return ref.getFeature();

-	}

-

-	public void testFileSite() throws Exception {

-

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE);

-		IFeature remoteFeature = getFeature1(remoteSite);

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		localSite.install(remoteFeature, null, null);

-

-		// verify

-		String site = localSite.getURL().getFile();

-		IPluginEntry[] entries = remoteFeature.getPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin files not installed locally:"+pluginFile, pluginFile.exists());

-		File pluginXMLFile =

-			new File(

-				site,

-				Site.DEFAULT_PLUGIN_PATH + pluginName + File.separator + "plugin.xml");

-		assertTrue("plugin.xml file not installed locally", pluginXMLFile.exists());

-

-		File featureFile =

-			new File(

-				site,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue(

-			"feature info not installed locally:" + featureFile,

-			featureFile.exists());

-		//cleanup

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));

-

-	}

-

-	/**

-	 * 

-	 */

-	public void testHTTPSite() throws Exception {

-

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeatureReference[] features = remoteSite.getFeatureReferences();

-		IFeature remoteFeature = null;

-

-		if (features == null || features.length == 0)

-			fail("No features on the site");

-

-		for (int i = 0; i < features.length; i++) {

-			if (features[i].getURL().toExternalForm().endsWith("features2.jar")) {

-				remoteFeature = features[i].getFeature();

-				break;

-			}

-		}

-

-		assertNotNull("Cannot find feature2.jar on site", remoteFeature);

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		localSite.install(remoteFeature, null, null);

-

-		// feature2.jar should not be in the local site

-		IFeatureReference[] localFeatures = localSite.getFeatureReferences();

-		if (localFeatures == null || localFeatures.length == 0)

-			fail("No features on the target site");

-

-		boolean found = false;

-		for (int i = 0; i < localFeatures.length; i++) {

-			if (localFeatures[i].getURL().toExternalForm().endsWith("features2.jar")) {

-				found = true;

-				break;

-			}

-		}

-

-		assertTrue(

-			"Found feature2.jar on target site. Target site feature ref shouldnot contain JAR file",

-			!found);

-

-		// check

-		String site = localSite.getURL().getFile();

-		IPluginEntry[] entries = remoteFeature.getPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin info not installed locally:"+pluginFile, pluginFile.exists());

-

-		File featureFile =

-			new File(

-				site,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue("feature info not installed locally", featureFile.exists());

-

-		//localSite.save();

-

-		//cleanup

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));

-	}

-

-	public void testInstall() throws Exception {

-

-		// cleanup local files...

-		URL localURL = ((SiteLocal) SiteManager.getLocalSite()).getLocationURL();

-		File localFile =

-			new File(new URL(localURL, SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-

-		URL INSTALL_SITE = null;

-		try {

-			INSTALL_SITE =

-				new URL("http", getHttpHost(), getHttpPort(), bundle.getString("HTTP_PATH_2"));

-		} catch (Exception e) {

-			fail(e.toString());

-			e.printStackTrace();

-		}

-

-		ISite remoteSite = SiteManager.getSite(INSTALL_SITE);

-		IFeatureReference[] features = remoteSite.getFeatureReferences();

-		IFeature remoteFeature = null;

-

-		if (features == null || features.length == 0)

-			fail("No features on the site");

-

-		for (int i = 0; i < features.length; i++) {

-			if (features[i].getURL().toExternalForm().endsWith("helpFeature.jar")) {

-				remoteFeature = features[i].getFeature();

-				break;

-			}

-		}

-

-		assertNotNull("Cannot find help.jar on site", remoteFeature);

-		ILocalSite localSite = SiteManager.getLocalSite();

-		IConfiguredSite site =

-			localSite.getCurrentConfiguration().getConfiguredSites()[0];

-		Listener listener = new Listener();

-		site.addConfiguredSiteChangedListener(listener);

-

-		((ConfiguredSite)site).setUpdatable(true);

-		site.install(remoteFeature, null, null);

-

-		IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-

-		String sitePath = site.getSite().getURL().getFile();

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(sitePath, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin info not installed locally", pluginFile.exists());

-

-		File featureFile =

-			new File(

-				sitePath,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue("feature info not installed locally", featureFile.exists());

-

-		//cleanup

-		File file =

-			new File(

-				site.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier());

-		UpdateManagerUtils.removeFromFileSystem(file);

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(

-			new File(

-				((InstallConfiguration) localSite.getCurrentConfiguration())

-					.getURL()

-					.getFile()));

-

-		site.removeConfiguredSiteChangedListener(listener);

-		assertTrue("Listener hasn't received notification", listener.isNotified());

-	}

-

-	public void testFileSiteWithoutSiteXML() throws Exception {

-

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE);

-		IFeature remoteFeature = getFeature1(remoteSite);

-		IConfiguredSite localSite =

-			SiteManager.getLocalSite().getCurrentConfiguration().getConfiguredSites()[0];

-		localSite.getSite().install(remoteFeature, null, null);

-

-		IFeatureReference[] features = localSite.getSite().getFeatureReferences();

-		if (features.length == 0)

-			fail("The local site does not contain feature, should not contain an XML file but features should be found anyway by parsing");

-		if (localSite.getSite().getArchives().length == 0)

-			fail("The local site does not contain archives, should not contain an XML file but archives should be found anyway by parsing");

-

-		//cleanup

-		File file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier());

-		UpdateManagerUtils.removeFromFileSystem(file);

-		file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_PLUGIN_PATH

-					+ "org.eclipse.update.core.tests.feature1.plugin1_3.5.6");

-		UpdateManagerUtils.removeFromFileSystem(file);

-		file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_PLUGIN_PATH

-					+ "org.eclipse.update.core.tests.feature1.plugin2_5.0.0");

-		UpdateManagerUtils.removeFromFileSystem(file);

-		File localFile =

-			new File(

-				new URL(

-					((SiteLocal) SiteManager.getLocalSite()).getLocationURL(),

-					SiteLocal.SITE_LOCAL_FILE)

-					.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-

-		try {

-			SiteManager.getSite(new URL("http://www.eclipse.org/"));

-			fail("The site contains site.xml... it should be an HTTP site without an XML file");			

-		} catch (CoreException e) {

-			// expected

-		}

-

-	}

-

-	/**

-	* 

-	*/

-	private Feature createPackagedFeature(URL url, ISite site)

-		throws CoreException {

-		String packagedFeatureType = ISite.DEFAULT_PACKAGED_FEATURE_TYPE;

-		Feature result = null;

-		if (packagedFeatureType != null) {

-			IFeatureFactory factory =

-				FeatureTypeFactory.getInstance().getFactory(packagedFeatureType);

-			result = (Feature) factory.createFeature(url, site);

-		}

-		return result;

-	}

-	/*

-	 * @see ISite#getDefaultInstallableFeatureType()

-	 */

-	public String getDefaultInstallableFeatureType() {

-		String pluginID =

-			UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier() + ".";

-		return pluginID + PACKAGED_FEATURE_TYPE;

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstallURLSIteXML.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstallURLSIteXML.java
deleted file mode 100644
index 6a1f85b..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestInstallURLSIteXML.java
+++ /dev/null
@@ -1,330 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.MalformedURLException;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestInstallURLSIteXML extends UpdateManagerTestCase {

-

-	/**

-	 * 

-	 */

-	public static final String PACKAGED_FEATURE_TYPE = "packaged"; //$NON-NLS-1$	

-

-	public class Listener implements IConfiguredSiteChangedListener {

-

-		public boolean notified = false;

-

-		public void featureInstalled(IFeature feature) {

-			notified = true;

-			System.out.println("Notified DefaultFeature Installed");

-		}

-

-		public void featureRemoved(IFeature feature) {

-		}

-

-		public void featureConfigured(IFeature feature) {

-		};

-		public void featureUnconfigured(IFeature feature) {

-		};

-

-		public boolean isNotified() {

-			return notified;

-		}

-	}

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestInstallURLSIteXML(String arg0) {

-		super(arg0);

-	}

-

-	private IFeature getFeature1(ISite site)

-		throws MalformedURLException, CoreException {

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(site);

-		ref.setURLString("features/org.eclipse.update.core.tests.feature1_1.0.4.jar");

-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);

-		ref.resolve(site.getURL(), null);

-		return ref.getFeature();

-	}

-

-	public void testFileSite() throws Exception {

-

-		ISite remoteSite =

-			SiteManager.getSite(new URL(SOURCE_FILE_SITE, Site.SITE_XML));

-		IFeature remoteFeature = getFeature1(remoteSite);

-		URL url = TARGET_FILE_SITE;

-		File file = new File(TARGET_FILE_SITE.getFile());

-		if (!file.exists()) file.mkdirs();

-		ISite localSite = SiteManager.getSite(url);

-		remove(remoteFeature,localSite);

-		localSite.install(remoteFeature, null, null);

-

-		// verify

-		String site = TARGET_FILE_SITE.getFile();

-		IPluginEntry[] entries = remoteFeature.getPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin files not installed locally", pluginFile.exists());

-		File pluginXMLFile =

-			new File(

-				site,

-				Site.DEFAULT_PLUGIN_PATH + pluginName + File.separator + "plugin.xml");

-		assertTrue("plugin.xml file not installed locally", pluginXMLFile.exists());

-

-		File featureFile =

-			new File(

-				site,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue(

-			"feature info not installed locally:" + featureFile,

-			featureFile.exists());

-		//cleanup

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));

-

-	}

-

-	/**

-	 * 

-	 */

-	public void testHTTPSite() throws Exception {

-

-		// clean

-		File targetFile  = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(targetFile);

-

-		ISite remoteSite =

-			SiteManager.getSite(new URL(SOURCE_HTTP_SITE, Site.SITE_XML));

-		IFeatureReference[] features = remoteSite.getFeatureReferences();

-		IFeature remoteFeature = null;

-

-		if (features == null || features.length == 0)

-			fail("No features on the site");

-

-		for (int i = 0; i < features.length; i++) {

-			if (features[i].getURL().toExternalForm().endsWith("features2.jar")) {

-				remoteFeature = features[i].getFeature();

-				break;

-			}

-		}

-

-		assertNotNull("Cannot find feature2.jar on site", remoteFeature);

-		URL url = TARGET_FILE_SITE;

-		File file = new File(TARGET_FILE_SITE.getFile());

-		if (!file.exists()) file.mkdirs();

-		ISite localSite = SiteManager.getSite(url);

-		localSite.install(remoteFeature, null, null);

-

-		// feature2.jar should not be in the local site

-		IFeatureReference[] localFeatures = localSite.getFeatureReferences();

-		if (localFeatures == null || localFeatures.length == 0)

-			fail("No features on the target site");

-

-		boolean found = false;

-		for (int i = 0; i < localFeatures.length; i++) {

-			if (localFeatures[i].getURL().toExternalForm().endsWith("features2.jar")) {

-				found = true;

-				break;

-			}

-		}

-

-		assertTrue(

-			"Found feature2.jar on target site. Target site feature ref shouldnot contain JAR file",

-			!found);

-

-		// check

-		String site = TARGET_FILE_SITE.getFile();

-		IPluginEntry[] entries = remoteFeature.getPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin info not installed locally", pluginFile.exists());

-

-		File featureFile =

-			new File(

-				site,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue("feature info not installed locally", featureFile.exists());

-

-		//localSite.save();

-

-		//cleanup

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(localSite.getURL().getFile()));

-	}

-

-	public void testInstall() throws Exception {

-

-		// cleanup local files...

-		SiteLocal siteLocal = ((SiteLocal) SiteManager.getLocalSite());

-		File localFile = new File(siteLocal.getLocationURL().getFile());

-		//if (!localFile.exists()) fail("LocalSite file doesn't exist ->"+localFile.getAbsolutePath()+"<-");

-		UpdateManagerUtils.removeFromFileSystem(localFile.getParentFile());		

-		/*

-		localFile = new File(localFile,SiteLocal.SITE_LOCAL_FILE);

-		if (!localFile.exists()) fail("LocalSite.xml doesn't exist:"+localFile);

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		*/

-		

-		InternalSiteManager.localSite = null;

-

-		URL INSTALL_SITE = null;

-		try {

-			INSTALL_SITE =

-				new URL("http", getHttpHost(), getHttpPort(), bundle.getString("HTTP_PATH_2"));

-		} catch (Exception e) {

-			fail(e.toString());

-			e.printStackTrace();

-		}

-

-		ISite remoteSite = SiteManager.getSite(INSTALL_SITE);

-		IFeatureReference[] features = remoteSite.getFeatureReferences();

-		IFeature remoteFeature = null;

-

-		if (features == null || features.length == 0)

-			fail("No features on the site");

-

-		for (int i = 0; i < features.length; i++) {

-			if (features[i].getURL().toExternalForm().endsWith("helpFeature.jar")) {

-				remoteFeature = features[i].getFeature();

-				break;

-			}

-		}

-

-		assertNotNull("Cannot find help.jar on site", remoteFeature);

-		ILocalSite localSite = SiteManager.getLocalSite();

-		IConfiguredSite site = localSite.getCurrentConfiguration().getConfiguredSites()[0];

-		Listener listener = new Listener();

-		site.addConfiguredSiteChangedListener(listener);

-

-		((ConfiguredSite)site).setUpdatable(true);

-		site.install(remoteFeature, null, null);

-

-		IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-

-		String sitePath = site.getSite().getURL().getFile();

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-		File pluginFile = new File(sitePath, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin info not installed locally:"+pluginFile, pluginFile.exists());

-

-		File featureFile =

-			new File(

-				sitePath,

-				Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier().toString());

-		assertTrue("feature info not installed locally", featureFile.exists());

-

-		//cleanup

-		File file =

-			new File(

-				site.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier());

-		UpdateManagerUtils.removeFromFileSystem(file);

-		UpdateManagerUtils.removeFromFileSystem(pluginFile);

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(

-			new File(

-				((InstallConfiguration) localSite.getCurrentConfiguration())

-					.getURL()

-					.getFile()));

-

-		site.removeConfiguredSiteChangedListener(listener);

-		assertTrue("Listener hasn't received notification", listener.isNotified());

-	}

-

-	public void testFileSiteWithoutSiteXML() throws Exception {

-

-		ISite remoteSite =

-			SiteManager.getSite(new URL(SOURCE_FILE_SITE, Site.SITE_XML));

-		IFeature remoteFeature = getFeature1(remoteSite);

-		IConfiguredSite localSite =

-			SiteManager.getLocalSite().getCurrentConfiguration().getConfiguredSites()[0];

-		localSite.getSite().install(remoteFeature, null, null);

-

-		IFeatureReference[] features = localSite.getSite().getFeatureReferences();

-		if (features.length == 0)

-			fail("The local site does not contain feature, should not contain an XML file but features should be found anyway by parsing");

-		if (localSite.getSite().getArchives().length == 0)

-			fail("The local site does not contain archives, should not contain an XML file but archives should be found anyway by parsing");

-

-		//cleanup

-		File file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_INSTALLED_FEATURE_PATH

-					+ remoteFeature.getVersionedIdentifier());

-		UpdateManagerUtils.removeFromFileSystem(file);

-		file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_PLUGIN_PATH

-					+ "org.eclipse.update.core.tests.feature1.plugin1_3.5.6");

-		UpdateManagerUtils.removeFromFileSystem(file);

-		file =

-			new File(

-				localSite.getSite().getURL().getFile()

-					+ File.separator

-					+ Site.DEFAULT_PLUGIN_PATH

-					+ "org.eclipse.update.core.tests.feature1.plugin2_5.0.0");

-		UpdateManagerUtils.removeFromFileSystem(file);

-		File localFile =

-			new File(

-				new URL(

-					((SiteLocal) SiteManager.getLocalSite()).getLocationURL(),

-					SiteLocal.SITE_LOCAL_FILE)

-					.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-

-	}

-

-	/**

-	* 

-	*/

-	private Feature createPackagedFeature(URL url, ISite site)

-		throws CoreException {

-		String packagedFeatureType = ISite.DEFAULT_PACKAGED_FEATURE_TYPE;

-		Feature result = null;

-		if (packagedFeatureType != null) {

-			IFeatureFactory factory =

-				FeatureTypeFactory.getInstance().getFactory(packagedFeatureType);

-			result = (Feature) factory.createFeature(url, site);

-		}

-		return result;

-	}

-	/*

-	 * @see ISite#getDefaultInstallableFeatureType()

-	 */

-	public String getDefaultInstallableFeatureType() {

-		String pluginID =

-			UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier() + ".";

-		return pluginID + PACKAGED_FEATURE_TYPE;

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestLocalSite.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestLocalSite.java
deleted file mode 100644
index 8c9e2c2..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestLocalSite.java
+++ /dev/null
@@ -1,448 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.boot.IPlatformConfiguration;

-import org.eclipse.update.configuration.*;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.internal.model.ConfigurationPolicyModel;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestLocalSite extends UpdateManagerTestCase {

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestLocalSite(String arg0) {

-		super(arg0);

-	}

-	

-	public void testCreationConfigFile() throws Exception {

-

-		//clean up

-		SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-		URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-		File localFile = new File(newURL.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-		InternalSiteManager.localSite=null;	

-

-

-		ILocalSite site = SiteManager.getLocalSite();

-		site.save();

-		URL location = ((SiteLocal)site).getLocationURL();

-		String fileName = UpdateManagerUtils.getLocalRandomIdentifier(SiteLocal.DEFAULT_CONFIG_FILE, site.getCurrentConfiguration().getCreationDate());

-		String filePath = new URL(location,fileName).getFile();

-		File file = new File(filePath);

-		assertTrue("config file hasn't been saved in :"+filePath, file.exists());

-		assertTrue("Local site hasn't been saved in :"+localFile.getAbsolutePath(),localFile.exists());

-		

-		// cleanup

-		UpdateManagerUtils.removeFromFileSystem(file);

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		

-

-	}

-	

-	public void testDefaultConfigFile() throws Exception {

-

-		//clean up

-		SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-		URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-		File localFile = new File(newURL.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-		InternalSiteManager.localSite=null;

-

-		ILocalSite site = SiteManager.getLocalSite();

-		assertTrue("The local site does not contain an history of install configuration",site.getConfigurationHistory().length!=0);

-		assertTrue("The local site does not contain an current install configuration",site.getCurrentConfiguration()!=null);

-		assertTrue("The local site does not contain a default configuration site for the current install config",site.getCurrentConfiguration().getConfiguredSites().length!=0);

-		

-		System.out.println("Default Config Site is :"+site.getCurrentConfiguration().getConfiguredSites()[0].getSite().getURL().toExternalForm());

-		

-		// cleanup

-		URL location = ((SiteLocal)site).getLocationURL();		

-		String filePath = new URL(location,SiteLocal.DEFAULT_CONFIG_FILE).getFile();

-		File file = new File(filePath);

-		UpdateManagerUtils.removeFromFileSystem(file);		

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		

-

-	}

-	

-/*	public void testInstallFeatureSaveConfig() throws Exception {

-

-		//clean up

-		SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-		URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-		File localFile = new File(newURL.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-		InternalSiteManager.localSite=null;		

-

-		ILocalSite site = SiteManager.getLocalSite();

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE_INSTALLED);

-		IFeature feature = remoteSite.getFeatureReferences()[0].getFeature();

-		int oldNumber = site.getCurrentConfiguration().getConfiguredSites().length;

-		

-		// we are not checking if this is read only

-		IInstallConfiguration newConfig = site.cloneCurrentConfiguration();

-		newConfig.setLabel("new Label");		

-		//IInstallConfiguration newConfig = site.getCurrentConfiguration();

-		IConfiguredSite configSite = newConfig.getConfiguredSites()[0];

-		ConfigurationPolicyModel configPolicy = new BaseSiteLocalFactory().createConfigurationPolicyModel();

-		configPolicy.setPolicy(IPlatformConfiguration.ISitePolicy.USER_INCLUDE);

-		((ConfiguredSite)configSite).setConfigurationPolicy((ConfigurationPolicy)configPolicy);

-		int oldNumberOfhistory = site.getConfigurationHistory().length;		

-		site.addConfiguration(newConfig);	

-		assertNotNull(feature);	

-

-		((ConfiguredSite)configSite).isUpdatable(true);

-		remove(feature,configSite);				

-		configSite.install(feature,null,null);

-				

-		// teh current one points to a real fature

-		// does not throw error.

-		IConfiguredSite configSite2 = site.getCurrentConfiguration().getConfiguredSites()[0];

-		assertTrue("No Configured features found",configSite.getConfiguredFeatures().length>0);

-		IFeatureReference ref = configSite2.getConfiguredFeatures()[0];

-		IFeature feature2 = ref.getFeature();

-		//String configuredFeature = feature2.getLabel();

-

-		assertEquals(feature2.getVersionedIdentifier().toString(),"org.eclipse.update.core.tests.feature3_1.0.0");

-		assertTrue("Wrong id  version of feature",feature2.getVersionedIdentifier().toString().equalsIgnoreCase("org.eclipse.update.core.tests.feature3_1.0.0"));

-		

-		// only one feature configured

-		assertTrue("too many features configured",configSite2.getConfiguredFeatures().length==1);

-		

-		// no feature unconfigured

-		assertTrue("too many unconfigured features",((ConfiguredSite)configSite2).getConfigurationPolicy().getUnconfiguredFeatures().length==0);

-		

-		// test only 2 install config in local site

-		//assertEquals("wrong number of history in Local site:",oldNumberOfhistory+1,site.getConfigurationHistory().length);

-		

-		// test same # of sites in current config

-		assertTrue("Wrong number of config sites in current config",site.getCurrentConfiguration().getConfiguredSites().length==oldNumber);

-		

-		//test only one feature for the site

-		assertTrue("wrong number of configured features for config site",site.getCurrentConfiguration().getConfiguredSites()[0].getConfiguredFeatures().length==1);

-		

-		// test only 2 activities

-		assertTrue("Wrong number of activities for install config",site.getCurrentConfiguration().getActivities().length==2);

-

-		site.save();		

-

-		// check

-		// there are 2 configuration

-		String time = ""+site.getCurrentConfiguration().getCreationDate().getTime();

-		URL location = ((SiteLocal)site).getLocationURL();

-		File file = new File(new URL(location,"Config"+time+".xml").getFile());

-		assertTrue("new configuration does not exist", file.exists());

-		

-		// cleanup

-		localFile = new File(new URL(location,SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		localFile = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		localFile = new File(new URL(location,Site.DEFAULT_FEATURE_PATH+File.separator+feature.getVersionedIdentifier().toString()).getFile());		

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		localFile = new File(new URL(location,Site.DEFAULT_FEATURE_PATH+File.separator+feature2.getVersionedIdentifier().toString()).getFile());		

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		UpdateManagerUtils.removeFromFileSystem(file);		

-		localFile = new File(feature2.getURL().getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-	}

-*/

-	

-	public void testRetriveConfig() throws Exception {

-

-		//clean up

-		SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-		URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-		File localFile = new File(newURL.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-		InternalSiteManager.localSite=null;		

-

-		ILocalSite site = SiteManager.getLocalSite();

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE_INSTALLED);

-		IFeature feature = remoteSite.getFeatureReferences()[0].getFeature();

-		int oldNumber = site.getCurrentConfiguration().getConfiguredSites().length;		

-		

-		// we are not checking if this is read only

-		IInstallConfiguration newConfig = site.cloneCurrentConfiguration();

-		newConfig.setLabel("new Label");		

-		IConfiguredSite configSite = newConfig.getConfiguredSites()[0];

-		ConfigurationPolicyModel configPolicy = new BaseSiteLocalFactory().createConfigurationPolicyModel();

-		configPolicy.setPolicy(IPlatformConfiguration.ISitePolicy.USER_INCLUDE);

-		((ConfiguredSite)configSite).setConfigurationPolicyModel((ConfigurationPolicyModel)configPolicy);	

-		int oldNumberOfhistory = site.getConfigurationHistory().length;			

-		site.addConfiguration(newConfig);

-		assertNotNull(feature);			

-		

-		((ConfiguredSite)configSite).setUpdatable(true);

-		remove(feature,configSite);			

-		configSite.install(feature,null,null);

-		site.save();

-		

-		// we created the second xml file

-

-		//do not cleanup, we want to reuse previously created local site

-		// but force re-read of xml File

-		InternalSiteManager.localSite=null;

-		site = SiteManager.getLocalSite();

-		

-		// check

-		// there are 2 configuration

-		String time = ""+site.getCurrentConfiguration().getCreationDate().getTime();

-		URL location = ((SiteLocal)site).getLocationURL();		

-		File file = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_PREFIX+time+".xml").getFile());

-		assertTrue("new configuration does not exist", file.exists());

-		

-		// teh current one points to a real fature

-		// does not throw error.

-		IConfiguredSite configSite2 = site.getCurrentConfiguration().getConfiguredSites()[0];

-		IFeatureReference[] refs = configSite2.getConfiguredFeatures();

-		IFeature feature2 = null;

-		for (int i = 0; i < refs.length; i++) {

-			IFeature feature3 = refs[i].getFeature();			

-			if ("org.eclipse.update.core.tests.feature3_1.0.0".equals(feature3.getVersionedIdentifier().toString())){

-				feature2 = feature3;

-			}		

-		}

-		assertNotNull("Feature 2 is Null",feature2);

-		assertTrue("Wrong id  version of feature",feature2.getVersionedIdentifier().toString().equalsIgnoreCase("org.eclipse.update.core.tests.feature3_1.0.0"));

-		

-		// test only 2 install config in local site

-		assertEquals("wrong number of history in Local site:",oldNumberOfhistory+1,site.getConfigurationHistory().length);

-		

-		// test # of sites in current config

-		assertTrue("Wrong number of config sites in current config",site.getCurrentConfiguration().getConfiguredSites().length==oldNumber);

-		

-		//test only one feature for the site

-		assertTrue("wrong number of configured features for config site",site.getCurrentConfiguration().getConfiguredSites()[0].getConfiguredFeatures().length==1);

-		

-		// test only 2 activities

-		assertTrue("Wrong number of activities for install config",site.getCurrentConfiguration().getActivities().length==2);

-		

-		

-		// cleanup

-		localFile = new File(new URL(location,SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		localFile = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);			

-		localFile = new File(new URL(location,Site.DEFAULT_FEATURE_PATH+File.separator+feature.getVersionedIdentifier().toString()).getFile());		

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)site.getCurrentConfiguration()).getURL().getFile()));				

-		UpdateManagerUtils.removeFromFileSystem(file);		

-	}

-

-	public void testRetriveConfigHTTPInstall() throws Exception {

-

-		//clean up

-		SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-		URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-		File localFile = new File(newURL.getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-		InternalSiteManager.localSite=null;		

-

-		ILocalSite site = SiteManager.getLocalSite();

-		ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeature feature = remoteSite.getFeatureReferences()[0].getFeature();

-		

-		// we are not checking if this is read only

-		IInstallConfiguration newConfig = site.cloneCurrentConfiguration();

-		newConfig.setLabel("new Label");		

-		IConfiguredSite configSite = newConfig.getConfiguredSites()[0];

-		ConfigurationPolicyModel configPolicy = new BaseSiteLocalFactory().createConfigurationPolicyModel();

-		configPolicy.setPolicy(IPlatformConfiguration.ISitePolicy.USER_INCLUDE);

-		((ConfiguredSite)configSite).setConfigurationPolicyModel((ConfigurationPolicyModel)configPolicy);	

-		int oldNumberOfhistory = site.getConfigurationHistory().length;			

-		site.addConfiguration(newConfig);

-		

-	

-		((ConfiguredSite)configSite).setUpdatable(true);				

-		configSite.install(feature,null,null);

-		site.save();

-

-		//do not cleanup, we want to reuse previously created local site

-		// but force re-read of xml File

-		InternalSiteManager.localSite=null;

-		site = SiteManager.getLocalSite();

-		feature = remoteSite.getFeatureReferences()[0].getFeature();

-		int oldNumber = site.getCurrentConfiguration().getConfiguredSites().length;		

-		

-		// check

-		// there are 2 configuration

-		String time = ""+site.getCurrentConfiguration().getCreationDate().getTime();

-		URL location = ((SiteLocal)site).getLocationURL();		

-		File file = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_PREFIX+time+".xml").getFile());

-		assertTrue("new configuration does not exist", file.exists());

-		

-		// teh current one points to a real fature

-		// does not throw error.

-		IConfiguredSite configSite2 = site.getCurrentConfiguration().getConfiguredSites()[0];

-		

-		IFeatureReference[] refs = configSite2.getConfiguredFeatures();

-		boolean found = false;

-		IFeature feature2 = null;

-		for (int i = 0; i < refs.length; i++) {

-			IFeature feature3 = refs[i].getFeature();			

-			if ("org.test1.ident1_1.0.0".equals(feature3.getVersionedIdentifier().toString())){

-				feature2 = feature3;

-				found = true;

-			}		

-		}

-

-		//String configuredFeature = feature2.getLabel();

-		assertTrue("cannot find feature org.test1.ident1_1.0.0 in configured Site",found);

-		assertTrue("Wrong id  version of feature",feature2.getVersionedIdentifier().toString().equalsIgnoreCase("org.test1.ident1_1.0.0"));

-		

-		// test only 2 install config in local site

-		assertEquals("wrong number of history in Local site:",oldNumberOfhistory+1,site.getConfigurationHistory().length);

-		

-		// test same number of sites in current config

-		assertTrue("Wrong number of config sites in current config",site.getCurrentConfiguration().getConfiguredSites().length==oldNumber);

-		

-		//test only one feature for the site

-		assertTrue("wrong number of configured features for config site",site.getCurrentConfiguration().getConfiguredSites()[0].getConfiguredFeatures().length==1);

-		

-		// test only 2 activities

-		assertTrue("Wrong number of activities for install config",site.getCurrentConfiguration().getActivities().length==2);

-		

-		

-		// cleanup

-		localFile = new File(new URL(location,SiteLocal.SITE_LOCAL_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);		

-		localFile = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		localFile = new File(new URL(location,Site.DEFAULT_FEATURE_PATH+File.separator+feature.getVersionedIdentifier().toString()).getFile());		

-		UpdateManagerUtils.removeFromFileSystem(localFile);	

-		UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)site.getCurrentConfiguration()).getURL().getFile()));						

-		UpdateManagerUtils.removeFromFileSystem(file);		

-		localFile = new File(feature2.getURL().getFile());

-		UpdateManagerUtils.removeFromFileSystem(localFile);

-	}

-	

-public void testRetriveConfigHTTPInstallNotEnable() throws Exception {

-

-	//clean up

-	SiteLocal siteLocal = (SiteLocal)SiteManager.getLocalSite();

-	URL newURL = new URL(siteLocal.getLocationURL(),SiteLocal.SITE_LOCAL_FILE);

-	File localFile = new File(newURL.getFile());

-	UpdateManagerUtils.removeFromFileSystem(localFile);

-	UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)siteLocal.getCurrentConfiguration()).getURL().getFile()));	

-	InternalSiteManager.localSite=null;		

-

-	ILocalSite site = SiteManager.getLocalSite();

-	ISite remoteSite = SiteManager.getSite(SOURCE_HTTP_SITE);

-	IFeature feature = remoteSite.getFeatureReferences()[0].getFeature();

-		

-	// we are not checking if this is read only

-	IInstallConfiguration newConfig = site.cloneCurrentConfiguration();

-	newConfig.setLabel("new Label");		

-	IConfiguredSite configSite = newConfig.getConfiguredSites()[0];

-	ConfigurationPolicyModel configPolicy = new BaseSiteLocalFactory().createConfigurationPolicyModel();

-	configPolicy.setPolicy(IPlatformConfiguration.ISitePolicy.USER_INCLUDE);

-	((ConfiguredSite)configSite).setConfigurationPolicyModel((ConfigurationPolicyModel)configPolicy);	

-	int oldNumberOfhistory = site.getConfigurationHistory().length;			

-	site.addConfiguration(newConfig);

-		

-	

-	((ConfiguredSite)configSite).setUpdatable(true);

-	configSite.install(feature,null,null);

-	((ConfiguredSite)configSite).setEnabled(false);	

-	site.save();

-

-	//do not cleanup, we want to reuse previously created local site

-	// but force re-read of xml File

-	InternalSiteManager.localSite=null;

-	site = SiteManager.getLocalSite();

-	feature = remoteSite.getFeatureReferences()[0].getFeature();

-	int oldNumber = site.getCurrentConfiguration().getConfiguredSites().length;		

-		

-	// check

-	// there are 2 configuration

-	String time = ""+site.getCurrentConfiguration().getCreationDate().getTime();

-	URL location = ((SiteLocal)site).getLocationURL();		

-	File file = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_PREFIX+time+".xml").getFile());

-	assertTrue("new configuration does not exist", file.exists());

-		

-	// teh current one points to a real fature

-	// does not throw error.

-	IConfiguredSite configSite2 = site.getCurrentConfiguration().getConfiguredSites()[0];

-		

-	IFeatureReference[] refs = configSite2.getConfiguredFeatures();

-	boolean found = false;

-	IFeature feature2 = null;

-	for (int i = 0; i < refs.length; i++) {

-		IFeature feature3 = refs[i].getFeature();			

-		if ("org.test1.ident1_1.0.0".equals(feature3.getVersionedIdentifier().toString())){

-			feature2 = feature3;

-			found = true;

-		}		

-	}

-

-	//String configuredFeature = feature2.getLabel();

-	assertTrue("found feature org.test1.ident1_1.0.0 in disabled configured Site",!found);

-		

-	//test no configured features

-	assertTrue("wrong number of configured features for config site",site.getCurrentConfiguration().getConfiguredSites()[0].getConfiguredFeatures().length==0);

-	

-	

-	configSite2.setEnabled(true);

-	refs = configSite2.getConfiguredFeatures();	

-	for (int i = 0; i < refs.length; i++) {

-		IFeature feature3 = refs[i].getFeature();			

-		if ("org.test1.ident1_1.0.0".equals(feature3.getVersionedIdentifier().toString())){

-			feature2 = feature3;

-			found = true;

-		}		

-	}

-

-	//String configuredFeature = feature2.getLabel();

-	assertTrue("cannot find feature org.test1.ident1_1.0.0 in configured Site",found);

-	assertTrue("Wrong id  version of feature",feature2.getVersionedIdentifier().toString().equalsIgnoreCase("org.test1.ident1_1.0.0"));

-		

-	// test only 2 install config in local site

-	assertEquals("wrong number of history in Local site:",oldNumberOfhistory+1,site.getConfigurationHistory().length);

-		

-	// test same number of sites in current config

-	assertTrue("Wrong number of config sites in current config",site.getCurrentConfiguration().getConfiguredSites().length==oldNumber);

-		

-	//test only one feature for the site

-	assertTrue("wrong number of configured features for config site",site.getCurrentConfiguration().getConfiguredSites()[0].getConfiguredFeatures().length==1);

-		

-	// test only 2 activities

-	assertTrue("Wrong number of activities for install config",site.getCurrentConfiguration().getActivities().length==2);

-		

-		

-	// cleanup

-	localFile = new File(new URL(location,SiteLocal.SITE_LOCAL_FILE).getFile());

-	UpdateManagerUtils.removeFromFileSystem(localFile);		

-	localFile = new File(new URL(location,SiteLocal.DEFAULT_CONFIG_FILE).getFile());

-	UpdateManagerUtils.removeFromFileSystem(localFile);	

-	localFile = new File(new URL(location,Site.DEFAULT_FEATURE_PATH+File.separator+feature.getVersionedIdentifier().toString()).getFile());		

-	UpdateManagerUtils.removeFromFileSystem(localFile);	

-	UpdateManagerUtils.removeFromFileSystem(new File(((InstallConfiguration)site.getCurrentConfiguration()).getURL().getFile()));						

-	UpdateManagerUtils.removeFromFileSystem(file);		

-	localFile = new File(feature2.getURL().getFile());

-	UpdateManagerUtils.removeFromFileSystem(localFile);

-}

-

-

-}

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestSpaceInInstall.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestSpaceInInstall.java
deleted file mode 100644
index 4f2e196..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularInstall/TestSpaceInInstall.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularInstall;

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestSpaceInInstall extends UpdateManagerTestCase {

-	/**

-	 * Constructor for Test1

-	 */

-	public TestSpaceInInstall(String arg0) {

-		super(arg0);

-	}

-

-	/**

-	 *

-	 */

-	public void testSpaceInURL() throws Exception {

-

-		//cleanup target 

-		URL testURL = new URL(TARGET_FILE_SITE,"test site space/"); 

-		String testPath = testURL.getFile();

-		File target = new File(testPath);

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		URL newURL = new File(dataPath + "Site with space/site.xml").toURL();

-		ISite remoteSite = SiteManager.getSite(newURL);

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		File file = new File(testURL.getFile());

-		if (!file.exists()) file.mkdirs();

-		ISite localSite = SiteManager.getSite(testURL);

-		IFeature remoteFeature = null;

-		

-		// at least one executable feature and on packaged

-		boolean execFeature = false;

-		boolean packFeature = false;

-

-		if (featuresRef.length==0) fail ("no feature found");

-	

-		for (int i = 0; i < featuresRef.length; i++) {

-			remoteFeature = featuresRef[i].getFeature();

-			remove(remoteFeature,localSite); 

-			localSite.install(remoteFeature, null,null);

-			

-			if (remoteFeature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider) packFeature = true;

-			if (remoteFeature.getFeatureContentProvider() instanceof FeatureExecutableContentProvider) execFeature = true;

-

-			// verify

-			String site = testURL.getFile();

-			IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-			assertTrue("no plugins entry", (entries != null && entries.length != 0));

-			String pluginName = entries[0].getVersionedIdentifier().toString();

-			File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-			assertTrue("plugin files not installed locally", pluginFile.exists());

-

-			File featureFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString());

-			assertTrue("feature info not installed locally:"+featureFile, featureFile.exists());

-

-			File featureFileXML = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString() + File.separator + "feature.xml");

-			assertTrue("feature info not installed locally: no feature.xml", featureFileXML.exists());

-		}

-

-		if (!execFeature && !packFeature){

-			fail("cannot find one executable and one package feature on teh site");

-		}

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}

-	

-	

-	/**

-	 *

-	 */

-	public void testSpaceInHTTPURL() throws Exception {

-

-		//cleanup target  

-		File target = new File(TARGET_FILE_SITE.getFile());

-		UpdateManagerUtils.removeFromFileSystem(target);

-		

-		String path = bundle.getString("HTTP_PATH_3");

-		ISite remoteSite = SiteManager.getSite(new URL("http",getHttpHost(),getHttpPort(),path));		

-		IFeatureReference[] featuresRef = remoteSite.getFeatureReferences();

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeature remoteFeature = null;

-		

-		// at least one executable feature and on packaged

-		boolean execFeature = false;

-		boolean packFeature = false;

-

-		if (featuresRef.length==0) fail ("no feature found");

-	

-		for (int i = 0; i < featuresRef.length; i++) {

-			remoteFeature = featuresRef[i].getFeature();

-			localSite.install(remoteFeature, null,null);

-			

-			if (remoteFeature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider) packFeature = true;

-			if (remoteFeature.getFeatureContentProvider() instanceof FeatureExecutableContentProvider) execFeature = true;

-

-			// verify

-			String site = TARGET_FILE_SITE.getFile();			

-			IPluginEntry[] entries = remoteFeature.getRawPluginEntries();

-			assertTrue("no plugins entry", (entries != null && entries.length != 0));

-			String pluginName = entries[0].getVersionedIdentifier().toString();

-			File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-			assertTrue("plugin files not installed locally", pluginFile.exists());

-

-			File featureFile = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString());

-			assertTrue("feature info not installed locally:"+featureFile, featureFile.exists());

-

-			File featureFileXML = new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + remoteFeature.getVersionedIdentifier().toString() + File.separator + "feature.xml");

-			assertTrue("feature info not installed locally: no feature.xml", featureFileXML.exists());

-		}

-

-		if (!execFeature && !packFeature){

-			fail("cannot find one executable and one package feature on teh site");

-		}

-

-		//cleanup target 

-		UpdateManagerUtils.removeFromFileSystem(target);

-

-

-	}

-		

-		

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/AllRegularRemoveTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/AllRegularRemoveTests.java
deleted file mode 100644
index 937ec75..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/AllRegularRemoveTests.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularRemove;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllRegularRemoveTests extends UpdateManagerTestCase {

-public AllRegularRemoveTests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Regular Remove Tests");

-	

-	suite.addTest(new TestSuite(TestRemove.class));

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/TestRemove.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/TestRemove.java
deleted file mode 100644
index c7d1e69..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/regularRemove/TestRemove.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.regularRemove;

-import java.io.File;

-import java.net.MalformedURLException;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.configuration.IConfiguredSiteChangedListener;

-import org.eclipse.update.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-public class TestRemove extends UpdateManagerTestCase {

-

-	public class Listener implements IConfiguredSiteChangedListener {

-

-		public boolean notified = false;

-

-		public void featureInstalled(IFeature feature) {

-			notified = true;

-			System.out.println("Notified DefaultFeature Installed");

-		}

-

-		public void featureRemoved(IFeature feature) {

-		}

-		public void featureConfigured(IFeature feature) {

-		};

-		public void featureUnconfigured(IFeature feature) {

-		};

-

-		public boolean isNotified() {

-			return notified;

-		}

-	}

-

-	/**

-	 * Constructor for Test1

-	 */

-	public TestRemove(String arg0) {

-		super(arg0);

-	}

-

-	private IFeature getFeature1(ISite site)

-		throws MalformedURLException, CoreException {

-		//URL url = UpdateManagerUtils.getURL(site.getURL(), "features/org.eclipse.update.core.tests.feature1_1.0.4.jar", null);

-		SiteFeatureReference ref = new SiteFeatureReference();

-		ref.setSite(site);

-		ref.setURLString("features/org.eclipse.update.core.tests.feature1_1.0.4.jar");

-		ref.setType(ISite.DEFAULT_PACKAGED_FEATURE_TYPE);

-		ref.resolve(site.getURL(), null);

-		return ref.getFeature();

-	}

-

-	public void testRemoveFeature() throws Exception {

-

-		// install feature

-		ISite remoteSite = SiteManager.getSite(SOURCE_FILE_SITE);

-		IFeature remoteFeature = getFeature1(remoteSite);

-		ISite localSite = SiteManager.getSite(TARGET_FILE_SITE);

-		IFeatureReference ref = localSite.install(remoteFeature, null, null);

-

-		// then remove it

-		assertNotNull("Feature is null",ref.getFeature());

-		String featureRef = ref.getFeature().getVersionedIdentifier().toString();

-		localSite.remove(ref.getFeature(), null);

-

-		// verify

-		String site = TARGET_FILE_SITE.getFile();

-		IPluginEntry[] entries = remoteFeature.getPluginEntries();

-		assertTrue("no plugins entry", (entries != null && entries.length != 0));

-		String pluginName = entries[0].getVersionedIdentifier().toString();

-

-		File pluginFile = new File(site, Site.DEFAULT_PLUGIN_PATH + pluginName);

-		assertTrue("plugin files installed locally", !pluginFile.exists());

-

-		File featureFile =

-			new File(site, Site.DEFAULT_INSTALLED_FEATURE_PATH + featureRef);

-		assertTrue(

-			"feature info installed locally:" + featureFile,

-			!featureFile.exists());

-

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/AllSiteValidationTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/AllSiteValidationTests.java
deleted file mode 100644
index 7d063a9..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/AllSiteValidationTests.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.sitevalidation;
-
-import org.eclipse.update.tests.UpdateManagerTestCase;
-import junit.framework.*;
-
-public class AllSiteValidationTests extends UpdateManagerTestCase {
-	public AllSiteValidationTests(String name) {
-		super(name);
-	}
-	public static Test suite() {
-		TestSuite suite = new TestSuite();
-		suite.setName("Site Validation Tests");
-
-		// the following will take all teh test methods in teh class that start with 'test'
-
-		suite.addTest(new TestSuite(TestSiteValidation.class));
-
-		return suite;
-	}
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/TestSiteValidation.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/TestSiteValidation.java
deleted file mode 100644
index 6b18163..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/sitevalidation/TestSiteValidation.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.tests.sitevalidation;
-import java.io.File;
-import java.net.URL;
-
-import org.eclipse.core.boot.BootLoader;
-import org.eclipse.core.boot.IPlatformConfiguration.ISiteEntry;
-import org.eclipse.core.internal.boot.PlatformConfiguration;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.update.configuration.*;
-import org.eclipse.update.core.SiteManager;
-import org.eclipse.update.internal.core.UpdateManagerUtils;
-import org.eclipse.update.tests.UpdateManagerTestCase;
-
-public class TestSiteValidation extends UpdateManagerTestCase {
-
-
-	/**
-	 * Constructor 
-	 */
-	public TestSiteValidation(String arg0) {
-		super(arg0);
-	}
-
-	private void removeConfigSite(URL url) throws Exception {
-		// get new config object
-		PlatformConfiguration cfig = (PlatformConfiguration)BootLoader.getCurrentPlatformConfiguration();
-		ISiteEntry s1 = cfig.findConfiguredSite(url);
-		assertNotNull("Unable to find site entry:"+url,s1);
-		cfig.unconfigureSite(s1);
-	}
-
-	public void testSite1() throws Exception {
-
-		URL remoteUrl = new URL(TARGET_FILE_SITE + "validation/site1");
-		File file = new File(remoteUrl.getFile());
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		file.mkdirs();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		String msg = "The site "+file+" should be updatable.";
-		if (!status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		currentConfig.removeConfiguredSite(configuredSite);
-		removeConfigSite(configuredSite.getSite().getURL());
-	}
-	
-	public void testSite2() throws Exception {
-
-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "validation/site2/");
-		File file = new File(remoteUrl.getFile());
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		UpdateManagerUtils.removeFromFileSystem(new File(file,".eclipseUM"));
-
-		String msg = "The site "+file+" should not be updatable.";
-		if (status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		if (status.getMessage().indexOf("This site is contained in another site:")==-1){
-			fail("Wrong validation:"+status.getMessage());
-		}
-	}	
-
-	public void testSite3() throws Exception {
-
-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "validation/site3");
-		File file = new File(remoteUrl.getFile());
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		UpdateManagerUtils.removeFromFileSystem(new File(file,".eclipseUM"));
-
-		String msg = "The site "+file+" should not be updatable.";
-		if (status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		if (status.getMessage().indexOf("This site is contained in another site:")==-1){
-			fail("Wrong validation:"+status.getMessage());
-		}
-	}	
-
-	public void testSite4() throws Exception {
-
-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "validation/site4");
-		File file = new File(remoteUrl.getFile());
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		String msg = "The site "+file+" should not be updatable.";
-		if (status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		if (status.getMessage().indexOf("The site cannot be modifed by this product. It is already associated with product:")==-1){
-			fail("Wrong validation:"+status.getMessage());
-		}
-	}	
-
-	public void testSite5() throws Exception {
-
-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "validation/site5/");
-		File file = new File(remoteUrl.getFile());
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		String msg = "The site "+file+" should be updatable.";
-		if (!status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		
-			// get new config object
-		URL url = configuredSite.getSite().getURL();
-		PlatformConfiguration cfig = (PlatformConfiguration)BootLoader.getCurrentPlatformConfiguration();
-		ISiteEntry s1 = cfig.findConfiguredSite(url);
-		assertNotNull("Site entry not found:"+url,s1);
-		cfig.unconfigureSite(s1);
-		cfig.save();
-	}
-	
-	public void testSite6() throws Exception {
-
-		URL remoteUrl = new URL(SOURCE_FILE_SITE + "validation/site6/children/children");
-		File file = new File(remoteUrl.getFile());
-		if (!file.exists()) file.mkdirs();
-		ILocalSite local = SiteManager.getLocalSite();
-		IInstallConfiguration currentConfig = local.getCurrentConfiguration();
-		IConfiguredSite configuredSite = currentConfig.createConfiguredSite(file);
-		IStatus status = configuredSite.verifyUpdatableStatus();
-
-		UpdateManagerUtils.removeFromFileSystem(new File(file,".eclipseUM"));
-
-		String msg = "The site "+file+" should not be updatable.";
-		if (status.isOK()){
-			fail(msg+status.getMessage());
-		}
-		if (status.getMessage().indexOf("This site is contained in another site:")==-1){
-			fail("Wrong validation:"+status.getMessage());
-		}
-	}	
-}
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/AllTypesTests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/AllTypesTests.java
deleted file mode 100644
index 970648d..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/AllTypesTests.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.types;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllTypesTests extends UpdateManagerTestCase {

-public AllTypesTests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Regular Install Tests");

-	

-	// the following will take all teh test methods in teh class that start with 'test'

-	suite.addTest(new TestSuite(TestFeatureType.class));

-	suite.addTest(new TestSuite(TestSiteType.class));	

-	

-	// or you can specify the method

-	//suite.addTest(new TestGetFeature("methodThatDoesNotStartWithtest"));	

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestFeatureType.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestFeatureType.java
deleted file mode 100644
index 5613b19..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestFeatureType.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.types;

-

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-public class TestFeatureType extends UpdateManagerTestCase {

-

-

-	private static final String PACKAGED_FEATURE_TYPE = "packaged"; //$NON-NLS-1$

-	private static final String INSTALLED_FEATURE_TYPE = "installed"; //$NON-NLS-1$	

-	

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestFeatureType(String arg0) {

-		super(arg0);

-	}

-	

-	

-	public String getDefaultInstallableFeatureType() {

-		String pluginID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier() + "."; //$NON-NLS-1$

-		return pluginID + PACKAGED_FEATURE_TYPE;

-	}

-	

-	public String getDefaultExecutableFeatureType() {

-		String pluginID = UpdateCore.getPlugin().getDescriptor().getUniqueIdentifier() + "."; //$NON-NLS-1$

-		return pluginID + INSTALLED_FEATURE_TYPE;

-	}		

-	

-	/**

-	 * @throws Exception

-	 */

-	public void testSimplePackagedFeatureType() throws Exception{ 

-		FeatureTypeFactory factories = FeatureTypeFactory.getInstance();

-		IFeatureFactory factory = factories.getFactory(getDefaultInstallableFeatureType());

-		

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		URL featureURL = new URL(SOURCE_FILE_SITE,"features/features2.jar ");

-		

-		IFeature anotherFeature = factory.createFeature(featureURL,site);

-		

-		assertTrue("Factory doesn't create same feature",anotherFeature.getVersionedIdentifier().equals(anotherFeature.getVersionedIdentifier()));

-	}	

-	

-		/**

-	 * @throws Exception

-	 */

-	public void testSimpleExecutableFeatureType() throws Exception{ 

-		FeatureTypeFactory factories = FeatureTypeFactory.getInstance();

-		IFeatureFactory factory = factories.getFactory(getDefaultExecutableFeatureType());

-		

-		ISite site = SiteManager.getSite(SOURCE_FILE_SITE);

-		URL featureURL = new URL(SOURCE_FILE_SITE,"testAPI/"+Site.DEFAULT_INSTALLED_FEATURE_PATH+"feature3/");

-		

-		IFeature anotherFeature = factory.createFeature(featureURL,site);

-		

-		assertTrue("Factory doesn't create same feature",anotherFeature.getVersionedIdentifier().equals(anotherFeature.getVersionedIdentifier()));

-	}	

-	

-	/**

-	 * @throws Exception

-	 */

-	public void testFeatureType() throws Exception{ 

-		FeatureTypeFactory factories = FeatureTypeFactory.getInstance();

-		IFeatureFactory factory = factories.getFactory(getDefaultInstallableFeatureType());

-		

-		ISite site = SiteManager.getSite(SOURCE_HTTP_SITE);

-		IFeature feature = site.getFeatureReferences()[0].getFeature();

-		

-		IFeature anotherFeature = factory.createFeature(feature.getURL(),site);

-		

-		assertTrue("Factory doesn't create same feature",feature.getVersionedIdentifier().equals(anotherFeature.getVersionedIdentifier()));

-	}

-	

-	

-	/**

-	 * @throws Exception

-	 */

-	public void testFeatureNewType() throws Exception{ 

-		FeatureTypeFactory factories = FeatureTypeFactory.getInstance();

-		IFeatureFactory factory = factories.getFactory(getDefaultExecutableFeatureType());

-		

-		String featurePath = dataPath+"FeatureTypeExamples/site1/site.xml";

-		ISite site = SiteManager.getSite(new File(featurePath).toURL());

-		IFeatureReference ref = site.getFeatureReferences()[0];

-		IFeature feature = ref.getFeature();

-		

-		IFeature anotherFeature = factory.createFeature(feature.getURL(),site);

-

-		assertTrue(feature.getFeatureContentProvider() instanceof FeatureExecutableContentProvider);		

-		assertTrue(((FeatureReference)ref).getType().equals("org.eclipse.update.tests.core.feature1"));		

-		assertTrue("Factory doesn't create same feature",feature.getVersionedIdentifier().equals(anotherFeature.getVersionedIdentifier()));

-

-

-	}

-	

-	

-		/**

-	 * @throws Exception

-	 */

-	public void testFeatureAnotherType() throws Exception{ 

-		FeatureTypeFactory factories = FeatureTypeFactory.getInstance();

-		IFeatureFactory factory = factories.getFactory(getDefaultInstallableFeatureType());

-		

-		String featurePath = dataPath+"FeatureTypeExamples/site2/site.xml";

-		ISite site = SiteManager.getSite(new File(featurePath).toURL());

-		IFeatureReference ref = site.getFeatureReferences()[0];		

-		IFeature feature = ref.getFeature();

-		

-		IFeature anotherFeature = factory.createFeature(feature.getURL(),site);

-		

-		assertTrue("Factory doesn't create same feature",feature.getVersionedIdentifier().equals(anotherFeature.getVersionedIdentifier()));

-		assertTrue(feature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider);

-		assertTrue(((FeatureReference)ref).getType().equals("org.eclipse.update.core.packaged"));

-		

-	}

-		

-		

-	/**

-	 * @throws Exception

-	 */

-	public void testFeatureUnknownType() throws Exception{ 

-		String featurePath = dataPath+"FeatureTypeExamples/site3/site.xml";

-		ISite site = SiteManager.getSite(new File(featurePath).toURL());

-		IFeatureReference ref = site.getFeatureReferences()[0];		

-		try {

-			ref.getFeature();

-			assertTrue("id found, should not be found",false);

-		} catch (CoreException e){

-			if (e.getMessage().indexOf("org.eclipse.update.core.unknowntype.jar")==-1){

-				throw e;

-			}

-		}

-		

-	}		

-		

-}

-

-

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestSiteType.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestSiteType.java
deleted file mode 100644
index 50da435..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/types/TestSiteType.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.types;

-

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.core.*;

-import org.eclipse.update.internal.core.FeaturePackagedContentProvider;

-import org.eclipse.update.internal.core.SiteURLContentProvider;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import org.eclipse.update.tests.implementation.SiteFTPFactory;

-

-public class TestSiteType extends UpdateManagerTestCase {

-

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestSiteType(String arg0) {

-		super(arg0);

-	}

-

-	/**

-	 * @throws Exception

-	 */

-	public void testSiteType() throws Exception {

-

-		String featurePath = dataPath + "SiteTypeExamples/site1/site.xml";

-		ISite site = SiteManager.getSite(new File(featurePath).toURL());

-		IFeatureReference ref = site.getFeatureReferences()[0];

-		IFeature feature = ref.getFeature();

-

-		assertTrue(site.getSiteContentProvider() instanceof SiteURLContentProvider);

-		assertTrue(((Site) site).getType().equals("org.eclipse.update.core.http"));

-		assertTrue(feature.getFeatureContentProvider() instanceof FeaturePackagedContentProvider);

-

-	}

-

-	/**

-		 * @throws Exception

-		 */

-	public void testFTPSiteType() throws Exception {

-

-		ISite site = SiteManager.getSite(new URL(SOURCE_FILE_SITE + "FTPLikeSite/"));

-

-		// should not find the mapping

-		// but then should attempt to read the XML file

-		// found a new type

-		// call the new type

-		assertTrue(

-			"Wrong site type",

-			site.getType().equals("org.eclipse.update.tests.ftp"));

-		assertTrue(

-			"Wrong file",

-			site.getURL().getFile().equals("/" + SiteFTPFactory.FILE));

-

-	}

-

-	public void testParseValid1() throws Exception {

-		try {

-			URL remoteURL = new URL(SOURCE_FILE_SITE + "parsertests/siteftp.xml");

-			ISite site = SiteManager.getSite(remoteURL);

-			site.getArchives();

-		} catch (CoreException e) {

-			if (e.getMessage().indexOf("</feature>") == -1) {

-				throw e;

-			}

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/AllCoreUITests.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/AllCoreUITests.java
deleted file mode 100644
index a18ab16..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/AllCoreUITests.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.uivalues;

-

-import org.eclipse.update.tests.UpdateManagerTestCase;

-import junit.framework.*;

-

-

-public class AllCoreUITests extends UpdateManagerTestCase {

-public AllCoreUITests(String name) {

-	super(name);

-}

-public static Test suite() {

-	TestSuite suite = new TestSuite();

-	suite.setName("Regular Install Tests");

-	

-	// the following will take all teh test methods in teh class that start with 'test'

-	suite.addTest(new TestSuite(TestUILabel.class));

-	

-	// or you can specify the method

-	//suite.addTest(new TestGetFeature("methodThatDoesNotStartWithtest"));	

-	

-	return suite;

-}

-}

diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/TestUILabel.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/TestUILabel.java
deleted file mode 100644
index 54dc0d8..0000000
--- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/uivalues/TestUILabel.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.tests.uivalues;

-

-import java.io.File;

-import java.net.URL;

-

-import org.eclipse.update.core.*;

-import org.eclipse.update.tests.UpdateManagerTestCase;

-

-

-public class TestUILabel extends UpdateManagerTestCase {

-

-	/**

-	 * Test the getFeatures()

-	 */

-	public TestUILabel(String arg0) {

-		super(arg0);

-	}

-	

-	

-	/**

-	 * Method testHTTPSite.

-	 * @throws Exception

-	 */

-	public void testUpdateManagerSite() throws Exception{ 

-		

-		ISite remoteSite = SiteManager.getSite(new URL("http",getHttpHost(),getHttpPort(),bundle.getString("HTTP_PATH_2")));

-		ICategory[] categories = remoteSite.getCategories();

-		for (int i =0; i<categories.length; i++){

-			System.out.println("Category ->"+categories[i].getLabel()+":"+categories[i].getName());

-		}

-		System.out.println(remoteSite.getDescription().getURL().toExternalForm());

-		IFeatureReference[] remoteFeatures = remoteSite.getFeatureReferences();

-		if (remoteFeatures==null || remoteFeatures.length==0) fail("No feature available for testing");		

-		for (int i=0;i<remoteFeatures.length;i++){

-			IFeature feature = remoteFeatures[i].getFeature();

-			System.out.println("feature:"+feature.getVersionedIdentifier()+"->"+feature.getLabel());

-			print(feature.getLicense(),"License");

-			print(feature.getCopyright(),"Copyright");			

-			print(feature.getDescription(),"Description");				

-			

-			// check that it downloads the feature.jar under the cover

-			// and unpack it

-			

-			URL url = feature.getLicense().getURL();

-			if (url!=null){

-				assertTrue((new File(url.getFile())).exists());

-			}

-

-			url = feature.getCopyright().getURL();

-			if (url!=null){

-				assertTrue((new File(url.getFile())).exists());

-			}

-			

-			url = feature.getDescription().getURL();

-			if (url!=null){

-				assertTrue((new File(url.getFile())).exists());

-			}

-			

-		}

-	}

-	

-	

-	/**

-	 * Method print.

-	 * @param info

-	 * @param text

-	 */

-	private void print(IURLEntry info, String text){

-		System.out.print("->"+text+":");

-		if (info.getURL()!=null) 

-			System.out.println("<"+info.getURL().toExternalForm()+">");

-		else 

-			System.out.println(info.getAnnotation());

-	}

-} 

-

-

diff --git a/update/org.eclipse.update.tests.core/test.xml b/update/org.eclipse.update.tests.core/test.xml
deleted file mode 100644
index f188855..0000000
--- a/update/org.eclipse.update.tests.core/test.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>

-<project name="testsuite" default="run" basedir="."> 

-  

-  <!-- The property ${eclipse-home} should be passed into this script -->

-  <!-- Set a meaningful default value for when it is not. -->

-  <property name="eclipse-home" value="${basedir}/../.."/>

-  

-  <!-- sets the properties eclipse-home, and library-file -->

-  <property name="plugin-name" value="org.eclipse.update.tests.core"/>

-  <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>

-  <property name="class-name" value="org.eclipse.update.tests.AllTests" />

-  

-  <!-- This target holds all initialization code that needs to be done for -->

-  <!-- all tests that are to be run. Initialization for individual tests -->

-  <!-- should be done within the body of the suite target. -->

-  <target name="init">

-    <tstamp/>

-    <delete>

-      <fileset dir="${eclipse-home}" includes="org*.xml"/>

-    </delete>

-  </target>

-  

-  <!-- This target defines the tests that need to be run. -->

-  <target name="suite">

-    <property name="sniff-folder" value="${eclipse-home}/update_core_sniff_folder"/>

-    <delete dir="${sniff-folder}" quiet="true"/>

-    

-    <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">

-      <property name="data-dir" value="${sniff-folder}"/>

-      <property name="plugin-name" value="${plugin-name}"/>

-      <property name="classname" value="${class-name}"/>

-    </ant>

-  </target>

-  

-  <!-- This target holds code to cleanup the testing environment after -->

-  <!-- after all of the tests have been run. You can use this target to -->

-  <!-- delete temporary files that have been created. -->

-  <target name="cleanup">

-  </target>

-  

-  <!-- This target runs the test suite. Any actions that need to happen -->

-  <!-- after all the tests have been run should go here. -->

-   <target name="run" depends="init,suite,cleanup">

-    <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">

-      <property name="includes" value="org*.xml"/>

-      <property name="output-file" value="${plugin-name}.xml"/>

-    </ant>

-  </target>

-</project>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/test_with_mail.xml b/update/org.eclipse.update.tests.core/test_with_mail.xml
deleted file mode 100644
index 9f1d408..0000000
--- a/update/org.eclipse.update.tests.core/test_with_mail.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0"?>
-<project name="testsuite" default="run" basedir="."> 
-  
-  <!-- The property ${eclipse-home} should be passed into this script -->
-  <!-- Set a meaningful default value for when it is not. -->
-  <property name="eclipse-home" value="${basedir}/../.."/>
-  
-  <!-- sets the properties eclipse-home, and library-file -->
-  <property name="plugin-name" value="org.eclipse.update.tests.core"/>
-  <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/>
-  <property name="class-name" value="org.eclipse.update.tests.AllTests" />
-  
-  <!-- This target holds all initialization code that needs to be done for -->
-  <!-- all tests that are to be run. Initialization for individual tests -->
-  <!-- should be done within the body of the suite target. -->
-  <target name="init">
-    <tstamp/>
-    <delete>
-      <fileset dir="${eclipse-home}" includes="org*.xml"/>
-    </delete>
-  </target>
-  
-  <!-- This target defines the tests that need to be run. -->
-  <target name="suite">
-    <property name="sniff-folder" value="${eclipse-home}/update_core_sniff_folder"/>
-    <delete dir="${sniff-folder}" quiet="true"/>
-    
-    <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
-      <property name="data-dir" value="${sniff-folder}"/>
-      <property name="plugin-name" value="${plugin-name}"/>
-      <property name="classname" value="${class-name}"/>
-    </ant>
-  </target>
-  
-  <!-- This target holds code to cleanup the testing environment after -->
-  <!-- after all of the tests have been run. You can use this target to -->
-  <!-- delete temporary files that have been created. -->
-  <target name="cleanup">
-  </target>
-  
-  <!-- This target runs the test suite. Any actions that need to happen -->
-  <!-- after all the tests have been run should go here. -->
-   <target name="run" depends="init,suite,cleanup">
-
-    <property name="email-from" value="Eclipse_Automated_Test@oti.com"/>
-    <property name="email-subject" value="Install/Update: Nightly Build Report"/>
-    <property name="email-subject-log" value="Install/Update: Nightly .log"/>
-    <property name="email-server" value="d25ml04.torolab.ibm.com"/>
-    <property name="infile" value="${eclipse-home}/${plugin-name}.xml"/>
-    <property name="infile-log" value="${eclipse-home}/workspace/.metadata/.log"/>
-      
-    <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
-      <property name="includes" value="org*.xml"/>
-      <property name="output-file" value="${plugin-name}.xml"/>
-    </ant>
-    
-    <touch file="${infile-log}"/>
-
-    <mail from="${email-from}" tolist="celek@ca.ibm.com"
-          subject="${email-subject}" files="${infile}"
-          mailhost="${email-server}"/>
-
-    <mail from="${email-from}" tolist="celek@ca.ibm.com"
-          subject="${email-subject-log}" files="${infile-log}"
-          mailhost="${email-server}"/>
-
-    <mail from="${email-from}" tolist="celek@rogers.com"
-          subject="${email-subject-log}" files="${infile-log}"
-          mailhost="${email-server}"/>
-
-    <mail from="${email-from}" tolist="celek@rogers.com"
-          subject="${email-subject}" files="${infile}"
-          mailhost="${email-server}"/>
-
-  </target>
-</project>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/features space/helpFeature.jar b/update/org.eclipse.update.tests.core/webserver/Site with space/features space/helpFeature.jar
deleted file mode 100644
index 6369149..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/features space/helpFeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/features space/space feature.jar b/update/org.eclipse.update.tests.core/webserver/Site with space/features space/space feature.jar
deleted file mode 100644
index 27e81eb..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/features space/space feature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/top_titlsm.gif b/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/top_titlsm.gif
deleted file mode 100644
index 3917bb6..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/top_titlsm.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/wel_ml.jpg b/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/wel_ml.jpg
deleted file mode 100644
index 01e33df..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/info/img/wel_ml.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/info/siteInfo.html b/update/org.eclipse.update.tests.core/webserver/Site with space/info/siteInfo.html
deleted file mode 100644
index b065aa3..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/info/siteInfo.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

-<html>

-<head>

-</head>

-  <body>

-<img src="img/top_titlsm.gif" alt="" width="460" height="50">

-<br>

-<br>

-     It started with Smalltalk<br>

-    OTI has been building tools for platform-independent OO development since

-  1988. Our ENVY&reg; technology first brought collaborative software development,

-  version management and shared repositories to Smalltalk. IBM is one of

-many   companies to license ENVY, which continues to be the foundation of

-VisualAge&reg;   Smalltalk.<br>

-<br>

-<br>

-<br>

-      Next came Java&#8482;<br>

-    Because of our expertise in OO technology, IBM turned to OTI for a next-generation

-  development environment for Java. The result is VisualAge for Java, which

-  continues to win awards for its innovative IDE and team support. InfoWorld

-  has chosen VisualAge for Java as development tool of the year - year after

-  year after year!<br>

-<br>

-<br>

-<br>

-      Then pervasive computing<br>

-    OTI continues its development of IBM's VisualAge Micro Edition, a state-of-the-art

-  platform for collaborative development of embedded applications and systems

-  that are very lean. As the steady stream of press releases attests, VisualAge

-  Micro Edition is already licensed to the leading microchip manufacturers,

-  microkernel developers, and producers of handheld and consumer devices.<br>

-<br>

-<br>

-<br>

-      Now it's Eclipse<br>

-    OTI has built the next generation IBM application development tools platform.

-  Eclipse is a kind of universal tool platform - an open extensible IDE for

-  anything and nothing in particular. The real value comes from tool plug-ins

-  that "teach" Eclipse how to work with things - java files, web content,

-graphics,  video - almost anything you can imagine. Eclipse allows you to

-independently  develop tools that integrate with other people's tools so

-seamlessly you won't know where one tool ends and another starts. The IBM

-supported version of this technology, WebSphere Studio Workbench, will be

-the core of the next  generation of IBM and IBM Business Partner e-business

-tools optimized for  the WebSphere software platform.<br>

-<br>

-<br>

-<br>

-      So what's next?<br>

-    OTI continues to deliver object-oriented technology that scales across

- platforms,  across teams and across project size. From a mainframe to a

-watch  - we're  closing in on that vision.<br>

-<br>

-<img src="img/wel_ml.jpg" width="460" height="460" alt="">

-<br>

-<br>

-<br>

-<br>

-<br>

-<br>

-</body>

-</html>

diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/install/features space/feature3/feature.xml b/update/org.eclipse.update.tests.core/webserver/Site with space/install/features space/feature3/feature.xml
deleted file mode 100644
index 67741d9..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/install/features space/feature3/feature.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<feature id="org.eclipse.update.core.tests.feature3" image="feature1.gif" label="Third Feature" provider-name="Smart Company" version="1.0.0" >

-  <description>Description</description>

-  <copyright>copyright</copyright>

-  <license>license</license>

-  <url>

-    <update label="URL to update the feature" url="http://www.eclipse.org/path/feature1/"/>

-    <discovery label="Discovery 1" url="http://www.eclipse.org"/>

-    <discovery label="Discovery 2" url="http://www.eclipse.org"/>

-  </url>

-</feature>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/Pde_core.jar b/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/help.jar b/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/junit_3.7.jar b/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/plugins space/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/Site with space/site.xml b/update/org.eclipse.update.tests.core/webserver/Site with space/site.xml
deleted file mode 100644
index b5d4bbf..0000000
--- a/update/org.eclipse.update.tests.core/webserver/Site with space/site.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site>

-<description url="info/siteInfo.html"/>

-  <feature url="features space/helpFeature.jar">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature url="features space/space feature.jar">

-    <category name="eclipse/J2EE"/>

-  </feature>

-

-  <archive path="plugins/org.eclipse.help_1.0.0.jar" url="plugins space/help.jar"/>

-  <archive path="plugins/org.eclipse.pde.core_1.0.0.jar" url="plugins space/Pde_core.jar"/>

-  <archive path="plugins/org.junit_3.5.0.jar" url="plugins space/junit_3.7.jar"/>

-  <archive path="plugins/org.eclipse.update.plugin1_1.1.1" url="plugins space/org.eclipse.update.plugin1_1.1.1"/>  

-  <category-def label="IBM WSAD Tools" name="eclipse"/>

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>  

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/helpFeature.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/helpFeature.jar
deleted file mode 100644
index aec67d4..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/helpFeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/org.eclipse.pde.feature_1.0.0.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/org.eclipse.pde.feature_1.0.0.jar
deleted file mode 100644
index 870b40a..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/features/org.eclipse.pde.feature_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/top_titlsm.gif b/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/top_titlsm.gif
deleted file mode 100644
index 3917bb6..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/top_titlsm.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/wel_ml.jpg b/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/wel_ml.jpg
deleted file mode 100644
index 01e33df..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/img/wel_ml.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/siteInfo.html b/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/siteInfo.html
deleted file mode 100644
index b065aa3..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/info/siteInfo.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

-<html>

-<head>

-</head>

-  <body>

-<img src="img/top_titlsm.gif" alt="" width="460" height="50">

-<br>

-<br>

-     It started with Smalltalk<br>

-    OTI has been building tools for platform-independent OO development since

-  1988. Our ENVY&reg; technology first brought collaborative software development,

-  version management and shared repositories to Smalltalk. IBM is one of

-many   companies to license ENVY, which continues to be the foundation of

-VisualAge&reg;   Smalltalk.<br>

-<br>

-<br>

-<br>

-      Next came Java&#8482;<br>

-    Because of our expertise in OO technology, IBM turned to OTI for a next-generation

-  development environment for Java. The result is VisualAge for Java, which

-  continues to win awards for its innovative IDE and team support. InfoWorld

-  has chosen VisualAge for Java as development tool of the year - year after

-  year after year!<br>

-<br>

-<br>

-<br>

-      Then pervasive computing<br>

-    OTI continues its development of IBM's VisualAge Micro Edition, a state-of-the-art

-  platform for collaborative development of embedded applications and systems

-  that are very lean. As the steady stream of press releases attests, VisualAge

-  Micro Edition is already licensed to the leading microchip manufacturers,

-  microkernel developers, and producers of handheld and consumer devices.<br>

-<br>

-<br>

-<br>

-      Now it's Eclipse<br>

-    OTI has built the next generation IBM application development tools platform.

-  Eclipse is a kind of universal tool platform - an open extensible IDE for

-  anything and nothing in particular. The real value comes from tool plug-ins

-  that "teach" Eclipse how to work with things - java files, web content,

-graphics,  video - almost anything you can imagine. Eclipse allows you to

-independently  develop tools that integrate with other people's tools so

-seamlessly you won't know where one tool ends and another starts. The IBM

-supported version of this technology, WebSphere Studio Workbench, will be

-the core of the next  generation of IBM and IBM Business Partner e-business

-tools optimized for  the WebSphere software platform.<br>

-<br>

-<br>

-<br>

-      So what's next?<br>

-    OTI continues to deliver object-oriented technology that scales across

- platforms,  across teams and across project size. From a mainframe to a

-watch  - we're  closing in on that vision.<br>

-<br>

-<img src="img/wel_ml.jpg" width="460" height="460" alt="">

-<br>

-<br>

-<br>

-<br>

-<br>

-<br>

-</body>

-</html>

diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/Pde_core.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/Pde_core.jar
deleted file mode 100644
index f107217..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/Pde_core.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/help.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/help.jar
deleted file mode 100644
index 7584f66..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/help.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/junit_3.7.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/junit_3.7.jar
deleted file mode 100644
index 67587b2..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/plugins/junit_3.7.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager/site.xml b/update/org.eclipse.update.tests.core/webserver/UpdateManager/site.xml
deleted file mode 100644
index 5e5fda7..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager/site.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site >

-<description url="info/siteInfo.html"/>

-  <feature url="features/helpFeature.jar">

-    <category name="eclipse/UML"/>

-  </feature>

-  <feature url="features/org.eclipse.pde.feature_1.0.0.jar">

-    <category name="eclipse/J2EE"/>

-  </feature>

-  <archive path="plugins/org.eclipse.help_1.0.0.jar" url="plugins/help.jar"/>

-  <archive path="plugins/org.eclipse.pde.core_1.0.0.jar" url="plugins/Pde_core.jar"/>

-  <archive path="plugins/org.junit_3.5.0.jar" url="plugins/junit_3.7.jar"/>

-  <category-def label="IBM WSAD Tools" name="eclipse"/>

-  <category-def label="J2EE tools" name="eclipse/J2EE"/>

-  <category-def label="EJB Tools" name="eclipse/J2EE/EJB"/>

-  <category-def label="UML tools" name="eclipse/UML"/>

-  <category-def label="Messaging Tools" name="B2B"/>  

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/features2.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/features2.jar
deleted file mode 100644
index 81df72c..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/features2.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.test.feature_1.0.0.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.test.feature_1.0.0.jar
deleted file mode 100644
index d1aee3f..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.test.feature_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.update.core.tests.feature1_1.0.4.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
deleted file mode 100644
index f515ff4..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse.update.core.tests.feature1_1.0.4.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse_test_feature.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse_test_feature.jar
deleted file mode 100644
index 2be38d3..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/features/org.eclipse_test_feature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
deleted file mode 100644
index 022665c..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/org.eclipse.update.core.tests.childrenfeature_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/rootfeature.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/rootfeature.jar
deleted file mode 100644
index b519803..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/features/rootfeature.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index 5d9f5bc..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index 8b4b04a..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
deleted file mode 100644
index 52208fe..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/site.xml b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/site.xml
deleted file mode 100644
index 7b09c86..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/nestedFeatureSiteTest/site.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-  <feature url="features/rootfeature.jar" os="*"/>
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar
deleted file mode 100644
index b00d882..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
deleted file mode 100644
index 0c995d5..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature1.plugin1_1.1.1.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
deleted file mode 100644
index 0c995d5..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.feature2.plugin2_2.2.2.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
deleted file mode 100644
index d6737f6..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.dummy_7.9.8.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
deleted file mode 100644
index eb8690f..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin1_3.5.6.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
deleted file mode 100644
index 90a612f..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/plugins/org.eclipse.update.core.tests.feature1.plugin2_5.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.properties b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.properties
deleted file mode 100644
index 8e1ced4..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-drivers=Required Drivers

-security=Security Fixes
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.xml b/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.xml
deleted file mode 100644
index 657d9b2..0000000
--- a/update/org.eclipse.update.tests.core/webserver/UpdateManager2/site.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<site id="org.eclipse.update.core.tests" name="Tests" version="0.0.1">

-  <feature url="features/org.eclipse.test.feature_1.0.0.jar">

-    <category name="category1"/>

-  </feature>

-  <feature url="features/features2.jar">

-    <category name="category1/subcat1"/>

-    <category name="category2"/>

-  </feature>

-  <feature url="features/org.eclipse.update.core.tests.feature1_1.0.4.jar">

-    <category name="category1"/>

-    <category name="category2"/>

-  </feature>

-  <feature url="features/org.eclipse_test_feature.jar"/>

-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">

-    <category name="category1"/>

-  </feature>

-  <feature url="org.eclipse.update.core.feature2_1.0.0/org.eclipse.update.core.feature2_2.2.2.jar">

-  </feature>

-

-  <category-def name="category1/subcat1" label="Special Fix"/>

-  <category-def name="category1" label="%drivers"/>

-  <category-def name="category2" label="%security"/>

-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.tests.core/webserver/WEB-INF/web.xml b/update/org.eclipse.update.tests.core/webserver/WEB-INF/web.xml
deleted file mode 100644
index 1a6d904..0000000
--- a/update/org.eclipse.update.tests.core/webserver/WEB-INF/web.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>

-

-

-<!DOCTYPE web-app

-    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

-    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

-

-<web-app>

-    

-</web-app>

diff --git a/update/org.eclipse.update.ui.forms/.classpath b/update/org.eclipse.update.ui.forms/.classpath
deleted file mode 100644
index 6088d79..0000000
--- a/update/org.eclipse.update.ui.forms/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<classpath>

-    <classpathentry kind="src" path="src/"/>

-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>

-    <classpathentry kind="src" path="/org.eclipse.ui"/>

-    <classpathentry kind="src" path="/org.apache.xerces"/>

-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>

-    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

-    <classpathentry kind="output" path="bin"/>

-</classpath>

diff --git a/update/org.eclipse.update.ui.forms/.cvsignore b/update/org.eclipse.update.ui.forms/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.ui.forms/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/.project b/update/org.eclipse.update.ui.forms/.project
deleted file mode 100644
index d64baa0..0000000
--- a/update/org.eclipse.update.ui.forms/.project
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.ui.forms</name>

-	<comment></comment>

-	<projects>

-		<project>org.apache.xerces</project>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.ui</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.ui.forms/about.html b/update/org.eclipse.update.ui.forms/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.ui.forms/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/build.properties b/update/org.eclipse.update.ui.forms/build.properties
deleted file mode 100644
index 763b81a..0000000
--- a/update/org.eclipse.update.ui.forms/build.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-source.forms.jar = src/

-src.includes=about.html

-bin.includes = plugin.properties,\

-               *.jar,\

-               plugin.xml,\

-               about.html

diff --git a/update/org.eclipse.update.ui.forms/plugin.properties b/update/org.eclipse.update.ui.forms/plugin.properties
deleted file mode 100644
index 2699472..0000000
--- a/update/org.eclipse.update.ui.forms/plugin.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################

-# Copyright (c) 2000, 2003 IBM Corporation and others.

-# All rights reserved. This program and the accompanying materials 

-# are made available under the terms of the Common Public License v1.0

-# which accompanies this distribution, and is available at

-# http://www.eclipse.org/legal/cpl-v10.html

-# 

-# Contributors:

-#     IBM Corporation - initial API and implementation

-###############################################################################

-#

-# plugin.xml properties

-#

-

-name = Install/Update Forms

-provider-name = Eclipse.org

-

diff --git a/update/org.eclipse.update.ui.forms/plugin.xml b/update/org.eclipse.update.ui.forms/plugin.xml
deleted file mode 100644
index 678d82b..0000000
--- a/update/org.eclipse.update.ui.forms/plugin.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<plugin

-   id="org.eclipse.update.ui.forms"

-   name="%name"

-   version="2.1.0"

-   provider-name="%provider-name"

-   class="org.eclipse.update.ui.forms.internal.FormsPlugin">

-

-   <runtime>

-      <library name="forms.jar">

-         <export name="*"/>

-         <packages prefixes="org.eclipse.update.ui.forms.internal"/>

-      </library>

-   </runtime>

-   <requires>

-      <import plugin="org.eclipse.core.runtime"/>

-      <import plugin="org.eclipse.ui"/>

-      <import plugin="org.apache.xerces"/>

-   </requires>

-

-

-</plugin>

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractForm.java
deleted file mode 100644
index 73e0335..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractForm.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.jface.preference.*;

-import org.eclipse.jface.preference.IPreferenceStore;

-import org.eclipse.jface.resource.*;

-import org.eclipse.jface.util.*;

-import org.eclipse.ui.*;

-

-/**

- * This class implements IForm interface and

- * provides some common services to its subclasses.

- * It handles some common properties like heading

- * text, image and colors, as well as

- * font change processing.

- */

-

-public abstract class AbstractForm implements IForm, IPropertyChangeListener {

-	protected FormWidgetFactory factory;

-	protected Color headingBackground;

-	protected Color headingForeground;

-	protected boolean headingVisible = true;

-	protected Image headingImage;

-	protected String headingText;

-	protected Font titleFont;

-

-	public AbstractForm() {

-		factory = new FormWidgetFactory();

-		titleFont = JFaceResources.getHeaderFont();

-		JFaceResources.getFontRegistry().addListener(this);

-		IPreferenceStore pstore = JFacePreferences.getPreferenceStore();

-		pstore.addPropertyChangeListener(new IPropertyChangeListener() {

-			public void propertyChange(PropertyChangeEvent e) {

-				if (e.getProperty().equals(JFacePreferences.HYPERLINK_COLOR)

-					|| e.getProperty().equals(

-						JFacePreferences.ACTIVE_HYPERLINK_COLOR)) {

-					updateHyperlinkColors();

-				}

-			}

-		});

-	}

-	

-	protected void updateHyperlinkColors() {

-		factory.updateHyperlinkColors();

-	}

-

-	/**

-	 * @see IForm#commitChanges(boolean)

-	 */

-	public void commitChanges(boolean onSave) {

-	}

-

-	/**

-	 * @see IForm#createControl(Composite)

-	 */

-	public abstract Control createControl(Composite parent);

-

-	/**

-	 * @see IForm#dispose()

-	 */

-	public void dispose() {

-		factory.dispose();

-		JFaceResources.getFontRegistry().removeListener(this);

-		IPreferenceStore pstore = JFacePreferences.getPreferenceStore();

-		pstore.removePropertyChangeListener(this);

-	}

-

-	/**

-	 * @see IForm#doGlobalAction(String)

-	 */

-	public boolean doGlobalAction(String actionId) {

-		return false;

-	}

-

-	/**

-	 * @see IForm#expandTo(Object)

-	 */

-	public void expandTo(Object object) {

-	}

-

-	/**

-	 * @see IForm#getControl()

-	 */

-	public abstract Control getControl();

-

-	/**

-	 * @see IForm#getFactory()

-	 */

-	public FormWidgetFactory getFactory() {

-		return factory;

-	}

-

-	/**

-	 * @see IForm#getHeadingBackground()

-	 */

-	public Color getHeadingBackground() {

-		return headingBackground;

-	}

-

-	/**

-	 * @see IForm#getHeadingForeground()

-	 */

-	public Color getHeadingForeground() {

-		return headingForeground;

-	}

-

-	/**

-	 * @see IForm#getHeadingImage()

-	 */

-	public Image getHeadingImage() {

-		return headingImage;

-	}

-

-	/**

-	 * @see IForm#getHeading()

-	 */

-	public String getHeadingText() {

-		if (headingText == null)

-			return "";

-		return headingText;

-	}

-

-	/**

-	 * @see IForm#initialize(Object)

-	 */

-	public void initialize(Object model) {

-	}

-

-	/**

-	 * @see IForm#isHeadingVisible()

-	 */

-	public boolean isHeadingVisible() {

-		return headingVisible;

-	}

-

-	/**

-	 * @see IForm#registerSection(FormSection)

-	 */

-	public void registerSection(FormSection section) {

-	}

-

-	/**

-	 * @see IForm#setFocus()

-	 */

-	public void setFocus() {

-	}

-

-	/**

-	 * @see IForm#setHeadingBackground(Color)

-	 */

-	public void setHeadingBackground(Color newHeadingBackground) {

-		this.headingBackground = newHeadingBackground;

-	}

-

-	/**

-	 * @see IForm#setHeadingForeground(Color)

-	 */

-	public void setHeadingForeground(Color newHeadingForeground) {

-		this.headingForeground = newHeadingForeground;

-	}

-

-	/**

-	 * @see IForm#setHeadingImage(Image)

-	 */

-	public void setHeadingImage(Image headingImage) {

-		this.headingImage = headingImage;

-	}

-

-	/**

-	 * @see IForm#setHeadingVisible(boolean)

-	 */

-	public void setHeadingVisible(boolean newHeadingVisible) {

-		this.headingVisible = newHeadingVisible;

-	}

-

-	/**

-	 * @see IForm#setHeading(String)

-	 */

-	public void setHeadingText(String headingText) {

-		this.headingText = headingText;

-	}

-

-	/**

-	 * @see IForm#update()

-	 */

-	public void update() {

-	}

-

-	protected boolean canPerformDirectly(String id, Control control) {

-		if (control instanceof Text) {

-			Text text = (Text) control;

-			if (id.equals(IWorkbenchActionConstants.CUT)) {

-				text.cut();

-				return true;

-			}

-			if (id.equals(IWorkbenchActionConstants.COPY)) {

-				text.copy();

-				return true;

-			}

-			if (id.equals(IWorkbenchActionConstants.PASTE)) {

-				text.paste();

-				return true;

-			}

-			if (id.equals(IWorkbenchActionConstants.SELECT_ALL)) {

-				text.selectAll();

-				return true;

-			}

-			if (id.equals(IWorkbenchActionConstants.DELETE)) {

-				int count = text.getSelectionCount();

-				if (count == 0) {

-					int caretPos = text.getCaretPosition();

-					text.setSelection(caretPos, caretPos + 1);

-				}

-				text.insert("");

-				return true;

-			}

-		}

-		return false;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractSectionForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractSectionForm.java
deleted file mode 100644
index c72e732..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/AbstractSectionForm.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import java.util.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.dnd.Clipboard;

-import org.eclipse.swt.custom.ScrolledComposite;

-import org.eclipse.swt.graphics.*;

-

-/**

- * This form class understands form sections.

- * It assumes that they are part of the form

- * and it offers life cycle handling of sections

- * once they are registered.

- */

-

-public abstract class AbstractSectionForm extends AbstractForm {

-	public static final int H_SCROLL_INCREMENT = 5;

-	public static final int V_SCROLL_INCREMENT = 64;

-	protected Vector sections = null;

-

-	public void registerSection(FormSection section) {

-		if (sections == null)

-			sections = new Vector();

-		if (!sections.contains(section))

-			sections.add(section);

-	}

-

-	public void unregisterSection(FormSection section) {

-		if (sections != null && sections.contains(section))

-			sections.remove(section);

-	}

-

-	public void initialize(Object model) {

-		if (sections != null) {

-			for (Iterator iter = sections.iterator(); iter.hasNext();) {

-				FormSection section = (FormSection) iter.next();

-				section.initialize(model);

-			}

-		}

-	}

-

-	public void setFocus() {

-		if (sections != null && sections.size() > 0) {

-			FormSection firstSection = (FormSection) sections.firstElement();

-			firstSection.setFocus();

-		}

-	}

-

-	public void update() {

-		if (sections != null) {

-			for (Iterator iter = sections.iterator(); iter.hasNext();) {

-				FormSection section = (FormSection) iter.next();

-				section.update();

-			}

-		}

-	}

-

-	public void commitChanges(boolean onSave) {

-		if (sections != null) {

-			for (Iterator iter = sections.iterator(); iter.hasNext();) {

-				FormSection section = (FormSection) iter.next();

-				if (section.isDirty())

-					section.commitChanges(onSave);

-			}

-		}

-	}

-

-	public boolean doGlobalAction(String actionId) {

-		Control focusControl = getFocusControl();

-		if (focusControl == null)

-			return false;

-

-		if (canPerformDirectly(actionId, focusControl))

-			return true;

-		Composite parent = focusControl.getParent();

-		FormSection targetSection = null;

-		while (parent != null) {

-			Object data = parent.getData();

-			if (data != null && data instanceof FormSection) {

-				targetSection = (FormSection) data;

-				break;

-			}

-			parent = parent.getParent();

-		}

-		if (targetSection != null) {

-			return targetSection.doGlobalAction(actionId);

-		}

-		return false;

-	}

-

-	protected Control getFocusControl() {

-		Control control = getControl();

-		if (control == null || control.isDisposed())

-			return null;

-		Display display = control.getDisplay();

-		Control focusControl = display.getFocusControl();

-		if (focusControl == null || focusControl.isDisposed())

-			return null;

-		return focusControl;

-	}

-

-	public boolean canPaste(Clipboard clipboard) {

-		Control focusControl = getFocusControl();

-		if (focusControl == null)

-			return false;

-		Composite parent = focusControl.getParent();

-		FormSection targetSection = null;

-		while (parent != null) {

-			Object data = parent.getData();

-			if (data != null && data instanceof FormSection) {

-				targetSection = (FormSection) data;

-				break;

-			}

-			parent = parent.getParent();

-		}

-		if (targetSection != null) {

-			return targetSection.canPaste(clipboard);

-		}

-		return false;

-	}

-

-	public void dispose() {

-		if (sections != null) {

-			for (Iterator iter = sections.iterator(); iter.hasNext();) {

-				FormSection section = (FormSection) iter.next();

-				section.dispose();

-			}

-		}

-		super.dispose();

-	}

-

-	public static void ensureVisible(ScrolledComposite scomp, Control control) {

-		Point controlSize = control.getSize();

-		Point controlOrigin = getControlLocation(scomp, control);

-		ensureVisible(scomp, controlOrigin, controlSize);

-	}

-

-	public static void ensureVisible(ScrolledComposite scomp, Point controlOrigin, Point controlSize) {

-		Rectangle area = scomp.getClientArea();

-		Point scompOrigin = scomp.getOrigin();

-

-		int x = scompOrigin.x;

-		int y = scompOrigin.y;

-

-		if (controlOrigin.x < scompOrigin.x ) {

-			x = controlOrigin.x;

-		} else if (controlOrigin.x + controlSize.x > scompOrigin.x + area.width) {

-			x = controlOrigin.x + controlSize.x - area.width;

-		}

-

-		if (controlOrigin.y < scompOrigin.y) {

-			y = controlOrigin.y;

-		} else if (controlOrigin.y + controlSize.y > scompOrigin.y + area.height) {

-			y = controlOrigin.y + controlSize.y - area.height;

-		}

-		scomp.setOrigin(x, y);

-	}

-	

-	public static Point getControlLocation(ScrolledComposite scomp, Control control) {

-		int x = 0;

-		int y = 0;

-		Control currentControl = control;

-		for (;;) {

-			if (currentControl == scomp)

-				break;

-			if (currentControl.getLocation().x > 0)

-				x += currentControl.getLocation().x;

-			if (currentControl.getLocation().y > 0)

-				y += currentControl.getLocation().y;

-			currentControl = currentControl.getParent();

-		}

-		return new Point(x, y);

-	}

-	

-	public static void scrollVertical(ScrolledComposite scomp, boolean up) {

-		scroll(scomp, 0, up ? -V_SCROLL_INCREMENT : V_SCROLL_INCREMENT);

-	}

-	public static void scrollHorizontal(ScrolledComposite scomp, boolean left) {

-		scroll(scomp, left ? -H_SCROLL_INCREMENT : H_SCROLL_INCREMENT, 0);

-	}

-	public static void scrollPage(ScrolledComposite scomp, boolean up) {

-		Rectangle clientArea = scomp.getClientArea();

-		int increment = up ? -clientArea.height : clientArea.height;

-		scroll(scomp, 0, increment);

-	}

-	private static void scroll(ScrolledComposite scomp, int xoffset, int yoffset) {

-		Point origin = scomp.getOrigin();

-		Point contentSize = scomp.getContent().getSize();

-		int xorigin = origin.x + xoffset;

-		int yorigin = origin.y + yoffset;

-		xorigin = Math.max(xorigin, 0);

-		xorigin = Math.min(xorigin, contentSize.x - 1);

-		yorigin = Math.max(yorigin, 0);

-		yorigin = Math.min(yorigin, contentSize.y - 1);

-		scomp.setOrigin(xorigin, yorigin);

-	}

-

-	public static void updatePageIncrement(ScrolledComposite scomp) {

-		ScrollBar vbar = scomp.getVerticalBar();

-		if (vbar != null) {

-			Rectangle clientArea = scomp.getClientArea();

-			int increment = clientArea.height - 5;

-			vbar.setPageIncrement(increment);

-		}

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/CustomWorkbook.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/CustomWorkbook.java
deleted file mode 100644
index 01b5aa5..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/CustomWorkbook.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.graphics.*;

-import java.util.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.*;

-import org.eclipse.swt.custom.*;

-

-

-public class CustomWorkbook implements IFormWorkbook {

-	private Hashtable pages;

-	private IFormPage sourcePage;

-	private IFormPage lastFormPage;

-	private boolean firstPageSelected=true;

-	private CTabFolder tabFolder;

-	private Vector listeners=new Vector();

-	private IFormPage currentPage;

-

-public CustomWorkbook() {

-	pages = new Hashtable();

-}

-public void addFormSelectionListener(IFormSelectionListener listener) {

-	listeners.addElement(listener);

-}

-public void addPage(IFormPage page) {

-	CTabItem item = new CTabItem(tabFolder, SWT.NULL);

-	item.setText(page.getLabel());

-	item.setToolTipText(page.getTitle());

-	item.setData(page);

-	pages.put(page, item);

-	if (page.isSource()) sourcePage = page;

-	

-	if (firstPageSelected && currentPage == null)

-		selectPage(page, true);

-}

-public void createControl(Composite parent) {

-	tabFolder = new CTabFolder(parent, SWT.BOTTOM);

-	tabFolder.addSelectionListener(new SelectionAdapter() {

-		public void widgetSelected(SelectionEvent e) {

-			CTabItem item = (CTabItem) e.item;

-			IFormPage page = (IFormPage) item.getData();

-			if (page != null)

-				selectPage(page, true);

-		}

-	});

-	// listener to resize visible components

-	tabFolder.addListener(SWT.Resize, new Listener() {

-		public void handleEvent(Event e) {

-			if (currentPage != null)

-				setControlSize(currentPage.getControl());

-		}

-	});

-}

-private void fireSelectionChanged(IFormPage page, boolean setFocus) {

-	for (Iterator iter = listeners.iterator(); iter.hasNext();) {

-		IFormSelectionListener listener = (IFormSelectionListener) iter.next();

-		listener.formSelected(page, setFocus);

-	}

-}

-public Control getControl() {

-	return tabFolder;

-}

-public IFormPage getCurrentPage() {

-	return currentPage;

-}

-public boolean isFirstPageSelected() {

-	return firstPageSelected;

-}

-public void removeFormSelectionListener(IFormSelectionListener listener) {

-	listeners.removeElement(listener);

-}

-public void removePage(IFormPage page) {

-	CTabItem item = (CTabItem) pages.get(page);

-	if (item != null)

-		item.dispose();

-}

-private void reselectPage(final IFormPage page) {

-	tabFolder.getDisplay().asyncExec(new Runnable() {

-		public void run() {

-		selectPage(page, true);

-		}

-	});

-}

-public void selectPage(final IFormPage page, final boolean setFocus) {

-	final IFormPage oldPage = currentPage;

-	currentPage = page;

-

-	// It may take a while

-	BusyIndicator.showWhile(tabFolder.getDisplay(), new Runnable() {

-		public void run() {

-			switchPages(oldPage, page, setFocus);

-		}

-	});

-}

-private void setControlSize(Control control) {

-	Rectangle bounds = tabFolder.getBounds();

-	Rectangle offset = tabFolder.getClientArea();

-	bounds.x += offset.x;

-	bounds.y += offset.y;

-	bounds.width = offset.width;

-	bounds.height = offset.height;

-	control.setBounds(bounds);

-	control.moveAbove(tabFolder);

-}

-private void setControlVisible(Control control) {

-	if (control == null)

-		return;

-	setControlSize(control);

-	control.setVisible(true);

-}

-public void setFirstPageSelected(boolean newFirstPageSelected) {

-	firstPageSelected = newFirstPageSelected;

-}

-private void switchPages(IFormPage oldPage, IFormPage newPage, boolean setFocus) {

-	if (oldPage != null && oldPage!=newPage) {

-		boolean okToSwitch = oldPage.becomesInvisible(newPage);

-		if (!okToSwitch) {

-			// We must try to go back to the source page

-			reselectPage(oldPage);

-			return;

-		}

-	}

-	if (newPage.getControl() == null)

-		newPage.createControl(tabFolder);

-	tabFolder.setSelection((CTabItem) pages.get(newPage));

-	if (oldPage != null && oldPage != newPage) {

-		Control oldControl = oldPage.getControl();

-		if (oldControl!=null) oldControl.setVisible(false);

-	}

-	Control newControl = newPage.getControl();

-	newPage.becomesVisible(oldPage);

-	setControlVisible(newControl);

-	fireSelectionChanged(newPage, setFocus);

-}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ExpandableGroup.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ExpandableGroup.java
deleted file mode 100644
index ef17d33..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ExpandableGroup.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.events.*;

-

-public abstract class ExpandableGroup {

-	private String text;

-	private boolean expanded;

-	private Composite expansion;

-	protected SelectableFormLabel textLabel;

-	private Composite control;

-	private int style;

-	private boolean expandable=true;

-	

-class ExpandableLayout extends Layout {

-	protected void layout(Composite parent, boolean changed) {

-		Rectangle clientArea = parent.getClientArea();

-		Point size = textLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT, changed);

-		int x = 0;

-		int y = 1;

-		

-		if (expandable) {

-			x = 8 + 8;

-		}

-		textLabel.setBounds(x, y, size.x, size.y);

-	

-		if (expandable)

-		   y = Math.max(size.y, 8) + 2 + 2;

-		else

-		   y = size.y + 2;

-		if (expanded) {

-			int areaWidth = clientArea.width - x;

-			size = expansion.computeSize(areaWidth, SWT.DEFAULT, changed);

-			expansion.setBounds(x, y, size.x, size.y);

-		}

-	}

-

-	protected Point computeSize(Composite parent, int wHint, int hHint, boolean changed) {

-		int width = 0, height = 0;

-		Point size = textLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT, changed);

-		width = size.x;

-		height = size.y + 2 + 2;

-		if (expanded) {

-			size = expansion.computeSize(wHint, SWT.DEFAULT, changed);

-			width = Math.max(width, size.x);

-			height += size.y;

-		}

-		if (expandable) {

-			height = Math.max(height, 8);

-			width += 8 + 8;

-		}

-		return new Point(width, height);

-	}

-}

-

-	public ExpandableGroup() {

-	}

-	

-	public ExpandableGroup(int style) {

-		this.style = style;

-	}

-	

-	public Control getControl() {

-		return control;

-	}

-	

-	public void createControl(Composite parent, final FormWidgetFactory factory) {

-		final Canvas container = new Canvas(parent, SWT.NULL);

-		container.setBackground(factory.getBackgroundColor());

-		container.setLayout(new ExpandableLayout());

-		container.addPaintListener(new PaintListener() {

-			public void paintControl(PaintEvent e) {

-				if (expandable) repaint(e);

-			}

-		});

-		container.addMouseListener(new MouseAdapter() {

-			public void mouseUp(MouseEvent e) {

-				Rectangle box = getBoxBounds(null);

-				if (box.contains(e.x, e.y)) {

-					container.setCursor(factory.getBusyCursor());

-					setExpanded(!isExpanded());

-					container.setCursor(null);

-				}

-			}

-		});

-		textLabel = createTextLabel(container, factory);

-		getHyperlinkHandler(factory).registerHyperlink(textLabel, new HyperlinkAdapter () {

-			public void linkActivated(Control link) {

-				ExpandableGroup.this.linkActivated();

-				if (expandable) setExpanded(!isExpanded());

-			}

-		});

-		textLabel.addFocusListener(factory.visibilityHandler);

-		textLabel.addKeyListener(factory.keyboardHandler);		

-		if (text!=null) textLabel.setText(text);

-		expansion = factory.createComposite(container);

-		fillExpansion(expansion, factory);

-		this.control = container;

-	}

-	

-	protected SelectableFormLabel createTextLabel(Composite parent, FormWidgetFactory factory) {

-		SelectableFormLabel text = new SelectableFormLabel(parent, SWT.WRAP);

-		text.setBackground(factory.getBackgroundColor());

-		return text;

-	}

-	

-	protected HyperlinkHandler getHyperlinkHandler(FormWidgetFactory factory) {

-		return factory.getHyperlinkHandler();

-	}

-	

-	public abstract void fillExpansion(Composite expansion, FormWidgetFactory factory);

-	

-	public void setText(String text) {

-		this.text = text;

-		if (textLabel!=null)

-		   textLabel.setText(text);

-	}

-	

-	public String getText() {

-		return text;

-	}

-	

-	public boolean isExpanded() {

-		return expanded;

-	}

-	

-	public void setExpandable(boolean expandable) {

-		this.expandable = expandable;

-	}

-	

-	public boolean isExpandable() {

-		return expandable;

-	}

-	

-	public void setExpanded(boolean expanded) {

-		if (this.expanded != expanded) {

-			if (expanded) {

-				aboutToExpand();

-			}

-			else {

-				aboutToCollapse();

-			}

-			this.expanded = expanded;

-			expansion.setVisible(expanded);

-			control.layout();

-			if (expanded) {

-				this.expanded();

-			}

-			else {

-				collapsed();

-			}

-		}

-	}

-	

-	private void repaint(PaintEvent e) {

-		GC gc = e.gc;

-		Rectangle box = getBoxBounds(gc);

-		gc.setForeground(control.getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));

-		gc.drawRectangle(box);

-		gc.setForeground(control.getDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND));

-		gc.drawLine(box.x+2, box.y+4, box.x+6, box.y+4);

-		if (!isExpanded()) {

-			gc.drawLine(box.x+4, box.y+2, box.x+4, box.y+6);

-		}

-	}

-	

-	private Rectangle getBoxBounds(GC gc) {

-		int x = 0;

-		int y = 0;

-		boolean noGC = false;

-	

-		if (gc==null) {

-			gc = new GC(control);

-			noGC = true;

-		}

-		gc.setFont(textLabel.getFont());

-		int height = gc.getFontMetrics().getHeight();

-		y = height/2 - 4 +1;

-		y = Math.max(y, 0);

-		if (noGC) gc.dispose();

-		return new Rectangle(x, y, 8, 8);

-	}

-	

-	protected void updateLayout() {

-		control.layout();

-	}

-	

-	protected void aboutToExpand() {

-	}

-	

-	protected void aboutToCollapse() {

-	}

-	

-	protected void expanded() {

-	}

-	protected void collapsed() {

-	}

-	protected void linkActivated() {

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormButton.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormButton.java
deleted file mode 100644
index c307edf..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormButton.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.graphics.*;

-

-public class FormButton {

-	private Button button;

-	private Image image;

-	private FormWidgetFactory factory;

-	private Image hoverImage;

-	private boolean inside;

-	private Image disabledImage;

-

-public FormButton(Button button, FormWidgetFactory factory) {

-	this.button = button;

-	this.factory = factory;

-	button.addMouseTrackListener(new MouseTrackAdapter() {

-		public void mouseEnter(MouseEvent e) {

-			inside=true;

-			updateImage();

-		}

-		public void mouseExit(MouseEvent e) {

-			inside=false;

-			updateImage();

-		}

-	});

-}

-public Button getButton() {

-	return button;

-}

-public Image getDisabledImage() {

-	return disabledImage;

-}

-public Image getHoverImage() {

-	return hoverImage;

-}

-public Image getImage() {

-	return image;

-}

-public void setDisabledImage(Image newDisabledImage) {

-	disabledImage = newDisabledImage;

-}

-public void setEnabled(boolean enabled) {

-	button.setEnabled(enabled);

-	updateImage();

-}

-public void setHoverImage(Image newHoverImage) {

-	hoverImage = newHoverImage;

-}

-public void setImage(Image newImage) {

-	image = newImage;

-	if (hoverImage==null) hoverImage = image;

-	if (disabledImage==null) disabledImage = image;

-	updateImage();

-}

-public void updateImage() {

-	boolean enabled = button.isEnabled();

-	if (enabled == false) {

-		button.setImage(disabledImage);

-	} else {

-		if (inside) {

-			button.setCursor(factory.getHyperlinkCursor());

-			button.setImage(hoverImage);

-		} else {

-			button.setCursor(null);

-			button.setImage(image);

-		}

-	}

-}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormEntry.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormEntry.java
deleted file mode 100644
index a5e7e14..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormEntry.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.widgets.*;

-import java.util.*;

-

-public class FormEntry {

-	private Text text;

-	private String value;

-	private boolean dirty;

-	private Vector listeners=new Vector();

-	boolean ignoreModify=false;

-

-public FormEntry(Text text) {

-	this.text = text;

-	this.value = text.getText();

-	addListeners();

-}

-public void addFormTextListener(IFormTextListener listener) {

-	listeners.addElement(listener);

-}

-private void addListeners() {

-	text.addKeyListener(new KeyAdapter() {

-		public void keyReleased(KeyEvent e) {

-			keyReleaseOccured(e);

-		}

-	});

-	text.addModifyListener(new ModifyListener() {

-		public void modifyText(ModifyEvent e) {

-			editOccured(e);

-		}

-	});

-	text.addFocusListener (new FocusAdapter() {

-		public void focusLost(FocusEvent e) {

-			if (dirty) commit();

-		}

-	});

-}

-public void commit() {

-	if (dirty) {

-		value = text.getText();

-		//notify

-		for (Iterator iter = listeners.iterator(); iter.hasNext();) {

-			((IFormTextListener) iter.next()).textValueChanged(this);

-		}

-	}

-	dirty = false;

-}

-protected void editOccured(ModifyEvent e) {

-	if (ignoreModify) return;

-	dirty = true;

-	for (Iterator iter = listeners.iterator(); iter.hasNext();) {

-		((IFormTextListener) iter.next()).textDirty(this);

-	}

-}

-

-public Text getControl() {

-	return text;

-}

-public java.lang.String getValue() {

-	return value;

-}

-public boolean isDirty() {

-	return dirty;

-}

-protected void keyReleaseOccured(KeyEvent e) {

-	if (e.character == '\r') {

-		// commit value

-		if (dirty) commit();

-	}

-	else if (e.character == '\u001b') { // Escape character

-		text.setText(value!=null?value:""); // restore old

-		dirty= false;

-	}

-}

-public void removeFormTextListener(IFormTextListener listener) {

-	listeners.removeElement(listener);

-}

-public void setDirty(boolean newDirty) {

-	dirty = newDirty;

-}

-public void setValue(String value) {

-	if (text!=null) text.setText(value!=null?value:"");

-	this.value = value;

-}

-

-public void setValue(String value, boolean blockNotification) {

-	ignoreModify = blockNotification;

-	setValue(value);

-	ignoreModify = false;

-}

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormLabel.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormLabel.java
deleted file mode 100644
index 6f490f8..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormLabel.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import java.text.BreakIterator;

-

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.accessibility.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-

-/**

- * FormText is a windowless control that

- * draws text in the provided context.

- */

-public class FormLabel extends Canvas {

-	private String text = "";

-	int textMarginWidth = 5;

-	int textMarginHeight = 5;

-	private boolean underlined;

-

-	public FormLabel(Composite parent, int style) {

-		super(parent, style);

-		addPaintListener(new PaintListener() {

-			public void paintControl(PaintEvent e) {

-				paint(e);

-			}

-		});

-		initAccessible();

-	}

-	public String getText() {

-		return text;

-	}

-	public void setText(String text) {

-		if (text != null)

-			this.text = text;

-		else

-			text = "";

-	}

-

-	protected void initAccessible() {

-		Accessible accessible = getAccessible();

-		accessible.addAccessibleListener(new AccessibleAdapter() {

-			public void getName(AccessibleEvent e) {

-				e.result = getText();

-			}

-

-			public void getHelp(AccessibleEvent e) {

-				e.result = getToolTipText();

-			}

-		});

-

-		accessible

-			.addAccessibleControlListener(new AccessibleControlAdapter() {

-			public void getChildAtPoint(AccessibleControlEvent e) {

-				Point pt = toControl(new Point(e.x, e.y));

-				e.childID =

-					(getBounds().contains(pt))

-						? ACC.CHILDID_SELF

-						: ACC.CHILDID_NONE;

-			}

-

-			public void getLocation(AccessibleControlEvent e) {

-				Rectangle location = getBounds();

-				Point pt = toDisplay(new Point(location.x, location.y));

-				e.x = pt.x;

-				e.y = pt.y;

-				e.width = location.width;

-				e.height = location.height;

-			}

-

-			public void getChildCount(AccessibleControlEvent e) {

-				e.detail = 0;

-			}

-

-			public void getRole(AccessibleControlEvent e) {

-				e.detail = ACC.ROLE_LABEL;

-			}

-

-			public void getState(AccessibleControlEvent e) {

-				e.detail = ACC.STATE_READONLY;

-			}

-		});

-	}

-

-	public void setUnderlined(boolean underlined) {

-		this.underlined = underlined;

-	}

-

-	public boolean isUnderlined() {

-		return underlined;

-	}

-

-	public Point computeSize(int wHint, int hHint, boolean changed) {

-		int innerWidth = wHint;

-		if (innerWidth != SWT.DEFAULT)

-			innerWidth -= textMarginWidth * 2;

-		Point textSize = computeTextSize(innerWidth, hHint);

-		int textWidth = textSize.x + 2 * textMarginWidth;

-		int textHeight = textSize.y + 2 * textMarginHeight;

-		return new Point(textWidth, textHeight);

-	}

-

-	public static int computeWrapHeight(GC gc, String text, int width) {

-		BreakIterator wb = BreakIterator.getWordInstance();

-		wb.setText(text);

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-

-		int saved = 0;

-		int last = 0;

-		int height = lineHeight;

-

-		for (int loc = wb.first();

-			loc != BreakIterator.DONE;

-			loc = wb.next()) {

-			String word = text.substring(saved, loc);

-			Point extent = gc.textExtent(word);

-			if (extent.x > width) {

-				// overflow

-				saved = last;

-				height += extent.y;

-			}

-			last = loc;

-		}

-		return height;

-	}

-

-	private Point computeTextSize(int wHint, int hHint) {

-		Point extent;

-		GC gc = new GC(this);

-

-		gc.setFont(getFont());

-		if ((getStyle() & SWT.WRAP) != 0 && wHint != SWT.DEFAULT) {

-			int height = computeWrapHeight(gc, text, wHint);

-			extent = new Point(wHint, height);

-		} else {

-			extent = gc.textExtent(getText());

-		}

-		gc.dispose();

-		return extent;

-	}

-

-	public static void paintWrapText(

-		GC gc,

-		Point size,

-		String text,

-		int marginWidth,

-		int marginHeight) {

-		paintWrapText(gc, size, text, marginWidth, marginHeight, false);

-	}

-

-	public static void paintWrapText(

-		GC gc,

-		Point size,

-		String text,

-		int marginWidth,

-		int marginHeight,

-		boolean underline) {

-		BreakIterator wb = BreakIterator.getWordInstance();

-		wb.setText(text);

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-		int descent = fm.getDescent();

-

-		int saved = 0;

-		int last = 0;

-		int y = marginHeight;

-		int width = size.x - marginWidth * 2;

-

-		for (int loc = wb.first();

-			loc != BreakIterator.DONE;

-			loc = wb.next()) {

-			String line = text.substring(saved, loc);

-			Point extent = gc.textExtent(line);

-			if (extent.x > width) {

-				// overflow

-				String prevLine = text.substring(saved, last);

-				gc.drawString(prevLine, marginWidth, y, true);

-				if (underline) {

-					Point prevExtent = gc.textExtent(prevLine);

-					int lineY = y + lineHeight - descent + 1;

-					gc.drawLine(marginWidth, lineY, prevExtent.x, lineY);

-				}

-

-				saved = last;

-				y += lineHeight;

-			}

-			last = loc;

-		}

-		// paint the last line

-		String lastLine = text.substring(saved, last);

-		gc.drawString(lastLine, marginWidth, y, true);

-		if (underline) {

-			int lineY = y + lineHeight - descent + 1;

-			Point lastExtent = gc.textExtent(lastLine);

-			gc.drawLine(marginWidth, lineY, marginWidth + lastExtent.x, lineY);

-		}

-	}

-

-	protected void paint(PaintEvent e) {

-		GC gc = e.gc;

-		Point size = getSize();

-		gc.setFont(getFont());

-		gc.setForeground(getForeground());

-		if ((getStyle() & SWT.WRAP) != 0) {

-			paintWrapText(

-				gc,

-				size,

-				text,

-				textMarginWidth,

-				textMarginHeight,

-				underlined);

-		} else {

-			gc.drawText(getText(), textMarginWidth, textMarginHeight, true);

-			if (underlined) {

-				FontMetrics fm = gc.getFontMetrics();

-				int descent = fm.getDescent();

-				int lineY = size.y - textMarginHeight - descent + 1;

-				gc.drawLine(

-					textMarginWidth,

-					lineY,

-					size.x - textMarginWidth,

-					lineY);

-			}

-		}

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormSection.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormSection.java
deleted file mode 100644
index 9e86ea8..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormSection.java
+++ /dev/null
@@ -1,498 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.graphics.Point;

-import org.eclipse.swt.layout.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.*;

-import org.eclipse.jface.util.*;

-import org.eclipse.jface.resource.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.dnd.Clipboard;

-

-public abstract class FormSection implements IPropertyChangeListener {

-	public static final int SELECTION = 1;

-	private String headerColorKey = FormWidgetFactory.DEFAULT_HEADER_COLOR;

-	private String headerText;

-	private Control client;

-	protected Label header;

-	protected Control separator;

-	private SectionChangeManager sectionManager;

-	private String description;

-	private boolean dirty;

-	protected Label descriptionLabel;

-	private ToggleControl toggle;

-	private boolean readOnly;

-	private boolean addSeparator = true;

-	private boolean descriptionPainted = true;

-	private boolean headerPainted = true;

-	private boolean collapsable = false;

-	private boolean collapsed = false;

-	private int widthHint = SWT.DEFAULT;

-	private int heightHint = SWT.DEFAULT;

-	private Composite control;

-

-	/*

-	 * This is a special layout for the section. Both the

-	 * header and the description labels will wrap and

-	 * they will use client's size to calculate needed

-	 * height. This kind of behaviour is not possible

-	 * with stock grid layout.

-	 */

-	class SectionLayout extends Layout implements ILayoutExtension {

-		int vspacing = 3;

-		int sepHeight = 2;

-

-		public int getMinimumWidth(Composite parent, boolean flush) {

-			return 30;

-		}

-

-		public int getMaximumWidth(Composite parent, boolean flush) {

-			int maxWidth = 0;

-			if (client != null) {

-				Point csize =

-					client.computeSize(SWT.DEFAULT, SWT.DEFAULT, flush);

-				maxWidth = csize.x;

-			}

-			if (headerPainted && header != null) {

-				Point hsize =

-					header.computeSize(SWT.DEFAULT, SWT.DEFAULT, flush);

-				maxWidth = Math.max(maxWidth, hsize.x);

-			}

-			if (descriptionPainted && descriptionLabel != null) {

-				Point dsize =

-					descriptionLabel.computeSize(

-						SWT.DEFAULT,

-						SWT.DEFAULT,

-						flush);

-				maxWidth = Math.max(maxWidth, dsize.x);

-			}

-			return maxWidth;

-		}

-

-		protected Point computeSize(

-			Composite parent,

-			int wHint,

-			int hHint,

-			boolean flush) {

-			int width = 0;

-			int height = 0;

-			int cwidth = 0;

-			int collapsedHeight = 0;

-

-			if (wHint != SWT.DEFAULT)

-				width = wHint;

-			if (hHint != SWT.DEFAULT)

-				height = hHint;

-

-			cwidth = width;

-

-			if (client != null) {

-				//Point csize = client.computeSize(SWT.DEFAULT, SWT.DEFAULT, flush);

-				Point csize = client.computeSize(wHint, SWT.DEFAULT);

-				if (width == 0) {

-					width = csize.x;

-					cwidth = width;

-				}

-				if (height == 0)

-					height = csize.y;

-			}

-

-			Point toggleSize = null;

-

-			if (collapsable && toggle != null)

-				toggleSize =

-					toggle.computeSize(SWT.DEFAULT, SWT.DEFAULT, flush);

-

-			if (hHint == SWT.DEFAULT && headerPainted && header != null) {

-				int hwidth = cwidth;

-				if (toggleSize != null)

-					hwidth = cwidth - toggleSize.x - 5;

-				Point hsize = header.computeSize(hwidth, SWT.DEFAULT, flush);

-				height += hsize.y;

-				collapsedHeight = hsize.y;

-				height += vspacing;

-			}

-

-			if (hHint == SWT.DEFAULT && addSeparator) {

-				height += sepHeight;

-				height += vspacing;

-				collapsedHeight += vspacing + sepHeight;

-			}

-			if (hHint == SWT.DEFAULT

-				&& descriptionPainted

-				&& descriptionLabel != null) {

-				Point dsize =

-					descriptionLabel.computeSize(cwidth, SWT.DEFAULT, flush);

-				height += dsize.y;

-				height += vspacing;

-			}

-			if (toggle != null && toggle.getSelection()) {

-				// collapsed state

-				height = collapsedHeight;

-			}

-			return new Point(width, height);

-		}

-		protected void layout(Composite parent, boolean flush) {

-			int width = parent.getClientArea().width;

-			int height = parent.getClientArea().height;

-			int y = 0;

-			Point toggleSize = null;

-

-			if (collapsable) {

-				toggleSize =

-					toggle.computeSize(SWT.DEFAULT, SWT.DEFAULT, flush);

-			}

-			if (headerPainted && header != null) {

-				Point hsize;

-

-				int availableWidth = width;

-				if (toggleSize != null)

-					availableWidth = width - toggleSize.x - 5;

-				hsize = header.computeSize(availableWidth, SWT.DEFAULT, flush);

-				int hx = 0;

-				if (toggle != null) {

-					int ty = y + hsize.y - toggleSize.y;

-					toggle.setBounds(0, ty, toggleSize.x, toggleSize.y);

-					hx = toggleSize.x; // + 5;

-				}

-				header.setBounds(hx, y, availableWidth, hsize.y);

-

-				y += hsize.y + vspacing;

-			}

-			if (addSeparator && separator != null) {

-				separator.setBounds(0, y, width, 2);

-				y += sepHeight + vspacing;

-			}

-			if (toggle != null && toggle.getSelection()) {

-				return;

-			}

-			if (descriptionPainted && descriptionLabel != null) {

-				Point dsize =

-					descriptionLabel.computeSize(width, SWT.DEFAULT, flush);

-				descriptionLabel.setBounds(0, y, width, dsize.y);

-				y += dsize.y + vspacing;

-			}

-			if (client != null) {

-				client.setBounds(0, y, width, height - y);

-			}

-		}

-	}

-

-	public FormSection() {

-		/*

-		// Description causes problems re word wrapping

-		// and causes bad layout in schema and

-		// feature editors when in Motif - turning off

-		if (SWT.getPlatform().equals("motif")) {

-			descriptionPainted = false;

-		}

-		*/

-		JFaceResources.getFontRegistry().addListener(this);

-	}

-	public void commitChanges(boolean onSave) {

-	}

-	public abstract Composite createClient(

-		Composite parent,

-		FormWidgetFactory factory);

-	public final Control createControl(

-		Composite parent,

-		final FormWidgetFactory factory) {

-		Composite section = factory.createComposite(parent);

-		SectionLayout slayout = new SectionLayout();

-		section.setLayout(slayout);

-		section.setData(this);

-

-		if (headerPainted) {

-			Color headerColor = factory.getColor(getHeaderColorKey());

-			header =

-				factory.createHeadingLabel(

-					section,

-					getHeaderText(),

-					headerColor,

-					SWT.WRAP);

-			if (collapsable) {

-				toggle = new ToggleControl(section, SWT.NULL);

-				toggle.setSelection(collapsed);

-				toggle.setBackground(factory.getBackgroundColor());

-				toggle.setActiveDecorationColor(factory.getHyperlinkColor());

-				toggle.setDecorationColor(

-					factory.getColor(

-						FormWidgetFactory.COLOR_COMPOSITE_SEPARATOR));

-				toggle.setActiveCursor(factory.getHyperlinkCursor());

-				toggle.addFocusListener(factory.visibilityHandler);

-				toggle.addKeyListener(factory.keyboardHandler);

-				toggle.addSelectionListener(new SelectionAdapter() {

-					public void widgetSelected(SelectionEvent e) {

-						doToggle();

-					}

-				});

-				header.addMouseListener(new MouseAdapter() {

-					public void mouseDown(MouseEvent e) {

-						toggle.setSelection(!toggle.getSelection());

-						toggle.redraw();

-						doToggle();

-					}

-				});

-				header.addMouseTrackListener(new MouseTrackAdapter() {

-					public void mouseEnter(MouseEvent e) {

-						header.setCursor(factory.getHyperlinkCursor());

-					}

-					public void mouseExit(MouseEvent e) {

-						header.setCursor(null);

-					}

-				});

-			}

-		}

-

-		if (addSeparator) {

-			//separator = factory.createSeparator(section, SWT.HORIZONTAL);

-			separator = factory.createCompositeSeparator(section);

-		}

-

-		if (descriptionPainted && description != null) {

-			descriptionLabel =

-				factory.createLabel(section, description, SWT.WRAP);

-		}

-		client = createClient(section, factory);

-		section.setData(this);

-		control = section;

-		return section;

-	}

-

-	private void doToggle() {

-		boolean collapsed = toggle.getSelection();

-		reflow();

-		if (descriptionLabel != null)

-			descriptionLabel.setVisible(!collapsed);

-		if (client != null)

-			client.setVisible(!collapsed);

-	}

-

-	protected void reflow() {

-		control.setRedraw(false);

-		control.getParent().setRedraw(false);

-		control.layout(true);

-		control.getParent().layout(true);

-		control.setRedraw(true);

-		control.getParent().setRedraw(true);

-	}

-

-	protected Text createText(

-		Composite parent,

-		String label,

-		FormWidgetFactory factory) {

-		return createText(parent, label, factory, 1);

-	}

-	protected Text createText(

-		Composite parent,

-		String label,

-		FormWidgetFactory factory,

-		int span) {

-		factory.createLabel(parent, label);

-		Text text = factory.createText(parent, "");

-		int hfill =

-			span == 1

-				? GridData.FILL_HORIZONTAL

-				: GridData.HORIZONTAL_ALIGN_FILL;

-		GridData gd = new GridData(hfill | GridData.VERTICAL_ALIGN_CENTER);

-		gd.horizontalSpan = span;

-		text.setLayoutData(gd);

-		return text;

-	}

-	protected Text createText(

-		Composite parent,

-		String label,

-		FormWidgetFactory factory,

-		int span,

-		int style) {

-		Label l = factory.createLabel(parent, label);

-		if ((style & SWT.MULTI) != 0) {

-			GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);

-			l.setLayoutData(gd);

-		}

-		Text text = factory.createText(parent, "", style);

-		int hfill =

-			span == 1

-				? GridData.FILL_HORIZONTAL

-				: GridData.HORIZONTAL_ALIGN_FILL;

-		GridData gd = new GridData(hfill | GridData.VERTICAL_ALIGN_CENTER);

-		gd.horizontalSpan = span;

-		text.setLayoutData(gd);

-		return text;

-	}

-	protected Text createText(

-		Composite parent,

-		FormWidgetFactory factory,

-		int span) {

-		Text text = factory.createText(parent, "");

-		int hfill =

-			span == 1

-				? GridData.FILL_HORIZONTAL

-				: GridData.HORIZONTAL_ALIGN_FILL;

-		GridData gd = new GridData(hfill | GridData.VERTICAL_ALIGN_CENTER);

-		//gd.grabExcessHorizontalSpace = true;

-		gd.horizontalSpan = span;

-		text.setLayoutData(gd);

-		return text;

-	}

-	public void dispose() {

-		JFaceResources.getFontRegistry().removeListener(this);

-	}

-	public boolean doGlobalAction(String actionId) {

-		return false;

-	}

-	public void expandTo(Object object) {

-	}

-	public final void fireChangeNotification(

-		int changeType,

-		Object changeObject) {

-		if (sectionManager == null)

-			return;

-		sectionManager.dispatchNotification(this, changeType, changeObject);

-	}

-	public final void fireSelectionNotification(Object changeObject) {

-		fireChangeNotification(SELECTION, changeObject);

-	}

-	public java.lang.String getDescription() {

-		return description;

-	}

-	public java.lang.String getHeaderColorKey() {

-		return headerColorKey;

-	}

-	public java.lang.String getHeaderText() {

-		return headerText;

-	}

-	public int getHeightHint() {

-		return heightHint;

-	}

-	public int getWidthHint() {

-		return widthHint;

-	}

-	public void initialize(Object input) {

-	}

-	public boolean isAddSeparator() {

-		return addSeparator;

-	}

-	public boolean isDescriptionPainted() {

-		return descriptionPainted;

-	}

-	public boolean isDirty() {

-		return dirty;

-	}

-	public boolean isHeaderPainted() {

-		return headerPainted;

-	}

-	public boolean isReadOnly() {

-		return readOnly;

-	}

-	public void sectionChanged(

-		FormSection source,

-		int changeType,

-		Object changeObject) {

-	}

-	public void setAddSeparator(boolean newAddSeparator) {

-		addSeparator = newAddSeparator;

-	}

-

-	private String trimNewLines(String text) {

-		StringBuffer buff = new StringBuffer();

-		for (int i = 0; i < text.length(); i++) {

-			char c = text.charAt(i);

-			if (c == '\n')

-				buff.append(' ');

-			else

-				buff.append(c);

-		}

-		return buff.toString();

-	}

-

-	public void setDescription(java.lang.String newDescription) {

-		// we will trim the new lines so that we can

-		// use layout-based word wrapping instead

-		// of hard-coded one

-		description = trimNewLines(newDescription);

-		//description = newDescription;

-		if (descriptionLabel != null)

-			descriptionLabel.setText(newDescription);

-	}

-	public void setDescriptionPainted(boolean newDescriptionPainted) {

-		descriptionPainted = newDescriptionPainted;

-	}

-	public void setDirty(boolean newDirty) {

-		dirty = newDirty;

-	}

-	public void setFocus() {

-		if (toggle != null)

-			toggle.setFocus();

-	}

-	public void setHeaderColorKey(java.lang.String newHeaderColorKey) {

-		headerColorKey = newHeaderColorKey;

-	}

-	public void setHeaderPainted(boolean newHeaderPainted) {

-		headerPainted = newHeaderPainted;

-	}

-	public void setHeaderText(java.lang.String newHeaderText) {

-		headerText = newHeaderText;

-		if (header != null)

-			header.setText(headerText);

-	}

-	public void setHeightHint(int newHeightHint) {

-		heightHint = newHeightHint;

-	}

-	void setManager(SectionChangeManager manager) {

-		this.sectionManager = manager;

-	}

-	public void setReadOnly(boolean newReadOnly) {

-		readOnly = newReadOnly;

-	}

-

-	public void setWidthHint(int newWidthHint) {

-		widthHint = newWidthHint;

-	}

-

-	public void update() {

-	}

-

-	public void propertyChange(PropertyChangeEvent arg0) {

-		if (control != null && header != null) {

-			header.setFont(JFaceResources.getBannerFont());

-			control.layout(true);

-		}

-	}

-

-	/**

-	 * Gets the collapsable.

-	 * @return Returns a boolean

-	 */

-	public boolean getCollapsable() {

-		return collapsable;

-	}

-

-	/**

-	 * Sets the collapsable.

-	 * @param collapsable The collapsable to set

-	 */

-	public void setCollapsable(boolean collapsable) {

-		this.collapsable = collapsable;

-	}

-

-	public void setCollapsed(boolean collapsed) {

-		this.collapsed = collapsed;

-	}

-

-	public boolean canPaste(Clipboard clipboard) {

-		return false;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormWidgetFactory.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormWidgetFactory.java
deleted file mode 100644
index 913e012..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormWidgetFactory.java
+++ /dev/null
@@ -1,426 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.graphics.*;

-import java.util.*;

-import org.eclipse.swt.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.jface.resource.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.custom.*;

-import org.eclipse.ui.IWorkbenchActionConstants;

-import org.eclipse.update.ui.forms.internal.engine.FormEngine;

-

-public class FormWidgetFactory {

-	public static final String KEY_DRAW_BORDER = "FormWidgetFactory.drawBorder";

-	public static final String TREE_BORDER = "treeBorder";

-	public static final String DEFAULT_HEADER_COLOR = "__default__header__";

-	public static final String COLOR_BORDER = "__border";

-	public static final String COLOR_COMPOSITE_SEPARATOR = "__compSep";

-

-	private Hashtable colorRegistry = new Hashtable();

-	private Color backgroundColor;

-	private KeyListener deleteListener;

-	private Color foregroundColor;

-	private Display display;

-	public static final int BORDER_STYLE = SWT.NONE; //SWT.BORDER;

-	private BorderPainter borderPainter;

-	private Color borderColor;

-	private HyperlinkHandler hyperlinkHandler;

-	/* default */ VisibilityHandler visibilityHandler;

-	/* default */ KeyboardHandler keyboardHandler;

-

-	class BorderPainter implements PaintListener {

-		public void paintControl(PaintEvent event) {

-			Composite composite = (Composite) event.widget;

-			Control[] children = composite.getChildren();

-			for (int i = 0; i < children.length; i++) {

-				Control c = children[i];

-				boolean inactiveBorder=false;

-				if (c.getEnabled() == false && !(c instanceof CCombo))

-					continue;

-				if (c instanceof SelectableFormLabel)

-					continue;

-				Object flag = c.getData(KEY_DRAW_BORDER);

-				if (flag!=null) {

-					if (flag.equals(Boolean.FALSE)) continue;

-					if (flag.equals(TREE_BORDER)) inactiveBorder=true;

-				}

-				 

-				if (!inactiveBorder && (c instanceof Text || c instanceof Canvas || c instanceof CCombo)) {

-					Rectangle b = c.getBounds();

-					GC gc = event.gc;

-					gc.setForeground(c.getBackground());

-					gc.drawRectangle(b.x - 1, b.y - 1, b.width + 1, b.height + 1);

-					gc.setForeground(foregroundColor);

-					if (c instanceof CCombo)

-						gc.drawRectangle(b.x - 1, b.y - 1, b.width + 1, b.height + 1);

-					else 

-						gc.drawRectangle(b.x - 1, b.y - 2, b.width + 1, b.height + 3);

-				} else if (inactiveBorder ||c instanceof Table || c instanceof Tree || c instanceof TableTree) {

-					Rectangle b = c.getBounds();

-					GC gc = event.gc;

-					gc.setForeground(borderColor);

-					//gc.drawRectangle(b.x - 2, b.y - 2, b.width + 3, b.height + 3);

-					gc.drawRectangle(b.x - 1, b.y - 1, b.width + 2, b.height + 2);

-				}

-			}

-		}

-	}

-

-	class VisibilityHandler extends FocusAdapter {

-		public void focusGained(FocusEvent e) {

-			Widget w = e.widget;

-			if (w instanceof Control) {

-				ensureVisible((Control) w);

-			}

-		}

-	}

-

-	class KeyboardHandler extends KeyAdapter {

-		public void keyPressed(KeyEvent e) {

-			Widget w = e.widget;

-			if (w instanceof Control) {

-				processKey(e.keyCode, (Control) w);

-			}

-		}

-	}

-

-	public FormWidgetFactory() {

-		this(Display.getCurrent());

-	}

-

-	public FormWidgetFactory(Display display) {

-		this.display = display;

-		initialize();

-	}

-

-	public static ScrolledComposite getScrolledComposite(Control c) {

-		Composite parent = c.getParent();

-

-		while (parent != null) {

-			if (parent instanceof ScrolledComposite) {

-				return (ScrolledComposite) parent;

-			}

-			parent = parent.getParent();

-		}

-		return null;

-	}

-

-	public static void ensureVisible(Control c) {

-		ScrolledComposite scomp = getScrolledComposite(c);

-		if (scomp != null) {

-			AbstractSectionForm.ensureVisible(scomp, c);

-		}

-	}

-

-	public static void processKey(int keyCode, Control c) {

-		ScrolledComposite scomp = getScrolledComposite(c);

-		if (scomp != null) {

-			switch (keyCode) {

-				case SWT.ARROW_DOWN :

-					AbstractSectionForm.scrollVertical(scomp, false);

-					break;

-				case SWT.ARROW_UP :

-					AbstractSectionForm.scrollVertical(scomp, true);

-					break;

-				case SWT.ARROW_LEFT :

-					AbstractSectionForm.scrollHorizontal(scomp, true);

-					break;

-				case SWT.ARROW_RIGHT :

-					AbstractSectionForm.scrollHorizontal(scomp, false);

-					break;

-				case SWT.PAGE_UP :

-					AbstractSectionForm.scrollPage(scomp, true);

-					break;

-				case SWT.PAGE_DOWN :

-					AbstractSectionForm.scrollPage(scomp, false);

-					break;

-			}

-		}

-	}

-

-	public Button createButton(Composite parent, String text, int style) {

-		int flatStyle = BORDER_STYLE == SWT.BORDER ? SWT.NULL : SWT.FLAT;

-		//int flatStyle = SWT.NULL;

-		Button button = new Button(parent, style | flatStyle);

-		button.setBackground(backgroundColor);

-		button.setForeground(foregroundColor);

-		if (text != null)

-			button.setText(text);

-		button.addFocusListener(visibilityHandler);

-		return button;

-	}

-	public Composite createComposite(Composite parent) {

-		return createComposite(parent, SWT.NULL);

-	}

-	public Composite createComposite(Composite parent, int style) {

-		Composite composite = new Composite(parent, style);

-		composite.setBackground(backgroundColor);

-		composite.addMouseListener(new MouseAdapter() {

-			public void mousePressed(MouseEvent e) {

-				((Control) e.widget).setFocus();

-			}

-		});

-		composite.setMenu(parent.getMenu());

-		return composite;

-	}

-	public Composite createCompositeSeparator(Composite parent) {

-		Composite composite = new Composite(parent, SWT.NONE);

-		composite.setBackground(getColor(COLOR_COMPOSITE_SEPARATOR));

-		return composite;

-	}

-

-	public Label createHeadingLabel(Composite parent, String text) {

-		return createHeadingLabel(parent, text, null, SWT.NONE);

-	}

-

-	public Label createHeadingLabel(Composite parent, String text, int style) {

-		return createHeadingLabel(parent, text, null, style);

-	}

-

-	public Label createHeadingLabel(Composite parent, String text, Color bg) {

-		return createHeadingLabel(parent, text, bg, SWT.NONE);

-	}

-

-	public Label createHeadingLabel(

-		Composite parent,

-		String text,

-		Color bg,

-		int style) {

-		Label label = new Label(parent, style);

-		if (text != null)

-			label.setText(text);

-		label.setBackground(backgroundColor);

-		label.setForeground(foregroundColor);

-		label.setFont(JFaceResources.getFontRegistry().get(JFaceResources.BANNER_FONT));

-		return label;

-	}

-

-	public Label createHyperlinkLabel(

-		Composite parent,

-		String text,

-		IHyperlinkListener listener) {

-		return createHyperlinkLabel(parent, text, listener, SWT.NULL);

-	}

-	public Label createHyperlinkLabel(

-		Composite parent,

-		String text,

-		IHyperlinkListener listener,

-		int style) {

-		Label label = createLabel(parent, text, style);

-		turnIntoHyperlink(label, listener);

-		return label;

-	}

-	public Label createLabel(Composite parent, String text) {

-		return createLabel(parent, text, SWT.NONE);

-	}

-	public Label createLabel(Composite parent, String text, int style) {

-		Label label = new Label(parent, style);

-		if (text != null)

-			label.setText(text);

-		label.setBackground(backgroundColor);

-		label.setForeground(foregroundColor);

-		return label;

-	}

-

-	public SelectableFormLabel createSelectableLabel(

-		Composite parent,

-		String text) {

-		return createSelectableLabel(parent, text, SWT.NONE);

-	}

-

-	public SelectableFormLabel createSelectableLabel(

-		Composite parent,

-		String text,

-		int style) {

-		SelectableFormLabel label = new SelectableFormLabel(parent, style);

-		if (text != null)

-			label.setText(text);

-		label.setBackground(backgroundColor);

-		label.setForeground(foregroundColor);

-		label.addFocusListener(visibilityHandler);

-		label.addKeyListener(keyboardHandler);

-		return label;

-	}

-

-	public FormEngine createFormEngine(Composite parent) {

-		return createFormEngine(parent, false);

-	}

-	

-	public FormEngine createFormEngine(Composite parent, boolean trackFocus) {

-		FormEngine engine = new FormEngine(parent, SWT.WRAP);

-		engine.setBackground(backgroundColor);

-		engine.setForeground(foregroundColor);

-		engine.marginWidth = 1;

-		engine.marginHeight = 0;

-		engine.setHyperlinkSettings(getHyperlinkHandler());

-		if (trackFocus) engine.addFocusListener(visibilityHandler);

-		engine.addKeyListener(keyboardHandler);

-		engine.setMenu(parent.getMenu());

-		return engine;

-	}

-

-	public Label createSeparator(Composite parent, int style) {

-		Label label = new Label(parent, SWT.SEPARATOR | style);

-		label.setBackground(backgroundColor);

-		label.setForeground(borderColor);

-		return label;

-	}

-	public Table createTable(Composite parent, int style) {

-		Table table = new Table(parent, BORDER_STYLE | style);

-		table.setBackground(backgroundColor);

-		table.setForeground(foregroundColor);

-		hookDeleteListener(table);

-		return table;

-	}

-	public Text createText(Composite parent, String value) {

-		return createText(parent, value, BORDER_STYLE | SWT.SINGLE);

-	}

-	public Text createText(Composite parent, String value, int style) {

-		Text text = new Text(parent, style);

-		if (value != null)

-			text.setText(value);

-		text.setBackground(backgroundColor);

-		text.setForeground(foregroundColor);

-		text.addFocusListener(visibilityHandler);

-		return text;

-	}

-	public Tree createTree(Composite parent, int style) {

-		Tree tree = new Tree(parent, BORDER_STYLE | style);

-		tree.setBackground(backgroundColor);

-		tree.setForeground(foregroundColor);

-		hookDeleteListener(tree);

-		return tree;

-	}

-	private void deleteKeyPressed(Widget widget) {

-		if (!(widget instanceof Control))

-			return;

-		Control control = (Control) widget;

-		for (Control parent = control.getParent();

-			parent != null;

-			parent = parent.getParent()) {

-			if (parent.getData() instanceof FormSection) {

-				FormSection section = (FormSection) parent.getData();

-				section.doGlobalAction(IWorkbenchActionConstants.DELETE);

-				break;

-			}

-		}

-	}

-	public void dispose() {

-		Enumeration colors = colorRegistry.elements();

-		while (colors.hasMoreElements()) {

-			Color c = (Color) colors.nextElement();

-			c.dispose();

-		}

-		hyperlinkHandler.dispose();

-		colorRegistry = null;

-	}

-	public Color getBackgroundColor() {

-		return backgroundColor;

-	}

-	public Color getBorderColor() {

-		return borderColor;

-	}

-	public Cursor getBusyCursor() {

-		return hyperlinkHandler.getBusyCursor();

-	}

-	public Color getColor(String key) {

-		return (Color) colorRegistry.get(key);

-	}

-	public Color getForegroundColor() {

-		return foregroundColor;

-	}

-	public HyperlinkHandler getHyperlinkHandler() {

-		return hyperlinkHandler;

-	}

-	public Cursor getHyperlinkCursor() {

-		return hyperlinkHandler.getHyperlinkCursor();

-	}

-	public Color getHyperlinkColor() {

-		return hyperlinkHandler.getForeground();

-	}

-	public Color getHyperlinkHoverColor() {

-		return hyperlinkHandler.getActiveForeground();

-	}

-	public int getHyperlinkUnderlineMode() {

-		return hyperlinkHandler.getHyperlinkUnderlineMode();

-	}

-	public void hookDeleteListener(Control control) {

-		if (deleteListener == null) {

-			deleteListener = new KeyAdapter() {

-				public void keyPressed(KeyEvent event) {

-					if (event.character == SWT.DEL && event.stateMask == 0) {

-						deleteKeyPressed(event.widget);

-					}

-				}

-			};

-		}

-		control.addKeyListener(deleteListener);

-	}

-	private void initialize() {

-		backgroundColor = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);

-		registerColor(COLOR_BORDER, 195, 191, 179);

-		registerColor(COLOR_COMPOSITE_SEPARATOR, 152, 170, 203);

-		registerColor(DEFAULT_HEADER_COLOR, 0x48, 0x70, 0x98);

-		if (isWhiteBackground())

-			borderColor = getColor(COLOR_BORDER);

-		else

-			borderColor = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);

-		foregroundColor = display.getSystemColor(SWT.COLOR_LIST_FOREGROUND);

-		hyperlinkHandler = new HyperlinkHandler();

-		hyperlinkHandler.setBackground(backgroundColor);

-		updateHyperlinkColors();

-		visibilityHandler = new VisibilityHandler();

-		keyboardHandler = new KeyboardHandler();

-	}

-	

-	public boolean isWhiteBackground() {

-		return backgroundColor.getRed()==255 && backgroundColor.getGreen()==255 &&

-			backgroundColor.getBlue()==255;

-	}

-

-	public void updateHyperlinkColors() {

-		Color hyperlinkColor = JFaceColors.getHyperlinkText(display);

-		Color activeHyperlinkColor = JFaceColors.getActiveHyperlinkText(display);

-		hyperlinkHandler.setForeground(hyperlinkColor);

-		hyperlinkHandler.setActiveForeground(activeHyperlinkColor);

-	}

-

-	public void paintBordersFor(Composite parent) {

-		if (BORDER_STYLE == SWT.BORDER)

-			return;

-		if (borderPainter == null)

-			borderPainter = new BorderPainter();

-		parent.addPaintListener(borderPainter);

-	}

-	public Color registerColor(String key, int r, int g, int b) {

-		Color c = new Color(display, r, g, b);

-		colorRegistry.put(key, c);

-		return c;

-	}

-	public void setBackgroundColor(Color color) {

-		backgroundColor = color;

-	}

-	public void setHyperlinkColor(Color color) {

-		hyperlinkHandler.setForeground(color);

-	}

-	public void setHyperlinkHoverColor(org.eclipse.swt.graphics.Color hoverColor) {

-		hyperlinkHandler.setActiveForeground(hoverColor);

-	}

-	public void setHyperlinkUnderlineMode(int newHyperlinkUnderlineMode) {

-		hyperlinkHandler.setHyperlinkUnderlineMode(newHyperlinkUnderlineMode);

-	}

-	public void turnIntoHyperlink(Control control, IHyperlinkListener listener) {

-		hyperlinkHandler.registerHyperlink(control, listener);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPlugin.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPlugin.java
deleted file mode 100644
index 13b3410..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPlugin.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.ui.forms.internal;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.*;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.*;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-public class FormsPlugin extends AbstractUIPlugin {
-	private static FormsPlugin instance;
-	private ResourceBundle resourceBundle;
-
-	/**
-	 * Constructor for FormsPlugin.
-	 * @param descriptor
-	 */
-	public FormsPlugin(IPluginDescriptor descriptor) {
-		super(descriptor);
-		instance = this;
-		try {
-			resourceBundle =
-				ResourceBundle.getBundle(
-					"org.eclipse.update.ui.forms.internal.FormsPluginResources");
-		} catch (MissingResourceException x) {
-			resourceBundle = null;
-		}
-	}
-
-	/**
-	 * Returns the string from the plugin's resource bundle,
-	 * or 'key' if not found.
-	 */
-	public static String getResourceString(String key) {
-		ResourceBundle bundle = FormsPlugin.getDefault().getResourceBundle();
-		try {
-			return bundle.getString(key);
-		} catch (MissingResourceException e) {
-			return key;
-		}
-	}
-
-	public static String getFormattedMessage(String key, String[] args) {
-		String text = getResourceString(key);
-		return java.text.MessageFormat.format(text, args);
-	}
-
-	public static String getFormattedMessage(String key, String arg) {
-		String text = getResourceString(key);
-		return java.text.MessageFormat.format(text, new Object[] { arg });
-	}
-
-	/**
-	 * Returns the plugin's resource bundle,
-	 */
-	public ResourceBundle getResourceBundle() {
-		return resourceBundle;
-	}
-
-	public static FormsPlugin getDefault() {
-		return instance;
-	}
-
-	public static IWorkbenchPage getActivePage() {
-		return getDefault().internalGetActivePage();
-	}
-
-	private IWorkbenchPage internalGetActivePage() {
-		return getWorkbench().getActiveWorkbenchWindow().getActivePage();
-	}
-
-	public static Shell getActiveWorkbenchShell() {
-		return getActiveWorkbenchWindow().getShell();
-	}
-
-	public static IWorkbenchWindow getActiveWorkbenchWindow() {
-		return getDefault().getWorkbench().getActiveWorkbenchWindow();
-	}
-
-	public static String getPluginId() {
-		return getDefault().getDescriptor().getUniqueIdentifier();
-	}
-
-	public static void logException(Throwable e) {
-		logException(e, true);
-	}
-
-	public static void logException(Throwable e, boolean showErrorDialog) {
-		if (e instanceof InvocationTargetException) {
-			e = ((InvocationTargetException) e).getTargetException();
-		}
-
-		IStatus status = null;
-		if (e instanceof CoreException) {
-			status = ((CoreException) e).getStatus();
-		} else {
-			String message = e.getMessage();
-			if (message == null)
-				message = e.toString();
-			status =
-				new Status(
-					IStatus.ERROR,
-					getPluginId(),
-					IStatus.OK,
-					message,
-					e);
-		}
-		log(status, showErrorDialog);
-	}
-
-	public static void log(IStatus status, boolean showErrorDialog) {
-		if (showErrorDialog)
-			ErrorDialog.openError(
-				getActiveWorkbenchShell(),
-				null,
-				null,
-				status);
-		Platform.getPlugin("org.eclipse.core.runtime").getLog().log(status);
-	}
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPluginResources.properties b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPluginResources.properties
deleted file mode 100644
index 6d45e06..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/FormsPluginResources.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-
-FormEgine.linkPopup.open = &Open
-FormEgine.linkPopup.copyShortcut = &Copy as Shortcut
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HTMLTableLayout.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HTMLTableLayout.java
deleted file mode 100644
index 652e686..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HTMLTableLayout.java
+++ /dev/null
@@ -1,651 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-import java.util.*;

-import org.eclipse.swt.SWT;

-

-/**

- * This implementation of the layout algorithm

- * attempts to position controls in the composite

- * using a two-pass autolayout HTML table altorithm

- * recommeded by HTML 4.01 W3C specification.

- * The main differences with GridLayout is that

- * it has two passes and that width and height

- * are not calculated in the same pass.

- * <p>

- * The advantage of the algorithm over GridLayout

- * is that it is capable of flowing text controls

- * capable of line wrap. These controls do not

- * have natural 'preferred size'. Instead, 

- * they are capable of providing the required

- * height if the width is set. Consequently,

- * this algorithm first calculates the widths

- * that will be assigned to columns, and then

- * passes those widths to the controls to

- * calculate the height. When a composite

- * with this layout is a child of the scrolling

- * composite, they should interact in such

- * a way that reduction in the scrolling composite

- * width results in the reflow and increase of

- * the overall height.

- * <p>

- * If none of the columns contain expandable

- * and wrappable controls, the end-result

- * will be similar to the one provided

- * by GridLayout. The difference will

- * show up for layouts that contain

- * controls whose minimum and maximum

- * widths are not the same.

- */

-

-public class HTMLTableLayout extends Layout implements ILayoutExtension {

-	public int numColumns = 1;

-	public int leftMargin = 5;

-	public int rightMargin = 5;

-	public int topMargin = 5;

-	public int bottomMargin = 5;

-	public int horizontalSpacing = 5;

-	public int verticalSpacing = 5;

-	public boolean makeColumnsEqualWidth = false;

-	

-	private boolean initialLayout=true;

-	private Vector grid = null;

-	private int [] minColumnWidths, maxColumnWidths;

-	private int widestColumnWidth;

-	private int [] growingColumns;

-	

-	public int getMinimumWidth(Composite parent, boolean changed) {

-		changed = true;

-		initializeIfNeeded(parent, changed);

-		if (initialLayout) {

-		   changed = true;

-		   initialLayout = false;

-		}

-		if (grid==null || changed) {

-		   changed = true;

-		   grid = new Vector();

-		   createGrid(parent);

-		}

-		if (minColumnWidths==null)

-		   minColumnWidths = new int [numColumns];

-		for (int i=0; i<numColumns; i++) {

-			minColumnWidths[i] = 0;

-		}

-		return internalGetMinimumWidth(parent, changed);

-	}

-	

-	public int getMaximumWidth(Composite parent, boolean changed) {

-		changed = true;

-		initializeIfNeeded(parent, changed);

-		if (initialLayout) {

-		   changed = true;

-		   initialLayout = false;

-		}

-		if (grid==null || changed) {

-		   changed = true;

-		   grid = new Vector();

-		   createGrid(parent);

-		}

-		if (maxColumnWidths==null)

-		   maxColumnWidths = new int[numColumns];

-		for (int i=0; i<numColumns; i++) {

-			maxColumnWidths[i] = 0;

-		}

-		return internalGetMaximumWidth(parent, changed);

-	}

-	

-	/**

-	 * @see Layout#layout(Composite, boolean)

-	 */

-	protected void layout(Composite parent, boolean changed) {

-		Rectangle clientArea = parent.getClientArea();

-		Control [] children = parent.getChildren();

-		if (children.length ==0) return;

-		int parentWidth = clientArea.width;

-		changed = true;

-		initializeIfNeeded(parent, changed);

-		if (initialLayout) {

-		   changed = true;

-		   initialLayout = false;

-		}

-		if (grid==null || changed) {

-		   changed = true;

-		   grid = new Vector();

-		   createGrid(parent);

-		}

-		resetColumnWidths();

-		int minWidth = internalGetMinimumWidth(parent, changed);

-		int maxWidth = internalGetMaximumWidth(parent, changed);

-		

-		int tableWidth = parentWidth;

-		

-		int [] columnWidths;

-		

-		if (parentWidth < minWidth) {

-		   tableWidth = minWidth;

-		   if (makeColumnsEqualWidth) {

-		      columnWidths = new int[numColumns];

-		      for (int i=0; i<numColumns; i++) {

-		      	columnWidths[i] = widestColumnWidth;

-		      }

-		   }

-		   else

-		      columnWidths = minColumnWidths;

-		}

-		else if (parentWidth > maxWidth) {

-			if (growingColumns.length==0) {

-		   		tableWidth = maxWidth;

-		   		columnWidths = maxColumnWidths;

-			}

-			else {

-				columnWidths = new int [numColumns];

-				int colSpace = tableWidth - leftMargin - rightMargin;

-				colSpace -= (numColumns-1)*horizontalSpacing;

-				int extra = parentWidth - maxWidth;

-				int colExtra = extra / growingColumns.length;

-				for (int i=0; i<numColumns; i++) {

-					columnWidths[i] = maxColumnWidths[i];

-				

-					if (isGrowingColumn(i)) {

-						columnWidths[i] += colExtra;

-					}

-				}

-			}

-		}

-		else {

-			columnWidths = new int [numColumns];

-			if (makeColumnsEqualWidth) {

-				int colSpace = tableWidth - leftMargin - rightMargin;

-				colSpace -= (numColumns-1)*horizontalSpacing;

-				int col = colSpace/numColumns;

-				for (int i=0; i<numColumns; i++) {

-					columnWidths[i] = col;

-				}

-			}

-			else {

-			   int [] extraSpace = calculateExtraSpace(tableWidth, maxWidth, minWidth);

-			   for (int i=0; i<numColumns; i++) {

-				  int minCWidth = minColumnWidths[i];

-		   		  columnWidths[i] = minCWidth + extraSpace[i];

-			   }

-			}

-		}

-		int x = 0;

-		int y = topMargin;

-		// assign widths 

-		for (int i=0; i<grid.size(); i++) {

-			TableData [] row = (TableData [])grid.elementAt(i);

-			// assign widths, calculate heights

-			int rowHeight = 0;

-			x = leftMargin;

-			for (int j=0; j<numColumns; j++) {

-				TableData td = row[j];

-				if (td.isItemData==false) {

-					continue;

-				}

-				Control child = children[td.childIndex];

-				int span = td.colspan;

-				int cwidth = 0;

-				for (int k=j; k<j+span; k++) {

-					cwidth += columnWidths[k];

-					if (k<j+span-1) cwidth += horizontalSpacing;

-				}

-				Point size = computeSize(child, cwidth, changed);

-				td.compWidth = cwidth;

-				if (td.heightHint!=SWT.DEFAULT) {

-					size = new Point(size.x, td.heightHint);

-				}

-				td.compSize = size;

-				rowHeight = Math.max(rowHeight, size.y);

-			}

-			for (int j=0; j<numColumns; j++) {

-				TableData td = row[j];

-				if (td.isItemData==false) {

-					continue;

-				}

-				Control child = children[td.childIndex];

-				placeControl(child, td, x, y, rowHeight);

-				x += td.compWidth;

-				if (j<numColumns-1) x+= horizontalSpacing;		

-			}

-			y += rowHeight + verticalSpacing;

-		}

-	}

-	

-boolean isGrowingColumn(int col) {

-	if (growingColumns==null) return false;

-	for (int i=0; i<growingColumns.length; i++) {

-		if (col == growingColumns[i]) return true;

-	}

-	return false;

-}	

-	

-int [] calculateExtraSpace(int tableWidth, int maxWidth, int minWidth) {

-	int fixedPart = leftMargin + rightMargin + (numColumns-1)*horizontalSpacing;

-	int D = maxWidth - minWidth;

-	

-	int W = tableWidth -fixedPart - minWidth;

-	

-	int extraSpace [] = new int [numColumns];

-

-	int rem = 0;

-	for (int i=0; i<numColumns; i++) { 

-		int cmin = minColumnWidths[i];

-		int cmax = maxColumnWidths[i];

-		int d = cmax - cmin;

-		int extra = D!=0 ? (d * W)/D : 0;

-		if (i<numColumns-1) {

-			extraSpace [i] = extra;

-			rem += extra;

-		}

-		else {

-			extraSpace[i] = W - rem;

-		}

-	}

-	return extraSpace;

-}

-	

-Point computeSize(Control child, int width, boolean changed) {

-	int widthArg = width;

-	if (!isWrap(child))

-	   widthArg = SWT.DEFAULT;

-	Point size = child.computeSize(widthArg, SWT.DEFAULT, changed);

-	return size;

-}

-

-void placeControl(Control control, TableData td, int x, int y, int rowHeight) {

-	int xloc = x + td.indent;

-	int yloc = y;

-	int width = td.compSize.x;

-	int height = td.compSize.y;

-	int colWidth = td.compWidth;

-	

-	// align horizontally

-	if (td.align==TableData.CENTER) {

-		xloc = x + colWidth/2 - width/2;

-	}

-	else if (td.align==TableData.RIGHT) {

-		xloc = x + colWidth - width;

-	}

-	else if (td.align==TableData.FILL) {

-		width = colWidth;

-	}

-	// align vertically

-	if (td.valign == TableData.MIDDLE) {

-		yloc = y + rowHeight/2 - height/2;

-	}

-	else if (td.valign==TableData.BOTTOM) {

-		yloc = y + rowHeight - height;

-	}

-	else if (td.valign==TableData.FILL) {

-		height = rowHeight;	

-	}

-	control.setBounds(xloc, yloc, width, height);

-}

-

-void createGrid(Composite composite) {

-	int row, column, rowFill, columnFill;

-	Control[] children;

-	TableData spacerSpec;

-	Vector growingCols = new Vector();

-

-	// 

-	children = composite.getChildren();

-	if (children.length==0) return;

-

-	// 

-	grid.addElement(createEmptyRow());

-	row = 0;

-	column = 0;

-

-	// Loop through the children and place their associated layout specs in the

-	// grid.  Placement occurs left to right, top to bottom (i.e., by row).

-	for (int i = 0; i < children.length; i++) {

-		// Find the first available spot in the grid.

-		Control child = children[i];

-		TableData spec = (TableData) child.getLayoutData();

-		while (((TableData[]) grid.elementAt(row))[column] != null) {

-			column = column + 1;

-			if (column >= numColumns) {

-				row = row + 1;

-				column = 0;

-				if (row >= grid.size()) {

-					grid.addElement(createEmptyRow());

-				}

-			}

-		}

-		// See if the place will support the widget's horizontal span.  If not, go to the

-		// next row.

-		if (column + spec.colspan - 1 >= numColumns) {

-			grid.addElement(createEmptyRow());

-			row = row + 1;

-			column = 0;

-		}

-

-		// The vertical span for the item will be at least 1.  If it is > 1,

-		// add other rows to the grid.

-		for (int j = 2; j <= spec.rowspan; j++) {

-			if (row + j > grid.size()) {

-				grid.addElement(createEmptyRow());

-			}

-		}

-

-		// Store the layout spec.  Also cache the childIndex.  NOTE: That we assume the children of a

-		// composite are maintained in the order in which they are created and added to the composite.

-		((TableData[]) grid.elementAt(row))[column] = spec;

-		spec.childIndex = i;

-		

-		if (spec.grabHorizontal) {

-			updateGrowingColumns(growingCols, spec, column);

-		}

-

-		// Put spacers in the grid to account for the item's vertical and horizontal

-		// span.

-		rowFill = spec.rowspan - 1;

-		columnFill = spec.colspan - 1;

-		for (int r = 1; r <= rowFill; r++) {

-			for (int c = 0; c < spec.colspan; c++) {

-				spacerSpec = new TableData();

-				spacerSpec.isItemData = false;

-				((TableData[]) grid.elementAt(row + r))[column + c] = spacerSpec;

-			}

-		}

-		for (int c = 1; c <= columnFill; c++) {

-			for (int r = 0; r < spec.rowspan; r++) {

-				spacerSpec = new TableData();

-				spacerSpec.isItemData = false;

-				((TableData[]) grid.elementAt(row + r))[column + c] = spacerSpec;

-			}

-		}

-		column = column + spec.colspan - 1;

-	}

-

-	// Fill out empty grid cells with spacers.

-	for (int k = column + 1; k < numColumns; k++) {

-		spacerSpec = new TableData();

-		spacerSpec.isItemData = false;

-		((TableData[]) grid.elementAt(row))[k] = spacerSpec;

-	}

-	for (int k = row + 1; k < grid.size(); k++) {

-		spacerSpec = new TableData();

-		spacerSpec.isItemData = false;

-		((TableData[]) grid.elementAt(k))[column] = spacerSpec;

-	}

-	growingColumns = new int [growingCols.size()];

-	for (int i=0; i<growingCols.size(); i++) {

-		growingColumns[i] = ((Integer)growingCols.get(i)).intValue();

-	}

-}

-

-private void updateGrowingColumns(Vector growingColumns, TableData spec, int column) {

-	int affectedColumn = column + spec.colspan -1;

-	for (int i=0; i<growingColumns.size(); i++) {

-		Integer col = (Integer)growingColumns.get(i);

-		if (col.intValue()==affectedColumn)

-		   return;

-	}

-	growingColumns.add(new Integer(affectedColumn));

-}

-

-private TableData [] createEmptyRow() {

-	TableData [] row = new TableData[numColumns];

-	for (int i=0; i<numColumns; i++) 

-	   row[i] = null;

-	return row;

-}

-

-	/**

-	 * @see Layout#computeSize(Composite, int, int, boolean)

-	 */

-	protected Point computeSize(Composite parent, int wHint, int hHint, boolean changed) {

-		Control [] children = parent.getChildren();

-		if (children.length == 0) {

-			return new Point(0, 0);

-		}

-		int parentWidth = wHint;

-		changed = true;

-		initializeIfNeeded(parent, changed);

-		if (initialLayout) {

-		   changed = true;

-		   initialLayout = false;

-		}

-		if (grid==null || changed) {

-		   changed = true;

-		   grid = new Vector();

-		   createGrid(parent);

-		}

-		resetColumnWidths();

-		int minWidth = internalGetMinimumWidth(parent, changed);

-		int maxWidth = internalGetMaximumWidth(parent, changed);

-		

-		int tableWidth = parentWidth;

-		

-		int [] columnWidths;

-		

-		if (parentWidth < minWidth) {

-		   tableWidth = minWidth;

-		   if (makeColumnsEqualWidth) {

-		      columnWidths = new int[numColumns];

-		      for (int i=0; i<numColumns; i++) {

-		      	columnWidths[i] = widestColumnWidth;

-		      }

-		   }

-		   else

-		      columnWidths = minColumnWidths;

-		}

-		else if (parentWidth > maxWidth) {

-		   tableWidth = maxWidth;

-		   columnWidths = maxColumnWidths;

-		}

-		else {

-			columnWidths = new int [numColumns];

-			if (makeColumnsEqualWidth) {

-				int colSpace = tableWidth - leftMargin - rightMargin;

-				colSpace -= (numColumns-1)*horizontalSpacing;

-				int col = colSpace/numColumns;

-				for (int i=0; i<numColumns; i++) {

-					columnWidths[i] = col;

-				}

-			}

-			else {

-			   int [] extraSpace = calculateExtraSpace(tableWidth, maxWidth, minWidth);

-			   for (int i=0; i<numColumns; i++) {

-				  int minCWidth = minColumnWidths[i];

-		   		  columnWidths[i] = minCWidth + extraSpace[i];

-			   }

-			}

-		}

-		int totalHeight=0;

-		int y = topMargin;

-		// compute widths 

-		for (int i=0; i<grid.size(); i++) {

-			TableData [] row = (TableData [])grid.elementAt(i);

-			// assign widths, calculate heights

-			int rowHeight = 0;

-			for (int j=0; j<numColumns; j++) {

-				TableData td = row[j];

-				if (td.isItemData==false) {

-					continue;

-				}

-				Control child = children[td.childIndex];

-				int span = td.colspan;

-				int cwidth = 0;

-				for (int k=j; k<j+span; k++) {

-					if (k>j) cwidth += horizontalSpacing;

-					cwidth += columnWidths[k];

-				}

-				int cy = td.heightHint;

-				if (cy == SWT.DEFAULT) {

-				   Point size = computeSize(child, cwidth, changed);

-				   cy = size.y;

-				}

-				rowHeight = Math.max(rowHeight, cy);

-			}

-			y += rowHeight + verticalSpacing;

-		}

-		totalHeight = y + bottomMargin;

-		return new Point(tableWidth, totalHeight);

-	}

-

-	int internalGetMinimumWidth(Composite parent, boolean changed) {

-		if (changed)

-		   calculateMinimumColumnWidths(parent, true);

-		int minimumWidth = 0;

-		

-		widestColumnWidth = 0;

-		

-		if (makeColumnsEqualWidth) {

-			for (int i=0; i<numColumns; i++) {

-				widestColumnWidth = Math.max(widestColumnWidth, minColumnWidths[i]);

-			}

-		}

-		for (int i=0; i<numColumns; i++) {

-			if (i>0) minimumWidth += horizontalSpacing;

-			if (makeColumnsEqualWidth)

-			   minimumWidth += widestColumnWidth;

-			else

-			   minimumWidth += minColumnWidths[i];

-		}

-		// add margins

-		minimumWidth += leftMargin + rightMargin;

-		return minimumWidth;

-	}

-	

-	int internalGetMaximumWidth(Composite parent, boolean changed) {

-		if (changed)

-		   calculateMaximumColumnWidths(parent, true);

-		int maximumWidth = 0;

-		for (int i=0; i<numColumns; i++) {

-			if (i>0) maximumWidth += horizontalSpacing;

-			maximumWidth += maxColumnWidths[i];

-		}

-		// add margins

-		maximumWidth += leftMargin + rightMargin;

-		return maximumWidth;

-	}

-	

-	void resetColumnWidths() {

-		if (minColumnWidths == null)

-		   minColumnWidths = new int [numColumns];

-		if (maxColumnWidths == null)

-		   maxColumnWidths = new int [numColumns];

-		for (int i=0; i<numColumns; i++) {

-			minColumnWidths [i] = 0;

-		}

-		for (int i=0; i<numColumns; i++) {

-			maxColumnWidths [i] = 0;

-		}

-	}

-

-	void calculateMinimumColumnWidths(Composite parent, boolean changed) {

-		Control [] children = parent.getChildren();

-		

-		for (int i=0; i<grid.size(); i++) {

-			TableData [] row = (TableData [])grid.elementAt(i);

-			for (int j=0; j<numColumns; j++) {

-				TableData td = row[j];

-				if (td.isItemData==false) continue;

-				Control child = children[td.childIndex];

-				int minWidth = -1;

-				if (child instanceof Composite) {

-					Composite cc = (Composite)child;

-					Layout l = cc.getLayout();

-					if (l instanceof ILayoutExtension) {

-						minWidth = ((ILayoutExtension)l).getMinimumWidth(cc, changed);

-					}

-				}

-				if (minWidth == -1) {

-					if (isWrap(child)) {

-						// Should be the width of the

-						// longest word, we'll pick

-						// some small number instead

-						minWidth = 30;

-					}

-					else {

-					   Point size = child.computeSize(SWT.DEFAULT, SWT.DEFAULT, changed);

-					   minWidth = size.x;

-					}

-				}

-				minWidth += td.indent;

-				minColumnWidths[j] = Math.max(minColumnWidths[j], minWidth);

-			}

-		}

-	}

-	

-	boolean isWrap(Control control) {

-		if (control instanceof Composite &&

-		   ((Composite)control).getLayout() instanceof ILayoutExtension)

-		   return true;

-		return (control.getStyle() & SWT.WRAP)!=0;

-	}

-	

-	void calculateMaximumColumnWidths(Composite parent, boolean changed) {

-		Control [] children = parent.getChildren();

-		

-		for (int i=0; i<numColumns; i++) {

-			maxColumnWidths [i] = 0;

-		}

-		for (int i=0; i<grid.size(); i++) {

-			TableData [] row = (TableData [])grid.elementAt(i);

-			for (int j=0; j<numColumns; j++) {

-				TableData td = row[j];

-				if (td.isItemData==false) continue;

-				Control child = children[td.childIndex];

-				int maxWidth = -1;

-				if (child instanceof Composite) {

-					Composite cc = (Composite)child;

-					Layout l = cc.getLayout();

-					if (l instanceof ILayoutExtension) {

-						maxWidth = ((ILayoutExtension)l).getMaximumWidth(cc, changed);

-					}

-				}

-				if (maxWidth == -1) {

-					Point size = child.computeSize(SWT.DEFAULT, SWT.DEFAULT, changed);

-					maxWidth = size.x;

-				}

-				maxWidth += td.indent;

-				if (td.colspan==1)

-				   maxColumnWidths[j] = Math.max(maxColumnWidths[j], maxWidth);

-				else {

-					// grow the last column

-					int last = j + td.colspan -1;

-					int rem = 0;

-					for (int k=j; k<j+td.colspan-1; k++) {

-						rem += maxColumnWidths[k];

-					}

-					int reduced = maxWidth - rem;

-					maxColumnWidths[last] = Math.max(maxColumnWidths[last], reduced);

-				}

-			}

-		}

-	}

-	

-private void initializeIfNeeded(Composite parent, boolean changed) {

-	if (changed)

-	   	initialLayout = true;

-	if (initialLayout) {

-		initializeLayoutData(parent);

-		initialLayout = false;

-	}

-}

-	

-void initializeLayoutData(Composite composite) {

-	Control[] children = composite.getChildren();

-	for (int i = 0; i < children.length; i++) {

-		Control child = children[i];

-		if (child.getLayoutData() == null) {

-			child.setLayoutData(new TableData());

-		}

-	}

-}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkAdapter.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkAdapter.java
deleted file mode 100644
index 8180a2d..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkAdapter.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-public class HyperlinkAdapter implements IHyperlinkListener {

-

-public HyperlinkAdapter() {

-	super();

-}

-public void linkActivated(org.eclipse.swt.widgets.Control linkLabel) {}

-public void linkEntered(org.eclipse.swt.widgets.Control linkLabel) {}

-public void linkExited(org.eclipse.swt.widgets.Control linkLabel) {}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkHandler.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkHandler.java
deleted file mode 100644
index 031aef6..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkHandler.java
+++ /dev/null
@@ -1,224 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import java.util.Enumeration;

-import java.util.Hashtable;

-

-import org.eclipse.swt.events.MouseEvent;

-import org.eclipse.swt.events.MouseListener;

-import org.eclipse.swt.events.MouseTrackListener;

-import org.eclipse.swt.events.PaintEvent;

-import org.eclipse.swt.events.PaintListener;

-import org.eclipse.swt.events.SelectionEvent;

-import org.eclipse.swt.events.SelectionListener;

-import org.eclipse.swt.graphics.Color;

-import org.eclipse.swt.graphics.GC;

-import org.eclipse.swt.graphics.Point;

-import org.eclipse.swt.graphics.Rectangle;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.widgets.Control;

-import org.eclipse.swt.widgets.Label;

-

-public class HyperlinkHandler

-	extends HyperlinkSettings

-	implements MouseListener, MouseTrackListener, SelectionListener, PaintListener {

-	private Hashtable hyperlinkListeners;

-	private Control lastActivated;

-	private Control lastEntered;

-

-	public HyperlinkHandler() {

-		hyperlinkListeners = new Hashtable();

-	}

-

-	public Control getLastLink() {

-		return lastActivated;

-	}

-

-	public void mouseDoubleClick(MouseEvent e) {

-	}

-

-	public void mouseDown(MouseEvent e) {

-		if (e.button == 1)

-			return;

-		lastActivated = (Control) e.widget;

-	}

-	public void mouseEnter(MouseEvent e) {

-		Control control = (Control) e.widget;

-		linkEntered(control);

-	}

-	public void mouseExit(MouseEvent e) {

-		Control control = (Control) e.widget;

-		linkExited(control);

-	}

-	public void mouseHover(MouseEvent e) {

-	}

-

-	public void mouseUp(MouseEvent e) {

-		if (e.button != 1)

-			return;

-		Control linkControl = (Control) e.widget;

-		Point size = linkControl.getSize();

-		// Filter out mouse up events outside

-		// the link. This can happen when mouse is

-		// clicked, dragged outside the link, then

-		// released.

-		if (e.x < 0)

-			return;

-		if (e.y < 0)

-			return;

-		if (e.x >= size.x)

-			return;

-		if (e.y >= size.y)

-			return;

-		linkActivated(linkControl);

-	}

-

-	public void widgetDefaultSelected(SelectionEvent e) {

-		Control link = (Control) e.widget;

-		linkActivated(link);

-	}

-

-	public void widgetSelected(SelectionEvent e) {

-		Control link = (Control) e.widget;

-		SelectableFormLabel l = (SelectableFormLabel) link;

-		if (l.getSelection())

-			linkEntered(link);

-		else

-			linkExited(link);

-	}

-

-	private void linkActivated(Control link) {

-		IHyperlinkListener action =

-			(IHyperlinkListener) hyperlinkListeners.get(link);

-		if (action != null) {

-			link.setCursor(getBusyCursor());

-			action.linkActivated(link);

-			if (!link.isDisposed())

-				link.setCursor(

-					isHyperlinkCursorUsed() ? getHyperlinkCursor() : null);

-		}

-	}

-

-	private void linkEntered(Control link) {

-		if (lastEntered != null

-			&& lastEntered instanceof SelectableFormLabel) {

-			SelectableFormLabel fl = (SelectableFormLabel) lastEntered;

-			linkExited(fl);

-		}

-		if (isHyperlinkCursorUsed())

-			link.setCursor(getHyperlinkCursor());

-		if (activeBackground != null)

-			link.setBackground(activeBackground);

-		if (activeForeground != null)

-			link.setForeground(activeForeground);

-		if (hyperlinkUnderlineMode == UNDERLINE_ROLLOVER)

-			underline(link, true);

-

-		IHyperlinkListener action =

-			(IHyperlinkListener) hyperlinkListeners.get(link);

-		if (action != null)

-			action.linkEntered(link);

-		lastEntered = link;

-	}

-

-	private void linkExited(Control link) {

-		if (isHyperlinkCursorUsed())

-			link.setCursor(null);

-		if (hyperlinkUnderlineMode == UNDERLINE_ROLLOVER)

-			underline(link, false);

-		if (background != null)

-			link.setBackground(background);

-		if (foreground != null)

-			link.setForeground(foreground);

-		IHyperlinkListener action =

-			(IHyperlinkListener) hyperlinkListeners.get(link);

-		if (action != null)

-			action.linkExited(link);

-		if (lastEntered == link)

-			lastEntered = null;

-	}

-

-	public void paintControl(PaintEvent e) {

-		Control label = (Control) e.widget;

-		if (hyperlinkUnderlineMode == UNDERLINE_ALWAYS)

-			HyperlinkHandler.underline(label, true);

-	}

-

-	public void registerHyperlink(

-		Control control,

-		IHyperlinkListener listener) {

-		if (background != null)

-			control.setBackground(background);

-		if (foreground != null)

-			control.setForeground(foreground);

-		control.addMouseListener(this);

-		control.addMouseTrackListener(this);

-

-		if (hyperlinkUnderlineMode == UNDERLINE_ALWAYS

-			&& control instanceof Label)

-			control.addPaintListener(this);

-		if (control instanceof SelectableFormLabel) {

-			SelectableFormLabel sl = (SelectableFormLabel) control;

-			sl.addSelectionListener(this);

-			if (hyperlinkUnderlineMode == UNDERLINE_ALWAYS)

-				sl.setUnderlined(true);

-		}

-		hyperlinkListeners.put(control, listener);

-		removeDisposedLinks();

-	}

-

-	private void removeDisposedLinks() {

-		for (Enumeration keys = hyperlinkListeners.keys();

-			keys.hasMoreElements();

-			) {

-			Control control = (Control) keys.nextElement();

-			if (control.isDisposed()) {

-				hyperlinkListeners.remove(control);

-			}

-		}

-	}

-

-	public void reset() {

-		hyperlinkListeners.clear();

-	}

-

-	public static void underline(Control control, boolean inside) {

-		if (control instanceof SelectableFormLabel) {

-			SelectableFormLabel l = (SelectableFormLabel) control;

-			l.setUnderlined(inside);

-			l.redraw();

-			return;

-		}

-		if (!(control instanceof Label))

-			return;

-		Composite parent = control.getParent();

-		Rectangle bounds = control.getBounds();

-		GC gc = new GC(parent);

-		Color color =

-			inside ? control.getForeground() : control.getBackground();

-		gc.setForeground(color);

-		int y = bounds.y + bounds.height;

-		gc.drawLine(bounds.x, y, bounds.x + bounds.width, y);

-		gc.dispose();

-	}

-

-	public void setForeground(Color color) {

-		super.setForeground(color);

-		removeDisposedLinks();

-		for (Enumeration links = hyperlinkListeners.keys();

-			links.hasMoreElements();

-			) {

-			Control control = (Control) links.nextElement();

-			control.setForeground(color);

-		}

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkSettings.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkSettings.java
deleted file mode 100644
index 3a1c6a0..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/HyperlinkSettings.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.*;

-

-public class HyperlinkSettings {

-	public static final int UNDERLINE_NEVER = 1;

-	public static final int UNDERLINE_ROLLOVER = 2;

-	public static final int UNDERLINE_ALWAYS = 3;

-

-	protected boolean hyperlinkCursorUsed = true;

-	protected int hyperlinkUnderlineMode = UNDERLINE_ALWAYS;

-	protected Color background;

-	protected Color foreground;

-	protected Color activeBackground;

-	protected Color activeForeground;

-	protected static Cursors cursors = new Cursors();

-

-	static class Cursors {

-		Cursor hyperlinkCursor;

-		Cursor busyCursor;

-		Cursor textCursor;

-		int counter = 0;

-

-		public void allocate() {

-			if (counter == 0) {

-				hyperlinkCursor =

-					new Cursor(Display.getCurrent(), SWT.CURSOR_HAND);

-				busyCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_WAIT);

-				textCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_IBEAM);

-			}

-			counter++;

-		}

-		public void dispose() {

-			counter--;

-			if (counter == 0) {

-				hyperlinkCursor.dispose();

-				busyCursor.dispose();

-				textCursor.dispose();

-				hyperlinkCursor = null;

-				busyCursor = null;

-				textCursor = null;

-			}

-		}

-	}

-

-	public HyperlinkSettings() {

-		cursors.allocate();

-	}

-

-	public void dispose() {

-		if (cursors != null)

-			cursors.dispose();

-	}

-

-	public Color getActiveBackground() {

-		return activeBackground;

-	}

-	public Color getActiveForeground() {

-		return activeForeground;

-	}

-	public Color getBackground() {

-		return background;

-	}

-	public Cursor getBusyCursor() {

-		return cursors.busyCursor;

-	}

-	public Cursor getTextCursor() {

-		return cursors.textCursor;

-	}

-	public Color getForeground() {

-		return foreground;

-	}

-	public Cursor getHyperlinkCursor() {

-		return cursors.hyperlinkCursor;

-	}

-	public int getHyperlinkUnderlineMode() {

-		return hyperlinkUnderlineMode;

-	}

-

-	public boolean isHyperlinkCursorUsed() {

-		return hyperlinkCursorUsed;

-	}

-

-	public void setActiveBackground(Color newActiveBackground) {

-		activeBackground = newActiveBackground;

-	}

-	public void setActiveForeground(Color newActiveForeground) {

-		activeForeground = newActiveForeground;

-	}

-	public void setBackground(Color newBackground) {

-		background = newBackground;

-	}

-	public void setForeground(Color newForeground) {

-		foreground = newForeground;

-	}

-	public void setHyperlinkCursorUsed(boolean newHyperlinkCursorUsed) {

-		hyperlinkCursorUsed = newHyperlinkCursorUsed;

-	}

-	public void setHyperlinkUnderlineMode(int newHyperlinkUnderlineMode) {

-		hyperlinkUnderlineMode = newHyperlinkUnderlineMode;

-	}

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IForm.java
deleted file mode 100644
index 1661485..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IForm.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.graphics.*;

-

-public interface IForm {

-public void commitChanges(boolean onSave);

-public Control createControl(Composite parent);

-public void dispose();

-public boolean doGlobalAction(String actionId);

-public void expandTo(Object object);

-public Control getControl();

-public FormWidgetFactory getFactory();

-public Color getHeadingBackground();

-public Color getHeadingForeground();

-public Image getHeadingImage();

-public String getHeadingText();

-public void initialize(Object model);

-public boolean isHeadingVisible();

-public void registerSection(FormSection section);

-public void setFocus();

-public void setHeadingBackground(Color newHeadingBackground);

-public void setHeadingForeground(Color newHeadingForeground);

-public void setHeadingImage(Image headingImage);

-public void setHeadingVisible(boolean newHeadingVisible);

-public void setHeadingText(String heading);

-public void update();

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormPage.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormPage.java
deleted file mode 100644
index 8839598..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormPage.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.widgets.*;

-

-public interface IFormPage {

-

-boolean becomesInvisible(IFormPage newPage);

-void becomesVisible(IFormPage previousPage);

-void createControl(Composite parent);

-Control getControl();

-String getLabel();

-String getTitle();

-boolean isSource();

-boolean isVisible();

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormSelectionListener.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormSelectionListener.java
deleted file mode 100644
index a334d41..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormSelectionListener.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-public interface IFormSelectionListener {

-	public void formSelected(IFormPage page, boolean setFocus);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormTextListener.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormTextListener.java
deleted file mode 100644
index 237f714..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormTextListener.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-public interface IFormTextListener {

-	public void textValueChanged(FormEntry text);

-	public void textDirty(FormEntry text);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormWorkbook.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormWorkbook.java
deleted file mode 100644
index 9fe78ab..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IFormWorkbook.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.widgets.*;

-

-public interface IFormWorkbook {

-

-	void addFormSelectionListener(IFormSelectionListener listener);

-	public void addPage(IFormPage page);

-	public void createControl(Composite parent);

-	Control getControl();

-	public IFormPage getCurrentPage();

-	boolean isFirstPageSelected();

-	void removeFormSelectionListener(IFormSelectionListener listener);

-	public void removePage(IFormPage page);

-	public void selectPage(final IFormPage page, boolean setFocus);

-	void setFirstPageSelected(boolean selected);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IHyperlinkListener.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IHyperlinkListener.java
deleted file mode 100644
index d69af34..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/IHyperlinkListener.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.widgets.*;

-

-public interface IHyperlinkListener {

-

-public void linkActivated(Control linkLabel);

-public void linkEntered(Control linkLabel);

-public void linkExited(Control linkLabel);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ILayoutExtension.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ILayoutExtension.java
deleted file mode 100644
index c6d947b..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ILayoutExtension.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.ui.forms.internal;
-
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Classes that extend abstract class Layout and implement
- * this interface can take part in layout computation of
- * the HTMLTableLayout manager. The said layout uses
- * alternative algorithm that computes columns before rows.
- * It allows it to 'flow' wrapped text proportionally
- * (as in the popular web browsers). Custom layout managers
- * that implement this interface allow recursive reflow
- * to be performed.
- */
-public interface ILayoutExtension {
-	public int getMinimumWidth(Composite parent, boolean changed);
-	public int getMaximumWidth(Composite parent, boolean changed); 
-}
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/NoTabsWorkbook.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/NoTabsWorkbook.java
deleted file mode 100644
index a8a59a8..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/NoTabsWorkbook.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import java.util.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.*;

-import org.eclipse.ui.part.*;

-import org.eclipse.swt.custom.*;

-

-public class NoTabsWorkbook implements IFormWorkbook {

-	private Vector pages;

-	private boolean firstPageSelected = true;

-	private PageBook pageBook;

-	private Vector listeners = new Vector();

-	private IFormPage currentPage;

-

-	public NoTabsWorkbook() {

-		pages = new Vector();

-	}

-	public void addFormSelectionListener(IFormSelectionListener listener) {

-		listeners.addElement(listener);

-	}

-	public void addPage(IFormPage page) {

-		pages.add(page);

-

-		if (firstPageSelected && currentPage == null)

-			selectPage(page, true);

-	}

-

-	public void createControl(Composite parent) {

-		pageBook = new PageBook(parent, SWT.NULL);

-	}

-

-	private void fireSelectionChanged(IFormPage page, boolean setFocus) {

-		for (Iterator iter = listeners.iterator(); iter.hasNext();) {

-			IFormSelectionListener listener = (IFormSelectionListener) iter.next();

-			listener.formSelected(page, setFocus);

-		}

-	}

-

-	public Control getControl() {

-		return pageBook;

-	}

-

-	public IFormPage getCurrentPage() {

-		return currentPage;

-	}

-

-	public boolean isFirstPageSelected() {

-		return firstPageSelected;

-	}

-	public void removeFormSelectionListener(IFormSelectionListener listener) {

-		listeners.removeElement(listener);

-	}

-

-	public void removePage(IFormPage page) {

-		if (pages.contains(page)) {

-			Control c = page.getControl();

-			if (c!=null && !c.isDisposed())

-				c.dispose();

-			pages.remove(page);

-		}

-	}

-

-	public void selectPage(final IFormPage page, final boolean setFocus) {

-		final IFormPage oldPage = currentPage;

-		currentPage = page;

-

-		if (pageBook != null) {

-

-			// It may take a while

-			BusyIndicator.showWhile(pageBook.getDisplay(), new Runnable() {

-				public void run() {

-					switchPages(oldPage, page, setFocus);

-				}

-			});

-		}

-	}

-

-	public void setFirstPageSelected(boolean newFirstPageSelected) {

-		firstPageSelected = newFirstPageSelected;

-	}

-

-	private void switchPages(IFormPage oldPage, IFormPage newPage, boolean setFocus) {

-		if (oldPage != null && oldPage != newPage) {

-			oldPage.becomesInvisible(newPage);

-		}

-		if (newPage.getControl() == null)

-			newPage.createControl(pageBook);

-		pageBook.showPage(newPage.getControl());

-

-		newPage.becomesVisible(oldPage);

-		fireSelectionChanged(newPage, setFocus);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ScrollableSectionForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ScrollableSectionForm.java
deleted file mode 100644
index 8abd1ff..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ScrollableSectionForm.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.custom.*;

-import org.eclipse.swt.layout.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.*;

-

-/**

- * This version of the section form adds scrolling

- * capability. However, scrolling can be disabled

- * using 'setScrollable' method. For this reason,

- * this class can be used instead of the SectionForm.

- */

-

-public class ScrollableSectionForm extends SectionForm {

-	private Composite container;

-	private boolean verticalFit;

-	private boolean scrollable = true;

-

-	public ScrollableSectionForm() {

-	}

-	public Control createControl(Composite parent) {

-		container = createParent(parent);

-		Control formControl = super.createControl(container);

-		if (container instanceof ScrolledComposite) {

-			ScrolledComposite sc = (ScrolledComposite) container;

-			sc.setContent(formControl);

-		}

-		GridData gd = new GridData(GridData.FILL_BOTH);

-		formControl.setLayoutData(gd);

-		container.setBackground(formControl.getBackground());

-		return container;

-	}

-	protected Composite createParent(Composite parent) {

-		Composite result = null;

-		if (isScrollable()) {

-			ScrolledComposite scomp =

-				new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);

-			if (isVerticalFit()) {

-				scomp.setExpandHorizontal(true);

-				scomp.setExpandVertical(true);

-			}

-			initializeScrollBars(scomp);

-			result = scomp;

-		} else {

-			result = new Composite(parent, SWT.NONE);

-			GridLayout layout = new GridLayout();

-			layout.marginHeight = 0;

-			layout.marginWidth = 0;

-			result.setLayout(layout);

-		}

-		result.setMenu(parent.getMenu());

-		return result;

-	}

-	public boolean isScrollable() {

-		return scrollable;

-	}

-	public boolean isVerticalFit() {

-		return verticalFit;

-	}

-	public void setScrollable(boolean newScrollable) {

-		scrollable = newScrollable;

-	}

-

-	public void setVerticalFit(boolean newVerticalFit) {

-		verticalFit = newVerticalFit;

-	}

-

-	private void initializeScrollBars(ScrolledComposite scomp) {

-		ScrollBar hbar = scomp.getHorizontalBar();

-		if (hbar != null) {

-			hbar.setIncrement(H_SCROLL_INCREMENT);

-		}

-		ScrollBar vbar = scomp.getVerticalBar();

-		if (vbar != null) {

-			vbar.setIncrement(V_SCROLL_INCREMENT);

-		}

-		updatePageIncrement(scomp);

-	}

-

-	public void update() {

-		super.update();

-		if (container instanceof ScrolledComposite) {

-			updateScrolledComposite();

-		} else {

-			container.layout(true);

-		}

-	}

-	public void updateScrollBars() {

-		if (container instanceof ScrolledComposite) {

-			updateScrolledComposite();

-		}

-	}

-	public void updateScrolledComposite() {

-		ScrolledComposite sc = (ScrolledComposite) container;

-		Control formControl = getControl();

-		Point newSize = formControl.computeSize(SWT.DEFAULT, SWT.DEFAULT);

-		formControl.setSize(newSize);

-		sc.setMinSize(newSize);

-		updatePageIncrement(sc);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionChangeManager.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionChangeManager.java
deleted file mode 100644
index 80af6d1..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionChangeManager.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import java.util.*;

-

-public class SectionChangeManager {

-	Hashtable sources = new Hashtable();

-

-public SectionChangeManager() {

-	super();

-}

-public void dispatchNotification(

-	FormSection source,

-	int type,

-	Object changeObject) {

-	Vector targets = (Vector) sources.get(source);

-	if (targets != null) {

-		for (Iterator iter = targets.iterator(); iter.hasNext();) {

-			FormSection section = (FormSection) iter.next();

-			section.sectionChanged(source, type, changeObject);

-		}

-	}

-}

-public void linkSections(FormSection source, FormSection target) {

-	source.setManager(this);

-	Vector targets = null;

-

-	targets = (Vector) sources.get(source);

-	if (targets == null) {

-		targets = new Vector();

-		sources.put(source, targets);

-	}

-	targets.addElement(target);

-}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionForm.java
deleted file mode 100644
index cd8a7eb..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SectionForm.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.jface.resource.*;

-import org.eclipse.jface.util.PropertyChangeEvent;

-

-/**

- * This form implementation assumes that it contains

- * form sections and that they fill up the screen.

- * Typically, the form client will use up the entire

- * parent area below the heading. Sections must

- * be able to return their preferred size in both

- * dimensions. If they contain wrappable text,

- * WebForm should be used instead.

- */

-

-public class SectionForm extends AbstractSectionForm implements PaintListener {

-	private Composite control;

-	private int TITLE_HMARGIN = 10;

-	private int TITLE_VMARGIN = 5;

-

-	class FormLayout extends Layout {

-		protected Point computeSize(

-			Composite composite,

-			int wHint,

-			int hHint,

-			boolean flushCache) {

-			if (wHint != SWT.DEFAULT && hHint != SWT.DEFAULT)

-				return new Point(wHint, hHint);

-			Control client = composite.getChildren()[0];

-			Point csize = client.computeSize(widthHint, heightHint, flushCache);

-			if (headingVisible)

-				csize.y += getTitleHeight();

-			return csize;

-		}

-		protected void layout(Composite composite, boolean flushCache) {

-			Rectangle clientArea = composite.getClientArea();

-			Control client = composite.getChildren()[0];

-			int theight = headingVisible ? getTitleHeight() : 0;

-			client.setBounds(

-				clientArea.x,

-				clientArea.y + theight,

-				clientArea.width,

-				clientArea.height - theight);

-		}

-	}

-	private int widthHint = SWT.DEFAULT;

-	private int heightHint = SWT.DEFAULT;

-

-	public SectionForm() {

-	}

-

-	public Control createControl(Composite parent) {

-		Composite canvas = new Composite(parent, SWT.NONE);

-		canvas.setBackground(factory.getBackgroundColor());

-		canvas.setForeground(factory.getForegroundColor());

-		canvas.addPaintListener(this);

-		canvas.setLayout(new FormLayout());

-		canvas.setMenu(parent.getMenu());

-		Composite formParent = factory.createComposite(canvas);

-		createFormClient(formParent);

-		this.control = canvas;

-		//canvas.setFocus();

-		return canvas;

-	}

-

-	protected void createFormClient(Composite parent) {

-		factory.createComposite(parent);

-	}

-

-	public Control getControl() {

-		return control;

-	}

-

-	private int getTitleHeight() {

-		int imageHeight = 0;

-		if (headingImage != null

-			&& SWT.getPlatform().equals("motif") == false) {

-			imageHeight = headingImage.getBounds().height;

-		}

-		GC gc = new GC(control);

-		gc.setFont(titleFont);

-		FontMetrics fm = gc.getFontMetrics();

-		int fontHeight = fm.getHeight();

-		gc.dispose();

-

-		int height = fontHeight + TITLE_VMARGIN + TITLE_VMARGIN;

-		return Math.max(height, imageHeight);

-	}

-

-	private void paint(Control form, GC gc) {

-		Rectangle bounds = form.getBounds();

-		int height = getTitleHeight();

-		if (headingImage != null) {

-			Rectangle imageBounds = headingImage.getBounds();

-			int x = bounds.width - imageBounds.width;

-			int y = 0;

-			//x = Math.max(x, 0);

-			x = 0;

-			if (headingBackground != null) {

-				gc.setBackground(headingBackground);

-				gc.fillRectangle(0, 0, bounds.width, height);

-			}

-			if (SWT.getPlatform().equals("motif") == false) {

-				gc.drawImage(headingImage, x, y);

-			}

-			if (headingForeground != null)

-				gc.setForeground(headingForeground);

-			else

-				gc.setForeground(factory.getForegroundColor());

-			gc.setFont(titleFont);

-			gc.drawText(getHeadingText(), TITLE_HMARGIN, TITLE_VMARGIN, true);

-		} else {

-			gc.setFont(titleFont);

-			gc.setBackground(factory.getColor(FormWidgetFactory.DEFAULT_HEADER_COLOR));

-			//gc.fillRectangle(TITLE_HMARGIN, TITLE_VMARGIN, bounds.width-TITLE_HMARGIN*2, height-TITLE_VMARGIN*2);

-			gc.setForeground(factory.getForegroundColor());

-			gc.drawText(getHeadingText(), TITLE_HMARGIN, TITLE_VMARGIN, true);

-		}

-	}

-

-	public final void paintControl(PaintEvent event) {

-		if (!headingVisible)

-			return;

-		GC gc = event.gc;

-		Control form = (Control) event.widget;

-		paint(form, gc);

-	}

-

-	public void setHeadingVisible(boolean newHeadingVisible) {

-		super.setHeadingVisible(newHeadingVisible);

-		if (control != null)

-			control.layout(true);

-	}

-	public void setHeadingText(String headingText) {

-		super.setHeadingText(headingText);

-		if (control != null) {

-			control.layout(true);

-			control.redraw();

-		}

-	}

-

-	public void propertyChange(PropertyChangeEvent event) {

-		titleFont = JFaceResources.getHeaderFont();

-		if (control != null) {

-			control.layout(true);

-			control.redraw();

-		}

-	}

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableControl.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableControl.java
deleted file mode 100644
index 8479133..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableControl.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.events.*;

-

-/**

- * FormText is a windowless control that

- * draws text in the provided context.

- */

-public abstract class SelectableControl extends Canvas {

-	private boolean hasFocus;

-

-	public SelectableControl(Composite parent, int style) {

-		super(parent, style);

-		addPaintListener(new PaintListener() {

-			public void paintControl(PaintEvent e) {

-				paint(e);

-			}

-		});

-		addMouseListener(new MouseAdapter () {

-			public void mouseUp(MouseEvent e) {

-				notifyListeners(SWT.Selection);

-			}

-		});

-		addKeyListener(new KeyAdapter() {

-			public void keyPressed(KeyEvent e) {

-				if (e.character == '\r') {

-					// Activation

-					notifyListeners(SWT.Selection);

-				}

-			}

-		});

-		addListener(SWT.Traverse, new Listener () {

-			public void handleEvent(Event e) {

-				if (e.detail != SWT.TRAVERSE_RETURN)

-					e.doit = true;

-			}

-		});

-		addFocusListener(new FocusListener() {

-			public void focusGained(FocusEvent e) {

-				if (!hasFocus) {

-				   hasFocus=true;

-				   redraw();

-				}

-			}

-			public void focusLost(FocusEvent e) {

-				if (hasFocus) {

-					hasFocus=false;

-					redraw();

-				}

-			}

-		});

-	}

-

-	protected void paint(PaintEvent e) {

-		GC gc = e.gc;

-		Point size = getSize();

-	   	gc.setFont(getFont());

-	   	paint(gc);

-		if (hasFocus) {

-	   		gc.setForeground(getForeground());

-	   		gc.drawFocus(0, 0, size.x, size.y);

-		}

-	}

-	

-	protected abstract void paint(GC gc);

-	

-	private void notifyListeners(int eventType) {

-		Event event = new Event();

-		event.type = eventType;

-		event.widget = this;

-		notifyListeners(eventType, event);

-	}

-	

-	public void addSelectionListener(SelectionListener listener) {

-		checkWidget ();

-		if (listener == null) return;

-		TypedListener typedListener = new TypedListener (listener);

-		addListener (SWT.Selection,typedListener);

-	}

-	

-	public void removeSelectionListener(SelectionListener listener) {

-		checkWidget ();

-		if (listener == null) return;

-		removeListener (SWT.Selection, listener);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableFormLabel.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableFormLabel.java
deleted file mode 100644
index ea5d5c4..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/SelectableFormLabel.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.accessibility.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-

-public class SelectableFormLabel extends FormLabel {

-	private boolean hasFocus;

-

-	public boolean getSelection() {

-		return hasFocus;

-	}

-	

-	/**

-	 * Constructor for SelectableFormLabel

-	 */

-	public SelectableFormLabel(Composite parent, int style) {

-		super(parent, style);

-		addKeyListener(new KeyAdapter() {

-			public void keyPressed(KeyEvent e) {

-				if (e.character == '\r') {

-					// Activation

-					notifyListeners(SWT.DefaultSelection);

-				}

-			}

-		});

-		addListener(SWT.Traverse, new Listener () {

-			public void handleEvent(Event e) {

-				switch (e.detail) {

-					case SWT.TRAVERSE_PAGE_NEXT:

-					case SWT.TRAVERSE_PAGE_PREVIOUS:

-					case SWT.TRAVERSE_ARROW_NEXT:

-					case SWT.TRAVERSE_ARROW_PREVIOUS:

-					case SWT.TRAVERSE_RETURN:

-					e.doit = false;

-					return;

-				}

-				e.doit = true;

-			}

-		});

-		addFocusListener(new FocusListener() {

-			public void focusGained(FocusEvent e) {

-				if (!hasFocus) {

-				   hasFocus=true;

-				   notifyListeners(SWT.Selection);

-				   redraw();

-				}

-			}

-			public void focusLost(FocusEvent e) {

-				if (hasFocus) {

-					hasFocus=false;

-					notifyListeners(SWT.Selection);

-					redraw();

-				}

-			}

-		});

-		textMarginWidth = 1;

-		textMarginHeight = 1;

-	}

-	

-	protected void initAccessible() {

-		Accessible accessible = getAccessible();

-		accessible.addAccessibleListener(new AccessibleAdapter() {

-			public void getName(AccessibleEvent e) {

-				e.result = getText();

-			}

-

-			public void getHelp(AccessibleEvent e) {

-				e.result = getToolTipText();

-			}

-		});

-

-		accessible

-			.addAccessibleControlListener(new AccessibleControlAdapter() {

-			public void getChildAtPoint(AccessibleControlEvent e) {

-				Point pt = toControl(new Point(e.x, e.y));

-				e.childID =

-					(getBounds().contains(pt))

-						? ACC.CHILDID_SELF

-						: ACC.CHILDID_NONE;

-			}

-

-			public void getLocation(AccessibleControlEvent e) {

-				Rectangle location = getBounds();

-				Point pt = toDisplay(new Point(location.x, location.y));

-				e.x = pt.x;

-				e.y = pt.y;

-				e.width = location.width;

-				e.height = location.height;

-			}

-

-			public void getChildCount(AccessibleControlEvent e) {

-				e.detail = 0;

-			}

-

-			public void getRole(AccessibleControlEvent e) {

-				e.detail = ACC.ROLE_PUSHBUTTON;

-			}

-

-			public void getState(AccessibleControlEvent e) {

-				e.detail = SelectableFormLabel.this.getSelection()?ACC.STATE_SELECTED:ACC.STATE_NORMAL;

-			}

-		});

-	}

-	

-	private void notifyListeners(int eventType) {

-		Event event = new Event();

-		event.type = eventType;

-		event.widget = this;

-		notifyListeners(eventType, event);

-	}

-

-	protected void paint(PaintEvent e) {

-		super.paint(e);

-	   	if (hasFocus) {

-	   		GC gc = e.gc;

-	   		Point size = getSize();

-	   		gc.setForeground(getForeground());

-	   		gc.drawFocus(0, 0, size.x, size.y);

-		}

-	}

-

-	public void addSelectionListener(SelectionListener listener) {

-		checkWidget ();

-		if (listener == null) return;

-		TypedListener typedListener = new TypedListener (listener);

-		addListener (SWT.Selection,typedListener);

-		addListener (SWT.DefaultSelection,typedListener);

-	}

-	

-	public void removeSelectionListener(SelectionListener listener) {

-		checkWidget ();

-		if (listener == null) return;

-		removeListener (SWT.Selection, listener);

-		removeListener (SWT.DefaultSelection, listener);

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableData.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableData.java
deleted file mode 100644
index 8f968f5..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableData.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.graphics.Point;

-

-public class TableData {

-	public static final int LEFT = 1;

-	public static final int CENTER = 2;

-	public static final int RIGHT = 3;

-	public static final int TOP = 4;

-	public static final int MIDDLE = 5;

-	public static final int BOTTOM = 6;

-	public static final int FILL = 7;

-	public int colspan=1;

-	public int rowspan=1;

-	public int align = LEFT;

-	public int valign = TOP;

-	public int indent = 0;

-	public int maxWidth = SWT.DEFAULT;

-	public int maxHeight = SWT.DEFAULT;

-	public int heightHint = SWT.DEFAULT;

-	public boolean grabHorizontal=false;

-	

-	//private

-	int childIndex;

-	boolean isItemData=true; 

-	int compWidth;

-	Point compSize;

-		

-	public TableData() {

-	}

-	

-	public TableData(int align, int valign) {

-		this(align, valign, 1, 1);

-	}

-	

-	public TableData(int align, int valign, int rowspan, int colspan) {

-		this.align = align;

-		this.valign = valign;

-		this.rowspan = rowspan;

-		this.colspan = colspan;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableLayoutTest.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableLayoutTest.java
deleted file mode 100644
index 7b07e01..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/TableLayoutTest.java
+++ /dev/null
@@ -1,232 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.layout.*;

-import org.eclipse.swt.custom.*;

-import org.eclipse.swt.graphics.*;

-import java.io.InputStream;

-import org.eclipse.update.ui.forms.internal.engine.*;

-import org.eclipse.jface.action.IStatusLineManager;

-import org.eclipse.jface.action.StatusLineManager;

-

-public class TableLayoutTest {

-

-public static void main (String [] args) {

-     Display display = new Display ();

-     Shell shell = new Shell (display);

-     shell.setLayout(new FillLayout());

-     final ScrolledComposite sc = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);

-    // sc.setAlwaysShowScrollBars(true);

-     sc.setBackground(sc.getDisplay().getSystemColor(SWT.COLOR_WHITE));

-     final Composite c = new Composite(sc, SWT.NONE);

-     //c.setBackground(c.getDisplay().getSystemColor(SWT.COLOR_RED));

-     sc.setContent(c);

-     sc.addListener (SWT.Resize,  new Listener () {

-		public void handleEvent (Event e) {

-			Rectangle ssize = sc.getClientArea();

-			int swidth = ssize.width;

-			HTMLTableLayout layout = (HTMLTableLayout)c.getLayout();

-			Point size = layout.computeSize(c, swidth, SWT.DEFAULT, true);

-			//if (size.x < swidth) size.x = swidth;

-			Rectangle trim = c.computeTrim(0, 0, size.x, size.y);

-			size = new Point(trim.width, trim.height);

-			/*

-			Point size = c.computeSize(swidth, SWT.DEFAULT, true);

-			*/

-			//System.out.println("in: "+swidth+", out: "+size.x);

-			c.setSize(size);

-		}

-	});

-     c.setBackground(c.getDisplay().getSystemColor(SWT.COLOR_WHITE));

-     HTMLTableLayout layout = new HTMLTableLayout();

-     layout.numColumns = 2;

-     //layout.horizontalSpacing = 0;

-     layout.leftMargin = 0;

-     layout.rightMargin = 0;

-     layout.makeColumnsEqualWidth=false;

-     //layout.marginWidth = layout.marginHeight = 0;

-     //layout.horizontalSpacing = 0;

-     c.setLayout(layout);

-     

-     Label label;

-     Button b;

-     TableData td;

-/*     

-     label = new Label(c, SWT.NULL);

-     label.setText("Single line1");

-     

-     //label = new Label(c, SWT.WRAP);

-     Text text = new Text(c, SWT.MULTI | SWT.WRAP);

-     text.setEditable(false);

-     text.setText("This is a much longer text that I want wrapped,"+

-     " but depending on the window size it can be rendered completely.");

-     

-     b = new Button(c, SWT.PUSH);

-     b.setText("Simple button");

-     

-     label = new Label(c, SWT.WRAP);

-     label.setText("Another text that may or may not be wrapped");

-

-     label = new Label(c, SWT.NULL);

-     td = new TableData(TableData.RIGHT, TableData.BOTTOM);

-     label.setLayoutData(td);

-     label.setText("Fixed label");

-     

-     Composite nested = new Composite(c, SWT.NULL);

-     layout = new HTMLTableLayout();

-     layout.numColumns = 2;

-     nested.setLayout(layout);

-     b = new Button(nested, SWT.PUSH);

-     b.setText("Button2");

-     label = new Label(nested, SWT.WRAP);

-     td = new TableData(TableData.LEFT, TableData.MIDDLE);

-     label.setLayoutData(td);

-     label.setText("Some text in the nested label that can be wrapped");

-*/     

-     label = new Label(c, SWT.NULL);

-     label.setText("Text in the left column");

-     

-     b = new Button(c, SWT.CHECK);

-     b.setText("Checkbox in the right column");

-

-     

-     label = new Label(c, SWT.WRAP);

-     label.setText("This assignment step is then repeated for nested tables using the minimum and maximum widths derived for all such tables in the first pass. In this case, the width of the parent table cell plays the role of the current window size in the above description. This process is repeated recursively for all nested tables. The topmost table is then rendered using the assigned widths. Nested tables are subsequently rendered as part of the parent table's cell contents.");

-     td = new TableData();

-     td.colspan = 2;

-     td.align = TableData.FILL;

-     label.setLayoutData(td);

-     

-     ExpandableGroup exp = new ExpandableGroup (SWT.WRAP) {

-     	public void fillExpansion(Composite container, FormWidgetFactory factory) {

-     		HTMLTableLayout layout = new HTMLTableLayout();

-     		container.setLayout(layout);

-     		layout.leftMargin = layout.rightMargin = 0;

-     		Button button = factory.createButton(container, null, SWT.PUSH);

-     		button.setText("Button");

-    	}

-     	public void expanded() {

-     		c.layout(true);

-     		updateSize(sc, c);

-     	}

-     	public void collapsed() {

-     		c.layout(true);

-     		updateSize(sc, c);

-     	}

-     };

-     exp.setText("Expandable Section");

-     //exp.setExpandable(false);

-     FormWidgetFactory factory = new FormWidgetFactory();

-     exp.createControl(c, factory);

-     //exp.getControl().setBackground(label.getDisplay().getSystemColor(SWT.COLOR_GREEN));

-     td = new TableData();

-     td.colspan = 2;

-     td.align = TableData.FILL;

-     exp.getControl().setLayoutData(td);

-     

-	 StatusLineManager manager = new StatusLineManager();

-     addFormEngine(c, factory, manager);

-     //addFormEngine(c, factory, manager);

-     //addFormEngine(c, factory, manager);

-     

-     addRow(c);

- 

-     Control mcontrol = manager.createControl(c);

-     td = new TableData();

-     td.colspan = 2;

-     td.align = TableData.FILL;

-     mcontrol.setLayoutData(td);

-     

-     factory.setHyperlinkUnderlineMode(HyperlinkHandler.UNDERLINE_ROLLOVER);

-     

-     SelectableFormLabel ft = new SelectableFormLabel(c, SWT.WRAP);

-     ft.setText("Some text in the form text that should also wrap");

-     factory.turnIntoHyperlink(ft, new IHyperlinkListener() {

-     	public void linkEntered(Control link) {

-     		System.out.println("Link entered");

-     	}

-     	public void linkExited(Control link) {

-    		System.out.println("Link exited");

-     	}

-     	public void linkActivated(Control link) {

-     		System.out.println("Link activated");

-     	}

-     });

-

-     ft = new SelectableFormLabel(c, SWT.WRAP);

-     ft.setText("Some more form text here");

-     factory.turnIntoHyperlink(ft, new IHyperlinkListener() {

-     	public void linkEntered(Control link) {

-     		System.out.println("Link entered");

-     	}

-     	public void linkExited(Control link) {

-    		System.out.println("Link exited");

-     	}

-     	public void linkActivated(Control link) {

-     		System.out.println("Link activated");

-     	}

-     });

-   

-     shell.open ();

-     while (!shell.isDisposed ()) {

-          if (!display.readAndDispatch ()) display.sleep ();

-     }

-     display.dispose ();

-}

-

-public static void addFormEngine(Composite c, FormWidgetFactory factory, IStatusLineManager manager) {

-     new Label(c, SWT.NULL);

-     FormEngine html = new FormEngine(c, SWT.WRAP);

-     html.setHyperlinkSettings(factory.getHyperlinkHandler());

-     HTTPAction action = new HTTPAction();

-     action.setStatusLineManager(manager);

-     html.registerTextObject("urlHandler", action);

-     //html.setBackground(factory.getBackgroundColor());

-     html.setForeground(factory.getForegroundColor());

-     InputStream is = TableLayoutTest.class.getResourceAsStream("index.xml");

-     //html.setParagraphsSeparated(false);

-     html.load(is, true);

-     TableData td = new TableData();

-     td.colspan = 1;

-     td.align = TableData.FILL;

-     html.setLayoutData(td);

-}

-

-public static void addRow(Composite c) {

-	Composite row = new Composite(c, SWT.WRAP);

-	RowLayout layout = new RowLayout();

-	layout.wrap = true;

-	row.setLayout(layout);

-	

-	for (int i=0; i<10; i++) {

-		Button button = new Button(row, SWT.PUSH);

-		button.setText("Button that should be wrapped");

-	}

-	TableData td = new TableData();

-	td.colspan = 2;

-	td.align = TableData.FILL;

-	td.grabHorizontal = true;

-	row.setLayoutData(td);

-}

-

-private static void updateSize(ScrolledComposite sc, Composite c) {

-	Rectangle ssize = sc.getClientArea();

-	int swidth = ssize.width;

-	HTMLTableLayout layout = (HTMLTableLayout)c.getLayout();

-	Point size = layout.computeSize(c, swidth, SWT.DEFAULT, true);

-	Rectangle trim = c.computeTrim(0, 0, size.x, size.y);

-	size = new Point(trim.width, trim.height);

-	c.setSize(size);

-}

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ToggleControl.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ToggleControl.java
deleted file mode 100644
index 33c285a..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/ToggleControl.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.accessibility.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.Composite;

-

-public class ToggleControl extends SelectableControl {

-	private boolean selection;

-	private Color decorationColor;

-	private Color activeColor;

-	private Cursor activeCursor;

-	private boolean hover=false;

-	private static final int marginWidth = 2;

-	private static final int marginHeight = 2;

-	private static final int WIDTH = 9;

-	private static final int HEIGHT = 9;

-	private static final int [] offPoints = { 0,2, 8,2, 4,6 };

-	private static final int [] onPoints = { 2, -1, 2,8, 6,4 };	

-

-	public ToggleControl(Composite parent, int style) {

-		super(parent, style);

-		addSelectionListener(new SelectionAdapter() {

-			public void widgetSelected(SelectionEvent e) {

-				selection = !selection;

-				redraw();

-			}

-		});

-

-		addMouseTrackListener(new MouseTrackAdapter() {

-			public void mouseEnter(MouseEvent e) {

-				hover = true;

-				if (activeCursor!=null)

-				   setCursor(activeCursor);

-				redraw();

-			}

-			public void mouseExit(MouseEvent e) {

-				hover = false;

-				if (activeCursor!=null)

-				   setCursor(null);

-				redraw();

-			}

-		});

-		initAccessible();

-	}

-	void initAccessible() {

-		getAccessible().addAccessibleListener(new AccessibleAdapter() {

-			public void getHelp(AccessibleEvent e) {

-				e.result = getToolTipText();

-			}

-		});

-		

-		getAccessible().addAccessibleControlListener(new AccessibleControlAdapter() {

-			public void getChildAtPoint(AccessibleControlEvent e) {

-				Point testPoint = toControl(new Point(e.x, e.y));

-				if (getBounds().contains(testPoint)) {

-					e.childID = ACC.CHILDID_SELF;

-				}

-			}

-		

-			public void getLocation(AccessibleControlEvent e) {

-				Rectangle location = getBounds();

-				Point pt = toDisplay(new Point(location.x, location.y));

-				e.x = pt.x;

-				e.y = pt.y;

-				e.width = location.width;

-				e.height = location.height;

-			}

-		

-			public void getChildCount(AccessibleControlEvent e) {

-				e.detail = 0;

-			}

-		

-			public void getRole(AccessibleControlEvent e) {

-				e.detail = ACC.ROLE_TREE;

-			}

-		

-			public void getState(AccessibleControlEvent e) {

-				e.detail = ToggleControl.this.getSelection()?ACC.STATE_EXPANDED:ACC.STATE_COLLAPSED;

-			}

-

-			public void getValue(AccessibleControlEvent e) {

-				e.result = ToggleControl.this.getSelection()?"1":"0";

-			}

-		});

-	}

-	

-	public void setDecorationColor(Color decorationColor) {

-		this.decorationColor = decorationColor;

-	}

-	

-	public Color getDecorationColor() {

-		return decorationColor;

-	}

-	

-	public void setActiveDecorationColor(Color activeColor) {

-		this.activeColor = activeColor;

-	}

-	

-	public void setActiveCursor(Cursor activeCursor) {

-		this.activeCursor = activeCursor;

-	}

-	

-	public Color getActiveDecorationColor() {

-		return activeColor;

-	}

-	

-	public Point computeSize(int wHint, int hHint, boolean changed) {

-		int width, height;

-		

-		if (wHint!=SWT.DEFAULT) width = wHint; 

-		else 

-		   width = WIDTH + 2*marginWidth;

-		if (hHint!=SWT.DEFAULT) height = hHint;

-		else height = HEIGHT + 2*marginHeight;

-		return new Point(width, height);

-	}

-

-	/*

-	 * @see SelectableControl#paint(GC)

-	 */

-	protected void paint(GC gc) {

-		if (hover && activeColor!=null)

-			gc.setBackground(activeColor);

-		else if (decorationColor!=null)

-	   	   gc.setBackground(decorationColor);

-	   	else

-	   			gc.setBackground(getForeground());

-		int [] data;

-		Point size = getSize();

-		int x = (size.x - 9)/2;

-		int y = (size.y - 9)/2;

-		if (selection)

-			data = translate(onPoints, x, y);

-		

-		else 

-			data = translate(offPoints, x, y);

-		gc.fillPolygon(data);

-		gc.setBackground(getBackground());

-	}

-	

-	private int [] translate(int [] data, int x, int y) {

-		int [] target = new int [data.length];

-		for (int i=0; i<data.length; i+=2) {

-			target[i] = data[i]+ x;

-		}

-		for (int i=1; i<data.length; i+=2) {

-			target[i] = data[i]+y;

-		}

-		return target;

-	}

-

-	public boolean getSelection() {

-		return selection;

-	}

-	

-	public void setSelection(boolean selection) {

-		this.selection = selection;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/WebForm.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/WebForm.java
deleted file mode 100644
index 21519af..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/WebForm.java
+++ /dev/null
@@ -1,237 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal;

-

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.graphics.Point;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.*;

-import org.eclipse.swt.events.*;

-import org.eclipse.jface.resource.*;

-import org.eclipse.jface.util.PropertyChangeEvent;

-import org.eclipse.swt.custom.*;

-

-/**

- * This form implementation assumes that it contains

- * children that do not have independent dimensions.

- * In other words, these widgets are not capable

- * of answering their preferred size. Instead,

- * desired width must be supplied to get the

- * preferred height. These forms are layed out

- * top to bottom, left to right and use

- * a layout algorithm very similar to

- * HTML tables. Scrolling is not optional

- * for this type of presentation - 

- * scroll bars will show up when needed.

- */

-

-public class WebForm extends AbstractSectionForm {

-	protected ScrolledComposite scrollComposite;

-	private Composite control;

-	private Composite client;

-	private final static int HMARGIN = 5;

-	private final static int VMARGIN = 5;

-	private Image headingUnderlineImage;

-

-	class WebFormLayout extends Layout {

-

-		protected void layout(Composite parent, boolean changed) {

-			Rectangle bounds = parent.getClientArea();

-			int x = 0;

-			int y = 0;

-			if (isHeadingVisible()) {

-				y = getHeadingHeight(parent);

-			}

-			Point csize;

-

-			Layout layout = client.getLayout();

-			if (layout != null && layout instanceof HTMLTableLayout) {

-				HTMLTableLayout hlayout = (HTMLTableLayout) layout;

-				csize = hlayout.computeSize(client, bounds.width, SWT.DEFAULT, true);

-				if (csize.x < bounds.width)

-					csize.x = bounds.width;

-				Rectangle trim = control.computeTrim(0, 0, csize.x, csize.y);

-				csize = new Point(trim.width, trim.height);

-			} else {

-				csize = client.computeSize(bounds.width, SWT.DEFAULT, changed);

-			}

-			client.setBounds(x, y, csize.x, csize.y);

-		}

-

-		protected Point computeSize(

-			Composite parent,

-			int wHint,

-			int hHint,

-			boolean changed) {

-			int width = wHint;

-			int height = 0;

-			if (isHeadingVisible()) {

-				height = getHeadingHeight(parent);

-			}

-			Point csize;

-			Layout layout = client.getLayout();

-

-			if (layout != null && layout instanceof HTMLTableLayout) {

-				HTMLTableLayout hlayout = (HTMLTableLayout) layout;

-				csize = hlayout.computeSize(client, width, SWT.DEFAULT, true);

-				if (csize.x < width)

-					csize.x = width;

-				Rectangle trim = control.computeTrim(0, 0, csize.x, csize.y);

-				csize = new Point(trim.width, trim.height);

-			} else {

-				csize = client.computeSize(width, SWT.DEFAULT, changed);

-			}

-			width = csize.x;

-			height += csize.y;

-			return new Point(width, height);

-		}

-	}

-

-	public WebForm() {

-	}

-

-	public Control createControl(Composite parent) {

-		scrollComposite = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);

-		scrollComposite.setBackground(factory.getBackgroundColor());

-		scrollComposite.setMenu(parent.getMenu());

-		final Composite form = factory.createComposite(scrollComposite);

-

-		scrollComposite.setContent(form);

-		scrollComposite.addListener(SWT.Resize, new Listener() {

-			public void handleEvent(Event e) {

-				updateSize();

-			}

-		});

-		WebFormLayout layout = new WebFormLayout();

-		form.setLayout(layout);

-		form.addPaintListener(new PaintListener() {

-			public void paintControl(PaintEvent e) {

-				paint(e);

-			}

-		});

-		this.control = form;

-		client = factory.createComposite(form);

-		createContents(client);

-		initializeScrollBars(scrollComposite);

-		//form.setFocus();

-		return scrollComposite;

-	}

-	private void initializeScrollBars(ScrolledComposite scomp) {

-		ScrollBar hbar = scomp.getHorizontalBar();

-		if (hbar != null) {

-			hbar.setIncrement(H_SCROLL_INCREMENT);

-		}

-		ScrollBar vbar = scomp.getVerticalBar();

-		if (vbar != null) {

-			vbar.setIncrement(V_SCROLL_INCREMENT);

-		}

-		updatePageIncrement(scomp);

-	}

-

-	private int getHeadingHeight(Composite parent) {

-		int width = parent.getSize().x;

-		int height = 0;

-		int imageHeight = 0;

-		if (getHeadingImage() != null) {

-			Rectangle ibounds = getHeadingImage().getBounds();

-			imageHeight = ibounds.height;

-		}

-		GC gc = new GC(parent);

-		gc.setFont(titleFont);

-		int textWidth = width - 2 * HMARGIN;

-		height = FormLabel.computeWrapHeight(gc, getHeadingText(), textWidth);

-		height += 2 * VMARGIN;

-		height = Math.max(height, imageHeight);

-		if (headingUnderlineImage != null) {

-			Rectangle ibounds = headingUnderlineImage.getBounds();

-			height += ibounds.height;

-		}

-		gc.dispose();

-		return height;

-	}

-

-	protected void createContents(Composite parent) {

-	}

-

-	public Control getControl() {

-		return control;

-	}

-

-	public void setHeadingVisible(boolean newHeadingVisible) {

-		super.setHeadingVisible(newHeadingVisible);

-		if (control != null)

-			control.layout();

-	}

-

-	public Image getHeadingUnderlineImage() {

-		return headingUnderlineImage;

-	}

-

-	public void setHeadingUnderlineImage(Image image) {

-		this.headingUnderlineImage = image;

-	}

-

-	public void propertyChange(PropertyChangeEvent event) {

-		titleFont = JFaceResources.getHeaderFont();

-		if (control != null) {

-			control.layout();

-		}

-	}

-	

-	protected void updateHyperlinkColors() {

-		factory.updateHyperlinkColors();

-		if (control != null && !control.isDisposed()) {

-			control.redraw();

-		}

-	}

-

-	public void updateSize() {

-		Rectangle ssize = scrollComposite.getClientArea();

-		int swidth = ssize.width;

-		WebFormLayout layout = (WebFormLayout) control.getLayout();

-		Point size = layout.computeSize(control, swidth, SWT.DEFAULT, true);

-		if (size.x < swidth)

-			size.x = swidth;

-		Rectangle trim = control.computeTrim(0, 0, size.x, size.y);

-		size = new Point(trim.width, trim.height);

-		control.setSize(size);

-		updatePageIncrement(scrollComposite);

-	}

-

-	private void paint(PaintEvent e) {

-		if (isHeadingVisible() == false)

-			return;

-		GC gc = e.gc;

-		if (headingImage != null) {

-			gc.drawImage(headingImage, 0, 0);

-		}

-		Point size = control.getSize();

-		if (getHeadingBackground() != null)

-			gc.setBackground(getHeadingBackground());

-		if (getHeadingForeground() != null)

-			gc.setForeground(getHeadingForeground());

-		gc.setFont(titleFont);

-		FormLabel.paintWrapText(gc, size, getHeadingText(), HMARGIN, VMARGIN);

-		if (headingUnderlineImage != null) {

-			int y =

-				getHeadingHeight((Composite) control)

-					- headingUnderlineImage.getBounds().height;

-			gc.drawImage(headingUnderlineImage, 0, y);

-		}

-	}

-	public void setHeadingText(String headingText) {

-		super.setHeadingText(headingText);

-		if (control!=null)

-			control.redraw();

-	}

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/BulletParagraph.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/BulletParagraph.java
deleted file mode 100644
index de3f838..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/BulletParagraph.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.ui.forms.internal.engine;
-
-import org.eclipse.swt.graphics.GC;
-import java.util.Hashtable;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Color;
-
-public class BulletParagraph extends Paragraph implements IBulletParagraph {
-	private int style = CIRCLE;
-	private String text;
-	private int CIRCLE_DIAM = 5;
-	private int SPACING = 10;
-	private int indent = -1;
-	/**
-	 * Constructor for BulletParagraph.
-	 * @param addVerticalSpace
-	 */
-	public BulletParagraph(boolean addVerticalSpace) {
-		super(addVerticalSpace);
-	}
-
-	public int getIndent() {
-		if (indent != -1)
-			return indent;
-		switch (style) {
-			case CIRCLE :
-				return CIRCLE_DIAM + SPACING;
-		}
-		return 20;
-	}
-
-	/*
-	 * @see IBulletParagraph#getBulletStyle()
-	 */
-	public int getBulletStyle() {
-		return style;
-	}
-
-	public void setBulletStyle(int style) {
-		this.style = style;
-	}
-
-	public void setBulletText(String text) {
-		this.text = text;
-	}
-
-	public void setIndent(int indent) {
-		this.indent = indent;
-	}
-
-	/*
-	 * @see IBulletParagraph#getBulletText()
-	 */
-	public String getBulletText() {
-		return text;
-	}
-
-	public void paint(
-		GC gc,
-		int width,
-		Locator loc,
-		int lineHeight,
-		Hashtable objectTable,
-		IHyperlinkSegment selectedLink) {
-		paintBullet(gc, loc, lineHeight, objectTable);
-		super.paint(gc, width, loc, lineHeight, objectTable, selectedLink);
-	}
-
-	public void paintBullet(
-		GC gc,
-		Locator loc,
-		int lineHeight,
-		Hashtable objectTable) {
-		int x = loc.x - getIndent();
-		if (style == CIRCLE) {
-			int y = loc.y + lineHeight / 2 - CIRCLE_DIAM / 2;
-			Color bg = gc.getBackground();
-			Color fg = gc.getForeground();
-			gc.setBackground(fg);
-			gc.fillRectangle(x, y + 1, 5, 3);
-			gc.fillRectangle(x + 1, y, 3, 5);
-			gc.setBackground(bg);
-		} else if (style == TEXT && text != null) {
-			gc.drawText(text, x, loc.y);
-		} else if (style == IMAGE && text != null) {
-			Image image = (Image) objectTable.get(text);
-			if (image != null) {
-				int y = loc.y + lineHeight / 2 - image.getBounds().height / 2;
-				gc.drawImage(image, x, y);
-			}
-		}
-	}
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngine.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngine.java
deleted file mode 100644
index 9eaa61f..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngine.java
+++ /dev/null
@@ -1,532 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import java.io.InputStream;

-import java.util.Hashtable;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.jface.action.*;

-import org.eclipse.jface.action.IMenuManager;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.accessibility.*;

-import org.eclipse.swt.accessibility.Accessible;

-import org.eclipse.swt.custom.ScrolledComposite;

-import org.eclipse.swt.dnd.*;

-import org.eclipse.swt.dnd.Clipboard;

-import org.eclipse.swt.events.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.widgets.*;

-import org.eclipse.update.ui.forms.internal.*;

-

-public class FormEngine extends Canvas {

-	public static final String URL_HANDLER_ID = "urlHandler";

-	boolean hasFocus;

-	boolean paragraphsSeparated = true;

-	TextModel model;

-	Hashtable objectTable = new Hashtable();

-	public int marginWidth = 0;

-	public int marginHeight = 1;

-	IHyperlinkSegment entered;

-	boolean mouseDown = false;

-	Point dragOrigin;

-	private Action openAction;

-	private Action copyShortcutAction;

-

-	public boolean getFocus() {

-		return hasFocus;

-	}

-

-	public int getParagraphSpacing(int lineHeight) {

-		return lineHeight / 2;

-	}

-

-	public void setParagraphsSeparated(boolean value) {

-		paragraphsSeparated = value;

-	}

-

-	/**

-	 * Constructor for SelectableFormLabel

-	 */

-	public FormEngine(Composite parent, int style) {

-		super(parent, style);

-		setLayout(new FormEngineLayout());

-		model = new TextModel();

-

-		addDisposeListener(new DisposeListener() {

-			public void widgetDisposed(DisposeEvent e) {

-				model.dispose();

-			}

-		});

-		addPaintListener(new PaintListener() {

-			public void paintControl(PaintEvent e) {

-				paint(e);

-			}

-		});

-		addListener(SWT.KeyDown, new Listener() {

-			public void handleEvent(Event e) {

-				if (e.character == '\r') {

-					activateSelectedLink();

-					return;

-				}

-			}

-		});

-		addListener(SWT.Traverse, new Listener() {

-			public void handleEvent(Event e) {

-				switch (e.detail) {

-					case SWT.TRAVERSE_PAGE_NEXT :

-					case SWT.TRAVERSE_PAGE_PREVIOUS :

-					case SWT.TRAVERSE_ARROW_NEXT :

-					case SWT.TRAVERSE_ARROW_PREVIOUS :

-						e.doit = false;

-						return;

-				}

-				if (!model.hasFocusSegments()) {

-					e.doit = true;

-					return;

-				}

-				if (e.detail == SWT.TRAVERSE_TAB_NEXT)

-					e.doit = advance(true);

-				else if (e.detail == SWT.TRAVERSE_TAB_PREVIOUS)

-					e.doit = advance(false);

-				else if (e.detail != SWT.TRAVERSE_RETURN)

-					e.doit = true;

-			}

-		});

-		addFocusListener(new FocusListener() {

-			public void focusGained(FocusEvent e) {

-				if (!hasFocus) {

-					hasFocus = true;

-					handleFocusChange();

-				}

-			}

-			public void focusLost(FocusEvent e) {

-				if (hasFocus) {

-					hasFocus = false;

-					handleFocusChange();

-				}

-			}

-		});

-		addMouseListener(new MouseListener() {

-			public void mouseDoubleClick(MouseEvent e) {

-			}

-			public void mouseDown(MouseEvent e) {

-				// select a link

-				handleMouseClick(e, true);

-			}

-			public void mouseUp(MouseEvent e) {

-				// activate a link

-				handleMouseClick(e, false);

-			}

-		});

-		addMouseTrackListener(new MouseTrackListener() {

-			public void mouseEnter(MouseEvent e) {

-				handleMouseMove(e);

-			}

-			public void mouseExit(MouseEvent e) {

-				if (entered != null) {

-					exitLink(entered);

-					paintLinkHover(entered, false);

-					entered = null;

-					setCursor(null);

-				}

-			}

-			public void mouseHover(MouseEvent e) {

-				handleMouseHover(e);

-			}

-		});

-		addMouseMoveListener(new MouseMoveListener() {

-			public void mouseMove(MouseEvent e) {

-				handleMouseMove(e);

-			}

-		});

-		initAccessible();

-		makeActions();

-	}

-

-	private void makeActions() {

-		openAction = new Action() {

-			public void run() {

-				activateSelectedLink();

-			}

-		};

-		openAction.setText(

-			FormsPlugin.getResourceString("FormEgine.linkPopup.open"));

-		copyShortcutAction = new Action() {

-			public void run() {

-				copyShortcut(getSelectedLink());

-			}

-		};

-		copyShortcutAction.setText(

-			FormsPlugin.getResourceString("FormEgine.linkPopup.copyShortcut"));

-	}

-

-	private String getAcessibleText() {

-		return model.getAccessibleText();

-	}

-

-	private void initAccessible() {

-		Accessible accessible = getAccessible();

-		accessible.addAccessibleListener(new AccessibleAdapter() {

-			public void getName(AccessibleEvent e) {

-				e.result = getAcessibleText();

-			}

-

-			public void getHelp(AccessibleEvent e) {

-				e.result = getToolTipText();

-			}

-		});

-

-		accessible

-			.addAccessibleControlListener(new AccessibleControlAdapter() {

-			public void getChildAtPoint(AccessibleControlEvent e) {

-				Point pt = toControl(new Point(e.x, e.y));

-				e.childID =

-					(getBounds().contains(pt))

-						? ACC.CHILDID_SELF

-						: ACC.CHILDID_NONE;

-			}

-

-			public void getLocation(AccessibleControlEvent e) {

-				Rectangle location = getBounds();

-				Point pt = toDisplay(new Point(location.x, location.y));

-				e.x = pt.x;

-				e.y = pt.y;

-				e.width = location.width;

-				e.height = location.height;

-			}

-

-			public void getChildCount(AccessibleControlEvent e) {

-				e.detail = 0;

-			}

-

-			public void getRole(AccessibleControlEvent e) {

-				e.detail = ACC.ROLE_TEXT;

-			}

-

-			public void getState(AccessibleControlEvent e) {

-				e.detail = ACC.STATE_READONLY;

-			}

-		});

-	}

-

-	private void handleMouseClick(MouseEvent e, boolean down) {

-		if (down) {

-			// select a hyperlink

-			IHyperlinkSegment segmentUnder = model.findHyperlinkAt(e.x, e.y);

-			if (segmentUnder != null) {

-				IHyperlinkSegment oldLink = model.getSelectedLink();

-				model.selectLink(segmentUnder);

-				enterLink(segmentUnder);

-				paintFocusTransfer(oldLink, segmentUnder);

-			}

-			mouseDown = true;

-			dragOrigin = new Point(e.x, e.y);

-		} else {

-			if (e.button == 1) {

-				IHyperlinkSegment segmentUnder =

-					model.findHyperlinkAt(e.x, e.y);

-				if (segmentUnder != null) {

-					activateLink(segmentUnder);

-				}

-			}

-			mouseDown = false;

-		}

-	}

-	private void handleMouseHover(MouseEvent e) {

-	}

-	private void handleMouseMove(MouseEvent e) {

-		if (mouseDown) {

-			handleDrag(e);

-			return;

-		}

-		ITextSegment segmentUnder = model.findSegmentAt(e.x, e.y);

-

-		if (segmentUnder == null) {

-			if (entered != null) {

-				exitLink(entered);

-				paintLinkHover(entered, false);

-				entered = null;

-			}

-			setCursor(null);

-		} else {

-			if (segmentUnder instanceof IHyperlinkSegment) {

-				IHyperlinkSegment linkUnder = (IHyperlinkSegment) segmentUnder;

-				if (entered == null) {

-					entered = linkUnder;

-					enterLink(linkUnder);

-					paintLinkHover(entered, true);

-					setCursor(

-						model.getHyperlinkSettings().getHyperlinkCursor());

-				}

-			} else {

-				if (entered != null) {

-					exitLink(entered);

-					paintLinkHover(entered, false);

-					entered = null;

-				}

-				setCursor(model.getHyperlinkSettings().getTextCursor());

-			}

-		}

-	}

-

-	private void handleDrag(MouseEvent e) {

-	}

-

-	public HyperlinkSettings getHyperlinkSettings() {

-		return model.getHyperlinkSettings();

-	}

-

-	public void setHyperlinkSettings(HyperlinkSettings settings) {

-		model.setHyperlinkSettings(settings);

-	}

-

-	private boolean advance(boolean next) {

-		IHyperlinkSegment current = model.getSelectedLink();

-		if (current != null)

-			exitLink(current);

-

-		boolean valid = model.traverseLinks(next);

-		

-		IHyperlinkSegment newLink = model.getSelectedLink();

-

-		if (valid)

-			enterLink(newLink);

-		paintFocusTransfer(current, newLink);

-		if (newLink!=null) ensureVisible(newLink);

-		return !valid;

-	}

-

-	public IHyperlinkSegment getSelectedLink() {

-		return model.getSelectedLink();

-	}

-

-	private void handleFocusChange() {

-		if (hasFocus) {

-			model.traverseLinks(true);

-			enterLink(model.getSelectedLink());

-			paintFocusTransfer(null, model.getSelectedLink());

-		} else {

-			paintFocusTransfer(model.getSelectedLink(), null);

-			model.selectLink(null);

-		}

-	}

-

-	private void enterLink(IHyperlinkSegment link) {

-		if (link == null)

-			return;

-		HyperlinkAction action = link.getAction(objectTable);

-		if (action != null)

-			action.linkEntered(link);

-	}

-

-	private void exitLink(IHyperlinkSegment link) {

-		if (link == null)

-			return;

-		HyperlinkAction action = link.getAction(objectTable);

-		if (action != null)

-			action.linkExited(link);

-	}

-

-	private void paintLinkHover(IHyperlinkSegment link, boolean hover) {

-		GC gc = new GC(this);

-

-		HyperlinkSettings settings = getHyperlinkSettings();

-

-		gc.setForeground(

-			hover ? settings.getActiveForeground() : settings.getForeground());

-		gc.setBackground(getBackground());

-		gc.setFont(getFont());

-		boolean selected = (link == getSelectedLink());

-		link.repaint(gc, hover);

-		if (selected) {

-			link.paintFocus(gc, getBackground(), getForeground(), false);

-			link.paintFocus(gc, getBackground(), getForeground(), true);

-		}

-		gc.dispose();

-	}

-

-	private void activateSelectedLink() {

-		IHyperlinkSegment link = model.getSelectedLink();

-		if (link != null)

-			activateLink(link);

-	}

-

-	private void activateLink(IHyperlinkSegment link) {

-		setCursor(model.getHyperlinkSettings().getBusyCursor());

-		HyperlinkAction action = link.getAction(objectTable);

-		if (action != null)

-			action.linkActivated(link);

-		setCursor(model.getHyperlinkSettings().getHyperlinkCursor());

-	}

-

-	protected void paint(PaintEvent e) {

-		int width = getClientArea().width;

-		IParagraph[] paragraphs = model.getParagraphs();

-

-		GC gc = e.gc;

-		gc.setFont(getFont());

-		gc.setForeground(getForeground());

-		gc.setBackground(getBackground());

-

-		Locator loc = new Locator();

-		loc.marginWidth = marginWidth;

-		loc.marginHeight = marginHeight;

-		loc.x = marginWidth;

-		loc.y = marginHeight;

-

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-

-		IHyperlinkSegment selectedLink = model.getSelectedLink();

-

-		for (int i = 0; i < paragraphs.length; i++) {

-			IParagraph p = paragraphs[i];

-

-			if (i > 0 && paragraphsSeparated && p.getAddVerticalSpace())

-				loc.y += getParagraphSpacing(lineHeight);

-

-			loc.indent = p.getIndent();

-			loc.resetCaret();

-			loc.rowHeight = 0;

-			p.paint(gc, width, loc, lineHeight, objectTable, selectedLink);

-		}

-	}

-

-	public void registerTextObject(String key, Object value) {

-		objectTable.put(key, value);

-	}

-

-	public void load(String text, boolean parseTags, boolean expandURLs) {

-		try {

-			if (parseTags)

-				model.parseTaggedText(text, expandURLs);

-			else

-				model.parseRegularText(text, expandURLs);

-		} catch (CoreException e) {

-			FormsPlugin.logException(e);

-		}

-	}

-	public void load(InputStream is, boolean expandURLs) {

-		try {

-			model.parseInputStream(is, expandURLs);

-		} catch (CoreException e) {

-			FormsPlugin.logException(e);

-		}

-	}

-

-	public boolean setFocus() {

-		/*

-		if (!model.hasFocusSegments())

-			return false;

-		*/

-		return super.setFocus();

-	}

-

-	private void paintFocusTransfer(

-		IHyperlinkSegment oldLink,

-		IHyperlinkSegment newLink) {

-		GC gc = new GC(this);

-		Color bg = getBackground();

-		Color fg = getForeground();

-

-		gc.setFont(getFont());

-

-		if (oldLink != null) {

-			gc.setBackground(bg);

-			gc.setForeground(fg);

-			oldLink.paintFocus(gc, bg, fg, false);

-		}

-		if (newLink != null) {

-			//ensureVisible(newLink);

-			gc.setBackground(bg);

-			gc.setForeground(fg);

-			newLink.paintFocus(gc, bg, fg, true);

-		}

-		gc.dispose();

-	}

-	/**

-	 * Gets the marginWidth.

-	 * @return Returns a int

-	 */

-	public int getMarginWidth() {

-		return marginWidth;

-	}

-

-	/**

-	 * Sets the marginWidth.

-	 * @param marginWidth The marginWidth to set

-	 */

-	public void setMarginWidth(int marginWidth) {

-		this.marginWidth = marginWidth;

-	}

-

-	/**

-	 * Gets the marginHeight.

-	 * @return Returns a int

-	 */

-	public int getMarginHeight() {

-		return marginHeight;

-	}

-

-	/**

-	 * Sets the marginHeight.

-	 * @param marginHeight The marginHeight to set

-	 */

-	public void setMarginHeight(int marginHeight) {

-		this.marginHeight = marginHeight;

-	}

-

-	public void contextMenuAboutToShow(IMenuManager manager) {

-		IHyperlinkSegment link = getSelectedLink();

-		if (link != null)

-			contributeLinkActions(manager, link);

-	}

-

-	private void contributeLinkActions(

-		IMenuManager manager,

-		IHyperlinkSegment link) {

-		manager.add(openAction);

-		manager.add(copyShortcutAction);

-		manager.add(new Separator());

-	}

-

-	private void copyShortcut(IHyperlinkSegment link) {

-		String text = link.getText();

-		Clipboard clipboard = new Clipboard(getDisplay());

-		clipboard.setContents(

-			new Object[] { text },

-			new Transfer[] { TextTransfer.getInstance()});

-	}

-

-	private void ensureVisible(IHyperlinkSegment segment) {

-		Rectangle bounds = segment.getBounds();

-		ScrolledComposite scomp = getScrolledComposite();

-		if (scomp == null)

-			return;

-		Point origin = AbstractSectionForm.getControlLocation(scomp, this);

-		origin.x += bounds.x;

-		origin.y += bounds.y;

-		AbstractSectionForm.ensureVisible(

-			scomp,

-			origin,

-			new Point(bounds.width, bounds.height));

-	}

-	ScrolledComposite getScrolledComposite() {

-		Composite parent = getParent();

-		while (parent != null) {

-			if (parent instanceof ScrolledComposite)

-				return (ScrolledComposite) parent;

-			parent = parent.getParent();

-		}

-		return null;

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngineLayout.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngineLayout.java
deleted file mode 100644
index add3ba7..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/FormEngineLayout.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.swt.graphics.Point;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.widgets.Layout;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.graphics.*;

-

-/**

- * @version 	1.0

- * @author

- */

-public class FormEngineLayout extends Layout {

-

-	/*

-	 * @see Layout#computeSize(Composite, int, int, boolean)

-	 */

-

-	public Point computeSize(

-		Composite composite,

-		int wHint,

-		int hHint,

-		boolean changed) {

-		FormEngine engine = (FormEngine) composite;

-		int innerWidth = wHint;

-		if (innerWidth != SWT.DEFAULT)

-			innerWidth -= engine.marginWidth * 2;

-		Point textSize = computeTextSize(engine, innerWidth);

-		int textWidth = textSize.x + 2 * engine.marginWidth;

-		int textHeight = textSize.y + 2 * engine.marginHeight;

-		Point result = new Point(textWidth, textHeight);

-		return result;

-	}

-

-	private Point computeTextSize(FormEngine engine, int wHint) {

-		IParagraph[] paragraphs = engine.model.getParagraphs();

-

-		GC gc = new GC(engine);

-		gc.setFont(engine.getFont());

-

-		Locator loc = new Locator();

-

-		int width = wHint != SWT.DEFAULT ? wHint : 0;

-

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-

-		for (int i = 0; i < paragraphs.length; i++) {

-			IParagraph p = paragraphs[i];

-

-			if (i > 0 && engine.paragraphsSeparated && p.getAddVerticalSpace())

-				loc.y += engine.getParagraphSpacing(lineHeight);

-

-			loc.rowHeight = 0;

-			loc.indent = p.getIndent();

-			loc.x = p.getIndent();

-

-			IParagraphSegment[] segments = p.getSegments();

-			if (segments.length > 0) {

-				for (int j = 0; j < segments.length; j++) {

-					IParagraphSegment segment = segments[j];

-					segment.advanceLocator(gc, wHint, loc, engine.objectTable);

-					width = Math.max(width, loc.width);

-				}

-				loc.y += loc.rowHeight;

-			} else {

-				// empty new line

-				loc.y += lineHeight;

-			}

-		}

-		gc.dispose();

-		return new Point(width, loc.y);

-	}

-

-	/*

-	 * @see Layout#layout(Composite, boolean)

-	 */

-	protected void layout(Composite composite, boolean flushCache) {

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HTTPAction.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HTTPAction.java
deleted file mode 100644
index cd3d0b5..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HTTPAction.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-import org.eclipse.swt.program.Program;

-

-/**

- * @version 	1.0

- * @author

- */

-public class HTTPAction extends HyperlinkAction {

-	public HTTPAction () {

-	}

-	

-	public void linkActivated(IHyperlinkSegment link) {

-		Program.launch(link.getText());

-	}

-	

-	public void linkEntered(IHyperlinkSegment link) {

-		setDescription(link.getText());

-		super.linkEntered(link);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkAction.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkAction.java
deleted file mode 100644
index 3b11a68..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkAction.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.jface.action.IStatusLineManager;

-

-/**

- * @version 	1.0

- * @author

- */

-public class HyperlinkAction {

-	IStatusLineManager manager;

-	private String description;

-	

-	public HyperlinkAction() {

-	}

-	

-	public void linkActivated(final IHyperlinkSegment link) {

-	}

-	

-	public void linkEntered(IHyperlinkSegment link) {

-		if (manager!=null && description!=null) {

-			manager.setMessage(description);

-		}

-	}

-

-	public void linkExited(IHyperlinkSegment link) {

-		if (manager!=null && description!=null) {

-			manager.setMessage(null);

-		}

-	}

-	

-	public void setStatusLineManager(IStatusLineManager manager) {

-		this.manager = manager;

-	}

-	

-	public String getDescription() {

-		return description;

-	}

-	public void setDescription(String description) {

-		this.description = description;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkSegment.java
deleted file mode 100644
index 443aeef..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/HyperlinkSegment.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import java.util.Hashtable;

-import org.eclipse.update.ui.forms.internal.*;

-import org.eclipse.swt.graphics.*;

-import org.eclipse.swt.graphics.GC;

-

-/**

- * @version 	1.0

- * @author

- */

-public class HyperlinkSegment

-	extends TextSegment

-	implements IHyperlinkSegment {

-	private String actionId;

-	private HyperlinkSettings settings;

-	

-	public HyperlinkSegment(String text, HyperlinkSettings settings, String fontId) {

-		super(text, fontId);

-		this.settings = settings;

-		underline = true;

-	}

-	

-	/*

-	 * @see IHyperlinkSegment#getListener(Hashtable)

-	 */

-	public HyperlinkAction getAction(Hashtable objectTable) {

-		if (actionId==null) return null;

-		Object obj = objectTable.get(actionId);

-		if (obj==null) return null;

-		if (obj instanceof HyperlinkAction) return (HyperlinkAction)obj;

-		return null;

-	}

-	

-	/*

-	 * @see IObjectReference#getObjectId()

-	 */

-	public String getObjectId() {

-		return actionId;

-	}

-	

-	void setActionId(String id) {

-		this.actionId = id;

-	}

-	public void paint(GC gc, int width, Locator locator, Hashtable objectTable, boolean selected) {

-		setColor(settings.getForeground());

-		super.paint(gc, width, locator, objectTable, selected);

-	}

-	

-	public void repaint(GC gc, boolean hover) {

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-		int descent = fm.getDescent();

-		for (int i=0; i<areaRectangles.size(); i++) {

-			AreaRectangle areaRectangle = (AreaRectangle)areaRectangles.get(i);

-			Rectangle rect = areaRectangle.rect;

-			String text = areaRectangle.getText();

-			Point extent = gc.textExtent(text);

-			int textX = rect.x + 1;

-			gc.drawString(text, textX, rect.y, true);

-			if (underline || hover) {

-				int lineY = rect.y + lineHeight - descent + 1;

-				gc.drawLine(textX, lineY, textX+extent.x, lineY);

-			}

-		}

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IBulletParagraph.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IBulletParagraph.java
deleted file mode 100644
index 55f3383..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IBulletParagraph.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.update.ui.forms.internal.engine;
-
-import org.eclipse.swt.graphics.GC;
-import java.util.Hashtable;
-
-public interface IBulletParagraph extends IParagraph {
-	int CIRCLE = 0;
-	int TEXT = 1;
-	int IMAGE = 2;
-	public int getBulletStyle();
-	public String getBulletText();
-
-	public void paintBullet(GC gc, Locator loc, int lineHeight, Hashtable objectTable);
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IHyperlinkSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IHyperlinkSegment.java
deleted file mode 100644
index 6520b45..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IHyperlinkSegment.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import java.util.Hashtable;

-

-import org.eclipse.swt.graphics.GC;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface IHyperlinkSegment extends ITextSegment, IObjectReference {

-	HyperlinkAction getAction(Hashtable objectTable);

-	

-	boolean contains(int x, int y);

-	

-	public void repaint(GC gc, boolean hover);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IImageSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IImageSegment.java
deleted file mode 100644
index 1e9bd56..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IImageSegment.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-import org.eclipse.swt.graphics.Image;

-import java.util.Hashtable;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface IImageSegment extends IParagraphSegment, IObjectReference {

-	public static final int TOP = 1;

-	public static final int MIDDLE = 2;

-	public static final int BOTTOM = 3;

-	

-	public int getVerticalAlignment();

-

-	Image getImage(Hashtable objectTable);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IObjectReference.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IObjectReference.java
deleted file mode 100644
index f12a7eb..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IObjectReference.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface IObjectReference {

-	public String getObjectId();

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraph.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraph.java
deleted file mode 100644
index fb336eb..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraph.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-

-import org.eclipse.swt.graphics.GC;

-import java.util.Hashtable;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface IParagraph {

-	public int getIndent();

-	public IParagraphSegment [] getSegments();

-	public void addSegment(IParagraphSegment segment);

-	public boolean getAddVerticalSpace();

-	public ITextSegment findSegmentAt(int x, int y);

-	public void paint(GC gc, int width, Locator loc, int lineHeight, Hashtable objectTable, IHyperlinkSegment selectedLink);

-	public String getAccessibleText();

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraphSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraphSegment.java
deleted file mode 100644
index 9217105..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/IParagraphSegment.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.swt.graphics.GC;

-import java.util.Hashtable;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface IParagraphSegment {

-	

-	public void advanceLocator(GC gc, int wHint, Locator loc, Hashtable objectTable);

-	

-	public void paint(GC gc, int width, Locator loc, Hashtable objectTable, boolean selected);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextModel.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextModel.java
deleted file mode 100644
index 4071ad2..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextModel.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.core.runtime.CoreException;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface ITextModel {

-	IParagraph [] getParagraphs();

-	public void parseTaggedText(String taggedText, boolean expandURLs) throws CoreException;

-	public void parseRegularText(String regularText, boolean expandURLs) throws CoreException;

-	public void dispose();

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextSegment.java
deleted file mode 100644
index 47e5fb0..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ITextSegment.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.swt.graphics.*;

-

-/**

- * @version 	1.0

- * @author

- */

-public interface ITextSegment extends IParagraphSegment {

-	String getText();

-	Color getColor();

-	Font getFont();

-	boolean isWordWrapAllowed();

-	boolean isSelectable();

-	boolean contains(int x, int y);

-	Rectangle getBounds();

-	void paintFocus(GC gc, Color bg, Color fg, boolean selected);

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ImageSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ImageSegment.java
deleted file mode 100644
index 4c84cb9..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ImageSegment.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.swt.graphics.*;

-import java.util.Hashtable;

-import org.eclipse.swt.SWT;

-

-/**

- * @version 	1.0

- * @author

- */

-public class ImageSegment extends ParagraphSegment implements IImageSegment {

-	private int alignment = BOTTOM;

-	private String imageId;

-	

-	public int getVerticalAlignment() {

-		return alignment;

-	}

-	

-	void setVerticalAlignment(int alignment) {

-		this.alignment = alignment;

-	}

-	

-	public Image getImage(Hashtable objectTable) {

-		if (imageId==null) return null;

-		Object obj = objectTable.get(imageId);

-		if (obj==null) return null;

-		if (obj instanceof Image) return (Image)obj;

-		return null;

-	}

-	

-	public String getObjectId() {

-		return imageId;

-	}

-	

-	void setObjectId(String imageId) {

-		this.imageId = imageId;

-	}

-	

-	public void advanceLocator(GC gc, int wHint, Locator loc, Hashtable objectTable) {

-		Image image = getImage(objectTable);

-		int iwidth = 0;

-		int iheight = 0;

-		if (image!=null) {

-			Rectangle rect = image.getBounds();

-			iwidth = rect.width;

-			iheight = rect.height;

-		}

-		if (wHint != SWT.DEFAULT && loc.x + iwidth > wHint) {

-			// new line

-			loc.x = loc.indent + iwidth;

-			loc.width = loc.x;

-			loc.y += loc.rowHeight;

-			loc.rowHeight = iheight;

-		}

-		else {

-			loc.x += iwidth;

-			loc.rowHeight = Math.max(loc.rowHeight, iheight);

-		}

-	}

-

-	public void paint(GC gc, int width, Locator loc, Hashtable objectTable, boolean selected) {

-		Image image = getImage(objectTable);

-		int iwidth = 0;

-		int iheight = 0;

-		if (image!=null) {

-			Rectangle rect = image.getBounds();

-			iwidth = rect.width;

-			iheight = rect.height;

-		}

-		else return;

-		loc.width = iwidth;

-		loc.height = iheight;

-		

-		int ix = loc.x;

-		int iy = loc.y;

-		

-		if (ix + iwidth > width) {

-			// new row

-			ix = loc.indent + loc.marginWidth;

-			iy += loc.rowHeight;

-			loc.rowHeight = 0;

-		}

-		

-		gc.drawImage(image, ix, iy);

-		loc.x = ix + iwidth;

-		loc.y = iy;

-		loc.rowHeight = Math.max(loc.rowHeight, iheight);

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Locator.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Locator.java
deleted file mode 100644
index 350154b..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Locator.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-/**

- * @version 	1.0

- * @author

- */

-public class Locator { 

-	public int indent;

-	public int x, y;

-	public int width, height;

-	public int rowHeight;

-	public int marginWidth;

-	public int marginHeight;

-	

-	public void newLine() {

-		resetCaret();

-		y += rowHeight;

-		rowHeight = 0;

-	}

-	

-	public void resetCaret() {

-		x = marginWidth + indent;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Paragraph.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Paragraph.java
deleted file mode 100644
index a9a4352..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/Paragraph.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import java.io.*;

-import java.util.*;

-

-import org.eclipse.swt.graphics.GC;

-import org.eclipse.update.ui.forms.internal.HyperlinkSettings;

-

-/**

- * @version 	1.0

- * @author

- */

-public class Paragraph implements IParagraph {

-	public static final String HTTP = "http://";

-	private Vector segments;

-	private boolean addVerticalSpace = true;

-

-	public Paragraph(boolean addVerticalSpace) {

-		this.addVerticalSpace = addVerticalSpace;

-	}

-

-	public int getIndent() {

-		return 0;

-	}

-

-	public boolean getAddVerticalSpace() {

-		return addVerticalSpace;

-	}

-

-	/*

-	 * @see IParagraph#getSegments()

-	 */

-	public IParagraphSegment[] getSegments() {

-		if (segments == null)

-			return new IParagraphSegment[0];

-		return (IParagraphSegment[]) segments.toArray(

-			new IParagraphSegment[segments.size()]);

-	}

-

-	public void addSegment(IParagraphSegment segment) {

-		if (segments == null)

-			segments = new Vector();

-		segments.add(segment);

-	}

-

-	public void parseRegularText(

-		String text,

-		boolean expandURLs,

-		HyperlinkSettings settings,

-		String fontId) {

-		if (text.length() == 0)

-			return;

-		if (expandURLs) {

-			int loc = text.indexOf(HTTP);

-

-			if (loc == -1)

-				addSegment(new TextSegment(text, fontId));

-			else {

-				int textLoc = 0;

-				while (loc != -1) {

-					addSegment(new TextSegment(text.substring(textLoc, loc), fontId));

-					boolean added = false;

-					for (textLoc = loc; textLoc < text.length(); textLoc++) {

-						char c = text.charAt(textLoc);

-						if (Character.isSpaceChar(c)) {

-							addHyperlinkSegment(text.substring(loc, textLoc), settings, fontId);

-							added = true;

-							break;

-						}

-					}

-					if (!added) {

-						// there was no space - just end of text

-						addHyperlinkSegment(text.substring(loc), settings, fontId);

-						break;

-					}

-					loc = text.indexOf(HTTP, textLoc);

-				}

-				if (textLoc < text.length()) {

-					addSegment(new TextSegment(text.substring(textLoc), fontId));

-				}

-			}

-		} else {

-			addSegment(new TextSegment(text, fontId));

-		}

-	}

-

-	private void addHyperlinkSegment(

-		String text,

-		HyperlinkSettings settings,

-		String fontId) {

-		HyperlinkSegment hs = new HyperlinkSegment(text, settings, fontId);

-		hs.setWordWrapAllowed(false);

-		hs.setActionId(FormEngine.URL_HANDLER_ID);

-		addSegment(hs);

-	}

-

-	public void paint(

-		GC gc,

-		int width,

-		Locator loc,

-		int lineHeight,

-		Hashtable objectTable,

-		IHyperlinkSegment selectedLink) {

-		IParagraphSegment [] segments = getSegments();

-		if (segments.length > 0) {

-			if (segments[0] instanceof ITextSegment

-				&& ((ITextSegment) segments[0]).isSelectable())

-				loc.x += 1;

-			for (int j = 0; j < segments.length; j++) {

-				IParagraphSegment segment = segments[j];

-				boolean doSelect = false;

-				if (selectedLink != null && segment.equals(selectedLink))

-					doSelect = true;

-				segment.paint(gc, width, loc, objectTable, doSelect);

-			}

-			loc.y += loc.rowHeight;

-		} else {

-			loc.y += lineHeight;

-		}

-	}

-	public String getAccessibleText() {

-		IParagraphSegment [] segments = getSegments();

-		StringWriter swriter = new StringWriter();

-		PrintWriter writer = new PrintWriter(swriter);

-		for (int i = 0; i < segments.length; i++) {

-			IParagraphSegment segment = segments[i];

-			if (segment instanceof ITextSegment) {

-				String text = ((ITextSegment)segment).getText();

-				writer.print(text);

-			}

-		}

-		writer.println();

-		swriter.flush();

-		return swriter.toString();

-	}

-	public ITextSegment findSegmentAt(int x, int y) {

-		if (segments!=null) {

-			for (int i=0; i<segments.size(); i++) {

-				IParagraphSegment segment = (IParagraphSegment)segments.get(i);

-				if (segment instanceof ITextSegment) {

-					ITextSegment textSegment = (ITextSegment)segment;

-					if (textSegment.contains(x, y))

-						return textSegment;

-				}

-			}

-		}

-		return null;

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ParagraphSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ParagraphSegment.java
deleted file mode 100644
index 7d16aac..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/ParagraphSegment.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-/**

- * @version 	1.0

- * @author

- */

-public abstract class ParagraphSegment implements IParagraphSegment {

-

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextModel.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextModel.java
deleted file mode 100644
index b6d37b5..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextModel.java
+++ /dev/null
@@ -1,440 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import java.util.Vector;

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.update.ui.forms.internal.*;

-import org.apache.xerces.parsers.DOMParser;

-import org.xml.sax.*;

-import java.io.*;

-import org.w3c.dom.*;

-import org.eclipse.jface.resource.JFaceResources;

-

-/**

- * @version 	1.0

- * @author

- */

-public class TextModel implements ITextModel {

-	Vector paragraphs;

-	IHyperlinkListener urlListener;

-	IHyperlinkSegment[] hyperlinks;

-	int selectedLinkIndex = -1;

-	HyperlinkSettings hyperlinkSettings;

-

-	class LocalHyperlinkSettings extends HyperlinkSettings {

-	}

-

-	/*

-	 * @see ITextModel#getParagraphs()

-	 */

-	public IParagraph[] getParagraphs() {

-		if (paragraphs == null)

-			return new IParagraph[0];

-		return (IParagraph[]) paragraphs.toArray(

-			new IParagraph[paragraphs.size()]);

-	}

-	

-	public String getAccessibleText() {

-		if (paragraphs == null)

-			return "";

-		StringBuffer sbuf = new StringBuffer();

-		for (int i=0; i<paragraphs.size(); i++) {

-			IParagraph paragraph  = (IParagraph)paragraphs.get(i);

-			String text = paragraph.getAccessibleText();

-			sbuf.append(text);

-		}

-		return sbuf.toString();

-	}

-

-	/*

-	 * @see ITextModel#parse(String)

-	 */

-	public void parseTaggedText(String taggedText, boolean expandURLs)

-		throws CoreException {

-		if (taggedText==null) {

-			reset();

-			return;

-		}

-		try {

-			InputStream stream =

-				new ByteArrayInputStream(taggedText.getBytes("UTF8"));

-			parseInputStream(stream, expandURLs);

-		} catch (UnsupportedEncodingException e) {

-		}

-	}

-

-	public void parseInputStream(InputStream is, boolean expandURLs)

-		throws CoreException {

-		DOMParser parser = new DOMParser();

-		reset();

-		try {

-			InputSource source = new InputSource(is);

-			parser.parse(source);

-			processDocument(parser.getDocument(), expandURLs);

-		} catch (SAXException e) {

-			FormsPlugin.logException(e);

-		} catch (IOException e) {

-			FormsPlugin.logException(e);

-		}

-	}

-

-	private void processDocument(Document doc, boolean expandURLs) {

-		Node root = doc.getDocumentElement();

-		NodeList children = root.getChildNodes();

-		for (int i = 0; i < children.getLength(); i++) {

-			Node child = children.item(i);

-			if (child.getNodeType() == Node.TEXT_NODE) {

-				// Make an implicit paragraph

-				String text = child.getNodeValue();

-				if (text != null && !isIgnorableWhiteSpace(text, true)) {

-					Paragraph p = new Paragraph(true);

-					p.parseRegularText(

-						text,

-						expandURLs,

-						getHyperlinkSettings(),

-						null);

-					paragraphs.add(p);

-				}

-			} else if (child.getNodeType() == Node.ELEMENT_NODE) {

-				String tag = child.getNodeName().toLowerCase();

-				if (tag.equals("p")) {

-					IParagraph p = processParagraph(child, expandURLs);

-					if (p != null)

-						paragraphs.add(p);

-				} else if (tag.equals("li")) {

-					IParagraph p = processListItem(child, expandURLs);

-					if (p != null)

-						paragraphs.add(p);

-				}

-			}

-		}

-	}

-	private IParagraph processParagraph(Node paragraph, boolean expandURLs) {

-		NodeList children = paragraph.getChildNodes();

-		NamedNodeMap atts = paragraph.getAttributes();

-		Node addSpaceAtt = atts.getNamedItem("addVerticalSpace");

-		boolean addSpace = true;

-

-		if (addSpaceAtt != null) {

-			String value = addSpaceAtt.getNodeValue();

-			addSpace = value.equalsIgnoreCase("true");

-		}

-		Paragraph p = new Paragraph(addSpace);

-

-		processSegments(p, children, expandURLs);

-		return p;

-	}

-	private IParagraph processListItem(Node listItem, boolean expandURLs) {

-		NodeList children = listItem.getChildNodes();

-		NamedNodeMap atts = listItem.getAttributes();

-		Node addSpaceAtt = atts.getNamedItem("addVerticalSpace");

-		Node styleAtt = atts.getNamedItem("style");

-		Node valueAtt = atts.getNamedItem("value");

-		Node indentAtt = atts.getNamedItem("indent");

-		int style = IBulletParagraph.CIRCLE;

-		int indent = -1;

-		String text = null;

-		boolean addSpace = true;

-

-		if (addSpaceAtt != null) {

-			String value = addSpaceAtt.getNodeValue();

-			addSpace = value.equalsIgnoreCase("true");

-		}

-		if (styleAtt != null) {

-			String value = styleAtt.getNodeValue();

-			if (value.equalsIgnoreCase("text")) {

-				style = IBulletParagraph.TEXT;

-			} else if (value.equalsIgnoreCase("image")) {

-				style = IBulletParagraph.IMAGE;

-			}

-		}

-		if (valueAtt != null) {

-			text = valueAtt.getNodeValue();

-		}

-		if (indentAtt != null) {

-			String value = valueAtt.getNodeValue();

-			try {

-				indent = Integer.parseInt(value);

-			} catch (NumberFormatException e) {

-			}

-		}

-

-		BulletParagraph p = new BulletParagraph(addSpace);

-		p.setIndent(indent);

-		p.setBulletStyle(style);

-		p.setBulletText(text);

-

-		processSegments(p, children, expandURLs);

-		return p;

-	}

-

-	private void processSegments(

-		Paragraph p,

-		NodeList children,

-		boolean expandURLs) {

-		for (int i = 0; i < children.getLength(); i++) {

-			Node child = children.item(i);

-			IParagraphSegment segment = null;

-

-			if (child.getNodeType() == Node.TEXT_NODE) {

-				String value = child.getNodeValue();

-

-				if (value != null && !isIgnorableWhiteSpace(value, false)) {

-					p.parseRegularText(

-						value,

-						expandURLs,

-						getHyperlinkSettings(),

-						null);

-				}

-			} else if (child.getNodeType() == Node.ELEMENT_NODE) {

-				String name = child.getNodeName();

-				if (name.equalsIgnoreCase("img")) {

-					segment = processImageSegment(child);

-				} else if (name.equalsIgnoreCase("a")) {

-					segment =

-						processHyperlinkSegment(child, getHyperlinkSettings());

-				} else if (name.equalsIgnoreCase("text")) {

-					processTextSegment(p, expandURLs, child);

-				} else if (name.equalsIgnoreCase("b")) {

-					String text = getNodeText(child).trim();

-					String fontId = JFaceResources.BANNER_FONT;

-					p.parseRegularText(

-						text,

-						expandURLs,

-						getHyperlinkSettings(),

-						fontId);

-				}

-			}

-			if (segment != null) {

-				p.addSegment(segment);

-			}

-		}

-	}

-

-	private boolean isIgnorableWhiteSpace(String text, boolean ignoreSpaces) {

-		for (int i = 0; i < text.length(); i++) {

-			char c = text.charAt(i);

-			if (ignoreSpaces && c == ' ')

-				continue;

-			if (c == '\n' || c == '\r' || c == '\f')

-				continue;

-			return false;

-		}

-		return true;

-	}

-

-	private IParagraphSegment processImageSegment(Node image) {

-		ImageSegment segment = new ImageSegment();

-		NamedNodeMap atts = image.getAttributes();

-		Node id = atts.getNamedItem("href");

-		Node align = atts.getNamedItem("align");

-		if (id != null) {

-			String value = id.getNodeValue();

-			segment.setObjectId(value);

-		}

-		if (align != null) {

-			String value = align.getNodeValue().toLowerCase();

-			if (value.equals("top"))

-				segment.setVerticalAlignment(ImageSegment.TOP);

-			else if (value.equals("middle"))

-				segment.setVerticalAlignment(ImageSegment.MIDDLE);

-			else if (value.equals("bottom"))

-				segment.setVerticalAlignment(ImageSegment.BOTTOM);

-		}

-		return segment;

-	}

-

-	private String getNodeText(Node node) {

-		NodeList children = node.getChildNodes();

-		String text = "";

-		for (int i = 0; i < children.getLength(); i++) {

-			Node child = children.item(i);

-			if (child.getNodeType() == Node.TEXT_NODE) {

-				text += child.getNodeValue();

-			}

-		}

-		return text;

-	}

-

-	private IParagraphSegment processHyperlinkSegment(

-		Node link,

-		HyperlinkSettings settings) {

-		String text = getNodeText(link);

-		HyperlinkSegment segment = new HyperlinkSegment(text, settings, null);

-		NamedNodeMap atts = link.getAttributes();

-		Node href = atts.getNamedItem("href");

-		if (href != null) {

-			String value = href.getNodeValue();

-			segment.setActionId(value);

-		}

-		return segment;

-	}

-

-	private void processTextSegment(

-		Paragraph p,

-		boolean expandURLs,

-		Node textNode) {

-		String text = getNodeText(textNode).trim();

-

-		NamedNodeMap atts = textNode.getAttributes();

-		Node font = atts.getNamedItem("font");

-		String fontId = null;

-		if (font != null) {

-			fontId = font.getNodeValue();

-		}

-		p.parseRegularText(text, expandURLs, getHyperlinkSettings(), fontId);

-	}

-

-	public void parseRegularText(String regularText, boolean convertURLs)

-		throws CoreException {

-		reset();

-		

-		if (regularText==null) return;

-

-		Paragraph p = new Paragraph(true);

-		paragraphs.add(p);

-		int pstart = 0;

-

-		for (int i = 0; i < regularText.length(); i++) {

-			char c = regularText.charAt(i);

-			if (p == null) {

-				p = new Paragraph(true);

-				paragraphs.add(p);

-			}

-			if (c == '\n') {

-				String text = regularText.substring(pstart, i);

-				pstart = i + 1;

-				p.parseRegularText(

-					text,

-					convertURLs,

-					getHyperlinkSettings(),

-					null);

-				p = null;

-			}

-		}

-		if (p != null) {

-			// no new line

-			String text = regularText.substring(pstart);

-			p.parseRegularText(text, convertURLs, getHyperlinkSettings(), null);

-		}

-	}

-

-	public HyperlinkSettings getHyperlinkSettings() {

-		if (hyperlinkSettings == null) {

-			hyperlinkSettings = new LocalHyperlinkSettings();

-		}

-		return hyperlinkSettings;

-	}

-

-	public void setHyperlinkSettings(HyperlinkSettings settings) {

-		this.hyperlinkSettings = settings;

-	}

-

-	public void setURLListener(IHyperlinkListener urlListener) {

-		this.urlListener = urlListener;

-	}

-

-	private void reset() {

-		if (paragraphs == null)

-			paragraphs = new Vector();

-		paragraphs.clear();

-		selectedLinkIndex = -1;

-		hyperlinks = null;

-	}

-

-	IHyperlinkSegment[] getHyperlinks() {

-		if (hyperlinks != null || paragraphs == null)

-			return hyperlinks;

-		Vector result = new Vector();

-		for (int i = 0; i < paragraphs.size(); i++) {

-			IParagraph p = (IParagraph) paragraphs.get(i);

-			IParagraphSegment[] segments = p.getSegments();

-			for (int j = 0; j < segments.length; j++) {

-				if (segments[j] instanceof IHyperlinkSegment)

-					result.add(segments[j]);

-			}

-		}

-		hyperlinks =

-			(IHyperlinkSegment[]) result.toArray(

-				new IHyperlinkSegment[result.size()]);

-		return hyperlinks;

-	}

-

-	public IHyperlinkSegment findHyperlinkAt(int x, int y) {

-		IHyperlinkSegment[] links = getHyperlinks();

-		for (int i = 0; i < links.length; i++) {

-			if (links[i].contains(x, y))

-				return links[i];

-		}

-		return null;

-	}

-	public ITextSegment findSegmentAt(int x, int y) {

-		for (int i = 0; i < paragraphs.size(); i++) {

-			IParagraph p = (IParagraph) paragraphs.get(i);

-			ITextSegment segment = p.findSegmentAt(x, y);

-			if (segment != null)

-				return segment;

-		}

-		return null;

-	}

-

-	public IHyperlinkSegment getSelectedLink() {

-		if (selectedLinkIndex == -1)

-			return null;

-		return hyperlinks[selectedLinkIndex];

-	}

-

-	public boolean traverseLinks(boolean next) {

-		IHyperlinkSegment[] links = getHyperlinks();

-		if (links == null)

-			return false;

-		int size = links.length;

-		if (next) {

-			selectedLinkIndex++;

-		} else

-			selectedLinkIndex--;

-

-		if (selectedLinkIndex < 0 || selectedLinkIndex > size - 1) {

-			selectedLinkIndex = -1;

-		}

-		return selectedLinkIndex != -1;

-	}

-

-	public void selectLink(IHyperlinkSegment link) {

-		if (link == null)

-			selectedLinkIndex = -1;

-		else {

-			IHyperlinkSegment[] links = getHyperlinks();

-			selectedLinkIndex = -1;

-			if (links == null)

-				return;

-			for (int i = 0; i < links.length; i++) {

-				if (links[i].equals(link)) {

-					selectedLinkIndex = i;

-					break;

-				}

-			}

-		}

-	}

-

-	public boolean hasFocusSegments() {

-		IHyperlinkSegment[] links = getHyperlinks();

-		if (links.length > 0)

-			return true;

-		return false;

-	}

-

-	public void dispose() {

-		if (hyperlinkSettings instanceof LocalHyperlinkSettings)

-			hyperlinkSettings.dispose();

-	}

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextSegment.java b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextSegment.java
deleted file mode 100644
index 49ec5d1..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/engine/TextSegment.java
+++ /dev/null
@@ -1,368 +0,0 @@
-/*******************************************************************************

- * Copyright (c) 2000, 2003 IBM Corporation and others.

- * All rights reserved. This program and the accompanying materials 

- * are made available under the terms of the Common Public License v1.0

- * which accompanies this distribution, and is available at

- * http://www.eclipse.org/legal/cpl-v10.html

- * 

- * Contributors:

- *     IBM Corporation - initial API and implementation

- *******************************************************************************/

-package org.eclipse.update.ui.forms.internal.engine;

-

-import org.eclipse.swt.graphics.*;

-import org.eclipse.jface.resource.JFaceResources;

-import java.util.Hashtable;

-import org.eclipse.swt.SWT;

-import java.text.BreakIterator;

-import java.util.Vector;

-

-/**

- * @version 	1.0

- * @author

- */

-public class TextSegment extends ParagraphSegment implements ITextSegment {

-	private Color color;

-	private String fontId;

-	private String text;

-	protected boolean underline;

-	private boolean wrapAllowed = true;

-	protected Vector areaRectangles = new Vector();

-	

-	class AreaRectangle {

-		Rectangle rect;

-		int from, to;

-		public AreaRectangle(Rectangle rect, int from, int to) {

-			this.rect = rect;

-			this.from = from;

-			this.to = to;

-		}

-		public boolean contains(int x, int y) {

-			return rect.contains(x, y);

-		}

-		public String getText() {

-			if (from==0 && to== -1)

-				return TextSegment.this.getText();

-			if (from >0 && to == -1)

-				return TextSegment.this.getText().substring(from);

-			return TextSegment.this.getText().substring(from, to);

-		}

-	}

-	

-	public TextSegment(String text, String fontId) {

-		this.text = cleanup(text);

-		this.fontId = fontId;

-	}

-

-	private String cleanup(String text) {

-		StringBuffer buf = new StringBuffer();

-		for (int i = 0; i < text.length(); i++) {

-			char c = text.charAt(i);

-			if (c == '\n' || c == '\r' || c=='\f') {

-				if (i > 0)

-					buf.append(' ');

-			} else

-				buf.append(c);

-		}

-		return buf.toString();

-	}

-

-	public void setWordWrapAllowed(boolean value) {

-		wrapAllowed = value;

-	}

-

-	public boolean isWordWrapAllowed() {

-		return wrapAllowed;

-	}

-	

-	public boolean isSelectable() {

-		return false;

-	}

-

-	public Color getColor() {

-		return color;

-	}

-

-	public Font getFont() {

-		if (fontId == null)

-			return JFaceResources.getDefaultFont();

-		else

-			return JFaceResources.getFontRegistry().get(fontId);

-	}

-

-	public String getText() {

-		return text;

-	}

-

-	void setText(String text) {

-		this.text = cleanup(text);

-	}

-

-	void setColor(Color color) {

-		this.color = color;

-	}

-

-	void setFontId(String fontId) {

-		this.fontId = fontId;

-	}

-

-	public boolean contains(int x, int y) {

-		for (int i = 0; i < areaRectangles.size(); i++) {

-			AreaRectangle ar = (AreaRectangle) areaRectangles.get(i);

-			if (ar.contains(x, y))

-				return true;

-		}

-		return false;

-	}

-	

-	public Rectangle getBounds() {

-		int x=0, y=0;

-		int width = 0, height = 0;

-		

-		for (int i=0; i<areaRectangles.size(); i++) {

-			AreaRectangle ar = (AreaRectangle)areaRectangles.get(i);

-			if (i==0) y = ar.rect.y;

-			x = Math.min(ar.rect.x, x);

-			width = Math.max(ar.rect.width, width);

-			height += ar.rect.height;

-		}

-		return new Rectangle(x, y, width, height);

-	}

-

-	public void advanceLocator(

-		GC gc,

-		int wHint,

-		Locator locator,

-		Hashtable objectTable) {

-		Font oldFont = null;

-		if (fontId != null) {

-			oldFont = gc.getFont();

-			gc.setFont(getFont());

-		}

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-

-		if (wHint == SWT.DEFAULT || !wrapAllowed) {

-			Point extent = gc.textExtent(text);

-

-			if (locator.x + extent.x > wHint) {

-				// new line

-				locator.x = isSelectable()?locator.indent+1:locator.indent;

-				locator.y += locator.rowHeight;

-				locator.rowHeight = 0;

-			}

-			int width = extent.x;

-			if (isSelectable()) width+=2;

-			locator.x += width;

-			locator.width = width;

-			locator.height = extent.y;

-			locator.rowHeight = Math.max(locator.rowHeight, extent.y);

-			return;

-		}

-

-		BreakIterator wb = BreakIterator.getLineInstance();

-		wb.setText(text);

-

-		int saved = 0;

-		int last = 0;

-

-		int width = 0;

-

-		Point lastExtent = null;

-

-		for (int loc = wb.first(); loc != BreakIterator.DONE; loc = wb.next()) {

-			String word = text.substring(saved, loc);

-			Point extent = gc.textExtent(word);

-

-			if (locator.x + extent.x > wHint) {

-				// overflow

-				String savedWord = text.substring(saved, last);

-				if (lastExtent==null)

-				   lastExtent = gc.textExtent(savedWord);

-				int lineWidth = locator.x + lastExtent.x;

-				if (isSelectable()) lineWidth+=2;

-

-				saved = last;

-				locator.rowHeight = Math.max(locator.rowHeight, lastExtent.y);

-				locator.x = isSelectable()?locator.indent+1:locator.indent;

-				locator.y += locator.rowHeight;

-				locator.rowHeight = 0;

-				width = Math.max(width, lineWidth);

-			}

-			last = loc;

-			lastExtent = extent;

-		}

-		String lastString = text.substring(saved, last);

-		Point extent = gc.textExtent(lastString);

-		int lineWidth = extent.x;

-		if (isSelectable()) lineWidth += 2;

-		locator.x += lineWidth;

-		locator.width = width;

-		locator.height = lineHeight;

-		locator.rowHeight = Math.max(locator.rowHeight, extent.y);

-		if (oldFont != null) {

-			gc.setFont(oldFont);

-		}

-	}

-	

-	public void paint(

-		GC gc,

-		int width,

-		Locator locator,

-		Hashtable objectTable,

-		boolean selected) {

-		Font oldFont = null;

-		Color oldColor = null;

-

-		areaRectangles.clear();

-

-		if (fontId != null) {

-			oldFont = gc.getFont();

-			gc.setFont(getFont());

-		}

-		if (color != null) {

-			oldColor = gc.getForeground();

-			gc.setForeground(color);

-		}

-		FontMetrics fm = gc.getFontMetrics();

-		int lineHeight = fm.getHeight();

-		int descent = fm.getDescent();

-

-		if (!wrapAllowed) {

-			Point extent = gc.textExtent(text);

-			int ewidth = extent.x;

-			if (isSelectable()) ewidth += 2;

-

-			if (locator.x + ewidth > width) {

-				// new line

-				locator.resetCaret();

-				if (isSelectable()) locator.x += 1;

-				locator.y += locator.rowHeight;

-				locator.rowHeight = 0;

-			}

-			gc.drawString(text, locator.x, locator.y);

-			if (underline) {

-				int lineY = locator.y + lineHeight - descent + 1;

-				gc.drawLine(locator.x, lineY, locator.x + extent.x, lineY);

-			}

-			Rectangle br =

-				new Rectangle(locator.x - 1, locator.y, extent.x + 2, lineHeight - descent + 3);

-			areaRectangles.add(new AreaRectangle(br, 0, -1));

-			if (selected) {

-				if (color != null)

-					gc.setForeground(oldColor);

-				gc.drawFocus(br.x, br.y, br.width, br.height);

-			}

-

-			locator.x += ewidth;

-			locator.width = ewidth;

-			locator.height = lineHeight;

-			locator.rowHeight = Math.max(locator.rowHeight, extent.y);

-			if (oldFont != null) {

-				gc.setFont(oldFont);

-			}

-			if (oldColor != null) {

-				gc.setForeground(oldColor);

-			}

-			return;

-		}

-

-		BreakIterator wb = BreakIterator.getLineInstance();

-		wb.setText(text);

-

-		int saved = 0;

-		int last = 0;

-

-		for (int loc = wb.first(); loc != BreakIterator.DONE; loc = wb.next()) {

-			if (loc == 0)

-				continue;

-			String word = text.substring(saved, loc);

-			Point extent = gc.textExtent(word);

-			int ewidth = extent.x;

-			if (isSelectable()) ewidth += 2;

-

-			if (locator.x + ewidth > width) {

-				// overflow

-				String prevLine = text.substring(saved, last);

-				gc.drawString(prevLine, locator.x, locator.y, true);

-				Point prevExtent = gc.textExtent(prevLine);

-				int prevWidth = prevExtent.x;

-				if (isSelectable()) prevWidth += 2;

-

-				if (underline) {

-					int lineY = locator.y + lineHeight - descent + 1;

-					gc.drawLine(locator.x, lineY, locator.x + prevWidth, lineY);

-				}

-				Rectangle br =

-					new Rectangle(

-						locator.x - 1,

-						locator.y,

-						prevExtent.x + 2,

-						lineHeight - descent + 3);

-				if (selected) {

-					if (color != null)

-						gc.setForeground(oldColor);

-					gc.drawFocus(br.x, br.y, br.width, br.height);

-					if (color != null)

-						gc.setForeground(color);

-				}

-				areaRectangles.add(new AreaRectangle(br, saved, last));

-				

-				locator.rowHeight = Math.max(locator.rowHeight, prevExtent.y);

-				locator.resetCaret();

-				if (isSelectable()) locator.x +=1;

-				locator.y += locator.rowHeight;

-				locator.rowHeight = 0;

-				saved = last;

-			}

-			last = loc;

-		}

-		// paint the last line

-		String lastLine = text.substring(saved, last);

-		gc.drawString(lastLine, locator.x, locator.y, true);

-		Point lastExtent = gc.textExtent(lastLine);

-		int lastWidth = lastExtent.x;

-		if (isSelectable()) lastWidth += 2;

-		Rectangle br =

-			new Rectangle(

-				locator.x - 1,

-				locator.y,

-				lastExtent.x + 2,

-				lineHeight - descent + 3);

-		areaRectangles.add(new AreaRectangle(br, saved, last));

-		if (underline) {

-			int lineY = locator.y + lineHeight - descent + 1;

-			gc.drawLine(locator.x, lineY, locator.x + lastExtent.x, lineY);

-		}

-		if (selected) {

-			if (color != null)

-				gc.setForeground(oldColor);

-			gc.drawFocus(br.x, br.y, br.width, br.height);

-		}

-		locator.x += lastWidth;

-		locator.rowHeight = Math.max(locator.rowHeight, lastExtent.y);

-		if (oldFont != null) {

-			gc.setFont(oldFont);

-		}

-		if (oldColor != null) {

-			gc.setForeground(oldColor);

-		}

-	}

-	

-	public void paintFocus(GC gc, Color bg, Color fg, boolean selected) {

-		if (areaRectangles==null) return;

-		for (int i=0; i<areaRectangles.size(); i++) {

-			AreaRectangle areaRectangle = (AreaRectangle)areaRectangles.get(i);

-			Rectangle br = areaRectangle.rect;

-			if (selected) {

-				gc.setBackground(bg);

-				gc.setForeground(fg);

-				gc.drawFocus(br.x, br.y, br.width, br.height);

-			}

-			else {

-				gc.setForeground(bg);

-				gc.drawRectangle(br.x, br.y, br.width-1, br.height-1);

-			}

-		}

-	}	

-}

diff --git a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/index.xml b/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/index.xml
deleted file mode 100644
index ea4421b..0000000
--- a/update/org.eclipse.update.ui.forms/src/org/eclipse/update/ui/forms/internal/index.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<form>

-<p>

-To check for updates for features you have installed, 

-go to the <a href="action1">My Eclipse</a> and select 

-<b>Available Updates</b> folder. <b>Search page</b> will 

-be shown allowing you to initiate and customize the search.

-</p>

-<li style="text" value="1.">To check for updates for features you have installed, 

-go to the <a href="action1">My Eclipse</a> and select 

-<b>Available Updates</b> folder. <b>Search page</b> will 

-be shown allowing you to initiate and customize the search.</li>

-<li style="text" value="2.">This is the item number 2.</li>

-<li style="text" value="3.">This is the item number 3.</li>

-</form>
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.win32/.classpath b/update/org.eclipse.update.ui.win32/.classpath
deleted file mode 100644
index b7f3dc9..0000000
--- a/update/org.eclipse.update.ui.win32/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="src/"/>
-    <classpathentry kind="src" path="/org.eclipse.core.resources"/>
-    <classpathentry kind="src" path="/org.eclipse.ui"/>
-    <classpathentry kind="src" path="/org.eclipse.update.ui"/>
-    <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
-    <classpathentry kind="src" path="/org.eclipse.core.boot"/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update.ui.win32/.cvsignore b/update/org.eclipse.update.ui.win32/.cvsignore
deleted file mode 100644
index ba077a4..0000000
--- a/update/org.eclipse.update.ui.win32/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/update/org.eclipse.update.ui.win32/.project b/update/org.eclipse.update.ui.win32/.project
deleted file mode 100644
index 706350c..0000000
--- a/update/org.eclipse.update.ui.win32/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<projectDescription>

-	<name>org.eclipse.update.ui.win32</name>

-	<comment></comment>

-	<projects>

-		<project>org.eclipse.core.boot</project>

-		<project>org.eclipse.core.resources</project>

-		<project>org.eclipse.core.runtime</project>

-		<project>org.eclipse.ui</project>

-		<project>org.eclipse.update.ui</project>

-	</projects>

-	<buildSpec>

-		<buildCommand>

-			<name>org.eclipse.jdt.core.javabuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.ManifestBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-		<buildCommand>

-			<name>org.eclipse.pde.SchemaBuilder</name>

-			<arguments>

-			</arguments>

-		</buildCommand>

-	</buildSpec>

-	<natures>

-		<nature>org.eclipse.jdt.core.javanature</nature>

-		<nature>org.eclipse.pde.PluginNature</nature>

-	</natures>

-</projectDescription>

diff --git a/update/org.eclipse.update.ui.win32/about.html b/update/org.eclipse.update.ui.win32/about.html
deleted file mode 100644
index 9db411a..0000000
--- a/update/org.eclipse.update.ui.win32/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
- 
-<p>20th June, 2002</p>	
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Common Public License Version 1.0 (&quot;CPL&quot;).  A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
-For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
-other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License.  In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.win32/build.properties b/update/org.eclipse.update.ui.win32/build.properties
deleted file mode 100644
index 63d04d0..0000000
--- a/update/org.eclipse.update.ui.win32/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials 
-# are made available under the terms of the Common Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/cpl-v10.html
-# 
-# Contributors:
-#     IBM Corporation - initial API and implementation
-###############################################################################
-bin.includes = fragment.properties,\
-               icons/,\
-               *.jar,\
-               fragment.xml,\
-               about.html
-source.updateui32.jar = src/
-src.includes=about.html
diff --git a/update/org.eclipse.update.ui.win32/fragment.xml b/update/org.eclipse.update.ui.win32/fragment.xml
deleted file mode 100644
index 1cfb8b2..0000000
--- a/update/org.eclipse.update.ui.win32/fragment.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<fragment
-   id="org.eclipse.update.ui.win32"
-   name="%fragmentNameWin"
-   version="2.1.0"
-   provider-name="%providerName"
-   plugin-id="org.eclipse.update.ui"
-   plugin-version="2.1.0"
-   match="compatible">
-
-   <runtime>
-      <library name="updateui32.jar">
-         <export name="*"/>
-         <packages prefixes="org.eclipse.update.internal.ui.win32"/>
-      </library>
-   </runtime>
-
-   <requires>
-      <import plugin="org.eclipse.core.resources"/>
-      <import plugin="org.eclipse.ui"/>
-   </requires>
-
-
-   <extension
-         point="org.eclipse.ui.views">
-      <view
-            name="%views.webBrowser.label"
-            icon="icons/full/cview16/browser.gif"
-            category="org.eclipse.update.ui"
-            class="org.eclipse.update.internal.ui.win32.views.WebBrowserView"
-            id="org.eclipse.update.ui.WebBrowser">
-      </view>
-   </extension>
-</fragment>
diff --git a/update/org.eclipse.update.ui.win32/icons/full/cview16/browser.gif b/update/org.eclipse.update.ui.win32/icons/full/cview16/browser.gif
deleted file mode 100644
index fd70277..0000000
--- a/update/org.eclipse.update.ui.win32/icons/full/cview16/browser.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.ui.win32/icons/full/eview16/browser.gif b/update/org.eclipse.update.ui.win32/icons/full/eview16/browser.gif
deleted file mode 100644
index 33935b1..0000000
--- a/update/org.eclipse.update.ui.win32/icons/full/eview16/browser.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/BrowserControlSite.java b/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/BrowserControlSite.java
deleted file mode 100644
index 23733a5..0000000
--- a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/BrowserControlSite.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.ui.win32.views;
-
-import org.eclipse.jface.action.IStatusLineManager;
-import org.eclipse.swt.ole.win32.*;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Needed for the OLE implementation
- */
-public class BrowserControlSite extends OleControlSite {
-
-	protected boolean beenBuilt = false;
-	protected boolean startedDownload = false;
-	// Web Browser
-	private WebBrowser browser;
-	private String presentationURL;
-	private IStatusLineManager statusLineManager;
-	private int workSoFar = 0;
-	private int prevMax = 0;
-
-	public void setStatusLineManager(IStatusLineManager manager) {
-		this.statusLineManager = manager;
-	}
-
-	void setBrowser(WebBrowser browser) {
-		this.browser = browser;
-	}
-
-	public String getPresentationURL() {
-		return presentationURL;
-	}
-
-	/**
-	 * BrowserControlSite constructor
-	 */
-	public BrowserControlSite(Composite parent, int style, String progId) {
-		super(parent, style, progId);
-
-		addEventListener(WebBrowser.DownloadBegin, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				startedDownload = true;
-				//webProgress.setSelection(0);
-				prevMax = -1;
-			}
-		});
-
-		addEventListener(WebBrowser.DownloadComplete, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				startedDownload = false;
-				//webProgress.setSelection(0);
-				if (statusLineManager != null)
-					statusLineManager.getProgressMonitor().done();
-				presentationURL = browser.getLocationURL();
-			}
-		});
-
-		addEventListener(WebBrowser.BeforeNavigate2, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				//Variant urlVar = event.arguments[1];
-				//String strUrl = urlVar.getString();
-			}
-		});
-
-		// Respond to ProgressChange events by updating the Progress bar
-		addEventListener(WebBrowser.ProgressChange, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				if (!startedDownload) {
-					return;
-				}
-
-				Variant progress = event.arguments[0];
-				Variant maxProgress = event.arguments[1];
-
-				if (progress == null || maxProgress == null || progress.getInt() == -1) {
-					return;
-				}
-				/*
-				if (maxProgress.getInt()!=100)
-				   webProgress.setMaximum(maxProgress.getInt());
-				*/
-				if (prevMax != maxProgress.getInt()) {
-					statusLineManager.getProgressMonitor().beginTask("", maxProgress.getInt());
-					prevMax = maxProgress.getInt();
-				}
-				//webProgress.setSelection(progress.getInt());
-				int newValue = progress.getInt();
-				int worked = newValue - workSoFar;
-				workSoFar = newValue;
-				if (statusLineManager != null)
-					statusLineManager.getProgressMonitor().worked(worked);
-			}
-		});
-
-		addEventListener(WebBrowser.StatusTextChange, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				Variant newText = event.arguments[0];
-				String msg = newText.getString();
-
-				if (msg != null) {
-					if (statusLineManager != null)
-						statusLineManager.setMessage(msg);
-				} else {
-					if (statusLineManager != null)
-						statusLineManager.setMessage("");
-				}
-			}
-		});
-	}
-}
diff --git a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/GlobalActionHandler.java b/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/GlobalActionHandler.java
deleted file mode 100644
index cedad49..0000000
--- a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/GlobalActionHandler.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.ui.win32.views;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.ui.*;
-import org.eclipse.ui.IWorkbenchActionConstants;
-
-/**
- *
- */
-public class GlobalActionHandler {
-	private boolean active = false;
-	private Combo combo;
-	private ControlListener controlListener;
-
-	private class ControlListener implements Listener {
-		public void handleEvent(Event event) {
-			switch (event.type) {
-				case SWT.Activate :
-					active = true;
-					updateActionsEnableState();
-					break;
-				case SWT.Deactivate :
-					active = false;
-					updateActionsEnableState();
-					break;
-				default :
-					break;
-			}
-		}
-	}
-
-	private class GlobalAction extends Action {
-		private String id;
-
-		public GlobalAction(String id) {
-			this.id = id;
-		}
-
-		public void run() {
-			doGlobalAction(id);
-		}
-	}
-
-	private GlobalAction cutAction;
-	private GlobalAction copyAction;
-	private GlobalAction pasteAction;
-	private GlobalAction deleteAction;
-	private GlobalAction selectAllAction;
-	private GlobalAction undoAction;
-
-	public GlobalActionHandler(IActionBars actionBar, Combo combo) {
-		this.combo = combo;
-		makeActions();
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.CUT,
-			cutAction);
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.COPY,
-			copyAction);
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.PASTE,
-			pasteAction);
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.DELETE,
-			deleteAction);
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.SELECT_ALL,
-			selectAllAction);
-		actionBar.setGlobalActionHandler(
-			IWorkbenchActionConstants.UNDO,
-			undoAction);
-		controlListener = new ControlListener();
-		combo.addListener(SWT.Activate, controlListener);
-		combo.addListener(SWT.Deactivate, controlListener);
-	}
-
-	public void dispose() {
-		if (!combo.isDisposed()) {
-			combo.removeListener(SWT.Activate, controlListener);
-			combo.removeListener(SWT.Deactivate, controlListener);
-		}
-	}
-
-	private void makeActions() {
-		cutAction = new GlobalAction(IWorkbenchActionConstants.CUT);
-		copyAction = new GlobalAction(IWorkbenchActionConstants.COPY);
-		pasteAction = new GlobalAction(IWorkbenchActionConstants.PASTE);
-		deleteAction = new GlobalAction(IWorkbenchActionConstants.DELETE);
-		selectAllAction =
-			new GlobalAction(IWorkbenchActionConstants.SELECT_ALL);
-		undoAction = new GlobalAction(IWorkbenchActionConstants.UNDO);
-	}
-
-	private void updateActionsEnableState() {
-		if (!active) {
-			cutAction.setEnabled(false);
-			copyAction.setEnabled(false);
-			pasteAction.setEnabled(false);
-			deleteAction.setEnabled(false);
-			selectAllAction.setEnabled(false);
-			undoAction.setEnabled(false);
-		} else {
-			cutAction.setEnabled(true);
-			copyAction.setEnabled(true);
-			pasteAction.setEnabled(true);
-			deleteAction.setEnabled(true);
-			selectAllAction.setEnabled(true);
-			undoAction.setEnabled(true);
-		}
-	}
-
-	private void doGlobalAction(String id) {
-		if (id.equals(IWorkbenchActionConstants.CUT))
-			combo.cut();
-		else if (id.equals(IWorkbenchActionConstants.COPY))
-			combo.copy();
-		else if (id.equals(IWorkbenchActionConstants.PASTE))
-			combo.paste();
-		else if (id.equals(IWorkbenchActionConstants.DELETE))
-			doDelete();
-		else if (id.equals(IWorkbenchActionConstants.SELECT_ALL))
-			doSelectAll();
-	}
-
-	private void doDelete() {
-		String text = combo.getText();
-		Point selection = combo.getSelection();
-		if (selection.x == selection.y)
-			return;
-		String left = text.substring(0, selection.x);
-		String right = text.substring(selection.y + 1);
-		combo.setText(left + right);
-	}
-
-	private void doSelectAll() {
-		String text = combo.getText();
-		Point newSelection = new Point(0, text.length());
-		combo.setSelection(newSelection);
-	}
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowser.java b/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowser.java
deleted file mode 100644
index 0fbf42a..0000000
--- a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowser.java
+++ /dev/null
@@ -1,467 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.ui.win32.views;
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.ole.win32.*;
-import org.eclipse.swt.widgets.*;
-
-/**
- * ActiveX based web browser control.
- */
-public class WebBrowser implements OleListener {
-	// Generated from typelib filename: shdocvw.dll
-
-	// Constants for WebBrowser CommandStateChange
-
-	public static final short CSC_UPDATECOMMANDS = -1;
-	public static final short CSC_NAVIGATEFORWARD = 1;
-	public static final short CSC_NAVIGATEBACK = 2;
-
-	// Web Browser Control Events 
-	public static final int BeforeNavigate = 100;
-	// Fired when a new hyperlink is being navigated to.
-	public static final int NavigateComplete = 101;
-	// Fired when the document being navigated to becomes visible and enters the navigation stack.
-	public static final int StatusTextChange = 102;
-	// Statusbar text changed.
-	public static final int ProgressChange = 108;
-	// Fired when download progress is updated.
-	public static final int DownloadComplete = 104;
-	// Download of page complete.
-	public static final int CommandStateChange = 105;
-	// The enabled state of a command changed
-	public static final int DownloadBegin = 106;
-	// Download of a page started.
-	public static final int NewWindow = 107;
-	// Fired when a new window should be created.
-	public static final int TitleChange = 113;
-	// Document title changed.
-	public static final int FrameBeforeNavigate = 200;
-	// Fired when a new hyperlink is being navigated to in a frame.
-	public static final int FrameNavigateComplete = 201;
-	// Fired when a new hyperlink is being navigated to in a frame.
-	public static final int FrameNewWindow = 204;
-	// Fired when a new window should be created.
-	public static final int Quit = 103;
-	// Fired when application is quiting.
-	public static final int WindowMove = 109;
-	// Fired when window has been moved.
-	public static final int WindowResize = 110;
-	// Fired when window has been sized.
-	public static final int WindowActivate = 111;
-	// Fired when window has been activated.
-	public static final int PropertyChange = 112;
-	// Fired when the PutProperty method has been called.
-	public static final int BeforeNavigate2 = 250;
-	// Fired when a new hyperlink is being navigated to.
-	public static final int NewWindow2 = 251;
-	// Fired when a new window should be created.
-	public static final int DocumentComplete = 259;
-	// Fired when the document being navigated to reaches ReadyState_Complete.
-
-	// Web Browser properties
-	public static final int DISPID_READYSTATE = -525;
-
-	// Web Browser state
-	public static final int READYSTATE_UNINITIALIZED = 0;
-	public static final int READYSTATE_LOADING = 1;
-	public static final int READYSTATE_LOADED = 2;
-	public static final int READYSTATE_INTERACTIVE = 3;
-	public static final int READYSTATE_COMPLETE = 4;
-
-	// Keep track of the whether it is possible to navigate in the forward and backward directions
-	private boolean backwardEnabled;
-	private boolean forwardEnabled;
-
-	// The automation object and Control associated with the main OLE control
-	private OleAutomation oleObject;
-	private BrowserControlSite controlSite;
-
-	// The OLE frame (there should only be one)
-	private OleFrame controlFrame;
-
-	//private NestedPrintDelegate aPrintDelegate = null;
-
-	/**
-	 */
-	public WebBrowser(Composite parent) {
-
-		// Create the OLE frame. 
-		controlFrame = createOleFrame(parent);
-
-		// Creates the IE5 OLE Control
-		// The constructor also registers all the necessary OLE listeners.
-		// for now, only catch the execption if creating and activating the 
-		// control fails. No checking if the correct version of the OLE control 
-		// is installed.
-		try {
-			controlSite =
-				new BrowserControlSite(
-					controlFrame,
-					SWT.NONE,
-					"Shell.Explorer");
-			controlSite.setBrowser(this);
-			oleObject = new OleAutomation(controlSite);
-
-			backwardEnabled = false;
-			forwardEnabled = false;
-
-			// Listen for changes to the Command States
-			controlSite.addEventListener(CommandStateChange, this);
-
-			// initialize control
-			controlSite.doVerb(OLE.OLEIVERB_SHOW);
-
-			// create print Delegate (has to be done early, here!).
-			//aPrintDelegate = new NestedPrintDelegate(this, oleObject, controlSite);
-
-		} catch (Exception e) {
-			String id = "org.eclipse.update.ui.win32";
-			IStatus status =
-				new Status(IStatus.ERROR, id, IStatus.OK, e.getMessage(), e);
-			Platform.getPlugin("org.eclipse.core.runtime").getLog().log(status);
-		}
-	}
-	/**
-	 */
-	public int back() {
-
-		if (!backwardEnabled)
-			return OLE.S_FALSE;
-		forwardEnabled = true;
-
-		// dispid=100, type=METHOD, name="GoBack"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 100;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "GoBack" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.invoke(dispIdMember);
-
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return 0;
-		return pVarResult.getInt();
-	}
-	/**
-	 */
-	public int copy() {
-		int result = controlSite.queryStatus(OLE.OLECMDID_COPY);
-		if ((result & OLE.OLECMDF_ENABLED) == OLE.OLECMDF_ENABLED) {
-			result =
-				controlSite.exec(
-					OLE.OLECMDID_COPY,
-					OLE.OLECMDEXECOPT_DODEFAULT,
-					null,
-					null);
-		}
-		return result;
-	}
-	protected OleFrame createOleFrame(Composite parent) {
-		if (controlFrame == null) {
-			controlFrame = new OleFrame(parent, SWT.NONE);
-			controlFrame.setLayoutData(
-				new GridData(
-					GridData.GRAB_HORIZONTAL
-						| GridData.GRAB_VERTICAL
-						| GridData.HORIZONTAL_ALIGN_FILL
-						| GridData.VERTICAL_ALIGN_FILL));
-		}
-		return controlFrame;
-
-	}
-	/**
-	 * clean up
-	 */
-	public void dispose() {
-		//** clean up
-		if (oleObject != null)
-			oleObject.dispose();
-		oleObject = null;
-
-		if (controlSite != null)
-			controlSite.dispose();
-		controlSite = null;
-
-		if (controlFrame != null)
-			controlFrame.dispose();
-		controlFrame = null;
-
-	}
-	/**
-	 */
-	public int forward() {
-		if (!forwardEnabled)
-			return OLE.S_FALSE;
-		backwardEnabled = true;
-		// dispid=101, type=METHOD, name="GoForward"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 101;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "GoForward" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.invoke(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return 0;
-		return pVarResult.getInt();
-	}
-	public Control getControl() {
-		return controlFrame;
-	}
-	/**
-	 */
-	public String getLocationName() {
-		// dispid=210, type=PROPGET, name="LocationName"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 210;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid =
-			oleObject.getIDsOfNames(new String[] { "LocationName" });
-		int dispIdMember = rgdispid[0];
-		Variant pVarResult = oleObject.getProperty(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return null;
-		return pVarResult.getString();
-	}
-	/**
-	 */
-	public String getLocationURL() {
-		// dispid=211, type=PROPGET, name="LocationURL"
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 211;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid =
-			oleObject.getIDsOfNames(new String[] { "LocationURL" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.getProperty(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return null;
-		return pVarResult.getString();
-	}
-	protected OleFrame getOleFrame() {
-		return controlFrame;
-
-	}
-
-	public BrowserControlSite getControlSite() {
-		return controlSite;
-	}
-	/**
-	 */
-	public int getReadyState() {
-		// dispid=4294966771, type=PROPGET, name="ReadyState"
-		// READYSTATE_UNINITIALIZED = 0;
-		// READYSTATE_LOADING = 1;
-		// READYSTATE_LOADED = 2;
-		// READYSTATE_INTERACTIVE = 3;
-		// READYSTATE_COMPLETE = 4;
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = -525;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "ReadyState" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.getProperty(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return -1;
-		return pVarResult.getInt();
-	}
-	/**
-	 */
-	public void handleEvent(OleEvent event) {
-		switch (event.type) {
-			case (CommandStateChange) :
-				int command = 0;
-				boolean enabled = false;
-
-				Variant varResult = event.arguments[0];
-				if (varResult != null && varResult.getType() != OLE.VT_EMPTY) {
-					command = varResult.getInt();
-				}
-
-				varResult = event.arguments[1];
-				if (varResult != null && varResult.getType() != OLE.VT_EMPTY) {
-					enabled = varResult.getBoolean();
-				}
-
-				if (command == CSC_NAVIGATEBACK)
-					backwardEnabled = enabled;
-				if (command == CSC_NAVIGATEFORWARD)
-					forwardEnabled = enabled;
-
-				return;
-
-			case (DocumentComplete) :
-				varResult = event.arguments[0];
-				return;
-		}
-		//throw new OleError(OLE.ERROR_NOT_IMPLEMENTED);
-	}
-	/**
-	 */
-	public int home() {
-		// dispid=102, type=METHOD, name="GoHome"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 102;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "GoHome" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.invoke(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return 0;
-		return pVarResult.getInt();
-	}
-	/**
-	 */
-	public int navigate(String url) {
-		return navigate(oleObject, url);
-	}
-	/**
-	 */
-	protected int navigate(OleAutomation aOleAutomation, String url) {
-		//if (Logger.DEBUG)
-		//Logger.logDebugMessage("WebBrowser", "navigate to: " + url);
-		// dispid=104, type=METHOD, name="Navigate"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 104;
-
-		// Alternatively, you can look up the DISPID dynamically
-		// Here we are looking up the id of the argument as well
-		int[] rgdispid =
-			aOleAutomation.getIDsOfNames(new String[] { "Navigate", "URL" });
-		int dispIdMember = rgdispid[0];
-
-		Variant[] rgvarg = new Variant[1];
-		rgvarg[0] = new Variant(url);
-		int[] rgdispidNamedArgs = new int[1];
-		rgdispidNamedArgs[0] = rgdispid[1]; // identifier of argument
-		Variant pVarResult =
-			aOleAutomation.invoke(dispIdMember, rgvarg, rgdispidNamedArgs);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return 0;
-		return pVarResult.getInt();
-
-	}
-	/**
-	 */
-	public int print() {
-		return print(controlSite, true);
-	}
-	/**
-	 */
-	protected int print(BrowserControlSite aControlSite, boolean promptuser) {
-
-		int result = aControlSite.queryStatus(OLE.OLECMDID_PRINT);
-
-		if ((result & OLE.OLECMDF_ENABLED) == OLE.OLECMDF_ENABLED) {
-			if (promptuser)
-				result =
-					aControlSite.exec(
-						OLE.OLECMDID_PRINT,
-						OLE.OLECMDEXECOPT_PROMPTUSER,
-						null,
-						null);
-			else
-				result =
-					aControlSite.exec(
-						OLE.OLECMDID_PRINT,
-						OLE.OLECMDEXECOPT_DONTPROMPTUSER,
-						null,
-						null);
-		}
-
-		//if (Logger.DEBUG)
-		//Logger.logDebugMessage("WebBrowser", "exec returns: " + Integer.toString(result));
-		return result;
-	}
-
-	/**
-	 * Refresh the currently viewed page.
-	 */
-	public void refresh() {
-
-		// dispid= 4294966746, type=METHOD, name="Refresh"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember =  4294966746;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "Refresh" });
-		int dispIdMember = rgdispid[0];
-
-		oleObject.invokeNoReply(dispIdMember);
-	}
-	/**
-	 */
-	public int search() {
-		// dispid=103, type=METHOD, name="GoSearch"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 103;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "GoSearch" });
-		int dispIdMember = rgdispid[0];
-
-		Variant pVarResult = oleObject.invoke(dispIdMember);
-		if (pVarResult == null || pVarResult.getType() == OLE.VT_EMPTY)
-			return 0;
-		return pVarResult.getInt();
-	}
-	/**
-	 */
-	public void stop() {
-		// dispid=106, type=METHOD, name="Stop"
-
-		// You can hard code the DISPID if you know it before hand - this is of course the fastest way
-		//int dispIdMember = 106;
-
-		// Alternatively, you can look up the DISPID dynamically
-		int[] rgdispid = oleObject.getIDsOfNames(new String[] { "Stop" });
-		int dispIdMember = rgdispid[0];
-
-		//Variant pVarResult = oleObject.invoke(dispIdMember);
-		oleObject.invoke(dispIdMember);
-	}
-	/**
-	 * Gets the forwardEnabled
-	 * @return Returns a boolean
-	 */
-	public boolean isForwardEnabled() {
-		return forwardEnabled;
-	}
-
-	/**
-	 * Gets the backwardEnabled
-	 * @return Returns a boolean
-	 */
-	public boolean isBackwardEnabled() {
-		return backwardEnabled;
-	}
-}
diff --git a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowserView.java b/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowserView.java
deleted file mode 100644
index 8823efc..0000000
--- a/update/org.eclipse.update.ui.win32/src/org/eclipse/update/internal/ui/win32/views/WebBrowserView.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.update.internal.ui.win32.views;
-
-import org.eclipse.jface.action.*;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.ole.win32.*;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.help.WorkbenchHelp;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.update.internal.ui.*;
-import org.eclipse.update.internal.ui.views.IEmbeddedWebBrowser;
-
-public class WebBrowserView extends ViewPart implements IEmbeddedWebBrowser {
-	// NL
-	private static final String KEY_NOT_AVAILABLE =
-		"WebBrowserView.notAvailable";
-	private static final String KEY_ADDRESS = "WebBrowserView.address";
-	private static final String KEY_STOP = "WebBrowserView.stop";
-	private static final String KEY_GO = "WebBrowserView.go";
-	private static final String KEY_REFRESH = "WebBrowserView.refresh";
-	private static final String KEY_BACKWARD = "WebBrowserView.backward";
-	private static final String KEY_FORWARD = "WebBrowserView.forward";
-
-	private int ADDRESS_SIZE = 10;
-	private WebBrowser browser;
-	private Control control;
-	private Combo addressCombo;
-	private Object input;
-	private ToolBarManager toolBarManager;
-	private Action refreshAction;
-	private Action stopAction;
-	private Action goAction;
-	private Action backwardAction;
-	private Action forwardAction;
-	private GlobalActionHandler globalActionHandler;
-
-	public WebBrowserView() {
-	}
-
-	/**
-	 * @see IFormPage#createControl(Composite)
-	 */
-	public void createPartControl(Composite parent) {
-		Composite container = new Composite(parent, SWT.NULL);
-		control = container;
-		GridLayout layout = new GridLayout();
-		layout.marginWidth = 0;
-		layout.marginHeight = 0;
-		layout.verticalSpacing = 0;
-		container.setLayout(layout);
-
-		Composite navContainer = new Composite(container, SWT.NONE);
-		layout = new GridLayout();
-		layout.numColumns = 3;
-		layout.marginHeight = 1;
-		navContainer.setLayout(layout);
-		createNavBar(navContainer);
-		navContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-		final WebBrowser winBrowser = new WebBrowser(container);
-		browser = winBrowser;
-
-		Control c = browser.getControl();
-		c.setLayoutData(new GridData(GridData.FILL_BOTH));
-		final BrowserControlSite site = winBrowser.getControlSite();
-		IStatusLineManager smng =
-			getViewSite().getActionBars().getStatusLineManager();
-		site.setStatusLineManager(smng);
-
-		site.addEventListener(WebBrowser.DownloadComplete, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				String url = winBrowser.getLocationURL();
-				if (url != null) {
-					addressCombo.setText(url);
-					downloadComplete(url);
-				}
-			}
-		});
-		site.addEventListener(WebBrowser.DownloadBegin, new OleListener() {
-			public void handleEvent(OleEvent event) {
-				stopAction.setEnabled(true);
-				refreshAction.setEnabled(false);
-			}
-		});
-		WorkbenchHelp.setHelp(container, "org.eclipse.update.ui.WebBrowserView");
-	}
-
-	public void openTo(final String url) {
-		addressCombo.setText(url);
-		control.getDisplay().asyncExec(new Runnable() {
-			public void run() {
-				navigate(url);
-			}
-		});
-	}
-
-	private void downloadComplete(String url) {
-		backwardAction.setEnabled(browser.isBackwardEnabled());
-		forwardAction.setEnabled(browser.isForwardEnabled());
-		stopAction.setEnabled(false);
-		refreshAction.setEnabled(true);
-	}
-
-	private void createNavBar(Composite parent) {
-		Label addressLabel = new Label(parent, SWT.NONE);
-		addressLabel.setText(UpdateUI.getString(KEY_ADDRESS));
-
-		addressCombo = new Combo(parent, SWT.DROP_DOWN | SWT.BORDER);
-		addressCombo.addModifyListener(new ModifyListener() {
-			public void modifyText(ModifyEvent e) {
-				String text = addressCombo.getText();
-				goAction.setEnabled(text.length() > 0);
-			}
-		});
-		addressCombo.addSelectionListener(new SelectionListener() {
-			public void widgetSelected(SelectionEvent e) {
-				String text =
-					addressCombo.getItem(addressCombo.getSelectionIndex());
-				if (text.length() > 0)
-					navigate(text);
-			}
-			public void widgetDefaultSelected(SelectionEvent e) {
-				navigate(addressCombo.getText());
-			}
-		});
-		GridData gd = new GridData(GridData.FILL_HORIZONTAL);
-		addressCombo.setLayoutData(gd);
-		ToolBar toolbar = new ToolBar(parent, SWT.FLAT | SWT.HORIZONTAL);
-		toolBarManager = new ToolBarManager(toolbar);
-		makeActions();
-		IActionBars bars = getViewSite().getActionBars();
-		IToolBarManager localBar = bars.getToolBarManager();
-		globalActionHandler = new GlobalActionHandler(bars, addressCombo);
-
-		localBar.add(backwardAction);
-		localBar.add(forwardAction);
-	}
-
-	private void navigate(String url) {
-		browser.navigate(url);
-		String[] items = addressCombo.getItems();
-		int loc = -1;
-		String normURL = getNormalizedURL(url);
-		for (int i = 0; i < items.length; i++) {
-			String normItem = getNormalizedURL(items[i]);
-			if (normURL.equals(normItem)) {
-				// match 
-				loc = i;
-				break;
-			}
-		}
-		if (loc != -1) {
-			addressCombo.remove(loc);
-		}
-		addressCombo.add(url, 0);
-		if (addressCombo.getItemCount() > ADDRESS_SIZE) {
-			addressCombo.remove(addressCombo.getItemCount() - 1);
-		}
-		addressCombo.getParent().layout(true);
-	}
-
-	private void makeActions() {
-		goAction = new Action() {
-			public void run() {
-				navigate(addressCombo.getText());
-			}
-		};
-		goAction.setEnabled(false);
-		goAction.setToolTipText(UpdateUI.getString(KEY_GO));
-		goAction.setImageDescriptor(UpdateUIImages.DESC_GO_NAV);
-		goAction.setDisabledImageDescriptor(UpdateUIImages.DESC_GO_NAV_D);
-		goAction.setHoverImageDescriptor(UpdateUIImages.DESC_GO_NAV_H);
-
-		stopAction = new Action() {
-			public void run() {
-				browser.stop();
-			}
-		};
-		stopAction.setToolTipText(UpdateUI.getString(KEY_STOP));
-		stopAction.setImageDescriptor(UpdateUIImages.DESC_STOP_NAV);
-		stopAction.setDisabledImageDescriptor(
-			UpdateUIImages.DESC_STOP_NAV_D);
-		stopAction.setHoverImageDescriptor(
-			UpdateUIImages.DESC_STOP_NAV_H);
-		stopAction.setEnabled(false);
-
-		refreshAction = new Action() {
-			public void run() {
-				browser.refresh();
-			}
-		};
-		refreshAction.setToolTipText(
-			UpdateUI.getString(KEY_REFRESH));
-		refreshAction.setImageDescriptor(UpdateUIImages.DESC_REFRESH_NAV);
-		refreshAction.setDisabledImageDescriptor(
-			UpdateUIImages.DESC_REFRESH_NAV_D);
-		refreshAction.setHoverImageDescriptor(
-			UpdateUIImages.DESC_REFRESH_NAV_H);
-		refreshAction.setEnabled(false);
-
-		backwardAction = new Action() {
-			public void run() {
-				browser.back();
-			}
-		};
-		backwardAction.setEnabled(false);
-		backwardAction.setToolTipText(
-			UpdateUI.getString(KEY_BACKWARD));
-		backwardAction.setImageDescriptor(
-			UpdateUIImages.DESC_BACKWARD_NAV);
-		backwardAction.setDisabledImageDescriptor(
-			UpdateUIImages.DESC_BACKWARD_NAV_D);
-		backwardAction.setHoverImageDescriptor(
-			UpdateUIImages.DESC_BACKWARD_NAV_H);
-
-		forwardAction = new Action() {
-			public void run() {
-				browser.forward();
-			}
-		};
-		forwardAction.setToolTipText(
-			UpdateUI.getString(KEY_FORWARD));
-		forwardAction.setImageDescriptor(UpdateUIImages.DESC_FORWARD_NAV);
-		forwardAction.setDisabledImageDescriptor(
-			UpdateUIImages.DESC_FORWARD_NAV_D);
-		forwardAction.setHoverImageDescriptor(
-			UpdateUIImages.DESC_FORWARD_NAV_H);
-		forwardAction.setEnabled(false);
-		toolBarManager.add(goAction);
-		toolBarManager.add(new Separator());
-		toolBarManager.add(stopAction);
-		toolBarManager.add(refreshAction);
-		toolBarManager.update(true);
-	}
-
-	private String getNormalizedURL(String url) {
-		url = url.toLowerCase();
-		if (url.indexOf("://") == -1) {
-			url = "http://" + url;
-		}
-		return url;
-	}
-
-	public void dispose() {
-		if (browser != null)
-			browser.dispose();
-		globalActionHandler.dispose();
-		super.dispose();
-	}
-
-	public void setFocus() {
-		if (control != null)
-			control.setFocus();
-	}
-}
diff --git a/update/org.eclipse.update.ui/icons/full/obj16/efix2_obj.gif b/update/org.eclipse.update.ui/icons/full/obj16/efix2_obj.gif
deleted file mode 100644
index 4235aa5..0000000
--- a/update/org.eclipse.update.ui/icons/full/obj16/efix2_obj.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdatePerspective.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdatePerspective.java
index c5f8d8a..084966e 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdatePerspective.java
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdatePerspective.java
@@ -37,7 +37,7 @@
 		upperFolder.addView(ID_ITEMS);
 		
 		factory.addView(ID_UPDATES, IPageLayout.BOTTOM, 0.5f, "upper");
-		IFolderLayout detailsFolder = factory.createFolder("details", IPageLayout.TOP, 0.67f, factory.getEditorArea());
+		IFolderLayout detailsFolder = factory.createFolder("details", IPageLayout.RIGHT, 0.67f, factory.getEditorArea());
 		detailsFolder.addView(ID_DETAILS);
 		if (SWT.getPlatform().equals("win32"))
 			detailsFolder.addPlaceholder(ID_BROWSER);
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIImages.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIImages.java
index 70b86e6..8f56eaf 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIImages.java
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIImages.java
@@ -66,7 +66,7 @@
 	public static final ImageDescriptor DESC_COMPUTER_OBJ = create(PATH_OBJ, "computer_obj.gif");
 	public static final ImageDescriptor DESC_CONFIG_OBJ = create(PATH_OBJ, "config_obj.gif");
 	public static final ImageDescriptor DESC_FEATURE_OBJ = create(PATH_OBJ, "feature_obj.gif");
-	public static final ImageDescriptor DESC_EFIX_OBJ = create(PATH_OBJ, "efix2_obj.gif");
+	public static final ImageDescriptor DESC_EFIX_OBJ = create(PATH_OBJ, "efix_obj.gif");
 	public static final ImageDescriptor DESC_FLOPPY_OBJ = create(PATH_OBJ, "floppy_obj.gif");
 	public static final ImageDescriptor DESC_HISTORY_OBJ = create(PATH_OBJ, "history_obj.gif");
 	public static final ImageDescriptor DESC_LSITE_OBJ = create(PATH_OBJ, "lsite_obj.gif");
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIPluginResources.properties b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIPluginResources.properties
index 7846266..6c232b0 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIPluginResources.properties
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/UpdateUIPluginResources.properties
@@ -246,7 +246,7 @@
 <img href="image1"/> <a href="action1">Feature Updates</a> view and expand the desired site \

 (this operation may take time). Select features and read about \

 them in the <b>Preview</b>.</p>\

-<p>If you have a removable device (e.g. a CD-ROM) that contains updates, \

+<p>If you have a removable device (e.g. a CD-ROM) that containes updates, \

 you can navigate to them from <b>My Computer</b> object. You can also create \

 configurable searches in order to locate features that match a specific query. To \

 create a search, select <b>New</b>, <b>Search...</b> from the pop-up menu in <b>Feature Updates</b></p></form>

diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/ConfigurationView.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/ConfigurationView.java
index 2e02462..3563808 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/ConfigurationView.java
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/ConfigurationView.java
@@ -388,8 +388,6 @@
 						: (configured
 							? UpdateUIImages.DESC_FEATURE_OBJ
 							: UpdateUIImages.DESC_UNCONF_FEATURE_OBJ);
-				if (efix && !configured)
-					flags |= UpdateLabelProvider.F_UNCONFIGURED;
 				switch (code) {
 					case IFeature.STATUS_UNHAPPY :
 						flags |= UpdateLabelProvider.F_ERROR;
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/RenameDialog.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/RenameDialog.java
index 686f810..da2f3e8 100644
--- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/RenameDialog.java
+++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/views/RenameDialog.java
@@ -21,7 +21,6 @@
 import org.eclipse.update.internal.ui.model.NamedModelObject;
 import org.eclipse.jface.dialogs.*;
 import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.resource.JFaceColors;
 
 /**
  * @author dejan
@@ -85,8 +84,6 @@
 		status = new CLabel(container, SWT.NULL);
 		gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
 		status.setLayoutData(gd);
-		status.setForeground(JFaceColors.getErrorText(status.getDisplay()));
-		status.setBackground(JFaceColors.getErrorBackground(status.getDisplay()));
 
 		text.setText(object.getName());
 		text.selectAll();
diff --git a/update/org.eclipse.update/.classpath b/update/org.eclipse.update/.classpath
deleted file mode 100644
index f12531d..0000000
--- a/update/org.eclipse.update/.classpath
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-    <classpathentry kind="src" path="src"/>
-    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
-    <classpathentry kind="var"
-        path="ECLIPSE_HOME/plugins/org.eclipse.core.boot/boot.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.core.boot/bootsrc.zip"/>
-    <classpathentry kind="var"
-        path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime/runtime.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.core.runtime/runtimesrc.zip"/>
-    <classpathentry kind="var"
-        path="ECLIPSE_HOME/plugins/org.eclipse.swt/swt.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.swt/swtsrc.zip"/>
-    <classpathentry kind="var"
-        path="ECLIPSE_HOME/plugins/org.eclipse.ui/workbench.jar" sourcepath="ECLIPSE_HOME/plugins/org.eclipse.ui/workbenchsrc.zip"/>
-    <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.webdav/webdav.jar"/>
-    <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update/.cvsignore b/update/org.eclipse.update/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update/.vcm_meta b/update/org.eclipse.update/.vcm_meta
deleted file mode 100644
index 7655f8d..0000000
--- a/update/org.eclipse.update/.vcm_meta
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<project-description>

-	<comment></comment>

-	<nature id="org.eclipse.jdt.core.javanature"/>

-	<builder name="org.eclipse.jdt.core.javabuilder">

-	</builder>

-</project-description>

diff --git a/update/org.eclipse.update/about.html b/update/org.eclipse.update/about.html
deleted file mode 100644
index 9a15e5c..0000000
--- a/update/org.eclipse.update/about.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<html>

-<head>

-<title>About</title>

-<style type="text/css">

-p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt}

-pre { font-family: "Courier New", Courier, mono; font-size: 10pt}

-h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}

-code { font-family: "Courier New", Courier, mono; font-size: 10pt}

-sup { font-family: arial,helvetica,geneva; font-size: 10px}

-h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}

-li { font-family: arial, helvetica, geneva; font-size: 10pt}

-h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}

-body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect(   ); margin-top: 5mm; margin-left: 3mm}

-</style>

-</head>

-<body>

-<body lang=EN-US link=blue vlink=purple>

-<table border=0 cellspacing=5 cellpadding=2 width="100%" >

-  <tr> 

-    <td align=LEFT valign=TOP colspan="2" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">About This Plug-in</font></b></td>

-  </tr>

-  <tr> 

-    <td> 

-<p>1st November, 2001</p>	

-<h3>License</h3>

-<p>Eclipse.org makes available all content in this plug-in.  The plug-in is provided to you under the terms and conditions of the

-<a href="http://www.eclipse.org/legal/cpl-v05.html">Common Public License Version 0.5</a>.  For purposes of the Common Public License, &quot;Program&quot; will mean the plug-in.</p>

-</td></tr></table>

-</body>

-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update/build.properties b/update/org.eclipse.update/build.properties
deleted file mode 100644
index ac7da03..0000000
--- a/update/org.eclipse.update/build.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-source.update.jar=src/

-bin.includes=plugin.xml,icons/,plugin.properties,*.jar,about.html

diff --git a/update/org.eclipse.update/icons/full/ctool16/new.gif b/update/org.eclipse.update/icons/full/ctool16/new.gif
deleted file mode 100644
index d16d5b0..0000000
--- a/update/org.eclipse.update/icons/full/ctool16/new.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/icons/full/ctool16/update.gif b/update/org.eclipse.update/icons/full/ctool16/update.gif
deleted file mode 100644
index f011d8a..0000000
--- a/update/org.eclipse.update/icons/full/ctool16/update.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/icons/full/wizban/new.gif b/update/org.eclipse.update/icons/full/wizban/new.gif
deleted file mode 100644
index 2a0c793..0000000
--- a/update/org.eclipse.update/icons/full/wizban/new.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/icons/full/wizban/revert.gif b/update/org.eclipse.update/icons/full/wizban/revert.gif
deleted file mode 100644
index d7402a2..0000000
--- a/update/org.eclipse.update/icons/full/wizban/revert.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/icons/full/wizban/update.gif b/update/org.eclipse.update/icons/full/wizban/update.gif
deleted file mode 100644
index 4ff15da..0000000
--- a/update/org.eclipse.update/icons/full/wizban/update.gif
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/plugin.properties b/update/org.eclipse.update/plugin.properties
deleted file mode 100644
index 9c052ee..0000000
--- a/update/org.eclipse.update/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-S_Eclipse_Update_Manager_Plugin = Install/Update Manager

-S_Software_Updates = &Software Updates

-S_Software_Updates_Preferences = Software Updates

diff --git a/update/org.eclipse.update/plugin.xml b/update/org.eclipse.update/plugin.xml
deleted file mode 100644
index 87f8787..0000000
--- a/update/org.eclipse.update/plugin.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-<!-- File written by PDE 1.0 -->

-<plugin

-   id="org.eclipse.update"

-   name="%S_Eclipse_Update_Manager_Plugin"

-   version="1.0"

-   provider-name="International Business Machines Corp."

-   class="org.eclipse.update.internal.core.UpdateManagerPlugin">

-<requires>

-   <import plugin="org.eclipse.core.runtime"/>

-   <import plugin="org.eclipse.ui"/>

-   <import plugin="org.eclipse.webdav"/>

-</requires>

-

-<runtime>

-   <library name="update.jar"/>

-</runtime>

-

-<!-- ================================================================================= -->

-<!--                                                                                   -->

-<!-- Update Manager Help Menu Action Set                                               -->

-<!--                                                                                   -->

-<!-- ================================================================================= -->

-<extension

-      point="org.eclipse.ui.actionSets">

-   <actionSet

-         label="%S_Software_Updates"

-         visible="false"

-         id="org.eclipse.update.internal.ui.UpdateManagerActionSet">

-      <action

-            label="%S_Software_Updates"

-            class="org.eclipse.update.internal.ui.UMDialogAction"

-            menubarPath="help/helpEnd"

-            id="org.eclipse.update.internal.ui.UpdateManagerAction">

-      </action>

-   </actionSet>

-</extension>

-<!-- ============================================================================================ -->

-<!--                                                                                              -->

-<!-- Update Manager Application                                                                   -->

-<!--                                                                                              -->

-<!-- ============================================================================================ -->

-<extension

-      id="updateManager"

-      point="org.eclipse.core.runtime.applications">

-   <application>

-      <run

-            class="org.eclipse.update.internal.ui.UMApplicationUserInterface">

-      </run>

-   </application>

-</extension>

-</plugin>

diff --git a/update/org.eclipse.update/plugin.xml.off b/update/org.eclipse.update/plugin.xml.off
deleted file mode 100644
index 8a83831..0000000
--- a/update/org.eclipse.update/plugin.xml.off
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!-- Eclipse Update Manager Plugin -->

-

-<plugin

-    id          = "org.eclipse.update"

-    name        = "%S_Eclipse_Update_Manager_Plugin"

-    version     = "1.0"

-    provider-name = "International Business Machines Corp."

-    class       = "org.eclipse.update.internal.core.UpdateManagerPlugin">

-

-    <requires>

-        <import plugin="org.eclipse.core.runtime"/>

-        <import plugin="org.eclipse.ui"/>

-        <import plugin="org.eclipse.webdav"/>

-    </requires>

-

-    <runtime>

-        <library name="update.jar" />

-    </runtime>

-

-    <!-- ================================================================================= -->

-    <!--                                                                                   -->

-    <!-- Update Manager Preference Page Settings                                           -->

-    <!--                                                                                   -->

-    <!-- ================================================================================= -->

-    <extension point="org.eclipse.ui.preferencePages">

-        <page id       = "UMPreferencePageSettings"

-              name     = "%S_Software_Updates_Preferences"

-              class    = "org.eclipse.update.internal.ui.UMPreferencePageSettings">

-        </page>

-    </extension>

-

-    <!-- ================================================================================= -->

-    <!--                                                                                   -->

-    <!-- Update Manager Help Menu Action Set                                               -->

-    <!--                                                                                   -->

-    <!-- ================================================================================= -->

-    <extension point="org.eclipse.ui.actionSets">

-        <actionSet

-            id      = "org.eclipse.update.internal.ui.UpdateManagerActionSet"

-            label   = "%S_Software_Updates"

-            visible = "true">

-            <action id          = "org.eclipse.update.internal.ui.UpdateManagerAction"

-                    menubarPath = "help/helpEnd"

-                    label       = "%S_Software_Updates"

-                    class       = "org.eclipse.update.internal.ui.UMDialogAction"/>

-        </actionSet>

-    </extension>

-

-    <!-- ============================================================================================ -->

-    <!--                                                                                              -->

-    <!-- Update Manager Application                                                                   -->

-    <!--                                                                                              -->

-    <!-- ============================================================================================ -->

-    <extension id="updateManager" point="org.eclipse.core.runtime.applications">

-        <application>

-            <run class="org.eclipse.update.internal.ui.UMApplicationUserInterface">

-            </run>

-        </application>

-    </extension>

-</plugin>

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/ISessionDefiner.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/ISessionDefiner.java
deleted file mode 100644
index 626ca05..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/ISessionDefiner.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- */

-import org.eclipse.core.internal.boot.update.*;

-

-public interface ISessionDefiner {

-/**

- * Creates one or more operations for the current session.

- */

-void defineOperations( UMSessionManagerSession session, IInstallable[] descriptors, boolean bVerifyJars );

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/IUMLock.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/IUMLock.java
deleted file mode 100644
index c25c907..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/IUMLock.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- */

-public interface IUMLock {

-/**

- * Checks to see if the UMLock file is there.  If yes, returns true

- */

-public boolean exists();

-/**

- */

-void remove();

-/**

- */

-void set();

-/**

- */

-void set(String msg);

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMLock.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMLock.java
deleted file mode 100644
index 5c08d9a..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMLock.java
+++ /dev/null
@@ -1,97 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- */

-import org.eclipse.core.internal.boot.update.*;

-import java.io.*;

-import java.net.*;

-public class UMLock implements IUMLock {

-	File file = null;

-/**

- * UMLock constructor comment.

- */

-public UMLock() {

-	super();

-	URL lockfileURL = null;

-	try {

-		lockfileURL = new URL(UMEclipseTree.getInstallTreeURL(), IManifestAttributes.UM_LOCK);

-	} catch (MalformedURLException ex) {

-	}

-	file = getFile(lockfileURL);

-}

-/**

- * Checks to see if the UMLock file is there.  If yes, returns true

- */

-public boolean exists() {

-	

-	if (file != null) {

-		if (file.exists() == true) {

-			return true;

-		}

-	}

-	return false;

-}

-/**

- */

-public static File getFile(URL url) {

-	File file = null;

-	if (url != null) {

-

-		// Convert the URL to a string

-		//----------------------------

-		String strFilespec = UMEclipseTree.getFileInPlatformString(url);

-

-		file = new File(strFilespec);

-	}

-	return file;

-}

-/**

- */

-public void remove() {

-	if (exists())

-		file.delete();

-		

-}

-/**

- */

-public void set() {

-	set("");

-}

-/**

- */

-public void set(String msg) {

-	URL lockfileURL = null;

-	try {

-		lockfileURL = new URL(UMEclipseTree.getInstallTreeURL(), IManifestAttributes.UM_LOCK);

-	} catch (MalformedURLException ex) {

-	}

-	

-	// Create a lock file

-	//-------------------

-	Log lockfile = new Log();

-

-	try {

-		lockfile.load(lockfileURL);		// creates file if it doesn't exist

-	}

-	catch (LogStoreException ex) {

-		return;

-	}

-

-	// Add an entry

-	//-------------

-	LogEntry lockEntry = new LogEntry( lockfile, msg );

-	lockfile.addChildEntry( lockEntry );

-

-

-	try {

-		lockfile.save(lockfileURL);

-	}

-	catch (LogStoreException ex) {

-		return;

-	}

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionDefinerReferenceUpdate.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionDefinerReferenceUpdate.java
deleted file mode 100644
index 240091b..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionDefinerReferenceUpdate.java
+++ /dev/null
@@ -1,216 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- */

-import org.eclipse.core.internal.boot.update.*;

-import org.eclipse.core.internal.boot.LaunchInfo;

-

-public class UMSessionDefinerReferenceUpdate implements ISessionDefiner {

-/**

- * UMUpdaterCached constructor comment.

- */

-public UMSessionDefinerReferenceUpdate() {

-	super();

-}

-/**

- * Creates one or more operations for the current parcel.

- */

-public void defineComponentOperation(UMSessionManagerParcel parcel, IInstallable descriptor, boolean bVerifyJars) {

-

-	IComponentDescriptor componentDescriptor = null;

-

-	if (descriptor instanceof IComponentDescriptor) {

-		componentDescriptor = (IComponentDescriptor) descriptor;

-	}

-	else if (descriptor instanceof IComponentEntryDescriptor) {

-		componentDescriptor = ((IComponentEntryDescriptor) descriptor).getComponentDescriptor();

-	}

-	if (componentDescriptor == null)

-		return; 

-

-	UMSessionManagerOperation operation = null;

-

-	// Create download operation

-	//--------------------------

-	operation = parcel.createOperation();

-	operation.setAction(UpdateManagerConstants.OPERATION_COPY);

-	operation.setId(componentDescriptor.getUniqueIdentifier());

-	operation.setSource(componentDescriptor.getDownloadURL().toExternalForm());

-	String downloadTarget = UMEclipseTree.getStagingArea().toExternalForm() + componentDescriptor.getDirName() + ".jar";

-	operation.setTarget(downloadTarget);

-	operation.setData(descriptor);

-

-	// Create jar verification operation

-	//----------------------------------

-	if (bVerifyJars == true) {

-		operation = parcel.createOperation();

-		operation.setAction(UpdateManagerConstants.OPERATION_VERIFY_JAR);

-		operation.setId(componentDescriptor.getUniqueIdentifier());

-		operation.setSource(downloadTarget);

-		operation.setTarget(null);

-		operation.setData(descriptor);

-	}

-

-	// Create apply operation for component files (files not in plugins/ dir structure)

-	//---------------------------------------------------------------------------------

-	operation = parcel.createOperation();

-	operation.setAction(UpdateManagerConstants.OPERATION_UNZIP_INSTALL);

-	operation.setId(componentDescriptor.getUniqueIdentifier());

-	operation.setSource(downloadTarget);

-	String applyTarget = UMEclipseTree.getBaseInstallURL().toExternalForm();

-	//	String applyTarget = "file:///c:/temp/x/" ;

-	operation.setTarget(applyTarget);

-	operation.setData(descriptor);

-

-	// Create apply operation for plug-ins		

-	//------------------------------------

-	IPluginEntryDescriptor[] plugins = componentDescriptor.getPluginEntries();

-	IFragmentEntryDescriptor[] fragments = componentDescriptor.getFragmentEntries();

-	if ((plugins.length > 0) || (fragments.length >0)) {

-		operation = parcel.createOperation();

-		operation.setAction(UpdateManagerConstants.OPERATION_UNZIP_PLUGINS);

-		operation.setId(componentDescriptor.getUniqueIdentifier());

-		operation.setSource(downloadTarget);

-		// by specifiying the install dir with a trailing slash, the unzip method

-		// will just unzip the contents of the jar into the dir

-		applyTarget = UMEclipseTree.getBaseInstallURL().toExternalForm();

-		//	applyTarget = "file:///c:/temp/x/" ;

-		operation.setTarget(applyTarget);

-		operation.setData(descriptor);

-	}

-

-}

-/**

- * Creates one or more operations for the current session.

- */

-public void defineOperations(UMSessionManagerSession session, IInstallable[] descriptors, boolean bVerifyJars) {

-

-	for (int i = 0; i < descriptors.length; ++i) {

-

-		// Products

-		//---------

-		if (descriptors[i] instanceof IProductDescriptor) {

-

-			UMSessionManagerParcel parcel = null;

-

-			// Create parcel

-			//--------------

-			parcel = session.createParcel();

-			parcel.setType(IManifestAttributes.PRODUCT);

-			parcel.setAction(UpdateManagerConstants.OPERATION_ACTION_INSTALL);

-			parcel.setId(((IProductDescriptor) descriptors[i]).getUniqueIdentifier());

-			parcel.setData((IProductDescriptor) descriptors[i]);

-

-			defineProductOperation(parcel, descriptors[i], bVerifyJars);

-		}

-

-		// Components

-		//-----------

-		else if (descriptors[i] instanceof IComponentDescriptor) {

-

-			UMSessionManagerParcel parcel = null;

-

-			// Create parcel

-			//--------------

-			parcel = session.createParcel();

-			parcel.setType(IManifestAttributes.COMPONENT);

-			parcel.setAction(UpdateManagerConstants.OPERATION_ACTION_INSTALL);

-			parcel.setId(((IComponentDescriptor) descriptors[i]).getUniqueIdentifier());

-			parcel.setData((IComponentDescriptor) descriptors[i]);

-

-			defineComponentOperation(parcel, descriptors[i], bVerifyJars);

-		}

-

-		// Component Entries

-		//------------------

-		else if (descriptors[i] instanceof IComponentEntryDescriptor) {

-

-			UMSessionManagerParcel parcel = null;

-

-			// Create parcel

-			//--------------

-			parcel = session.createParcel();

-			parcel.setType(IManifestAttributes.COMPONENT);

-			parcel.setAction(UpdateManagerConstants.OPERATION_ACTION_INSTALL);

-			parcel.setId(((IComponentEntryDescriptor) descriptors[i]).getUniqueIdentifier());

-			parcel.setData((IComponentEntryDescriptor) descriptors[i]);

-

-			defineComponentOperation(parcel, descriptors[i], bVerifyJars);

-		}

-	}

-}

-/**

- * Creates one or more operations for the current parcel.

- */

-public void defineProductOperation(UMSessionManagerParcel parcel, IInstallable descriptor, boolean bVerifyJars) {

-

-	IProductDescriptor productDescriptor = (IProductDescriptor) descriptor;

-	UMSessionManagerOperation operation = null;

-

-	// Create download operation

-	//--------------------------

-	operation = parcel.createOperation();

-	operation.setAction(UpdateManagerConstants.OPERATION_COPY);

-	operation.setId(productDescriptor.getUniqueIdentifier());

-	operation.setSource(productDescriptor.getDownloadURL().toExternalForm());

-	String downloadTarget = UMEclipseTree.getStagingArea().toString() + productDescriptor.getDirName() + ".jar";

-	operation.setTarget(downloadTarget);

-	operation.setData(productDescriptor);

-

-	// Create jar verification operation

-	//----------------------------------

-	if (bVerifyJars == true) {

-		operation = parcel.createOperation();

-		operation.setAction(UpdateManagerConstants.OPERATION_VERIFY_JAR);

-		operation.setId(productDescriptor.getUniqueIdentifier());

-		operation.setSource(downloadTarget);

-		operation.setTarget(null);

-		operation.setData(productDescriptor);

-	}

-

-	// Create apply operation for product files     

-	//-----------------------------------------

-	operation = parcel.createOperation();

-	operation.setAction(UpdateManagerConstants.OPERATION_UNZIP_INSTALL);

-	operation.setId(productDescriptor.getUniqueIdentifier());

-	operation.setSource(downloadTarget);

-	String applyTarget = UMEclipseTree.getBaseInstallURL().toExternalForm();

-	operation.setTarget(applyTarget);

-	operation.setData(productDescriptor);

-

-	// Create component sub-parcels

-	//-----------------------------

-	IComponentEntryDescriptor[] entries = productDescriptor.getComponentEntries();

-	for (int j = 0; j < entries.length; ++j) {

-		if (entries[j].isSelected()) {

-

-			UMSessionManagerParcel subparcel = null;

-			// Create parcel for each component

-			//---------------------------------

-			subparcel = parcel.createParcel();

-			subparcel.setType(IManifestAttributes.COMPONENT);

-			subparcel.setAction(UpdateManagerConstants.OPERATION_ACTION_INSTALL);

-			subparcel.setId(entries[j].getUniqueIdentifier());

-			subparcel.setData(entries[j]);

-

-			defineComponentOperation(subparcel, entries[j], bVerifyJars);

-		}

-	}

-

-	// Create apply operation for product files     

-	//-----------------------------------------

-	String app = LaunchInfo.getCurrent().getApplicationConfigurationIdentifier();

-	if ((app != null) && (app.equals(productDescriptor.getUniqueIdentifier()))) { 	// dominant app?

-		operation = parcel.createOperation();

-		operation.setAction(UpdateManagerConstants.OPERATION_UNZIP_BINDIR);

-		operation.setId(productDescriptor.getUniqueIdentifier());

-		operation.setSource(downloadTarget);

-		operation.setTarget(applyTarget);

-		operation.setData(productDescriptor);

-	}

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManager.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManager.java
deleted file mode 100644
index ab379b5..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManager.java
+++ /dev/null
@@ -1,351 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.internal.boot.update.*;

-import java.io.*;

-import java.net.*;

-import java.util.*;

-

-/**

- * Session Manager executes defined sessions, and manages the update and update history logs.

- * Logs look like this:

- *

- * <session timestamp="xxxx" status="complete" attempts="1">

- *   <operation action="urltocache" status="complete" attempts="1">

- *      <parcel type="component" id="xxx" action="add" status="complete" attempts="1">

- *         <item id="xxx" source="file:///C:/temp/sample_in.java" target="file:///C:/temp/sample_out.java" status="complete" attempts="1">

- *            <message text="successful" timestamp="Thu Mar 01 09:56:49 EST 2001" />

- *         </item>

- *      </parcel>

- *   </operation>

- * </session>

- *

- *

- *  Each element is represented by an UpdateManagerXyz class and have specific

- * member functions for accessing domain specific attributes and child elements.

- * The "status" attribute can be one of "pending", "failed", or "complete".

- */

-

-public class UMSessionManager {

-	

-	protected Log _logUpdate  = null;

-	protected Log _logHistory = null;

-	

-	protected URL _urlUpdate  = null;

-	protected URL _urlHistory = null;

-

-	protected ArrayList _alUpdateSessions = new ArrayList();

-/**

- * Constructs an UpdateManager with the update log and history log URLs.

- * The boolean specifies whether an exception should be thrown if one of

- * the logs is not found.

- */

-public UMSessionManager(URL urlUpdateLog, URL urlHistoryLog, boolean notifyIfLogNotFound) throws LogStoreException {

-

-	_urlUpdate = urlUpdateLog;

-	_urlHistory = urlHistoryLog;

-

-	// Attempt to open the two logs

-	//-----------------------------

-	_logUpdate = new Log();

-	_logHistory = new Log();

-

-	// If the files do not exist

-	// notify if required.  Otherwise assume new files

-	//------------------------------------------------

-	try {

-		_logUpdate.load(_urlUpdate);

-	}

-	catch (LogStoreException ex) {

-//		_logUpdate.printEntryTree(0);

-		if (notifyIfLogNotFound == true) {

-			throw ex;

-		}

-	}

-

-	// Create the update session structure from the log

-	//-------------------------------------------------

-	buildTreeFromLog( _logUpdate );

-

-/*	

-	try {

-		_logHistory.load(_urlUpdate);

-	}

-	catch (LogStoreException ex) {

-		

-		if (notifyIfLogNotFound == true) {

-			throw ex;

-		}

-	}

-

-	_logHistory.printEntryTree(0);

-*/

-}

-/**

- * Creates a tree of sessions from the given log.

- * @param logUpdate org.eclipse.update.internal.core.Log

- * @param alUpdate java.util.ArrayList

- */

-private void buildTreeFromLog(Log logUpdate ) {

-	

-	ILogEntry[] entryChildren = logUpdate.getChildEntries();

-

-	UMSessionManagerSession session = null;

-	

-	for( int i=0; i<entryChildren.length; ++i )

-	{

-		session = new UMSessionManagerSession( entryChildren[i] );

-

-		_alUpdateSessions.add( session );

-		

-		session.buildTreeFromLog( entryChildren[i] );

-	}

-	

-	return;

-}

-/**

- * Creates a new update session where pending operations may be defined for

- * completion.

- * @return org.eclipse.update.internal.core.UMSessionManagerSession

- */

-public UMSessionManagerSession createUpdateSession() {

-

-	UMSessionManagerSession umSession = null;

-	

-	if( _logUpdate != null )

-	{

-		ILogEntry entrySession = new LogEntry( _logUpdate, UpdateManagerConstants.STRING_SESSION );

-		

-		_logUpdate.addChildEntry( entrySession );

-

-		umSession = new UMSessionManagerSession( entrySession );

-

-		umSession.buildTreeFromLog( entrySession );

-

-		_alUpdateSessions.add( umSession );

-	}

-	

-	return umSession;

-}

-/**

- * Runs all sessions

- */

-public boolean executePendingSessions(IProgressMonitor progressMonitor) {

-

-	// Run each of the failed sessions

-	//--------------------------------

-	boolean bSuccess = true;

-

-	UMSessionManagerSession session = null;

-

-	Iterator iter = _alUpdateSessions.iterator();

-

-	while (iter.hasNext() == true) {

-

-		session = (UMSessionManagerSession) iter.next();

-

-		if (session.getStatus().equals(UpdateManagerConstants.STATUS_PENDING) == true) {

-			if (session.execute(progressMonitor) == false) {

-				bSuccess = false;

-			}

-		}

-	}

-

-	return bSuccess;

-}

-/**

- * Runs one session

- */

-public boolean executeSession(UMSessionManagerSession session, IProgressMonitor progressMonitor) {

-

-	if (session == null)

-		return false;

-

-	// Run the session

-	//----------------

-	return session.execute(progressMonitor);

-}

-/**

- * Runs one session

- */

-public boolean executeSessionUndo(UMSessionManagerSession session, IProgressMonitor progressMonitor) {

-

-	if (session == null)

-		return false;

-

-	// Run the session

-	//----------------

-	return session.executeUndo(progressMonitor);

-}

-/**

- * Returns an array of sessions that are complete.

- * @return org.eclipse.update.internal.core.UMSessionManagerSession[]

- */

-private UMSessionManagerSession[] getUpdateSessionsCompleted() {

-

-	// Obtain the successfully completed sessions

-	//-------------------------------------------

-	UMSessionManagerSession session = null;

-

-	ArrayList alSessionsCompleted = new ArrayList();

-

-	Iterator iter = _alUpdateSessions.iterator();

-

-	while (iter.hasNext() == true) {

-

-		session = (UMSessionManagerSession) iter.next();

-

-		if (session.isComplete() == true) {

-			alSessionsCompleted.add(session);

-		}

-	}

-

-	Object[] objArray = alSessionsCompleted.toArray();

-	UMSessionManagerSession[] sessions = new UMSessionManagerSession[objArray.length];

-	System.arraycopy(objArray, 0, sessions, 0, objArray.length);

-

-	return sessions;

-}

-/**

- * Removes an existing update session

- *

- */

-private boolean removeUpdateSession(UMSessionManagerSession session) {

-

-	if (session != null && _logUpdate != null) {

-

-	    // Ensure session exists

-	    //----------------------

-		if (_alUpdateSessions.contains(session) == false) {

-			return false;

-		}

-

-		// Remove the log entry

-		//---------------------

-		if (session.getLogEntry() != null) {

-

-			if (_logUpdate.removeChildEntry(session.getLogEntry()) == false) {

-				return false;

-			}

-

-			// Remove the session

-			//-------------------

-			_alUpdateSessions.remove(session);

-		}

-	}

-

-	return true;

-}

-/**

- * Saves the current state of the update log.

- */

-public void saveUpdateLog() throws LogStoreException {

-	_logUpdate.save( _urlUpdate );

-}

-/**

- * Moves all completed sessions in the update log to the history log.

- * This method does not parse the history file.  Sessions are written to

- * the end of the history log and removed from the update log tree, and update

- * session tree.  The update log is saved.

- */

-public void updateAndSaveLogs() throws LogStoreException {

-

-	// Check for history log URL

-	// If none, save the update log

-	//-----------------------------

-	if (_urlHistory == null) {

-		saveUpdateLog();

-		return;

-	}

-

-	// Obtain a list of completed update sessions

-	//-------------------------------------------

-	UMSessionManagerSession[] sessionsCompleted = getUpdateSessionsCompleted();

-

-	// If there are none, save the update log

-	//---------------------------------------

-	if (sessionsCompleted.length <= 0) {

-		saveUpdateLog();

-		return;

-	}

-

-	// Attempt to open the output log

-	//-------------------------------

-	String strFilespec = UMEclipseTree.getFileInPlatformString(_urlHistory);

-	

-

-	File file = new File(strFilespec);

-

-	boolean bExists = file.exists();

-

-	if (bExists == false) {

-		try {

-			bExists = file.createNewFile();

-		}

-		catch (IOException ex) {

-			return;

-		}

-	}

-

-	// Create a file writer and seek to the end of the file

-	//-----------------------------------------------------

-	RandomAccessFile fileWriter = null;

-

-	if (bExists == true) {

-		try {

-			fileWriter = new RandomAccessFile(file, "rw");

-			long lLength = fileWriter.length();

-			fileWriter.seek(lLength);

-		}

-		catch (IOException ex) {

-			fileWriter = null;

-		}

-	}

-

-	// Write out each session log to the history log

-	// Remove the session log from the update log

-	// Save both logs

-	//----------------------------------------------

-	StringBuffer strb = new StringBuffer();

-

-	if (fileWriter != null) {

-

-		ILogEntry logEntry = null;

-

-		for (int i = 0; i < sessionsCompleted.length; ++i) {

-

-			logEntry = sessionsCompleted[i].getLogEntry();

-

-			if (logEntry != null) {

-				logEntry.printPersistentEntryString(strb, 0);

-			}

-		}

-	}

-

-	// Write the buffer to the end of the history file

-	//------------------------------------------------

-	if (strb.length() > 0) {

-		try {

-			fileWriter.write(strb.toString().getBytes());

-			fileWriter.close();

-		}

-		catch (IOException ex) {

-

-		}

-	}

-

-	// Remove the update sessions from the update log

-	//-----------------------------------------------

-	for (int i = 0; i < sessionsCompleted.length; ++i) {

-		removeUpdateSession(sessionsCompleted[i]);

-	}

-

-	// Save the update log to keep logs in sync

-	//-----------------------------------------

-	saveUpdateLog();

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerEntry.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerEntry.java
deleted file mode 100644
index 9d616c8..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerEntry.java
+++ /dev/null
@@ -1,171 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.internal.boot.update.*;

-/**

- * Abstract class for update manager objects that have an ILogEntry

- */

-public abstract class UMSessionManagerEntry {

-	protected ILogEntry _logEntry = null;

-	protected ILogEntryProperty _propertyStatus = null;

-	protected ILogEntryProperty _propertyAttempts = null;

-	protected Object            _objData = null;

-/**

- * UpdateManagerEntry constructor comment.

- */

-public UMSessionManagerEntry( ILogEntry logEntry ) {

-	_logEntry = logEntry;

-

-	// Status

-	//-------

-	_propertyStatus = _logEntry.getProperty(UpdateManagerConstants.STRING_STATUS);

-

-	if (_propertyStatus == null) {

-		_propertyStatus = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_STATUS, UpdateManagerConstants.STATUS_PENDING );

-		logEntry.addProperty( _propertyStatus );

-	}

-

-	// Attempts

-	//---------

-	_propertyAttempts = _logEntry.getProperty(UpdateManagerConstants.STRING_ATTEMPTS);

-

-	if (_propertyAttempts == null) {

-		_propertyAttempts = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_ATTEMPTS, UpdateManagerConstants.STRING_0 );

-		logEntry.addProperty( _propertyAttempts );

-	}

-

-}

-/**

- * @param logEntry org.eclipse.update.internal.core.ILogEntry

- */

-public void buildTreeFromLog(ILogEntry logEntry) {

-	

-	// Attempts

-	//---------

-	ILogEntryProperty property = _logEntry.getProperty(UpdateManagerConstants.STRING_ATTEMPTS);

-

-	if (property != null) {

-		_propertyAttempts = property;

-	}

-	

-	// Status

-	//-------

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_STATUS);

-

-	if (property != null) {

-		_propertyStatus = property;

-	}

-}

-/**

- * 

- * @return java.lang.String

- * @param strPrefix java.lang.String

- * @param ex java.lang.Exception

- */

-public String createMessageString(String strPrefix, Exception ex) {

-

-	StringBuffer strb = new StringBuffer(strPrefix);

-

-	if (ex != null) {

-		if (ex.getLocalizedMessage() != null) {

-			strb.append(": " + ex.getLocalizedMessage());

-		}

-

-		else if (ex.toString() != null && ex.toString().length() > 0) {

-			strb.append(": " + ex.toString());

-		}

-	}

-

-	return strb.toString();

-}

-/**

- * Execute any pending or failed updates.

- */

-public abstract boolean execute( IProgressMonitor progressMonitor );

-/**

- * Execute any pending or failed updates.

- */

-public abstract boolean executeUndo( IProgressMonitor progressMonitor );

-/**

- * @return java.lang.Object

- */

-public java.lang.Object getData() {

-	return _objData;

-}

-/**

- * Returns the log entry associated with this session object.

- * @return org.eclipse.update.internal.core.ILogEntry

- */

-public ILogEntry getLogEntry() {

-	return _logEntry;

-}

-/**

- *

- * @return java.lang.String

- */

-public String getStatus() {

-

-	return _propertyStatus.getValue();

-}

-/**

- * @param strb java.lang.StringBuffer

- * @param iIndentation int

- */

-public abstract void getStatusString(StringBuffer strb, int iIndentation);

-/**

- * Increments the value of the number of attempts

- */

-public void incrementAttemptCount() {

-

-	int iAttempts = 0;

-

-	try {

-		iAttempts = new Integer(_propertyAttempts.getValue()).intValue();

-	}

-	catch (Exception ex) {

-	}

-

-	_propertyAttempts.setValue( Integer.toString( ++iAttempts ) );

-}

-/**

- * @param strb java.lang.StringBuffer

- * @param iIndentation int

- */

-public void indent(StringBuffer strb, int iIndentation) {

-

-	// Line feed

-	//----------

-	strb.append( "\n" );

-

-	// Indentation spaces

-	//-------------------

-	for( int i=0; i<iIndentation; ++i ){

-		strb.append( " " );

-	}

-}

-/**

- */

-public void resetAttemptCount() {

-	_propertyAttempts.setValue( UpdateManagerConstants.STRING_0 );

-}

-/**

- * Stores IManifestDescriptor

- * @param newData java.lang.Object

- */

-public void setData(java.lang.Object objData) {

-	_objData = objData;

-}

-/**

- * Every entry has a status property.

- * @return java.lang.String

- * @param status java.lang.String

- */

-public void setStatus(String strStatus) {

-

-	_propertyStatus.setValue( strStatus != null ? strStatus : UpdateManagerConstants.STRING_EMPTY );

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerMessage.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerMessage.java
deleted file mode 100644
index 3a9c9b9..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerMessage.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.internal.boot.update.*;

-import java.util.Date;

-

-/**

- * This class represents a failure message and consists of a timestamp and text.

- *

- */

-

-public class UMSessionManagerMessage {

-	protected ILogEntry _logEntry = null;

-	protected ILogEntryProperty _propertyTimestamp = null;

-	protected ILogEntryProperty _propertyText      = null;

-/**

- *

- * @param logEntry org.eclipse.update.internal.core.ILogEntry

- */

-public UMSessionManagerMessage(ILogEntry logEntry) {

-

-	_logEntry = logEntry;

-	

-	// Text

-	//-----

-	_propertyText = _logEntry.getProperty(UpdateManagerConstants.STRING_TEXT);

-

-	if (_propertyText == null) {

-		_propertyText = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_TEXT, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyText );

-	}

-

-	// Timestamp

-	//----------

-	_propertyTimestamp = _logEntry.getProperty(UpdateManagerConstants.STRING_TIMESTAMP);

-

-	if (_propertyTimestamp == null) {

-		_propertyTimestamp = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_TIMESTAMP, new Date().toString() );

-		logEntry.addProperty( _propertyTimestamp );

-	}

-}

-/**

- * @param logEntry org.eclipse.update.internal.core.LogEntry

- */

-public void buildTreeFromLog(ILogEntry logEntry) {

-		

-	// Text

-	//-----

-	ILogEntryProperty property = _logEntry.getProperty(UpdateManagerConstants.STRING_TEXT);

-

-	if (property != null) {

-		_propertyText = property;

-	}

-

-	// Source

-	//-------

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_TIMESTAMP);

-

-	if (property != null) {

-		_propertyTimestamp = property;

-	}

-}

-/**

- * @return java.lang.String

- */

-public String getText() {

-	

-	return _propertyText.getValue();

-}

-/**

- *

- */

-public void setText( String strID ) {

-	_propertyText.setValue( strID != null ? strID : UpdateManagerConstants.STRING_EMPTY );

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerOperation.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerOperation.java
deleted file mode 100644
index f6aadd5..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerOperation.java
+++ /dev/null
@@ -1,1189 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.swt.widgets.Shell;

-import org.eclipse.webdav.http.client.Response;

-import java.util.jar.*;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.internal.boot.LaunchInfo;

-import org.eclipse.update.internal.ui.*;

-import org.eclipse.core.internal.boot.update.*;

-import java.io.*;

-import java.net.*;

-import java.util.*;

-

-/**

- * This class represents an operation such as "copy" or "unzip".

- * Attributes are id, status (pending/complete), action,

- * source, target.  Children are messages.

- */

-

-public class UMSessionManagerOperation extends UMSessionManagerEntry {

-		

-	protected ArrayList         _alMessages     = new ArrayList();

-	protected ILogEntryProperty _propertyAction = null;

-	protected ILogEntryProperty _propertyID     = null;

-	protected ILogEntryProperty _propertySource = null;

-	protected ILogEntryProperty _propertyTarget = null;

-/**

- * UpdateManagerOperation constructor comment.

- */

-public UMSessionManagerOperation( ILogEntry logEntry ) {

-	super( logEntry );

-

-	// Action

-	//-------

-	_propertyAction = _logEntry.getProperty(UpdateManagerConstants.STRING_ACTION);

-

-	if (_propertyAction == null) {

-		_propertyAction = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_ACTION, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyAction );

-	}

-

-	// Id

-	//---

-	_propertyID = _logEntry.getProperty(UpdateManagerConstants.STRING_ID);

-

-	if (_propertyID == null) {

-		_propertyID = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_ID, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyID );

-	}

-

-	// Source

-	//-------

-	_propertySource = _logEntry.getProperty(UpdateManagerConstants.STRING_SOURCE);

-

-	if (_propertySource == null) {

-		_propertySource = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_SOURCE, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertySource );

-	}

-

-	// Target

-	//-------

-	_propertyTarget = _logEntry.getProperty(UpdateManagerConstants.STRING_TARGET);

-

-	if (_propertyTarget == null) {

-		_propertyTarget = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_TARGET, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyTarget);

-	}

-}

-/**

- * @param logEntry org.eclipse.update.internal.core.LogEntry

- */

-public void buildTreeFromLog(ILogEntry logEntry) {

-	

-	super.buildTreeFromLog( logEntry );

-	

-	// Action

-	//-------

-	ILogEntryProperty property = _logEntry.getProperty(UpdateManagerConstants.STRING_ACTION);

-

-	if (property != null) {

-		_propertyAction = property;

-	}

-	

-

-	// Id

-	//---

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_ID);

-

-	if (property != null) {

-		_propertyID = property;

-	}

-

-	// Source

-	//-------

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_SOURCE);

-

-	if (property != null) {

-		_propertySource = property;

-	}

-

-	// Target

-	//-------

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_TARGET);

-

-	if (property != null) {

-		_propertyTarget = property;

-	}

-

-

-	ILogEntry[] entries = logEntry.getChildEntries();

-

-	// Messages

-	//---------

-	int iIndex = 0;

-	UMSessionManagerMessage message = null;

-	

-	for( int i = 0; i < entries.length; ++i) {

-		if (entries[i] != null && entries[i].getName().equals(UpdateManagerConstants.STRING_MESSAGE) == true) {

-			message = new UMSessionManagerMessage( entries[i] );			

-	        _alMessages.add( message );

-

-	        message.buildTreeFromLog( entries[i] );

-		}

-	}

-}

-/**

- * Copies all data from input stream to output stream.

- * @param inputStream java.io.InputStream

- * @param outputStream java.io.OutputStream

- */

-public String copyStream(InputStream streamInput, OutputStream streamOutput, long lContentLength, String strTaskName, IProgressMonitor progressMonitor, boolean bSubtask) {

-

-	String strErrorMessage = null;

-

-	// Allocate buffer

-	//---------------- 

-	byte[] byteArray = null;

-

-	if (streamInput != null && streamOutput != null) {

-		byteArray = new byte[64000];

-	}

-

-	if (byteArray != null) {

-

-		// Copy

-		//-----

-		if (progressMonitor != null) {

-			if (bSubtask == false) {

-				if (lContentLength > 0 && lContentLength < Integer.MAX_VALUE)

-					progressMonitor.beginTask(UpdateManagerStrings.getString("S_Copy") + ": " +strTaskName, (int) lContentLength);

-				else

-					progressMonitor.beginTask(UpdateManagerStrings.getString("S_Copy") + ": "  + strTaskName, IProgressMonitor.UNKNOWN);

-			}

-			else {

-				progressMonitor.subTask(UpdateManagerStrings.getString("S_Copy") + ": "  + strTaskName);

-			}

-		}

-

-		int iBytesReceived = 0;

-

-		do {

-			// Read

-			//-----

-			try {

-				iBytesReceived = streamInput.read(byteArray);

-			}

-			catch (Exception ex) {

-				iBytesReceived = 0;

-				strErrorMessage = UpdateManagerStrings.getString("S_Error_reading_from_input_stream") + ": " + ex.getMessage();

-			}

-

-			// Write

-			//------

-			if (iBytesReceived > 0) {

-				try {

-					streamOutput.write(byteArray, 0, iBytesReceived);

-

-					if (progressMonitor != null && bSubtask == false)

-						progressMonitor.worked(iBytesReceived);

-				}

-				catch (IOException ex) {

-					iBytesReceived = 0;

-					strErrorMessage = UpdateManagerStrings.getString("S_Error_writing_to_output_stream") + ": " + ex.getMessage();

-				}

-			}

-		}

-		while (iBytesReceived > 0);

-

-		if (progressMonitor != null && bSubtask == false) {

-			progressMonitor.done();

-		}

-	}

-

-	return strErrorMessage;

-}

-/**

- *

- * @return org.eclipse.update.internal.core.UMSessionManagerMessage

- * @param actionType java.lang.String

- */

-public UMSessionManagerMessage createMessage() {

-

-	// Create a new log entry

-	//-----------------------

-	ILogEntry logEntryChild = new LogEntry( _logEntry, UpdateManagerConstants.STRING_MESSAGE );

-	_logEntry.addChildEntry( logEntryChild );

-

-	// Create the operation object

-	//----------------------------

-	UMSessionManagerMessage message = new UMSessionManagerMessage( logEntryChild );

-	

-	message.buildTreeFromLog( logEntryChild );

-	

-	_alMessages.add( message );

-	

-	return message;

-}

-/**

- *

- * 

- */

-public boolean doCopy(IProgressMonitor progressMonitor) {

-

-	String strErrorMessage = null;

-

-	// Input URL

-	//----------

-	URL urlInput = null;

-

-	try {

-		urlInput = new URL(getSource());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Source_URL_is_malformed"), ex);

-	}

-

-	URL urlOutput = null;

-

-	// Output URL

-	//-----------

-	try {

-		urlOutput = new URL(getTarget());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Target_URL_is_malformed"), ex);

-	}

-

-	// Input

-	//-------

-	InputStream streamInput = null;

-

-	long lContentLength = 0;

-

-	if (urlInput != null && urlOutput != null) {

-

-		// Input stream

-		//-------------

-		try {

-			URLHandler.Response response = (URLHandler.Response)URLHandler.open(urlInput);

-			lContentLength = response.getContentLength();

-			if( response.getResponseCode() == HttpURLConnection.HTTP_OK )

-				streamInput = response.getInputStream();

-		}

-		catch (IOException ex) {

-			strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_obtain_source_input_stream"), ex);

-		}

-

-	}

-

-	// Output

-	//-------

-	OutputStream streamOutput = null;

-

-	if (streamInput != null) {

-

-		// Output connection

-		//------------------

-		URLConnection urlConnectionOutput = null;

-		

-		try {

-			urlConnectionOutput = urlOutput.openConnection();

-			urlConnectionOutput.setDoOutput(true);

-		}

-		catch (IOException ex) {

-			strErrorMessage = createMessageString( UpdateManagerStrings.getString("S_Unable_to_connect"), ex );

-		}

-

-		// Output stream

-		//--------------

-		if (urlConnectionOutput != null) {

-			try {

-				streamOutput = urlConnectionOutput.getOutputStream();

-			}

-			catch (IOException ex) {

-				strErrorMessage = createMessageString( UpdateManagerStrings.getString("S_Unable_to_obtain_target_output_stream"), ex );

-			}

-		}

-

-		// Attempt to create a file output stream

-		// This is used when protocol is file: or valoader:

-		// thus our local writes are all file I/O currently

-		//-------------------------------------------------

-		if (streamOutput == null) {

-	        try

-	        {

-		 		streamOutput = getFileOutputStream(urlOutput);

-	        }

-	        catch( IOException ex){

-				strErrorMessage = createMessageString( UpdateManagerStrings.getString("S_Unable_to_create_file"), ex );

-			}

-		}

-	}

-

-	if( streamInput != null && streamOutput != null )

-	{

-	    strErrorMessage = copyStream( streamInput, streamOutput, lContentLength, urlInput.toExternalForm(), progressMonitor, false );

-	}    

-

-	// Close input stream

-	//-------------------

-	if (streamInput != null) {

-		try {

-			streamInput.close();

-		}

-		catch (IOException ex) {

-		}

-	}

-

-	// Close output stream

-	//--------------------

-	if (streamOutput != null) {

-		try {

-			streamOutput.flush();

-			streamOutput.close();

-		}

-		catch (IOException ex) {

-			strErrorMessage = createMessageString( UpdateManagerStrings.getString("S_Error_closing_output_stream"), ex );

-		}

-	}

-	

-	// Increment the number of attempts

-	//---------------------------------

-	incrementAttemptCount();

-

-	// Error return

-	//-------------

-	if (strErrorMessage != null) {

-		UMSessionManagerMessage message = createMessage();

-		message.setText(strErrorMessage);

-		setStatus(UpdateManagerConstants.STATUS_FAILED);

-		return false;

-	}

-

-	// Successful return

-	//------------------

-	setStatus(UpdateManagerConstants.STATUS_SUCCEEDED);

-

-	return true;

-}

-/**

- *

- * 

- */

-public boolean doUnzip(IProgressMonitor progressMonitor) {

-

-	String strErrorMessage = null;

-	int rc = UpdateManagerConstants.UNDEFINED_CONTENTS;

-

-	// Input URL

-	//----------

-	URL urlInput = null;

-	try {

-		urlInput = new URL(getSource());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Source_URL_is_malformed"), ex);

-	}

-

-	// Output URL

-	//-----------

-	URL urlOutput = null;

-	try {

-		urlOutput = new URL(getTarget());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Target_URL_is_malformed"), ex);

-	}

-

-	// For unzipping plugins or component/configuration jar, 

-	// set up the list of directories to look for, also call

-	// LaunchInfo.installPending

-	//-----------------------------------------------------

-	Vector dirNames = new Vector();

-	Vector dirNamesInstalled = new Vector();// keep track of plugins/fragments unzipped

-	Vector dirNamesUnexpected = new Vector();	// keep track of unexpected plugins/fragments dir

-	ArrayList productVIDs = new ArrayList();

-	ArrayList componentVIDs = new ArrayList();

-	ArrayList pluginVIDs = new ArrayList();

-	ArrayList fragmentVIDs = new ArrayList();

-

-	if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS ) {

-		IComponentDescriptor comp = null;

-		if (getData() instanceof IComponentEntryDescriptor) {

-			comp = ((IComponentEntryDescriptor) getData()).getComponentDescriptor();

-		} else {

-			comp = (IComponentDescriptor) getData();

-		}

-		if (comp != null) {

-			IPluginEntryDescriptor[] plugins = comp.getPluginEntries();

-			for (int i=0; i<plugins.length; i++) {

-				dirNames.addElement( UMEclipseTree.PLUGINS_DIR + "/" + plugins[i].getDirName());

-				pluginVIDs.add(new LaunchInfo.VersionedIdentifier(plugins[i].getUniqueIdentifier(), plugins[i].getVersionStr()));

-			}

-			IFragmentEntryDescriptor[] fragments = comp.getFragmentEntries();

-			for (int i=0; i<fragments.length; i++) {

-				dirNames.addElement( UMEclipseTree.FRAGMENTS_DIR + "/" + fragments[i].getDirName());	

-				fragmentVIDs.add(new LaunchInfo.VersionedIdentifier(plugins[i].getUniqueIdentifier(), plugins[i].getVersionStr()));

-			}

-		} else {

-			strErrorMessage = UpdateManagerStrings.getString("S_Error_in_registry");

-		}

-	} else if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL) {

-		rc = UpdateManagerConstants.INSTALL_XML_MISSING;

-		if (getData() instanceof IProductDescriptor) {

-			IProductDescriptor desc = (IProductDescriptor) getData();

-			dirNames.addElement(UMEclipseTree.INSTALL_DIR + "/" + UMEclipseTree.PRODUCTS_DIR + "/" + desc.getDirName());

-			productVIDs.add(new LaunchInfo.VersionedIdentifier(desc.getUniqueIdentifier(), desc.getVersionStr()));

-		} else { 

-			IComponentDescriptor desc = null;

-			if (getData() instanceof IComponentEntryDescriptor) {

-				desc = ((IComponentEntryDescriptor) getData()).getComponentDescriptor();

-			} else {

-				desc = (IComponentDescriptor) getData();

-			}

-			dirNames.addElement(UMEclipseTree.INSTALL_DIR + "/" + UMEclipseTree.COMPONENTS_DIR + "/" + desc.getDirName());

-			componentVIDs.add(new LaunchInfo.VersionedIdentifier(desc.getUniqueIdentifier(), desc.getVersionStr()));

-		}

-	}

-	if (!LaunchInfo.getCurrent().installPending(productVIDs, componentVIDs, pluginVIDs, fragmentVIDs)) {

-		strErrorMessage = UpdateManagerStrings.getString("S_Error_occurred_during_installation_setup");

-	}

-	

-	

-	// Create a file specification from the input URL

-	//-----------------------------------------------

-	String strFilespec = UMEclipseTree.getFileInPlatformString(urlInput);

-

-	JarFile jarFile = null;

-

-	try {

-		jarFile = new JarFile(strFilespec);

-	}

-	catch (IOException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_open_Jar_file"), ex);

-	}

-

-	if ((jarFile != null) && (strErrorMessage == null)) {

-

-		JarEntry entry = null;

-		InputStream streamInputEntry = null;

-

-		int iCount = jarFile.size();

-		

-		// Set up progress monitor

-		// Compute the filename without the path information

-		//--------------------------------------------------

-		String strFilename = strFilespec;

-		int iIndex = strFilespec.lastIndexOf(File.separatorChar);

-		

-		if (iIndex >= 0 && iIndex < strFilespec.length() - 1) {

-			strFilename = strFilespec.substring(iIndex + 1);

-		}

-

-		if (progressMonitor != null) {

-			progressMonitor.beginTask(UpdateManagerStrings.getString("S_Install") + ": " + strFilename, iCount);

-		}

-

-

-		// Do each jar file entry

-		//-----------------------

-		Enumeration enum = jarFile.entries();

-		while (enum.hasMoreElements() == true) {

-			entry = (JarEntry) enum.nextElement();

-			String entryName = entry.getName();

-			

-			if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS ) {

-				// Unzip plugins and fragments.  Skip entries not under plugins/  or fragments/ trees

-				//-----------------------------------------------------------------------------------

-				if ((!entryName.startsWith(UMEclipseTree.PLUGINS_DIR) &&

-					!entryName.startsWith(UMEclipseTree.FRAGMENTS_DIR)) 

-					|| entryName.endsWith("/")) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}

-				String prefix = entryName;

-				int second_slash = entryName.indexOf("/", (entryName.indexOf("/")+1));

-				if (second_slash > 0) 

-					prefix = entryName.substring(0,second_slash);

-				int match = dirNames.indexOf(prefix);

-				if (match < 0) {   // not a valid plugin

-					if (!dirNamesUnexpected.contains(prefix))

-						dirNamesUnexpected.addElement(prefix);

-					continue;

-				}

-				// got an entry with matching directory 

-				// keep track of which ones they are

-				if (!dirNamesInstalled.contains(prefix))

-					dirNamesInstalled.addElement(prefix);

-			} else if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL) {

-				// Skip over entries that don't start with the right dir naming convention (id_version)

-				//-------------------------------------------------------------------------------------

-				if (!entryName.startsWith((String)dirNames.firstElement()) || entryName.endsWith("/")) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}

-				// got an entry - as long as we have install.xml we're happy

-				if (entryName.equals((String)dirNames.firstElement()+"/"+IManifestAttributes.INSTALL_MANIFEST))

-					rc = UpdateManagerConstants.OK;

-			} else if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_BINDIR) {

-				// Unzip the bin directory, if it exists

-				//--------------------------------------

-				if (!entryName.startsWith(UMEclipseTree.BIN_DIR) || entryName.endsWith("/")) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}

-				// got bin dir

-				rc = UpdateManagerConstants.OK;

-			}

-			try {

-				streamInputEntry = jarFile.getInputStream(entry);

-			}

-			catch (IOException ex) {

-				streamInputEntry = null;

-				strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_open_jar_entry_input_stream"), ex);

-				break;

-			}

-			catch (SecurityException ex) {

-				streamInputEntry = null;

-				strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Encountered_jar_entry_security_exception"), ex);

-				break;

-			}

-

-

-			// Create an output URL

-			//---------------------

-			URL urlOutputFile = null;

-

-			if (streamInputEntry != null) {

-				try {

-					// Ensure file separator between target directory, and source file path

-					//---------------------------------------------------------------------

-					StringBuffer strbTarget = new StringBuffer(getTarget());

-					if (getTarget().endsWith("/") == false) {

-						strbTarget.append('/');

-					}

-					strbTarget.append(entryName);

-					urlOutputFile = new URL(strbTarget.toString());

-					File fTarget = new File(UMEclipseTree.getFileInPlatformString(urlOutputFile));

-					if (fTarget.exists() &&

-						(getAction() != UpdateManagerConstants.OPERATION_UNZIP_BINDIR)) {		

-						// we will not override existing files, except in bin/

-						if (progressMonitor != null) progressMonitor.worked(1);

-						continue;

-					}

-				}

-				catch (MalformedURLException ex) {

-					strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_create_jar_entry_URL"), ex);

-					break;

-				}

-			}

-

-

-			// Create a file output stream

-			//----------------------------

-			OutputStream streamOutputFile = null;

-

-			if (urlOutputFile != null) {

-				try {

-					streamOutputFile = getFileOutputStream(urlOutputFile);

-				}

-				catch (IOException ex) {

-					strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_create_output_file_for_Jar_entry") + ": " + urlOutputFile.toExternalForm(), ex);

-					break;

-				}

-			}

-

-			// Copy from input to output stream

-			//---------------------------------

-			if (streamInputEntry != null && streamOutputFile != null) {

-

-	            // Do not alter progress monitor

-	            //------------------------------

-				strErrorMessage = copyStream(streamInputEntry, streamOutputFile, 0, entryName, null, true );

-				if (strErrorMessage != null) {

-					break;

-				}

-			}

-			try {

-				if (streamInputEntry != null) 	streamInputEntry.close();

-				if (streamOutputFile != null) 	streamOutputFile.close();

-			} catch (java.io.IOException ex) {

-				// unchecked

-			}

-			if (progressMonitor != null) progressMonitor.worked(1);

-		}	// while

-//		strErrorMessage = "Error Injected!";

-		try {

-			jarFile.close();

-		} catch (java.io.IOException ex) {

-			// unchecked

-		}		

-	}	// if jarFile is not null

-

-	// tally up what's unzipped and what's not

-	//---------------------------------

-	if (strErrorMessage == null) {

-		if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS ) {

-			if (dirNamesUnexpected.size() > 0) {

-				rc = UpdateManagerConstants.UNDEFINED_CONTENTS;

-				strErrorMessage = UpdateManagerStrings.getString("S_Undefined_contents_found_in_Jar");

-			}

-			else if (!dirNamesInstalled.containsAll(dirNames)) {

-				rc = UpdateManagerConstants.MISSING_CONTENTS;

-				strErrorMessage = UpdateManagerStrings.getString("S_Unable_to_find_defined_contents_in_Jar");

-			} 

-		} else if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL) {

-			if (rc != UpdateManagerConstants.OK)

-				strErrorMessage = UpdateManagerStrings.getString("S_Unable_to_find_install_manifest_file_in_Jar");

-		}

-	}		

-	

-	// Call LaunchInfo.installConfirmed if all clean

-	// Otherwise, call after we've cleaned up (undo*)

-	//-----------------------------------------------

-	if (strErrorMessage == null) {

-		if (!LaunchInfo.getCurrent().installConfirmed(productVIDs, componentVIDs, pluginVIDs, fragmentVIDs)) {

-			strErrorMessage = UpdateManagerStrings.getString("S_Error_occurred_during_installation_completion");

-		}

-	}

-	

-	if (progressMonitor != null) progressMonitor.done();

-

-	// Increment the number of attempts

-	//---------------------------------

-	incrementAttemptCount();

-

-	// Error return

-	//-------------

-	if (strErrorMessage != null) {

-		UMSessionManagerMessage message = createMessage();

-		message.setText(strErrorMessage);

-		setStatus(UpdateManagerConstants.STATUS_FAILED);

-		return false;

-	}

-

-	// Successful return

-	//------------------

-	setStatus(UpdateManagerConstants.STATUS_SUCCEEDED);

-

-	return true;

-}

-/**

- *

- * 

- */

-public boolean doVerify(IProgressMonitor progressMonitor) {

-

-	String strErrorMessage = null;

-

-	// Input URL

-	//----------

-	URL urlInput = null;

-

-	try {

-		urlInput = new URL(getSource());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Source_URL_is_malformed"), ex);

-	}

-

-	IInstallable installable = (IInstallable) getData();

-

-	String strName = installable.getLabel();

-	String strId = null;

-	String strProviderName = null;

-

-	if (installable instanceof IProductDescriptor) {

-		strId = ((IProductDescriptor) installable).getUniqueIdentifier();

-		strProviderName = ((IProductDescriptor) installable).getProviderName();

-	}

-	else if (installable instanceof IComponentDescriptor) {

-		strId = ((IComponentDescriptor) installable).getUniqueIdentifier();

-		strProviderName = ((IComponentDescriptor) installable).getProviderName();

-	}

-	else if (installable instanceof IComponentEntryDescriptor) {

-		strId = ((IComponentEntryDescriptor) installable).getUniqueIdentifier();

-	}

-	else if (installable instanceof IPluginEntryDescriptor) {

-		strId = ((IPluginEntryDescriptor) installable).getUniqueIdentifier();

-	}

-	else if (installable instanceof IFragmentEntryDescriptor) {

-		strId = ((IFragmentEntryDescriptor) installable).getUniqueIdentifier();

-	}

-

-	JarVerificationService verifier = UpdateManager.getCurrentInstance().getJarVerifier();

-

-	JarVerificationResult result = verifier.okToInstall(new File(urlInput.getFile()), strId, strName, strProviderName, progressMonitor);

-

-	if (result.getResultCode() == JarVerificationResult.CANCEL_INSTALL) {

-		Exception ex = result.getResultException();

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Installation_cancelled_by_user"), ex);

-	}

-

-	// Increment the number of attempts

-	//---------------------------------

-	incrementAttemptCount();

-

-	// Error return

-	//-------------

-	if (strErrorMessage != null) {

-		UMSessionManagerMessage message = createMessage();

-		message.setText(strErrorMessage);

-		setStatus(UpdateManagerConstants.STATUS_FAILED);

-		return false;

-	}

-

-	// Successful return

-	//------------------

-	setStatus(UpdateManagerConstants.STATUS_SUCCEEDED);

-

-	return true;

-}

-/**

- * Execute copy from source URL to target URL.

- */

-public boolean execute(IProgressMonitor progressMonitor) {

-

-	if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL ||

-		getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS ||

-		getAction() == UpdateManagerConstants.OPERATION_UNZIP_BINDIR) {

-		return doUnzip(progressMonitor);

-	}

-	

-	else if (getAction() == UpdateManagerConstants.OPERATION_COPY) {

-		return doCopy(progressMonitor);

-	}

-	else if (getAction() == UpdateManagerConstants.OPERATION_VERIFY_JAR) {

-		return doVerify(progressMonitor);

-	}

-	return false;

-}

-/**

- * Execute any pending or failed updates.

- */

-public boolean executeUndo(IProgressMonitor progressMonitor) {

-

-	// Undo all successful and failed operations

-	//------------------------------------------

-	if (getStatus().equals(UpdateManagerConstants.STATUS_PENDING) == false) {

-		if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL ||

-			getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS) {

-			return undoUnzip(progressMonitor);

-		}

-		else if (getAction() == UpdateManagerConstants.OPERATION_COPY) {

-			return undoCopy(progressMonitor);

-		}

-		else if (getAction() == UpdateManagerConstants.OPERATION_VERIFY_JAR){

-			return undoVerify(progressMonitor);

-		}

-	}

-

-	return true;

-}

-/**

- * 

- * @return java.lang.String

- */

-public String getAction() {

-	

-	return _propertyAction.getValue();

-}

-/**

- * Creates a file output stream from the URL.

- * @param url java.net.URL

- */

-private FileOutputStream getFileOutputStream(URL url) throws IOException {

-

-	// Convert the URL to a string

-	//----------------------------

-	String strFilespec = UMEclipseTree.getFileInPlatformString(url);

-

-

-	// Create directory structure

-	//---------------------------

-	int iIndex = strFilespec.lastIndexOf(File.separator);

-	if (iIndex >= 0) {

-		String strPath = strFilespec.substring(0, iIndex+1);

-

-		File fileDirectory = new File(strPath);

-		if (fileDirectory.exists() == false) {

-			fileDirectory.mkdirs();

-		}

-	}

-

-	// Open / create the file

-	//-----------------------

-	File file = new File(strFilespec);

-	boolean bExists = file.exists();

-

-	if (bExists == false) {

-		bExists = file.createNewFile();

-	}

-

-	// Create the output stream

-	//-------------------------

-	return new FileOutputStream(file);

-}

-/**

- * @return java.lang.String

- */

-public String getId() {

-	

-	return _propertyID.getValue();

-}

-/**

- *

- * @return java.lang.String

- */

-public String getSource() {

-	

-	return _propertySource.getValue();

-}

-/**

- * @param strb java.lang.StringBuffer

- * @param iIndentation int

- */

-public void getStatusString(java.lang.StringBuffer strb, int iIndentation) {

-

-	if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true) {

-		return;

-	}

-	else if (getStatus().equals(UpdateManagerConstants.STATUS_PENDING) == true) {

-		return;

-	}

-

-	else {

-		if (getAction().equals(UpdateManagerConstants.OPERATION_COPY) == true) {

-			indent(strb, iIndentation);

-			strb.append(UpdateManagerStrings.getString("S_Copy") + ": " + getSource());

-		}

-		else if (getAction().equals(UpdateManagerConstants.OPERATION_UNZIP_INSTALL) ||

-				getAction().equals(UpdateManagerConstants.OPERATION_UNZIP_PLUGINS) == true) {

-			indent(strb, iIndentation);

-			strb.append(UpdateManagerStrings.getString("S_Install") + ": " + getSource());

-		}

-

-		// Obtain messages

-		//----------------

-		for (int i = 0; i < _alMessages.size(); ++i) {

-			indent(strb, iIndentation + 2);

-			strb.append(((UMSessionManagerMessage) _alMessages.get(i)).getText());

-		}

-	}

-}

-/**

- *

- * @return java.lang.String

- */

-public String getTarget() {

-	

-	return _propertyTarget.getValue();

-}

-/**

- *

- * @param actionType java.lang.String

- */

-public void setAction(String strAction) {

-	_propertyAction.setValue( strAction != null ? strAction : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- */

-public void setId( String strID ) {

-	_propertyID.setValue( strID != null ? strID : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- */

-public void setSource( String strSource ) {

-	_propertySource.setValue( strSource != null ? strSource : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- */

-public void setTarget( String strTarget ) {

-	_propertyTarget.setValue( strTarget != null ? strTarget : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- * 

- */

-public boolean undoCopy(IProgressMonitor progressMonitor) {

-

-	String strErrorMessage = null;

-

-	// Output URL

-	//-----------

-	URL urlOutput = null;

-

-	try {

-		urlOutput = new URL(getTarget());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Target_URL_is_malformed"), ex);

-	}

-

-	if (urlOutput != null) {

-

-		// Convert the URL to a string

-		//----------------------------

-		String strFilespec = UMEclipseTree.getFileInPlatformString(urlOutput);

-

-		// Delete the file

-		//----------------

-		File file = new File(strFilespec);

-		if (file.exists() == true) {

-			if (file.delete() == false) {

-				strErrorMessage = UpdateManagerStrings.getString("S_Unable_to_delete_file") + ": " + strFilespec;

-			}

-		}

-	}

-

-	// Reset the number of attempts

-	//-----------------------------

-	resetAttemptCount();

-

-	// Error return

-	//-------------

-	if (strErrorMessage != null) {

-		if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true)

-			setStatus(UpdateManagerConstants.STATUS_SUCCEEDED_UNDO_FAILED);

-		else

-			setStatus(UpdateManagerConstants.STATUS_FAILED_UNDO_FAILED);

-

-		return false;

-	}

-

-	// Successful return

-	//------------------

-	if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true)

-		setStatus(UpdateManagerConstants.STATUS_SUCCEEDED_UNDO_SUCCEEDED);

-	else

-		setStatus(UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED);

-

-	return true;

-}

-/**

- *

- * 

- */

-public boolean undoUnzip(IProgressMonitor progressMonitor) {

-

-	String strErrorMessage = null;

-

-	// Input URL

-	//----------

-	URL urlInput = null;

-	try {

-		urlInput = new URL(getSource());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Source_URL_is_malformed"), ex);

-	}

-

-	// Output URL

-	//-----------

-	URL urlOutput = null;

-	try {

-		urlOutput = new URL(getTarget());

-	}

-	catch (MalformedURLException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Target_URL_is_malformed"), ex);

-	}

-

-	// For plugins or component/configuration jar, 

-	// set up the list of directories to look for

-	// This section contains subtle differences from doUnzip()

-	//--------------------------------------------------------

-	Vector dirNames = new Vector();

-	ArrayList productVIDs = new ArrayList();

-	ArrayList componentVIDs = new ArrayList();

-	ArrayList pluginVIDs = new ArrayList();

-	ArrayList fragmentVIDs = new ArrayList();

-	if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_PLUGINS ) {

-		IComponentDescriptor comp = null;

-		if (getData() instanceof IComponentEntryDescriptor) {

-			comp = ((IComponentEntryDescriptor) getData()).getComponentDescriptor();

-		} else {

-			comp = (IComponentDescriptor) getData();

-		}

-		if (comp != null) {

-			IPluginEntryDescriptor[] plugins = comp.getPluginEntries();

-			for (int i=0; i<plugins.length; i++) {

-				dirNames.addElement( UMEclipseTree.PLUGINS_DIR + "/" + plugins[i].getDirName());

-				pluginVIDs.add(new LaunchInfo.VersionedIdentifier(plugins[i].getUniqueIdentifier(), plugins[i].getVersionStr()));

-			}

-			IFragmentEntryDescriptor[] fragments = comp.getFragmentEntries();

-			for (int i=0; i<fragments.length; i++) {

-				dirNames.addElement( UMEclipseTree.FRAGMENTS_DIR + "/" + fragments[i].getDirName());	

-				fragmentVIDs.add(new LaunchInfo.VersionedIdentifier(plugins[i].getUniqueIdentifier(), plugins[i].getVersionStr()));

-			}

-		} else {

-			strErrorMessage = UpdateManagerStrings.getString("S_Error_in_registry");

-		}

-	} else if (getAction() == UpdateManagerConstants.OPERATION_UNZIP_INSTALL) {

-		// rc = UpdateManagerConstants.INSTALL_XML_MISSING;

-		if (getData() instanceof IProductDescriptor) {

-			IProductDescriptor desc = (IProductDescriptor) getData();

-			dirNames.addElement(UMEclipseTree.INSTALL_DIR + "/" + UMEclipseTree.PRODUCTS_DIR + "/" + desc.getDirName() + "/");

-			productVIDs.add(new LaunchInfo.VersionedIdentifier(desc.getUniqueIdentifier(), desc.getVersionStr()));

-		} else { 

-			IComponentDescriptor desc = (IComponentDescriptor) getData();

-			dirNames.addElement(UMEclipseTree.INSTALL_DIR + "/" + UMEclipseTree.COMPONENTS_DIR + "/" + desc.getDirName() + "/");

-			componentVIDs.add(new LaunchInfo.VersionedIdentifier(desc.getUniqueIdentifier(), desc.getVersionStr()));

-		}

-	}

-

-		

-	// Create a file specification from the input URL

-	//-----------------------------------------------

-	String strFilespec = UMEclipseTree.getFileInPlatformString(urlInput);

-

-	JarFile jarFile = null;

-	

-	try {

-		jarFile = new JarFile(strFilespec);

-	}

-	catch (IOException ex) {

-		strErrorMessage = createMessageString(UpdateManagerStrings.getString("S_Unable_to_open_Jar_file"), ex);

-	}

-

-	if (jarFile != null) {

-

-		JarEntry entry = null;

-

-		int iCount = jarFile.size();

-

-		// Set up progress monitor

-		// Compute the filename without the path information

-		//--------------------------------------------------

-		String strFilename = strFilespec;

-		int iIndex = strFilespec.lastIndexOf(File.separatorChar);

-		

-		if (iIndex >= 0 && iIndex < strFilespec.length() - 1) {

-			strFilename = strFilespec.substring(iIndex + 1);

-		}

-		

-		if (progressMonitor != null) progressMonitor.beginTask(UpdateManagerStrings.getString("S_Undo") + ": " + strFilename, iCount);

-

-		// Do each jar file entry

-		//-----------------------

-		Enumeration enum = jarFile.entries();

-

-		while (enum.hasMoreElements() == true) {

-			entry = (JarEntry) enum.nextElement();

-			String entryName = entry.getName();

-			

-			if (getAction().equals(UpdateManagerConstants.OPERATION_UNZIP_PLUGINS)) {

-				// Remove the plugins and fragments.  Skip entries not under plugins/ or fragments/ trees

-				//----------------------------------------------------------------------------------------

-				if ((!entryName.startsWith(UMEclipseTree.PLUGINS_DIR)) &&

-					(!entryName.startsWith(UMEclipseTree.FRAGMENTS_DIR))) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}												

-				if ((entryName.equals(UMEclipseTree.PLUGINS_DIR + "/")) ||

-					(entryName.equals(UMEclipseTree.FRAGMENTS_DIR + "/"))) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}

-				// Don't bother cleaning up the entries not matching the expected list

-				// They weren't unzipped in the first place

-				//--------------------------------------------------------------------

-				String prefix = entryName;

-				int second_slash = entryName.indexOf("/", (entryName.indexOf("/")+1));

-				if (second_slash > 0) 

-					prefix = entryName.substring(0,second_slash);

-				int match = dirNames.indexOf(prefix);

-				if (match < 0) {   // not a valid plugin

-					continue;

-				}

-			} else if (getAction().equals(UpdateManagerConstants.OPERATION_UNZIP_INSTALL)) {

-				// Remove the component/product items.  Skip over entries that don't match the dirname

-				//------------------------------------------------------------------------------------

-				if (!entryName.startsWith((String)dirNames.firstElement())) {

-					if (progressMonitor != null) progressMonitor.worked(1);

-					continue;

-				}

-			} else if (getAction().equals(UpdateManagerConstants.OPERATION_UNZIP_BINDIR)) {

-				// No-op.   The bin directory contents cannot be undone

-				//-----------------------------------------------------

-				break;

-			}

-

-			if (urlOutput != null) {

-				// Build pathname to actual install location

-				//------------------------------------------

-				strFilespec = urlOutput.getFile() + "/" + entryName;

-				strFilespec = strFilespec.replace('/',File.separatorChar);

-				int k = strFilespec.indexOf(UMEclipseTree.DEVICE_SEPARATOR);

-				if (k != -1 && strFilespec.startsWith(File.separator)) {

-					strFilespec = strFilespec.substring(1);

-				}

-

-				// Delete the file or directory

-				//-----------------------------

-				File file = new File(strFilespec);

-				if (file.exists() == true) {

-					if (file.isDirectory())

-						UpdateManager.cleanupDirectory(file);

-					if (file.delete() == false) {

-						strErrorMessage = UpdateManagerStrings.getString("S_Unable_to_delete_file") + ": " + strFilespec;

-					}

-				}

-			}

-		if (progressMonitor != null) progressMonitor.worked(1);		

-		} // while

-

-		try {

-			jarFile.close();

-		} catch (java.io.IOException ex) {

-			// unchecked

-		}

-	} // if jarFile is not null

-

-	// Call LaunchInfo.installConfirmed if all clean

-	//-----------------------------------------------

-	if (strErrorMessage == null) {

-		if (!LaunchInfo.getCurrent().installConfirmed(productVIDs, componentVIDs, pluginVIDs, fragmentVIDs)) {

-			strErrorMessage = UpdateManagerStrings.getString("S_Error_occurred_during_installation_completion");

-		}

-	}

-	

-	if (progressMonitor != null) progressMonitor.done();

-	

-	// Reset the number of attempts

-	//-----------------------------

-	resetAttemptCount();

-

-	// Error return

-	//-------------

-	if (strErrorMessage != null) {

-		if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true)

-			setStatus(UpdateManagerConstants.STATUS_SUCCEEDED_UNDO_FAILED);

-		else

-			setStatus(UpdateManagerConstants.STATUS_FAILED_UNDO_FAILED);

-

-		return false;

-	}

-

-	// Successful return

-	//------------------

-	if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true)

-		setStatus(UpdateManagerConstants.STATUS_SUCCEEDED_UNDO_SUCCEEDED);

-	else

-		setStatus(UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED);

-

-	return true;

-}

-/**

- *

- * 

- */

-public boolean undoVerify(IProgressMonitor progressMonitor) {

-	

-	resetAttemptCount();

-	

-	if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true)

-		setStatus(UpdateManagerConstants.STATUS_SUCCEEDED_UNDO_SUCCEEDED);

-	else

-		setStatus(UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED);

-

-	return true;

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerParcel.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerParcel.java
deleted file mode 100644
index b0c7d97..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerParcel.java
+++ /dev/null
@@ -1,327 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.internal.boot.update.*;

-import java.util.*;

-

-/**

- * This class represents either a component or a product.  A parcel can

- * have sub parcels, and copy objects.  Attributes are action (add, fix), id, status (pending, complete),

- * type (component / product).

- */

-

-public class UMSessionManagerParcel extends UMSessionManagerEntry {

-	

-	protected ArrayList _alParcels = new ArrayList();

-	protected ArrayList _alOperations   = new ArrayList();

-	

-	protected ILogEntryProperty _propertyAction = null;

-	protected ILogEntryProperty _propertyID     = null;

-	protected ILogEntryProperty _propertyType   = null;

-/**

- * UpdateManagerParcel constructor comment.

- */

-public UMSessionManagerParcel( ILogEntry logEntry ) {

-	super( logEntry );

-

-	// Action

-	//-------

-	_propertyAction = _logEntry.getProperty(UpdateManagerConstants.STRING_ACTION);

-

-	if (_propertyAction == null) {

-		_propertyAction = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_ACTION, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyAction );

-	}

-

-	// Id

-	//---

-	_propertyID = _logEntry.getProperty(UpdateManagerConstants.STRING_ID);

-

-	if (_propertyID == null) {

-		_propertyID = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_ID, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyID );

-	}

-

-	// Type

-	//-----

-	_propertyType = _logEntry.getProperty(UpdateManagerConstants.STRING_TYPE);

-

-	if (_propertyType == null) {

-		_propertyType = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_TYPE, UpdateManagerConstants.STRING_EMPTY );

-		logEntry.addProperty( _propertyType );

-	}

-}

-/**

- * @param logEntry org.eclipse.update.internal.core.LogEntry

- */

-public void buildTreeFromLog(ILogEntry logEntry) {

-

-	super.buildTreeFromLog( logEntry );

-	

-	// Action

-	//-------

-	ILogEntryProperty property = _logEntry.getProperty(UpdateManagerConstants.STRING_ACTION);

-

-	if (property != null) {

-		_propertyAction = property;

-	}

-

-	// Id

-	//---

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_ID);

-

-	if (property != null) {

-		_propertyID = property;

-	}

-

-	// Type  

-	//-----

-	property = _logEntry.getProperty(UpdateManagerConstants.STRING_TYPE);

-

-	if (property != null) {

-		_propertyType = property;

-	}

-		

-	ILogEntry[] entries = logEntry.getChildEntries();

-

-	// Parcels

-	//--------	

-	int iIndex = 0;

-	UMSessionManagerParcel parcel = null;

-	

-	for( int i = 0; i < entries.length; ++i) {

-		if (entries[i] != null && entries[i].getName().equals(UpdateManagerConstants.STRING_PARCEL) == true) {

-			parcel = new UMSessionManagerParcel( entries[i] );			

-	        _alParcels.add( parcel );

-

-	        parcel.buildTreeFromLog( entries[i] );

-		}

-	}

-

-	// Operations

-	//-----------

-	iIndex = 0;

-	UMSessionManagerOperation operation = null;

-	

-	for( int i = 0; i < entries.length; ++i) {

-		if (entries[i] != null && entries[i].getName().equals(UpdateManagerConstants.STRING_OPERATION) == true) {

-			operation = new UMSessionManagerOperation( entries[i] );			

-	        _alOperations.add( operation );

-

-	        operation.buildTreeFromLog( entries[i] );

-		}

-	}

-}

-/**

- * @return org.eclipse.update.internal.core.UMSessionManagerOperation

- * @param actionType java.lang.String

- */

-public UMSessionManagerOperation createOperation() {

-

-	// Create a new log entry

-	//-----------------------

-	ILogEntry logEntryChild = new LogEntry( _logEntry, UpdateManagerConstants.STRING_OPERATION );

-	_logEntry.addChildEntry( logEntryChild );

-

-	// Create the operation object

-	//----------------------------

-	UMSessionManagerOperation operation = new UMSessionManagerOperation( logEntryChild );

-	_alOperations.add( operation );

-	

-	return operation;

-}

-/**

- * Creates a sub-parcel

- * @return org.eclipse.update.internal.core.UpdateManagerParcel

- * @param actionType java.lang.String

- */

-public UMSessionManagerParcel createParcel() {

-

-	// Create a new log entry

-	//-----------------------

-	ILogEntry logEntryChild = new LogEntry( _logEntry, UpdateManagerConstants.STRING_PARCEL );

-	_logEntry.addChildEntry( logEntryChild );

-

-	// Create the parcel object

-	//-------------------------

-	UMSessionManagerParcel parcel = new UMSessionManagerParcel( logEntryChild );

-	_alParcels.add( parcel );

-	

-	return parcel;

-}

-/**

- * Execute any pending or failed updates.

- */

-public boolean execute(IProgressMonitor progressMonitor) {

-

-	// Stop if any failure occurs

-	//---------------------------

-	boolean bSuccess = true;

-

-	// Parcels may be sequential, do in forward order

-	//-----------------------------------------------

-	for (int i = 0; i < _alParcels.size(); ++i) {

-

-		if (((UMSessionManagerParcel) _alParcels.get(i)).execute(progressMonitor) == false) {

-			bSuccess = false;

-			break;

-		}

-	}

-

-	// Operations may be sequential, do in forward order

-	//--------------------------------------------------

-	if (bSuccess == true) {

-		for (int i = 0; i < _alOperations.size(); ++i) {

-

-			if (((UMSessionManagerOperation) _alOperations.get(i)).execute(progressMonitor) == false) {

-				bSuccess = false;

-				break;

-			}

-		}

-	}

-

-	// Status

-	//-------

-	setStatus(bSuccess == true ? UpdateManagerConstants.STATUS_SUCCEEDED : UpdateManagerConstants.STATUS_FAILED);

-

-	incrementAttemptCount();

-

-	return bSuccess;

-}

-/**

- * Execute any pending or failed updates.

- */

-public boolean executeUndo(org.eclipse.core.runtime.IProgressMonitor progressMonitor) {

-

-	// Undo only failed attempts

-	//--------------------------

-	if (getStatus().equals(UpdateManagerConstants.STATUS_FAILED) == false) {

-		return true;

-	}

-

-	// Attempt all even if failure occurs

-	//-----------------------------------	

-	boolean bSuccess = true;

-

-	// Parcels may be sequential, undo in reverse order

-	//-------------------------------------------------

-	for (int i = _alParcels.size() - 1; i >= 0; --i) {

-

-		if (((UMSessionManagerParcel) _alParcels.get(i)).executeUndo(progressMonitor) == false) {

-			bSuccess = false;

-		}

-	}

-

-	// Operations may be sequential, undo in reverse order

-	//----------------------------------------------------

-	for (int i = _alOperations.size() - 1; i >= 0; --i) {

-

-		if (((UMSessionManagerOperation) _alOperations.get(i)).executeUndo(progressMonitor) == false) {

-			bSuccess = false;

-		}

-	}

-

-	// Status

-	//-------

-	setStatus(bSuccess == true ? UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED : UpdateManagerConstants.STATUS_FAILED_UNDO_FAILED);

-

-	resetAttemptCount();

-

-	return bSuccess;

-}

-/**

- * @return java.lang.String

- */

-public String getAction() {

-	

-	return _propertyAction.getValue();

-}

-/**

- * @return java.lang.String

- */

-public String getId() {

-	

-	return _propertyID.getValue();

-}

-/**

- * Returns all operations

- * @return org.eclipse.update.internal.core.UMSessionManagerOperation[]

- */

-public UMSessionManagerOperation[] getOperations() {

-

-	UMSessionManagerOperation[] operations = new UMSessionManagerOperation[_alOperations.size()];

-	return (UMSessionManagerOperation[])_alOperations.toArray( operations );

-}

-/**

- * Returns all sub-parcels

- * @return org.eclipse.update.internal.core.UpdateManagerParcel[]

- */

-public UMSessionManagerParcel[] getParcels() {

-

-	UMSessionManagerParcel[] parcels = new UMSessionManagerParcel[_alParcels.size()];

-	return (UMSessionManagerParcel[])_alParcels.toArray( parcels );

-}

-/**

- * @param strb java.lang.StringBuffer

- * @param iIndentation int

- */

-public void getStatusString(java.lang.StringBuffer strb, int iIndentation) {

-

-	if (getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true) {

-		return;

-	}

-

-	else {

-		// Parcel label

-		//-------------

-		IInstallable descriptor = (IInstallable) getData();

-

-		indent(strb, iIndentation);

-		strb.append( descriptor.getLabel());

-

-

-		// Parcels may be sequential, do in forward order

-		//-----------------------------------------------

-		for (int i = 0; i < _alParcels.size(); ++i) {

-

-			((UMSessionManagerParcel) _alParcels.get(i)).getStatusString(strb, iIndentation + 2);

-		}

-

-		// Operations may be sequential, do in forward order

-		//--------------------------------------------------

-		for (int i = 0; i < _alOperations.size(); ++i) {

-

-			((UMSessionManagerOperation) _alOperations.get(i)).getStatusString(strb, iIndentation + 2);

-		}

-	}

-}

-/**

- * @return java.lang.String

- */

-public String getType() {

-	

-	return _propertyType.getValue();

-}

-/**

- *

- */

-public void setAction( String strAction ) {

-	_propertyAction.setValue( strAction != null ? strAction : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- */

-public void setId( String strID ) {

-	_propertyID.setValue( strID != null ? strID : UpdateManagerConstants.STRING_EMPTY );

-}

-/**

- *

- */

-public void setType( String strType ) {

-	_propertyType.setValue( strType != null ? strType : UpdateManagerConstants.STRING_EMPTY );

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerSession.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerSession.java
deleted file mode 100644
index 369855a..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UMSessionManagerSession.java
+++ /dev/null
@@ -1,207 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.core.internal.boot.update.*;

-import java.util.Date;

-import java.util.*;

-

-/**

- * This class represents a session in which update manager operations are

- * executed.  This class contains parcel objects and has status and timestamp

- * as its attributes.  The timestamp attribute is automatically set when the session

- * is created for the first time.

- */

-

-public class UMSessionManagerSession extends UMSessionManagerEntry {

-	protected ArrayList _alParcels = new ArrayList();

-	protected ILogEntryProperty _propertyTimestamp = null;

-/**

- * UpdateManagerSession constructor comment.

- */

-public UMSessionManagerSession(ILogEntry logEntry) {

-	super( logEntry );

-

-	// Timestamp

-	//----------

-	_propertyTimestamp = _logEntry.getProperty(UpdateManagerConstants.STRING_TIMESTAMP);

-

-	if (_propertyTimestamp == null) {

-		_propertyTimestamp = new LogEntryProperty(logEntry, UpdateManagerConstants.STRING_TIMESTAMP, new Date().toString() );

-		logEntry.addProperty( _propertyTimestamp );

-	}

-}

-/**

- * @param logEntry org.eclipse.update.internal.core.LogEntry

- */

-public void buildTreeFromLog(ILogEntry logEntry) {

-	

-	super.buildTreeFromLog( logEntry );

-	

-	// Timestamp

-	//----------

-	ILogEntryProperty property = _logEntry.getProperty(UpdateManagerConstants.STRING_TIMESTAMP);

-

-	if (property != null) {

-		_propertyTimestamp = property;

-	}

-

-	

-	ILogEntry[] entries = logEntry.getChildEntries();

-	

-	// Parcels

-	//--------

-	int iIndex = 0;

-	UMSessionManagerParcel parcel = null;

-	

-	for( int i = 0; i < entries.length; ++i) {

-		if (entries[i] != null && entries[i].getName().equals(UpdateManagerConstants.STRING_PARCEL) == true) {

-			parcel = new UMSessionManagerParcel( entries[i] );			

-	        _alParcels.add( parcel );

-

-	        parcel.buildTreeFromLog( entries[i] );

-		}

-	}

-}

-/**

- *

- * @return org.eclipse.update.internal.core.UMTaskManagerParcel

- * @param actionType java.lang.String

- */

-public UMSessionManagerParcel createParcel() {

-

-	// Create a new log entry

-	//-----------------------

-	ILogEntry logEntryChild = new LogEntry( _logEntry, UpdateManagerConstants.STRING_PARCEL );

-	_logEntry.addChildEntry( logEntryChild );

-

-	// Create the copy object

-	//-----------------------

-	UMSessionManagerParcel parcel = new UMSessionManagerParcel( logEntryChild );

-	_alParcels.add( parcel );

-	

-	return parcel;

-}

-/**

- * Execute any pending or failed updates.

- */

-public boolean execute(IProgressMonitor progressMonitor) {

-

-	// Attempt all even if failure occurs

-	//-----------------------------------	

-	boolean bSuccess = true;

-

-	// Parcels may be sequential, do in forward order

-	//-----------------------------------------------

-	for (int i = 0; i < _alParcels.size(); ++i) {

-

-		if (((UMSessionManagerParcel) _alParcels.get(i)).execute(progressMonitor) == false) {

-			bSuccess = false;

-		}

-	}

-

-	// Status

-	//-------

-	setStatus(bSuccess == true ? UpdateManagerConstants.STATUS_SUCCEEDED : UpdateManagerConstants.STATUS_FAILED);

-

-	incrementAttemptCount();

-

-	return bSuccess;

-}

-/**

- * Execute any pending or failed updates.

- */

-public boolean executeUndo(org.eclipse.core.runtime.IProgressMonitor progressMonitor) {

-

-	// Undo only failed attempts

-	//--------------------------

-	if (getStatus().equals(UpdateManagerConstants.STATUS_FAILED) == false) {

-		return true;

-	}

-	

-	// Attempt all even if failure occurs

-	//-----------------------------------	

-	boolean bSuccess = true;

-

-	// Parcels may be sequential, undo in reverse order

-	//-------------------------------------------------

-	for (int i = _alParcels.size() - 1; i >= 0; --i) {

-

-		if (((UMSessionManagerParcel) _alParcels.get(i)).executeUndo(progressMonitor) == false) {

-			bSuccess = false;

-		}

-	}

-

-	// Status

-	//-------

-	setStatus(bSuccess == true ? UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED : UpdateManagerConstants.STATUS_FAILED_UNDO_FAILED);

-

-	resetAttemptCount();

-	

-	return bSuccess;

-}

-/**

- * Returns all parcels

- * @return org.eclipse.update.internal.core.UMSessionManagerParcel[]

- */

-public UMSessionManagerParcel[] getParcels() {

-

-	UMSessionManagerParcel[] parcels = new UMSessionManagerParcel[_alParcels.size()];

-	return (UMSessionManagerParcel[])_alParcels.toArray( parcels );

-}

-/**

- * @return java.lang.String

- */

-public String getStatusString() {

-	

-	StringBuffer strb = new StringBuffer();

-

-	getStatusString( strb, 0 );

-	

-	return strb.toString();

-}

-/**

- * @param strb java.lang.StringBuffer

- * @param iIndentation int

- */

-public void getStatusString(java.lang.StringBuffer strb, int iIndentation) {

-

-	String strStatus = getStatus();

-

-	if (strStatus.equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true) {

-		strb.append(UpdateManagerStrings.getString("S_Installations_have_completed_successfully"));

-		strb.append("\n");

-		strb.append(UpdateManagerStrings.getString("S_You_must_restart_the_workbench_to_activate_any_changes"));

-	}

-

-	else {

-		strb.append(UpdateManagerStrings.getString("S_An_installation_error_or_cancellation_has_occurred"));

-

-		// Parcels may be sequential, do in forward order

-		//-----------------------------------------------

-		for (int i = 0; i < _alParcels.size(); ++i) {

-

-			((UMSessionManagerParcel) _alParcels.get(i)).getStatusString(strb, 2);

-		}

-	}

-}

-/**

- * @return java.lang.String

- */

-public String getTimestamp() {

-	

-	return _propertyTimestamp.getValue();

-}

-/**

- * Returns whether this session is complete

- * @return boolean

- */

-public boolean isComplete() {

-

-	return _propertyStatus.getValue().equals(UpdateManagerConstants.STATUS_SUCCEEDED) ||

-		   _propertyStatus.getValue().equals(UpdateManagerConstants.STATUS_FAILED_UNDO_SUCCEEDED);

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/URLHandler.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/URLHandler.java
deleted file mode 100644
index 50eed69..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/URLHandler.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.internal.boot.update.*;

-import org.eclipse.webdav.http.client.*;

-import org.eclipse.webdav.client.WebDAVFactory;

-import org.eclipse.webdav.Context;

-import java.io.*;

-import java.net.*;

-

-public class URLHandler extends BaseURLHandler {

-

-	private static HttpClient http = null;

-	private static WebDAVFactory factory = null;

-	

-	private static final String HTTP = "http";

-	

-	static class Response extends BaseURLHandler.Response {

-		private org.eclipse.webdav.http.client.Response r = null;

-		private Response(org.eclipse.webdav.http.client.Response r) {

-			this.r = r;

-		}

-		public InputStream getInputStream() throws IOException {

-			return r.getInputStream();

-		}

-		public long getContentLength() {

-			return r.getContentLength();

-		}

-		public int getResponseCode() {

-			return r.getStatusCode();

-		}

-		public String getResponseMessage() {

-			return r.getStatusMessage();

-		}

-	}

-

-private URLHandler() {}

-public static BaseURLHandler.Response open(URL url) throws IOException {

-

-	if (url==null) return null;

-

-	if (!url.getProtocol().equals(HTTP)) {

-		URLConnection c = url.openConnection();

-		Context ctx = factory.newContext();

-		int i = 1;

-		String name = null;

-		while ((name = c.getHeaderFieldKey(i)) != null) {

-			ctx.put(name.toLowerCase(), c.getHeaderField(i));

-			i++;

-		}	

-		InputStream is = c.getInputStream();	

-		return new Response(new org.eclipse.webdav.http.client.Response(UNKNOWN_STATUS,UNKNOWN_MSG,ctx,is));

-	}

-	else {

-		if (http==null) throw new IllegalStateException(UpdateManagerStrings.getString("S_HTTP_client_not_set"));	

-		Request request = new Request("GET", url, null);

-		return new Response(http.invoke(request));

-	}	

-}

-protected BaseURLHandler.Response openURL(URL url) throws IOException {

-	return URLHandler.open(url);

-}

-public static void setHttpClient(HttpClient c) {

-

-	if (http==null) {

-		http = c;

-		factory = new WebDAVFactory();

-

-		// setup this handler as the handler for boot portion of update manager

-		BaseURLHandler.setURLHandler(new URLHandler());

-	}

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManager.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManager.java
deleted file mode 100644
index e456884..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManager.java
+++ /dev/null
@@ -1,640 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.io.File;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.TreeSet;

-

-import org.eclipse.core.internal.boot.LaunchInfo;

-import org.eclipse.core.internal.boot.LaunchInfo.VersionedIdentifier;

-import org.eclipse.core.internal.boot.update.IComponentDescriptor;

-import org.eclipse.core.internal.boot.update.IComponentEntryDescriptor;

-import org.eclipse.core.internal.boot.update.IFragmentEntryDescriptor;

-import org.eclipse.core.internal.boot.update.IInstallable;

-import org.eclipse.core.internal.boot.update.IPluginEntryDescriptor;

-import org.eclipse.core.internal.boot.update.IProductDescriptor;

-import org.eclipse.core.internal.boot.update.IUMRegistry;

-import org.eclipse.core.internal.boot.update.IURLNamePair;

-import org.eclipse.core.internal.boot.update.LogStoreException;

-import org.eclipse.core.internal.boot.update.UMEclipseTree;

-import org.eclipse.core.internal.boot.update.UMRegistryManager;

-import org.eclipse.core.internal.boot.update.UpdateManagerConstants;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.swt.widgets.Shell;

-import org.eclipse.update.internal.ui.JarVerificationService;

-

-/**

- * Update Manager updates a workstation in one of three modes:

- * <ol>

- * <li>local</li>

- * <li>remote</li>

- * <li>remote cached</li>

- * </ol>

- * Usage:

- * <ol>

- * <li>Create an instance of this class</li>

- * <li>Set persistent properties as required</li>

- * <ul>

- * <li>mode</li>

- * <li>update log URL</li>

- * <li>history log URL</li>

- * </ul>

- * <li>Call the initialize function</li>

- * <li>Call the update function</li>

- * </ol>

- * Persistent properties are loaded before any are changed, and saved after any

- * are changed.

- */

-

-public class UpdateManager {

-

-	// Package name for this class

-	// Used by UpdateManagerStrings to obtain its resource bundle properties file

-	//---------------------------------------------------------------------------

-	public static final String _strPackageName = "org.eclipse.update.internal.core";

-	public static UpdateManager _updateManagerInstance = null;

-	

-	// Persistent properties

-	//----------------------

-	protected int    _iMode         = UpdateManagerConstants.MODE_LOCAL;

-	protected String _strUpdateLogURL  = null;

-	protected String _strHistoryLogURL = null;

-

-	// Instance state data

-	//--------------------

-	protected UMRegistryManager _registryManager = null;

-	protected UMSessionManager  _sessionManager  = null;

-	protected Shell             _shell           = null;

-	

-	protected JarVerificationService _jarVerifier = null;

-/**

- * Constructs an instance of this class, then initializes by loading its persistent properties

- */

-public UpdateManager() {

-}

-/**

- * Constructs an instance of this class, then initializes by loading its persistent properties

- */

-public UpdateManager( Shell shell ) {

-	_updateManagerInstance = this;

-	_shell = shell;

-}

-/**

- * Deletes all files in the staging area.

- */

-public void cleanup() {

-	String strStagingDirectory = UMEclipseTree.getFileInPlatformString(UMEclipseTree.getStagingArea());

-

-	File fileStagingDirectory = new File(strStagingDirectory);

-

-	if (fileStagingDirectory.exists() == true) {

-		File[] files = fileStagingDirectory.listFiles();

-		for (int i = 0; i < files.length; ++i) {

-			if (files[i].isDirectory() == true) {

-				cleanupDirectory(files[i]);

-			}

-			boolean bSuccessful = files[i].delete();

-			

-		}

-	}

-}

-/**

- */

-public static void cleanupDirectory(File fileDirectory) {

-

-	File[] files = fileDirectory.listFiles();

-	

-	for (int i = 0; i < files.length; ++i) {

-		if (files[i].isDirectory() == true) {

-			cleanupDirectory(files[i]);

-		}

-

-		boolean bSuccessful = files[i].delete();

-//		if (!bSuccessful)

-//			System.out.println("ooops!" + files[i]);

-	}

-}

-/**

- */

-public UMSessionManagerSession createSession(IInstallable[] descriptors, boolean bVerifyJars) throws UpdateManagerException {

-

-	// FOR NOW DO NOT DO JAR VERIFICATION

-	//-----------------------------------

-	bVerifyJars = false;

-

-	// Create a new update session

-	//----------------------------

-	UMSessionManagerSession session = _sessionManager.createUpdateSession();

-

-	// Create a definer that can define the operations required

-	//---------------------------------------------------------

-	ISessionDefiner sessionDefiner = new UMSessionDefinerReferenceUpdate();

-	

-	// Define a set of operations

-	//---------------------------

-	sessionDefiner.defineOperations(session, descriptors, bVerifyJars);

-

-	// Save the update log

-	//--------------------

-	try {

-		_sessionManager.saveUpdateLog();

-	}

-	catch (LogStoreException ex) {

-		throw new UpdateManagerException(ex.getMessage());

-	}

-

-	return session;

-}

-/**

- * Updates the local machine by:

- * <ol>

- * <li>defining the operations</li>

- * <li>downloading any new objects</li>

- * <li>applying any downloaded updates</li>

- * <li>displaying a progress monitor</li>

- * </ol>

- */

-public UMSessionManagerSession executeSession( UMSessionManagerSession session, IProgressMonitor progressMonitor ) throws UpdateManagerException {

-

-	// Throw any exception when complete

-	//----------------------------------

-	UpdateManagerException umException = null;

-	

-	// Execute the session

-	//--------------------

-	_sessionManager.executeSession( session, progressMonitor );

-

-	// Move successful sessions from update log to history log

-	//--------------------------------------------------------

-	try {

-		_sessionManager.updateAndSaveLogs();

-	}

-	catch (LogStoreException ex) {

-		if (umException != null) {

-			umException = new UpdateManagerException("S_Unable_to_save_update_logs");

-		}

-	}

-

-	// Throw any exceptions found

-	//---------------------------

-	if (umException != null) {

-		throw umException;

-	}

-

-	return session;

-}

-/**

- * Updates the local machine by:

- * <ol>

- * <li>defining the operations</li>

- * <li>downloading any new objects</li>

- * <li>applying any downloaded updates</li>

- * <li>displaying a progress monitor</li>

- * </ol>

- */

-public UMSessionManagerSession executeSessionUndo( UMSessionManagerSession session, IProgressMonitor progressMonitor ) throws UpdateManagerException {

-

-	// Throw any exception when complete

-	//----------------------------------

-	UpdateManagerException umException = null;

-	

-	// Execute the session

-	//--------------------

-	_sessionManager.executeSessionUndo( session, progressMonitor );

-

-	// Move successful sessions from update log to history log

-	//--------------------------------------------------------

-	try {

-		_sessionManager.updateAndSaveLogs();

-	}

-	catch (LogStoreException ex) {

-		if (umException != null) {

-			umException = new UpdateManagerException("S Unable to save update logs");

-		}

-	}

-

-	// Throw any exceptions found

-	//---------------------------

-	if (umException != null) {

-		throw umException;

-	}

-

-	return session;

-}

-/**

- */

-public static UpdateManager getCurrentInstance() {

-	return _updateManagerInstance;

-}

-/**

- * Takes a string with an Id + '_' + Version, and returns the Id.

- */

-private String getIdFromInfoString(String strInfo) {

-

-	String strId = null;

-

-	int iIndex = strInfo.lastIndexOf('_');

-	

-	if (iIndex >= 0) {

-		strId = strInfo.substring(0, iIndex);

-	}

-

-	else {

-		strId = strInfo;

-	}

-

-	return strId;

-}

-// return the jar verifier

-

-public JarVerificationService getJarVerifier() {

-	if (_jarVerifier == null)	

-		_jarVerifier = new JarVerificationService( _shell );

-	return _jarVerifier;

-}

-/**

- * Returns a list of components that require updating by:

- *<ol>

- *<li>Loading all product/component manifests from .install/tree </li>

- *<li>Determining which components require updating by:</li>

- *<ol>

- *<li>Collecting update URLs from each component</li>

- *<li>Collecting update URLs from products that components are a part of</li>

- *</ol>

- *<li>Determining what updates are available by:</li>

- *<ol>

- *<li>Accessing the update URL</li>

- *<li>Determining if the component is a newer version of the existing one</li>

- *</ol>

- *<li>

- *</ol>

- */

-public IURLNamePair[] getLocalDiscoveryURLs() {

-

-	IURLNamePair[] urlNPs = null;

-	

-	// Obtain the local registry

-	//--------------------------

-	IUMRegistry registry = _registryManager.getLocalRegistry();

-

-	// Create a list of all URLs

-	//--------------------------

-	TreeSet setURLs = new TreeSet( new UpdateManagerURLComparator() );

-

-	// Obtain a list of all installed components

-	//------------------------------------------

-	IComponentDescriptor[] componentDescriptors = registry.getComponentDescriptors();

-

-	// Obtain a list of discovery URLs

-	//--------------------------------

-	for (int i = 0; i < componentDescriptors.length; ++i) {

-		urlNPs = componentDescriptors[i].getDiscoveryURLs();

-

-		for (int j = 0; j < urlNPs.length; ++j) {

-			setURLs.add(urlNPs[j]);

-		}

-	}

-

-	// Obtain a list of all installed products

-	//----------------------------------------

-	IProductDescriptor[] productDescriptors = registry.getProductDescriptors();

-

-	// Obtain a list of discovery URLs

-	//--------------------------------

-	for (int i = 0; i < productDescriptors.length; ++i) {

-		urlNPs = productDescriptors[i].getDiscoveryURLs();

-

-		for (int j = 0; j < urlNPs.length; ++j) {

-			setURLs.add(urlNPs[j]);

-		}

-	}

-

-	urlNPs = new IURLNamePair[ setURLs.size() ];

-	System.arraycopy(setURLs.toArray(), 0, urlNPs, 0, setURLs.size() );

-	

-	return urlNPs;

-}

-/**

- * Returns a list of components that require updating by:

- *<ol>

- *<li>Loading all product/component manifests from .install/tree </li>

- *<li>Determining which components require updating by:</li>

- *<ol>

- *<li>Collecting update URLs from each component</li>

- *<li>Collecting update URLs from products that components are a part of</li>

- *</ol>

- *<li>Determining what updates are available by:</li>

- *<ol>

- *<li>Accessing the update URL</li>

- *<li>Determining if the component is a newer version of the existing one</li>

- *</ol>

- *<li>

- *</ol>

- */

-public IURLNamePair[] getLocalUpdateURLs() {

-

-	IURLNamePair[] urlNPs = null;

-	

-	// Obtain the local registry

-	//--------------------------

-	IUMRegistry registry = _registryManager.getLocalRegistry();

-

-	// Create a list of all URLs

-	//--------------------------

-	TreeSet setURLs = new TreeSet( new UpdateManagerURLComparator() );

-

-	// Obtain a list of all installed components

-	//------------------------------------------

-	IComponentDescriptor[] componentDescriptors = registry.getComponentDescriptors();

-

-	// Obtain a list of discovery URLs

-	//--------------------------------

-	for (int i = 0; i < componentDescriptors.length; ++i) {

-		urlNPs = componentDescriptors[i].getUpdateURLs();

-

-		for (int j = 0; j < urlNPs.length; ++j) {

-			setURLs.add(urlNPs[j]);

-		}

-	}

-

-	// Obtain a list of all installed products

-	//----------------------------------------

-	IProductDescriptor[] productDescriptors = registry.getProductDescriptors();

-

-	// Obtain a list of discovery URLs

-	//--------------------------------

-	for (int i = 0; i < productDescriptors.length; ++i) {

-		urlNPs = productDescriptors[i].getUpdateURLs();

-

-		for (int j = 0; j < urlNPs.length; ++j) {

-			setURLs.add(urlNPs[j]);

-		}

-	}

-

-	urlNPs = new IURLNamePair[ setURLs.size() ];

-	System.arraycopy(setURLs.toArray(), 0, urlNPs, 0, setURLs.size() );

-	

-	return urlNPs;

-}

-// return the local (current) registry

-

-public IUMRegistry getRegistryAt(URL url) {

-	

-	return _registryManager.getRegistryAt( url );

-}

-/**

- */

-public UMRegistryManager getRegistryManager() {

-	return _registryManager;

-}

-/**

- * Initializes the update and history log URLs,creates a session manager,

- * and creates a registry manager.

- */

-public void initialize() throws UpdateManagerException{

-

-	// Obtain install URL

-	//-------------------

-	URL urlBase = UMEclipseTree.getBaseInstallURL();

-	String strUrlBase = urlBase.toExternalForm();

-	String strUrlInstall = strUrlBase + "install/";

-

-	String strUrlUpdateLog = strUrlInstall + "update.log";

-	String strUrlHistoryLog = strUrlInstall + "history.log";

-

-	setUpdateLogURL(strUrlUpdateLog);

-	setHistoryLogURL(strUrlHistoryLog);

-

-	// Create a session manager

-	//-------------------------

-	try {

-		_sessionManager = new UMSessionManager(new URL(_strUpdateLogURL), new URL(_strHistoryLogURL), true);

-	}

-	catch (MalformedURLException ex) {

-		throw new UpdateManagerException("Invalid log URL specification");

-	}

-	catch (LogStoreException ex) {

-		throw new UpdateManagerException(ex.getMessage());

-	}

-

-	// Registry Manager

-	//-----------------

-	_registryManager = new UMRegistryManager(urlBase);

-}

-/**

- * 

- */

-public void removeComponent(IComponentDescriptor componentDescriptor) {

-	removeComponent(componentDescriptor, null);

-}

-/**

- * 

- */

-public void removeComponent(IComponentDescriptor componentDescriptor, IProductDescriptor productDescriptor) {

-

-	if( componentDescriptor == null )

-		return;

-		

-	LaunchInfo launchInfo = LaunchInfo.getCurrent();

-	LaunchInfo.VersionedIdentifier vid = null;

-

-	// Plugins

-	//--------

-	IPluginEntryDescriptor[] pluginEntries = componentDescriptor.getPluginEntries();

-

-	for (int i = 0; i < pluginEntries.length; ++i) {

-		vid = new LaunchInfo.VersionedIdentifier(pluginEntries[i].getUniqueIdentifier(), pluginEntries[i].getVersionStr());

-		launchInfo.removePlugin(vid);

-	}

-

-	// Fragments

-	//----------

-	IFragmentEntryDescriptor[] fragmentEntries = componentDescriptor.getFragmentEntries();

-

-	for (int i = 0; i < fragmentEntries.length; ++i) {

-		vid = new LaunchInfo.VersionedIdentifier(fragmentEntries[i].getUniqueIdentifier(), pluginEntries[i].getVersionStr());

-		launchInfo.removeFragment(vid);

-	}

-

-	// Component

-	//----------

-	vid = new LaunchInfo.VersionedIdentifier(componentDescriptor.getUniqueIdentifier(), componentDescriptor.getVersionStr());

-	launchInfo.removeComponent(vid);

-	_registryManager.removeComponentDescriptorFromLocal(componentDescriptor, productDescriptor);

-	

-	return;

-}

-/**

- * 

- */

-public void removeProduct(IProductDescriptor productDescriptor) {

-

-	if( productDescriptor == null )

-		return;

-		

-	// Components

-	//-----------

-	IComponentEntryDescriptor[] componentEntries = productDescriptor.getComponentEntries();

-

-	for (int i = 0; i < componentEntries.length; ++i) {

-		IComponentDescriptor componentDescriptor = componentEntries[i].getComponentDescriptor();

-		if (componentDescriptor.isRemovable(productDescriptor))

-			removeComponent(componentDescriptor, productDescriptor);

-	}

-

-	// Product

-	//--------

-	LaunchInfo.VersionedIdentifier vid = new LaunchInfo.VersionedIdentifier(productDescriptor.getUniqueIdentifier(), productDescriptor.getVersionStr());

-	LaunchInfo.getCurrent().removeConfiguration(vid);

-	_registryManager.removeProductDescriptorFromLocal(productDescriptor);

-}

-/**

- * Sets the URL for the history log.  This property is persistent.

- */

-public void setHistoryLogURL(String strURL) throws UpdateManagerException {

-

-	// Check for valid URL

-	//--------------------

-	try {

-		new URL(strURL);

-	}

-	catch (MalformedURLException ex) {

-		throw new UpdateManagerException("Invalid log URL specification");

-	}

-

-	// Change the property

-	//--------------------

-	_strHistoryLogURL = strURL;

-}

-/**

- * Sets the URL for the update log.  This property is persistent.

- */

-public void setUpdateLogURL(String strURL) throws UpdateManagerException {

-	

-	// Check for valid URL

-	//--------------------

-	try {

-		new URL(strURL);

-	}

-	catch (MalformedURLException ex) {

-		throw new UpdateManagerException("Invalid log URL specification");

-	}

-

-	// Change the property

-	//--------------------

-	_strUpdateLogURL = strURL;

-}

-/**

- * Updates the boot loader's launch information with what is currently installed.

- */

-public void updateLaunchInfoAndRegistry(UMSessionManagerSession session) {

-

-	// Update launch info even if this session had a failure

-	// One or more parcels could have succeeded

-	//------------------------------------------------------

-	if (session != null) {

-		

-		LaunchInfo launchInfo = LaunchInfo.getCurrent();

-

-		// Obtain product/component information

-		//-------------------------------------

-		UMSessionManagerParcel[] parcels = session.getParcels();

-

-		for (int i = 0; i < parcels.length; ++i) {

-			updateLaunchInfoAndRegistryParcel( parcels[i], launchInfo );

-		}

-	}

-}

-/**

- * Recursively updates the boot loader's information for this parcel and sub-parcels.

- */

-protected void updateLaunchInfoAndRegistryParcel(UMSessionManagerParcel parcel, LaunchInfo launchInfo) {

-

-	// Update the profile only if the install was successful

-	//------------------------------------------------------

-	if (parcel != null && parcel.getStatus().equals(UpdateManagerConstants.STATUS_SUCCEEDED) == true) {

-

-		Object objData = parcel.getData();

-

-		// Product

-		//--------

-		if (objData instanceof IProductDescriptor) {

-			updateLaunchInfoProduct((IProductDescriptor) objData, launchInfo);

-			_registryManager.addProductDescriptorToLocal((IProductDescriptor) objData);

-		}

-

-		// Component

-		//----------

-		else if (objData instanceof IComponentDescriptor) {

-			updateLaunchInfoComponent((IComponentDescriptor) objData, launchInfo);

-			_registryManager.addComponentDescriptorToLocal((IComponentDescriptor) objData, true);

-		}

-			

-		// Component Entry

-		//----------------

-		else if (objData instanceof IComponentEntryDescriptor) {

-			IComponentDescriptor comp = ((IComponentEntryDescriptor)objData).getComponentDescriptor();

-			updateLaunchInfoComponent(comp, launchInfo);

-			_registryManager.addComponentDescriptorToLocal(comp, false);

-		}

-

-		// Do child parcels

-		//-----------------

-		UMSessionManagerParcel[] parcelChildren = parcel.getParcels();

-

-		for (int i = 0; i < parcelChildren.length; ++i) {

-			updateLaunchInfoAndRegistryParcel(parcelChildren[i], launchInfo);

-		}

-	}

-}

-/**

- * Updates the boot loader's launch information with what is currently installed.

- */

-public void updateLaunchInfoComponent(IComponentDescriptor descriptor, LaunchInfo launchInfo) {

-

-	// Component

-	//----------

-	launchInfo.setComponent(new LaunchInfo.VersionedIdentifier(descriptor.getUniqueIdentifier(), descriptor.getVersionStr()));

-

-	// Plugins

-	//--------

-	IPluginEntryDescriptor[] pluginDescriptors = descriptor.getPluginEntries();

-

-	for (int i = 0; i < pluginDescriptors.length; ++i) {

-		updateLaunchInfoPlugin(pluginDescriptors[i], launchInfo);

-	}

-

-	// Fragments

-	//----------

-	IFragmentEntryDescriptor[] fragmentDescriptors = descriptor.getFragmentEntries();

-

-	for (int i = 0; i < fragmentDescriptors.length; ++i) {

-		updateLaunchInfoFragment(fragmentDescriptors[i], launchInfo);

-	}

-}

-/**

- * Updates the boot loader's launch information with what is currently installed.

- */

-public void updateLaunchInfoFragment(IFragmentEntryDescriptor descriptor, LaunchInfo launchInfo) {

-

-	launchInfo.setFragment(new LaunchInfo.VersionedIdentifier(descriptor.getUniqueIdentifier(),descriptor.getVersionStr()));

-}

-/**

- * Updates the boot loader's launch information with what is currently installed.

- */

-public void updateLaunchInfoPlugin(IPluginEntryDescriptor descriptor, LaunchInfo launchInfo) {

-

-	launchInfo.setPlugin(new LaunchInfo.VersionedIdentifier(descriptor.getUniqueIdentifier(),descriptor.getVersionStr()));

-}

-/**

- * Updates the boot loader's launch information with what is currently installed.

- */

-public void updateLaunchInfoProduct(IProductDescriptor descriptor, LaunchInfo launchInfo) {

-

-	launchInfo.setConfiguration(new LaunchInfo.VersionedIdentifier(descriptor.getUniqueIdentifier(),descriptor.getVersionStr()), descriptor.getApplication());

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerException.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerException.java
deleted file mode 100644
index e25de36..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerException.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- * 

- */

-public class UpdateManagerException  extends Exception {

-/**

- * UpdateManagerException constructor comment.

- */

-public UpdateManagerException( String strMessage ) {

-	super( strMessage );

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerPlugin.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerPlugin.java
deleted file mode 100644
index e05d25d..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerPlugin.java
+++ /dev/null
@@ -1,135 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.net.MalformedURLException;

-import java.net.URL;

-/**

- */

-import org.eclipse.core.runtime.*;

-import org.eclipse.update.internal.ui.*;

-import org.eclipse.jface.resource.ImageDescriptor;

-import org.eclipse.webdav.http.client.HttpClient;

-

-public class UpdateManagerPlugin extends Plugin {

-	private static UpdateManagerPlugin _pluginInstance = null;

-	private	HttpClient client =null;

-/**

- * UpdateManagerPlugin constructor comment.

- */

-public UpdateManagerPlugin( IPluginDescriptor pluginDescriptor ) {

-	super( pluginDescriptor );

-

-	_pluginInstance = this;

-}

-/**

- * Returns the image descriptor of an image file relative to this plugin

- * @return org.eclipse.jface.resource.ImageDescriptor

- * @param strImage java.lang.String

- */

-public static ImageDescriptor getImageDescriptor(String strImage) {

-

-	UpdateManagerPlugin plugin = getPluginInstance();

-

-	if (plugin != null) {

-

-		// Obtain my plugin descriptor

-		//----------------------------

-		IPluginDescriptor pluginDescriptor = plugin.getDescriptor();

-

-		// Determine where I am installed

-		//-------------------------------

-		URL path = pluginDescriptor.getInstallURL();

-

-		// Add the relative file location to the install location

-		// Create the image descriptor

-		//-------------------------------------------------------

-		URL urlFullPathString = null;

-

-		try {

-			urlFullPathString = new URL(path, strImage);

-			return ImageDescriptor.createFromURL(urlFullPathString);

-		}

-

-		catch (MalformedURLException e) {

-		}

-	}

-	return null;

-}

-/**

- * @return org.eclipse.update.internal.core.UpdateManagerPlugin

- */

-public static UpdateManagerPlugin getPluginInstance() {

-	return _pluginInstance;

-}

-/**

- * Shuts down this plug-in and discards all plug-in state.

- * <p>

- * This method should be re-implemented in subclasses that need to do something

- * when the plug-in is shut down.  Implementors should call the inherited method

- * to ensure that any system requirements can be met.

- * </p>

- * <p>

- * Plug-in shutdown code should be robust. In particular, this method

- * should always make an effort to shut down the plug-in. Furthermore,

- * the code should not assume that the plug-in was started successfully,

- * as this method will be invoked in the event of a failure during startup.

- * </p>

- * <p>

- * Note 1: If a plug-in has been started, this method will be automatically

- * invoked by the platform when the platform is shut down.

- * </p>

- * <p>

- * Note 2: This method is intended to perform simple termination

- * of the plug-in environment. The platform may terminate invocations

- * that do not complete in a timely fashion.

- * </p>

- * <b>Cliens must never explicitly call this method.</b>

- *

- * @exception CoreException if this method fails to shut down

- *   this plug-in 

- */

-public void shutdown() throws CoreException {

-	if(client!=null) client.close(); 

-}

-/**

- * Starts up this plug-in.

- * <p>

- * This method should be overridden in subclasses that need to do something

- * when this plug-in is started.  Implementors should call the inherited method

- * to ensure that any system requirements can be met.

- * </p>

- * <p>

- * If this method throws an exception, it is taken as an indication that

- * plug-in initialization has failed; as a result, the plug-in will not

- * be activated; moreover, the plug-in will be marked as disabled and 

- * ineligible for activation for the duration.

- * </p>

- * <p>

- * Plug-in startup code should be robust. In the event of a startup failure,

- * the plug-in's <code>shutdown</code> method will be invoked automatically,

- * in an attempt to close open files, etc.

- * </p>

- * <p>

- * Note 1: This method is automatically invoked by the platform 

- * the first time any code in the plug-in is executed.

- * </p>

- * <p>

- * Note 2: This method is intended to perform simple initialization 

- * of the plug-in environment. The platform may terminate initializers 

- * that do not complete in a timely fashion.

- * </p>

- * <b>Cliens must never explicitly call this method.</b>

- *

- * @exception CoreException if this plug-in did not start up properly

- */

-public void startup() throws CoreException {

-	// Setup HTTP client

-	//------------------

-	client = new HttpClient();

-	client.setAuthenticator(new AuthorizationDatabase());

-	URLHandler.setHttpClient(client);

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerStrings.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerStrings.java
deleted file mode 100644
index 21b7ecd..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerStrings.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- * This class loads translatable strings from a resource bundle properties file.

- */

-import java.util.ResourceBundle;

-import java.util.MissingResourceException;

-

-public class UpdateManagerStrings

-{

-	private static ResourceBundle _resourceBundle = null;

-/**

- * Obtains a NL translated string from a resource bundle

- * @param strKey java.lang.String

- */

-public static String getString( String strKey ) 

-{

-	String strTranslated = strKey;

-

-	// Obtain the set of translated strings

-	//-------------------------------------

-	if( _resourceBundle == null )

-	{

-		try

-		{

-			_resourceBundle = ResourceBundle.getBundle( UpdateManager._strPackageName + ".updatemanagerstrings" );

-		}

-		catch( MissingResourceException ex )

-		{

-			_resourceBundle = null;

-		}

-	}

-

-	// Obtain the translated string

-	//-----------------------------

-	if( _resourceBundle != null )

-	{

-		try

-		{

-			strTranslated = _resourceBundle.getString( strKey );

-		}

-		catch( MissingResourceException ex )

-		{

-			strTranslated = strKey;

-		}

-	}

-

-	return strTranslated;

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerURLComparator.java b/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerURLComparator.java
deleted file mode 100644
index ede4744..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/UpdateManagerURLComparator.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package org.eclipse.update.internal.core;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import org.eclipse.core.internal.boot.update.*;

-import java.net.*;

-/**

- * 

- */

-import java.util.Comparator;

-public class UpdateManagerURLComparator implements Comparator{

-/**

- * UpdateManagerTreeItemComparator constructor comment.

- */

-public UpdateManagerURLComparator() {

-	super();

-}

-/**

- * Compares two strings independent of case.

- * 

- * @return a negative integer, zero, or a positive integer as the

- *         first argument is less than, equal to, or greater than the

- *         second. 

- * @throws ClassCastException if the arguments' types prevent them from

- *         being compared by this Comparator.

- */

-public int compare(java.lang.Object o1, java.lang.Object o2) {

-

-	if (o1 instanceof URLNamePair && o2 instanceof URLNamePair) {

-		return ((URLNamePair) o1).getURL().toExternalForm().toLowerCase().compareTo(((URLNamePair) o2).getURL().toExternalForm().toLowerCase());

-	}

-

-	return 0;

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/core/updatemanagerstrings.properties b/update/org.eclipse.update/src/org/eclipse/update/internal/core/updatemanagerstrings.properties
deleted file mode 100644
index 5cec005..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/core/updatemanagerstrings.properties
+++ /dev/null
@@ -1,112 +0,0 @@
-S_Add                                                     = Add

-S_Additional_Locations                                    = Additional Locations

-S_An_installation_error_or_cancellation_has_occurred      = An installation error or cancellation has occurred

-S_At_the_following_domain                                 = At the following domain

-S_Available                                               = Available

-S_Cancel_component_installation                           = Cancel component installation

-S_Component                                               = Component

-S_Component_identifier                                    = Component identifier

-S_Component_name                                          = Component name

-S_Configuration_Change                                    = Configuration Change

-S_Copy                                                    = Copy

-S_Current_installation                                    = Current installation

-S_Description                                             = Description

-S_Encountered_jar_entry_security_exception                = Encountered jar entry security exception

-S_Enter_a_user_name_and_password_for                      = Enter a user name and password for

-S_Error_closing_output_stream                             = Error closing output stream

-S_Error_in_registry                                       = Error in registry

-S_Error_occurred_during_installation_completion           = Error occurred during installation completion

-S_Error_occurred_during_installation_setup                = Error occurred during installation setup

-S_Error_occurred_during_verification                      = Error occurred during verification

-S_Error_reading_from_input_stream                         = Error reading from input stream

-S_Error_writing_to_output_stream                          = Error writing to output stream

-S_Examining                                               = Examining

-S_File_is_not_a_valid_JAR_file                            = File is not a valid JAR file

-S_File_name                                               = File name

-S_HTTP_client_not_set                                     = HTTP client not set

-S_Identifier                                              = Identifier

-S_Information                                             = Information

-S_Install                                                 = Install

-S_Install_component                                       = Install component

-S_Install_Components                                      = Install Components

-S_Installation                                            = Installation

-S_Installation_cancelled_by_user                          = Installation cancelled by user

-S_Installation_completed                                  = Installation completed

-S_Installations_have_completed_successfully               = Installations have completed successfully

-S_Installed                                               = Installed

-S_Installed_Components                                    = Installed Components

-S_Installing_this_component_may_corrupt_your_installation = Installing this component may corrupt your installation

-S_Location                                                = Location

-S_New_Component_Updates                                   = New Component Updates

-S_New_Components                                          = New Components

-S_No_installable_items_were_found                         = No installable items were found

-S_not_available                                           = not available

-S_not_compatible                                          = not compatible

-S_not_newer                                               = not newer

-S_not_updatable                                           = not updatable

-S_Number_of_installation_histories_to_keep                = Number of installation histories to keep

-S_Obtaining_information                                   = Obtaining information

-S_OK                                                      = OK

-S_optional                                                = optional

-S_Password                                                = Password

-S_Password_Required                                       = Password Required

-S_Predefined_Locations                                    = Predefined Locations

-S_Provider                                                = Provider

-S_Reading                                                 = Reading

-S_Remove                                                  = Remove

-S_Remove_selected_components                              = Remove selected components

-S_Revert                                                  = Revert

-S_Revert_to_a_Previous_Installation                       = Revert to a Previous Installation

-S_Revert_to_another_installation                          = Revert to another installation

-S_Search_for_more_recent_versions_to_install              = Search for more recent versions to install

-S_Search_for_new_components                               = Search for new components

-S_Search_for_updates_for_all_components                   = Search for updates for all components

-S_Search_for_updates_for_selected_components              = Search for updates for selected components

-S_Select_a_previous_installation_to_revert_to             = Select a previous installation to revert to

-S_Select_any_optional_components_to_install               = Select any optional components to install

-S_Select_available_versions_to_install                    = Select available versions to install

-S_Select_components_to_install                            = Select components to install

-S_Select_locations_to_update_from                         = Select locations to update from

-S_Show_only_most_recent_versions                          = Show only most recent versions

-S_Software_Updates                                        = Software Updates

-S_Source_location                                         = Source location

-S_Source_URL_is_malformed                                 = Source URL is malformed

-S_Specify_search_locations_for_new_components             = Specify search locations for new components

-S_Status                                                  = Status

-S_Target_URL_is_malformed                                 = Target URL is malformed

-S_The_certificates_used_to_authenticate_this_component_are_not_recognized = The certificates used to authenticate this component are not recognized

-S_The_content_of_this_component_has_been_corrupted        = The content of this component has been corrupted

-S_The_following_installation_will_become_active_when_the_workbench_is_restarted = The following installation will become active when the workbench is restarted

-S_The_following_items_will_be_installed                   = The following items will be installed

-S_The_following_items_will_be_updated                     = The following items will be updated

-S_The_installation_process_will_be_aborted                = The installation process will be aborted

-S_The_provider_of_this_component_cannot_be_verified       = The provider of this component cannot be verified

-S_This_component_has_not_been_digitally_signed            = This component has not been digitally signed

-S_This_component_will_not_be_installed                    = This component will not be installed

-S_Update                                                  = Update

-S_Update_All                                              = Update All

-S_Updates_completed                                       = Updates completed

-S_Unable_to_access_the_following_locations                = Unable to access the following locations

-S_Unable_to_connect                                       = Unable to connect

-S_Unable_to_create_file                                   = Unable to create file

-S_Unable_to_create_jar_entry_URL                          = Unable to create jar entry URL

-S_Unable_to_create_output_file_for_Jar_entry              = Unable to create output file for Jar entry

-S_Unable_to_delete_file                                   = Unable to delete file

-S_Unable_to_find_install_manifest_file_in_Jar             = Unable to find install manifest file in Jar

-S_Unable_to_find_defined_contents_in_Jar                  = Unable to find defined contents in Jar

-S_Unable_to_obtain_source_input_stream                    = Unable to obtain source input stream

-S_Unable_to_obtain_target_output_stream                   = Unable to obtain target output stream

-S_Unable_to_open_error_logs                               = Unable to open error_logs

-S_Unable_to_open_jar_entry_input_stream                   = Unable to open jar entry input stream

-S_Unable_to_open_Jar_file                                 = Unable to open Jar file

-S_Undefined_contents_found_in_Jar                         = Undefined contents found in Jar

-S_Undo                                                    = Undo

-S_User_name                                               = User name

-S_Verification                                            = Verification

-S_Verification_cancelled                                  = Verification cancelled

-S_Verify                                                  = Verify

-S_Version                                                 = Version

-S_You_are_about_to_install_a_signed_component             = You are about to install a signed component

-S_You_are_about_to_install_an_unsigned_component          = You are about to install an unsigned component

-S_You_may_choose_to_install_the_component_or_cancel_its_installation = You may choose to install the component or cancel its installation

-S_You_must_restart_the_workbench_to_activate_any_changes  = You must restart the workbench to activate any changes

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/AuthorizationDatabase.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/AuthorizationDatabase.java
deleted file mode 100644
index 8d2af15..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/AuthorizationDatabase.java
+++ /dev/null
@@ -1,108 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.net.URL;

-import java.util.Hashtable;

-import java.util.Map;

-

-import org.eclipse.core.runtime.CoreException;

-import org.eclipse.core.runtime.Platform;

-import org.eclipse.swt.widgets.Display;

-import org.eclipse.swt.widgets.Shell;

-import org.eclipse.update.internal.core.UpdateManagerPlugin;

-import org.eclipse.webdav.http.client.IAuthenticator;

-

-/**

- * A transient database that remembers information, such as usernames and

- * passwords.  The information is stored in memory only and is discarted

- * when the Plaform shuts down.

- */

-public class AuthorizationDatabase implements IAuthenticator {

-

-	/**

-	 * The Map containing the userid and password

-	 */

-	private Map result = new Hashtable();

-

-	/**

-	 * 

-	 */

-	public void addAuthenticationInfo(URL serverUrl, String realm, String scheme, Map info) {

-		try {

-			Platform.addAuthorizationInfo(serverUrl, realm, scheme, info);

-		}

-		catch (CoreException e) {

-			UpdateManagerPlugin.getPluginInstance().getLog().log(e.getStatus());

-		}

-	}

-

-	/**

-	 * 

-	 */

-	public void addProtectionSpace(URL resourceUrl, String realm) {

-		try {

-			Platform.addProtectionSpace(resourceUrl, realm);

-		}

-		catch (CoreException e) {

-			UpdateManagerPlugin.getPluginInstance().getLog().log(e.getStatus());

-		}

-

-	}

-	/**

-	 *

-	 */

-	public Map getAuthenticationInfo(URL serverUrl, String realm, String scheme) {

-

-		return Platform.getAuthorizationInfo(serverUrl, realm, scheme);

-	}

-	/**

-	 * 

-	 */

-	public String getProtectionSpace(URL resourceUrl) {

-		return Platform.getProtectionSpace(resourceUrl);

-	}

-	/**

-	 * 

-	 */

-	public Map requestAuthenticationInfo(final URL resourceUrl, final String realm, final String scheme) {

-

-		result = new Hashtable();

-		if (scheme.equalsIgnoreCase("Basic")) {

-

-			Display disp = Display.getCurrent();

-			if (disp != null) {

-				promptForPassword(resourceUrl, realm, result);

-			}

-			else {

-				Display.getDefault().syncExec(new Runnable() {

-					public void run() {

-						promptForPassword(resourceUrl, realm, result);

-					}

-				});

-			};

-		}

-		return result;

-	}

-

-	/**

-	 *

-	 */

-	private void promptForPassword(URL resourceUrl, String realm, Map info) {

-

-		Shell shell = new Shell();

-		UserValidationDialog ui = new UserValidationDialog(shell, resourceUrl, realm, "");

-		ui.setUsernameMutable(true);

-		ui.setBlockOnOpen(true);

-		ui.open();

-

-		if (ui.getReturnCode() != ui.CANCEL) {

-			info.put("username", ui.getUserid());

-			info.put("password", ui.getPassword());

-		}

-		shell.dispose();

-

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Installation.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Installation.java
deleted file mode 100644
index 056f820..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Installation.java
+++ /dev/null
@@ -1,221 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.Date;

-import org.eclipse.core.internal.boot.LaunchInfo;

-import org.eclipse.core.internal.boot.LaunchInfo.History;

-/**

- */

-public class Installation {

-	private static final String STRING_ID = "-id";

-	private static final String STRING_LIST = "-list";

-	private static final String STRING_LOCATION = "-location";

-	private static final String STRING_SET = "-set";

-

-	private boolean _bList = false;

-	private boolean _bSet = false;

-	private String _strLocation = null;

-	private String _strId = null;

-	private int _iId = -1;

-	private LaunchInfo _launchInfo = null;

-	/**

-	 * Installation constructor comment.

-	 */

-	public Installation() {

-		super();

-	}

-	/**

-	 * 

-	 */

-	private String checkCommandLineOptions() {

-

-		// Command

-		//--------

-		if (_bList == true) {

-			if (_bSet == true) {

-				return "Invalid option syntax";

-			}

-		}

-

-		else if (_bSet == true) {

-			if (_bList == true) {

-				return "Invalid option syntax";

-			}

-		}

-

-		else {

-			return "Command missing";

-		}

-

-		// Location

-		//---------

-		if (_strLocation == null || _strLocation.length() == 0) {

-			return "Location missing";

-		}

-

-		URL urlLocation = null;

-

-		try {

-			urlLocation = new URL(_strLocation);

-		}

-		catch (MalformedURLException ex) {

-			return "Invalid location syntax";

-		}

-

-		// Set the location of the installation directory

-		//-----------------------------------------------

-		//	LaunchInfo.startup(urlLocation);

-		_launchInfo = LaunchInfo.getCurrent();

-

-		// Set

-		//----

-		if (_bSet == true) {

-			if (_strId == null || _strId.length() == 0) {

-				return "Installation identifier number missing";

-			}

-

-			try {

-				_iId = new Integer(_strId).intValue();

-			}

-			catch (NumberFormatException ex) {

-				return "Invalid identifier syntax";

-			}

-		}

-

-		return null;

-	}

-	/**

-	 */

-	public String doList() {

-

-		LaunchInfo launchInfoFormer = null;

-

-		LaunchInfo.History[] histories = _launchInfo.getLaunchInfoHistory();

-

-		if (histories.length == 0)

-			return "No histories found";

-

-		if (histories.length == 1 && histories[0].getLaunchInfoDate() == null)

-			return "No histories found";

-

-		// Same order as doSet()

-		// Most recent to oldest order

-		//----------------------------

-		int iIndex = 1;

-

-		for (int i = histories.length - 1; i >= 0; --i) {

-

-			Date date = histories[i].getLaunchInfoDate();

-

-			// Older profile

-			//--------------

-			if (date != null) {

-				System.out.println(Integer.toString(iIndex++) + " " + histories[i].getLaunchInfoDate().toString());

-			}

-		}

-

-		return null;

-	}

-	/**

-	 * 

-	 */

-	public String doSet() {

-

-		LaunchInfo.History[] histories = _launchInfo.getLaunchInfoHistory();

-

-		if (_iId < histories.length) {

-

-			int iIndex = 1;

-

-			// Same algorithm as doList()

-			// Most recent to oldest order

-			//----------------------------

-			for (int i = histories.length - 1; i >= 0; --i) {

-

-				Date date = histories[i].getLaunchInfoDate();

-

-				// Older profile

-				//--------------

-				if (date != null) {

-					if (iIndex == _iId) {

-						_launchInfo.revertTo(histories[i]);

-						System.out.println(date.toString());

-						return null;

-					}

-					else {

-						iIndex++;

-					}

-				}

-			}

-		}

-

-		return "Identifier not found";

-	}

-	/**

-	 */

-	public static void main(String[] args) {

-

-		Installation installation = new Installation();

-

-		installation.parseCommandLineOptions(args);

-

-		String strError = installation.checkCommandLineOptions();

-

-		if (strError == null) {

-			if (installation._bList == true)

-				strError = installation.doList();

-

-			else if (installation._bSet == true)

-				strError = installation.doSet();

-		}

-

-		if (strError != null) {

-			System.out.println(strError);

-			printUsage();

-			System.exit(-1);

-		}

-	}

-	/**

-	 */

-	public void parseCommandLineOptions(String[] straArgs) {

-

-		for (int i = 0; i < straArgs.length; ++i) {

-

-			// Command: List

-			//--------------

-			if (straArgs[i].equalsIgnoreCase(STRING_LIST) == true) {

-				_bList = true;

-			}

-

-			// Command: Set

-			//-------------

-			else if (straArgs[i].equalsIgnoreCase(STRING_SET) == true) {

-				_bSet = true;

-			}

-

-			// Location to install from

-			//-------------------------

-			else if (straArgs[i].equalsIgnoreCase(STRING_LOCATION) == true && i < straArgs.length - 1) {

-				_strLocation = straArgs[++i];

-			}

-

-			// Identifier

-			//-----------

-			else if (straArgs[i].equalsIgnoreCase(STRING_ID) == true && i < straArgs.length - 1) {

-				_strId = straArgs[++i];

-			}

-		}

-	}

-	/**

-	 */

-	public static void printUsage() {

-		System.out.println("");

-		System.out.println("-list -location urlPath");

-		System.out.println("-set  -location urlPath -id number");

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationDialog.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationDialog.java
deleted file mode 100644
index 6d5389d..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationDialog.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationResult.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationResult.java
deleted file mode 100644
index 1711181..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationResult.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- * Result of the service

- */

-public class JarVerificationResult {

-

-	public static final int CANCEL_INSTALL = 0;

-	public static final int OK_TO_INSTALL = 1;

-

-	private int resultCode;

-	private Exception resultException;

-	/**

-	 */

-	public int getResultCode() {

-		return resultCode;

-	}

-	/**

-	 */

-	public Exception getResultException() {

-		return resultException;

-	}

-	/**

-	 */

-	public void setResultCode(int newResultCode) {

-		resultCode = newResultCode;

-	}

-	/**

-	 * called by JarVerificationService only

-	 */

-	void setResultException(Exception newResultException) {

-		resultException = newResultException;

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationService.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationService.java
deleted file mode 100644
index 69b4339..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerificationService.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerifier.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerifier.java
deleted file mode 100644
index dda11d7..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/JarVerifier.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/KeyStores.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/KeyStores.java
deleted file mode 100644
index 7284e0a..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/KeyStores.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Main.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Main.java
deleted file mode 100644
index e0f0367..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/Main.java
+++ /dev/null
@@ -1,181 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.net.*;

-import java.lang.reflect.*;

-import java.io.PrintWriter;

-import java.util.StringTokenizer;

-import java.util.Vector;

-/**

- * Startup class for Eclipse. Creates a class loader using

- * supplied URL of platform installation, loads and calls

- * the Eclipse Boot Loader

- */

-public class Main {

-	protected boolean debug = false;

-	protected boolean usage = false;

-	protected String bootLocation = null;

-	protected String application;

-	protected URL pluginPathLocation;

-	protected String location;

-

-	// constants

-	private static final String APPLICATION = "-application";

-	private static final String BOOT = "-boot";

-	private static final String DEBUG = "-debug";

-	private static final String USAGE = "-?";

-	private static final String BOOTLOADER = "org.eclipse.core.boot.BootLoader";

-

-	// The project containing the boot loader code.  This is used to construct

-	// the correct class path for running in VAJ and VAME.

-	private static final String PROJECT_NAME = "Eclipse Core Boot";

-

-	private static boolean inVAJ;

-	static {

-		try {

-			Class.forName("com.ibm.uvm.lang.ProjectClassLoader");

-			inVAJ = true;

-		} catch (Exception e) {

-			inVAJ = false;

-		}

-	}

-	private static boolean inVAME;

-	static {

-		try {

-			Class.forName("com.ibm.eclipse.VAME");

-			inVAME = true;

-		} catch (Exception e) {

-			inVAME = false;

-		}

-	}

-

-protected void basicRun(String[] args) throws Exception {

-	Class clazz = getBootLoader(bootLocation);

-	Method method = clazz.getDeclaredMethod("run", new Class[] { String.class, URL.class, String.class, String[].class });

-	try {

-		method.invoke(clazz, new Object[] { application, pluginPathLocation, location, args });

-	} catch (InvocationTargetException e) {

-		if (e.getTargetException() instanceof Error)

-			throw (Error) e.getTargetException();

-		else

-			throw e;

-	}

-}

-public Class getBootLoader(String base) throws Exception {

-	URLClassLoader loader = new URLClassLoader(new URL[] { getBootURL(base)}, null);

-	return loader.loadClass(BOOTLOADER);

-}

-/**

- * Returns the <code>URL</code> where the boot classes are located.

- */

-protected URL getBootURL(String base) throws MalformedURLException {

-	URL url = null;

-	if (base != null) 

-		return new URL(base);

-	// Create a URL based on the location of this class' code.

-	// strip off jar file and/or last directory to get 

-	// to the directory containing projects.

-	url = getClass().getProtectionDomain().getCodeSource().getLocation();

-	String path = url.getFile();

-	if (path.endsWith(".jar"))

-		path = path.substring(0, path.lastIndexOf("/"));

-	if (path.endsWith("/"))

-		path = path.substring(0, path.length() - 1);

-	if (inVAJ || inVAME) {

-		int ix = path.lastIndexOf("/");

-		path = path.substring(0, ix + 1);

-		path = path + PROJECT_NAME + "/";

-	} else

-		path = path + "/plugins/org.eclipse.core.boot/boot.jar";

-	return new URL(url.getProtocol(), url.getHost(), url.getPort(), path);

-}

-/**

- * Print the usage of this launcher on the system console

- */

-protected void printUsage(PrintWriter out) {

-	out.println("The general form of using the Platform bootstrap main is:");

-	out.println("      java <main class> -application <name> [option list]");

-	out.println("where the required arguments are:");

-	out.println("      -application <name> : the application to run ");

-	out.println("and where the option list can be any number of the following:");

-	out.println("      -platform <location> : run in the given location");

-	out.println("      -debug [debug options file] : turn on debug mode.  Read debug options from ");

-	out.println("          the specified file or from ./.options if not specified.");

-	out.println("      -? : print this message");

-	out.flush();

-}

-protected String[] processCommandLine(String[] args) throws Exception {

-	int[] configArgs = new int[100];

-	configArgs[0] = -1; // need to initialize the first element to something that could not be an index.

-	int configArgIndex = 0;

-	for (int i = 0; i < args.length; i++) {

-		boolean found = false;

-		// check for args without parameters (i.e., a flag arg)

-		// check if debug should be enabled for the entire platform

-		if (args[i].equalsIgnoreCase(DEBUG)) {

-			debug = true;

-			// passed thru this arg (i.e., do not set found = true

-		}

-

-		// look for the usage flag

-		if (args[i].equalsIgnoreCase(USAGE)) {

-			usage = true;

-			// passed thru this arg (i.e., do not set found = true

-		}

-

-		if (found) {

-			configArgs[configArgIndex++] = i;

-			continue;

-		}

-		// check for args with parameters. If we are at the last argument or if the next one

-		// has a '-' as the first character, then we can't have an arg with a parm so continue.

-		if (i == args.length - 1 || args[i + 1].startsWith("-")) {

-			continue;

-		}

-		String arg = args[++i];

-

-		// look for the laucher to run

-		if (args[i - 1].equalsIgnoreCase(BOOT)) {

-			found = true;

-			bootLocation = arg;

-		}

-

-		// look for the application to run

-		if (args[i - 1].equalsIgnoreCase(APPLICATION)) {

-			found = true;

-			application = arg;

-		}

-

-		// done checking for args.  Remember where an arg was found 

-		if (found) {

-			configArgs[configArgIndex++] = i - 1;

-			configArgs[configArgIndex++] = i;

-		}

-	}

-

-	// remove all the arguments consumed by this argument parsing

-	if (configArgIndex == 0)

-		return args;

-	String[] passThruArgs = new String[args.length - configArgIndex];

-	configArgIndex = 0;

-	int j = 0;

-	for (int i = 0; i < args.length; i++) {

-		if (i == configArgs[configArgIndex])

-			configArgIndex++;

-		else

-			passThruArgs[j++] = args[i];

-	}

-	return passThruArgs;

-}

-public void run(String[] args) throws Exception {

-	String[] passThruArgs = processCommandLine(args);

-	if (usage) {

-		printUsage(new PrintWriter(System.out));

-		return;

-	}

-	basicRun(passThruArgs);

-}

-}

diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplication.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplication.java
deleted file mode 100644
index 3bb792a..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplication.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/* 

- * Update Manager Install Application

- *

- * Command to run from command line:

- *

- *.\jre\bin\java -verify -cp startup.jar org.eclipse.core.launcher.UIMain -application org.eclipse.update.internal.ui.updateManager -install -url http://klicnik.torolab.ibm.com/eclipse/site/ -id org.eclipse.sdk %*

- *

- *

- * Arguments are:

- *   -install   Install command

- *   -url [url] Location from which to install from

- *   -id  [id]  Identifier of the manifest to install

- *

- * Sample:

- *   -install -url file:/c:/temp/updatesite/ -id org.eclipse.sdk

- */

-import java.util.StringTokenizer;

-import java.util.Vector;

-

-public class UMApplication extends Main {

-	private static final String DEFAULT_APPLICATION = "org.eclipse.update.internal.ui.updateManager";

-	public UMApplication() {

-		super();

-		application = DEFAULT_APPLICATION;

-	}

-	public static void main(String[] args) {

-

-		int iReturnCode = 0;

-

-		try {

-			new UMApplication().run(args);

-		}

-

-		catch (Exception e) {

-		}

-

-		System.exit(0);

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterface.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterface.java
deleted file mode 100644
index 2543bc2..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterface.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterfaceProperties.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterfaceProperties.java
deleted file mode 100644
index ac84b0b..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationUserInterfaceProperties.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationWindow.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationWindow.java
deleted file mode 100644
index 9d6394b..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMApplicationWindow.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialog.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialog.java
deleted file mode 100644
index a098936..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialog.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialogAction.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialogAction.java
deleted file mode 100644
index 19dd3d4..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMDialogAction.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMPreferencePageSettings.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMPreferencePageSettings.java
deleted file mode 100644
index d5a2709..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMPreferencePageSettings.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizard.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizard.java
deleted file mode 100644
index 0adbc08..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizard.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageComplete.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageComplete.java
deleted file mode 100644
index 5d3a7ec..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageComplete.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstallable.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstallable.java
deleted file mode 100644
index b2803d4..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstallable.java
+++ /dev/null
@@ -1,1333 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-import java.io.InputStream;

-import java.lang.reflect.InvocationTargetException;

-import java.net.MalformedURLException;

-import java.net.URL;

-import java.util.Hashtable;

-import java.util.Iterator;

-import java.util.TreeSet;

-import java.util.Vector;

-

-import org.eclipse.core.internal.boot.update.IComponentDescriptor;

-import org.eclipse.core.internal.boot.update.IComponentEntryDescriptor;

-import org.eclipse.core.internal.boot.update.IManifestDescriptor;

-import org.eclipse.core.internal.boot.update.IProductDescriptor;

-import org.eclipse.core.internal.boot.update.IUMRegistry;

-import org.eclipse.core.internal.boot.update.UMEclipseTree;

-import org.eclipse.core.internal.boot.update.URLNamePair;

-import org.eclipse.core.internal.boot.update.UpdateManagerConstants;

-import org.eclipse.core.internal.boot.update.BaseURLHandler.Response;

-import org.eclipse.core.runtime.IProgressMonitor;

-import org.eclipse.jface.dialogs.MessageDialog;

-import org.eclipse.jface.operation.IRunnableWithProgress;

-import org.eclipse.jface.viewers.ColumnLayoutData;

-import org.eclipse.jface.viewers.ColumnWeightData;

-import org.eclipse.jface.viewers.TableLayout;

-import org.eclipse.jface.wizard.WizardPage;

-import org.eclipse.swt.SWT;

-import org.eclipse.swt.custom.SashForm;

-import org.eclipse.swt.custom.TableTree;

-import org.eclipse.swt.custom.TableTreeItem;

-import org.eclipse.swt.events.MouseEvent;

-import org.eclipse.swt.events.MouseMoveListener;

-import org.eclipse.swt.events.MouseTrackListener;

-import org.eclipse.swt.events.SelectionEvent;

-import org.eclipse.swt.events.SelectionListener;

-import org.eclipse.swt.graphics.Point;

-import org.eclipse.swt.layout.GridData;

-import org.eclipse.swt.layout.GridLayout;

-import org.eclipse.swt.widgets.Button;

-import org.eclipse.swt.widgets.Composite;

-import org.eclipse.swt.widgets.TableColumn;

-import org.eclipse.swt.widgets.TableItem;

-import org.eclipse.swt.widgets.Text;

-import org.eclipse.update.internal.core.URLHandler;

-import org.eclipse.update.internal.core.UpdateManagerStrings;

-import org.eclipse.webdav.http.client.IStatusCodes;

-

-/**

- * Presents products and components that may be selected for installation.

- */

-public class UMWizardPageInstallable extends WizardPage implements MouseMoveListener, MouseTrackListener, SelectionListener {

-	protected boolean _bRefreshRequired = true;

-	protected UMWizard _wizard = null;

-	protected TableTree _tableTreeItems = null;

-	protected Hashtable _hashRegistryCache = new Hashtable();

-	protected TreeSet _treeSetItems = null;

-	protected TreeSet _treeSetLocations = null;

-	protected Text _textDescription = null;

-	protected String _strDescription = null;

-	protected boolean _bUpdateMode = false;

-	protected SashForm _sashFormTopBottom = null;

-	protected IProgressMonitor _progressMonitor = null;

-	protected URLNamePair[] _urlNamePairs = null;

-	protected Button _buttonShowLatestOnly = null;

-	protected boolean _bShowLatestOnly = true;

-	/**

-	 *

-	 */

-	public UMWizardPageInstallable(UMWizard wizard, String strName, boolean bUpdateMode) {

-		super(strName);

-		_wizard = wizard;

-		_bUpdateMode = bUpdateMode;

-

-		if (bUpdateMode == true) {

-			this.setTitle(UpdateManagerStrings.getString("S_New_Component_Updates"));

-			this.setDescription(UpdateManagerStrings.getString("S_Select_available_versions_to_install"));

-		}

-		else {

-			this.setTitle(UpdateManagerStrings.getString("S_New_Components"));

-			this.setDescription(UpdateManagerStrings.getString("S_Select_components_to_install"));

-		}

-	}

-	/**

-	 * 

-	 */

-	public void addLocationToTree(IUMRegistry registryRemote, IUMRegistry registryLocal, IProgressMonitor progressMonitor) {

-

-		UMWizardTreeItem itemProduct = null;

-		UMWizardTreeItem itemComponent = null;

-		UMWizardTreeItem itemComponentEntry = null;

-		UMWizardTreeItem itemLocation = null;

-		UMWizardTreeItem itemComponentCategory = null;

-		UMWizardTreeItem itemProductCategory = null;

-

-		IProductDescriptor descriptorLocalProduct = null;

-		IProductDescriptor[] descriptorsProduct = null;

-		IComponentDescriptor descriptorLocalComponent = null;

-		IComponentDescriptor[] descriptorsComponent = null;

-		IComponentEntryDescriptor[] descriptorsEntry = null;

-

-		// Obtain descriptors

-		//-------------------

-		if (_bShowLatestOnly == true) {

-			descriptorsProduct = registryRemote.getProductDescriptors();

-			descriptorsComponent = registryRemote.getComponentDescriptors();

-		}

-		else {

-			descriptorsProduct = registryRemote.getAllProductDescriptors();

-			descriptorsComponent = registryRemote.getAllComponentDescriptors();

-		}

-

-		if (descriptorsProduct.length + descriptorsComponent.length > 0) {

-

-			itemLocation = new UMWizardTreeItem();

-			itemLocation._iType = UpdateManagerConstants.TYPE_URL;

-			itemLocation._strDescription = registryRemote.getRegistryBaseURL().toExternalForm();

-			itemLocation._strName = getURLDescription(itemLocation._strDescription);

-			itemLocation._strURLUpdate = itemLocation._strName;

-

-			progressMonitor.beginTask(UpdateManagerStrings.getString("S_Examining") + ":", descriptorsProduct.length + descriptorsComponent.length);

-			progressMonitor.subTask(itemLocation._strName);

-

-			IManifestDescriptor[] descriptorsSelected = _wizard._manifestDescriptors;

-

-			boolean bIncludeThisOne = false;

-

-			// Products

-			//---------

-			if (descriptorsProduct.length > 0) {

-

-				itemProductCategory = new UMWizardTreeItem();

-				itemProductCategory._iType = UpdateManagerConstants.TYPE_PRODUCT_CATEGORY;

-				itemProductCategory._strName = "products";

-

-				// Add product category to location tree later

-				//--------------------------------------------

-				IProductDescriptor descriptorProductSelected = null;

-

-				for (int i = 0; i < descriptorsProduct.length; ++i) {

-

-					// Include all if selected descriptors is null

-					// Otherwise, include only those selected

-					//--------------------------------------------

-					bIncludeThisOne = true;

-

-					if (descriptorsSelected != null) {

-						bIncludeThisOne = false;

-

-						for (int j = 0; j < descriptorsSelected.length; ++j) {

-							if (descriptorsSelected[j] instanceof IProductDescriptor) {

-								descriptorProductSelected = (IProductDescriptor) descriptorsSelected[j];

-								if (descriptorProductSelected.getUniqueIdentifier() != null) {

-									if (descriptorProductSelected.getUniqueIdentifier().equals(descriptorsProduct[i].getUniqueIdentifier()) == true) {

-										bIncludeThisOne = true;

-										break;

-									}

-								}

-							}

-						}

-					}

-

-					// Display only non-installed items

-					//---------------------------------

-					if (_bUpdateMode == false) {

-						if (registryLocal.getProductDescriptor(descriptorsProduct[i].getUniqueIdentifier()) != null) {

-							bIncludeThisOne = false;

-						}

-					}

-

-					if (bIncludeThisOne == true) {

-						itemProduct = new UMWizardTreeItem();

-						itemProduct._iType = UpdateManagerConstants.TYPE_PRODUCT;

-						itemProduct._strDescription = descriptorsProduct[i].getDescription();

-						itemProduct._strName = descriptorsProduct[i].getLabel();

-						itemProduct._strId = descriptorsProduct[i].getUniqueIdentifier();

-						itemProduct._strVendorName = descriptorsProduct[i].getProviderName();

-						itemProduct._strVersionAvailable = descriptorsProduct[i].getVersionStr();

-						itemProduct._descriptorAvailable = descriptorsProduct[i];

-

-						descriptorLocalProduct = registryLocal.getProductDescriptor(itemProduct._strId);

-

-						if (descriptorLocalProduct != null) {

-							itemProduct._descriptorCurrent = descriptorLocalProduct;

-							itemProduct._strVersionCurrent = descriptorLocalProduct.getVersionStr();

-						}

-

-						itemProductCategory.addChildItem(itemProduct);

-

-						// Component entries of the product

-						//---------------------------------

-						descriptorsEntry = descriptorsProduct[i].getComponentEntries();

-

-						for (int j = 0; j < descriptorsEntry.length; ++j) {

-

-							// Turn off selected flag

-							//-----------------------

-							descriptorsEntry[j].isSelected(false);

-							itemComponentEntry = new UMWizardTreeItem();

-							itemComponentEntry._iType = UpdateManagerConstants.TYPE_COMPONENT_ENTRY;

-							itemComponentEntry._strName = descriptorsEntry[j].getLabel();

-							itemComponentEntry._strId = descriptorsEntry[j].getUniqueIdentifier();

-							itemComponentEntry._strVersionAvailable = descriptorsEntry[j].getVersionStr();

-							itemComponentEntry._descriptorEntry = descriptorsEntry[j];

-

-							descriptorLocalComponent = registryLocal.getComponentDescriptor(itemComponentEntry._strId);

-

-							if (descriptorLocalComponent != null) {

-								itemComponentEntry._strVersionCurrent = descriptorLocalComponent.getVersionStr();

-								itemComponentEntry._strVendorName = descriptorLocalComponent.getProviderName();

-								itemComponentEntry._descriptorCurrent = descriptorLocalComponent;

-							}

-

-							itemProduct.addChildItem(itemComponentEntry);

-						}

-					}

-

-					progressMonitor.worked(1);

-				}

-

-				// Add component category if there are any components

-				//---------------------------------------------------

-				if (itemProductCategory._vectorChildren != null && itemProductCategory._vectorChildren.size() > 0) {

-					itemLocation.addChildItem(itemProductCategory);

-				}

-			}

-

-			// Components

-			//-----------

-			if (descriptorsComponent.length > 0) {

-

-				itemComponentCategory = new UMWizardTreeItem();

-				itemComponentCategory._iType = UpdateManagerConstants.TYPE_COMPONENT_CATEGORY;

-				itemComponentCategory._strName = "components";

-

-				// Add product category to location tree later

-				//--------------------------------------------

-				IComponentDescriptor descriptorComponentSelected = null;

-				for (int i = 0; i < descriptorsComponent.length; ++i) {

-

-					// Include all if selected descriptors is null

-					// Otherwise, include only those selected

-					//--------------------------------------------

-					bIncludeThisOne = true;

-					if (descriptorsSelected != null) {

-						bIncludeThisOne = false;

-						for (int j = 0; j < descriptorsSelected.length; ++j) {

-							if (descriptorsSelected[j] instanceof IComponentDescriptor) {

-								descriptorComponentSelected = (IComponentDescriptor) descriptorsSelected[j];

-								if (descriptorComponentSelected.getUniqueIdentifier() != null) {

-									if (descriptorComponentSelected.getUniqueIdentifier().equals(descriptorsComponent[i].getUniqueIdentifier()) == true) {

-										bIncludeThisOne = true;

-										break;

-									}

-								}

-							}

-						}

-					}

-

-					// Display only non-installed items

-					//---------------------------------

-					if (_bUpdateMode == false) {

-						if (registryLocal.getComponentDescriptor(descriptorsComponent[i].getUniqueIdentifier()) != null) {

-							bIncludeThisOne = false;

-						}

-					}

-

-					if (bIncludeThisOne == true) {

-						itemComponent = new UMWizardTreeItem();

-						itemComponent._iType = UpdateManagerConstants.TYPE_COMPONENT;

-						itemComponent._strDescription = descriptorsComponent[i].getDescription();

-						itemComponent._strName = descriptorsComponent[i].getLabel();

-						itemComponent._strId = descriptorsComponent[i].getUniqueIdentifier();

-						itemComponent._strVendorName = descriptorsComponent[i].getProviderName();

-						itemComponent._strVersionAvailable = descriptorsComponent[i].getVersionStr();

-						itemComponent._descriptorAvailable = descriptorsComponent[i];

-

-						descriptorLocalComponent = registryLocal.getComponentDescriptor(itemComponent._strId);

-

-						if (descriptorLocalComponent != null) {

-							itemComponent._strVersionCurrent = descriptorLocalComponent.getVersionStr();

-							itemComponent._descriptorCurrent = descriptorLocalComponent;

-						}

-

-						itemComponentCategory.addChildItem(itemComponent);

-					}

-					progressMonitor.worked(1);

-				}

-

-				// Add component category if there are any components

-				//---------------------------------------------------

-				if (itemComponentCategory._vectorChildren != null && itemComponentCategory._vectorChildren.size() > 0) {

-					itemLocation.addChildItem(itemComponentCategory);

-				}

-			}

-			progressMonitor.done();

-

-			// Add location if there are any products/components

-			//---------------------------------------------------       

-			if (itemLocation._vectorChildren != null && itemLocation._vectorChildren.size() > 0) {

-				_treeSetItems.add(itemLocation);

-			}

-		}

-	}

-	/**

-	 *

-	 */

-	public void connectToTree() {

-

-		// Remove all existing tree items

-		//-------------------------------

-		_tableTreeItems.removeAll();

-

-		UMWizardTreeItem item = null;

-

-		Iterator iter = _treeSetItems.iterator();

-

-		while (iter.hasNext() == true) {

-

-			item = (UMWizardTreeItem) iter.next();

-

-			// Create a new tree item for the top level (URL)

-			//-----------------------------------------------

-			TableTreeItem treeItem = new TableTreeItem(_tableTreeItems, SWT.NULL);

-

-			if (item._strName != null)

-				treeItem.setText(0, item._strName);

-

-			if (item._strVendorName != null)

-				treeItem.setText(4, item._strVendorName);

-

-			treeItem.setData(item);

-

-			// Create child tree items

-			//------------------------

-			if (item._vectorChildren != null) {

-				for (int i = 0; i < item._vectorChildren.size(); ++i) {

-					connectToTree((UMWizardTreeItem) item._vectorChildren.elementAt(i), treeItem);

-				}

-			}

-

-			treeItem.setExpanded(true);

-		}

-	}

-	/**

-	 * Connects items to a new tree widget.

-	 */

-	public void connectToTree(UMWizardTreeItem item, TableTreeItem treeItemParent) {

-

-		// Ignore product category and component category items

-		//-----------------------------------------------------

-		TableTreeItem treeItem = treeItemParent;

-

-		// Create a new tree item

-		//-----------------------

-		if (item._iType == UpdateManagerConstants.TYPE_PRODUCT || item._iType == UpdateManagerConstants.TYPE_COMPONENT || item._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY) {

-

-			treeItem = new TableTreeItem(treeItemParent, SWT.NULL);

-			treeItem.setText(0, item._strName);

-			treeItem.setData(item);

-

-			// Table text

-			//-----------

-			if (item._strVersionCurrent != null)

-				treeItem.setText(1, item._strVersionCurrent);

-

-			if (item._strVersionAvailable != null)

-				treeItem.setText(2, item._strVersionAvailable);

-

-			if (item._strVendorName != null)

-				treeItem.setText(4, item._strVendorName);

-

-			// Status text

-			//------------

-			boolean bInstallable = false;

-

-			if (item._iType == UpdateManagerConstants.TYPE_PRODUCT) {

-				int iInstallable = isInstallableProduct(treeItem);

-				treeItem.setText(3, convertInstallableToString(iInstallable));

-			}

-

-			else if (item._iType == UpdateManagerConstants.TYPE_COMPONENT) {

-				int iInstallable = isInstallableComponent(treeItem);

-				treeItem.setText(3, convertInstallableToString(iInstallable));

-			}

-

-			else if (item._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY) {

-

-				int iInstallable = isInstallableComponentEntry(treeItem);

-				treeItem.setText(3, convertInstallableToString(iInstallable));

-

-				if (iInstallable == UpdateManagerConstants.OK_TO_INSTALL) {

-					// Optional installation

-					//---------------------- 

-					if (item._descriptorEntry.isOptionalForInstall() == true) {

-						treeItem.setText(3, UpdateManagerStrings.getString("S_optional"));

-					}

-				}

-				else {

-					treeItem.setText(3, convertInstallableToString(iInstallable));

-				}

-			}

-		}

-

-		// Create child tree items

-		//------------------------

-		if (item._vectorChildren != null) {

-			for (int i = 0; i < item._vectorChildren.size(); ++i) {

-				connectToTree((UMWizardTreeItem) item._vectorChildren.elementAt(i), treeItem);

-			}

-		}

-

-		// Expand only after children have been created

-		//---------------------------------------------

-		if (item._iType != UpdateManagerConstants.TYPE_PRODUCT)

-			treeItem.setExpanded(true);

-

-		return;

-	}

-	/**

-	 * Converts installable constant to a displayable string

-	 */

-	public String convertInstallableToString(int iInstallable) {

-

-		switch (iInstallable) {

-			case UpdateManagerConstants.NOT_COMPATIBLE :

-				return UpdateManagerStrings.getString("S_not_compatible");

-			case UpdateManagerConstants.NOT_NEWER :

-				return UpdateManagerStrings.getString("S_not_newer");

-			case UpdateManagerConstants.NOT_UPDATABLE :

-				return UpdateManagerStrings.getString("S_not_updatable");

-			case UpdateManagerConstants.NOT_AVAILABLE :

-				return UpdateManagerStrings.getString("S_not_available");

-			default :

-				return "";

-		}

-	}

-	/**

-	 * createContents method comment.

-	 */

-	public void createControl(Composite compositeParent) {

-		// Content

-		//--------

-		Composite compositeContent = new Composite(compositeParent, SWT.NULL);

-

-		GridLayout layout = new GridLayout();

-		compositeContent.setLayout(layout);

-

-		GridData gridData = new GridData();

-		gridData.horizontalAlignment = GridData.FILL;

-		gridData.verticalAlignment = GridData.FILL;

-		gridData.grabExcessHorizontalSpace = true;

-		gridData.grabExcessVerticalSpace = true;

-		compositeContent.setLayoutData(gridData);

-

-		// Checkbox: Show most recent versions only

-		//-----------------------------------------

-		_buttonShowLatestOnly = new Button(compositeContent, SWT.CHECK);

-		_buttonShowLatestOnly.setText(UpdateManagerStrings.getString("S_Show_only_most_recent_versions"));

-		_buttonShowLatestOnly.setSelection(_bShowLatestOnly);

-		_buttonShowLatestOnly.addSelectionListener(this);

-

-		// SashPane Top/Bottom

-		//--------------------

-		_sashFormTopBottom = new SashForm(compositeContent, SWT.VERTICAL);

-

-		gridData = new GridData();

-		gridData.horizontalAlignment = GridData.FILL;

-		gridData.verticalAlignment = GridData.FILL;

-		gridData.grabExcessHorizontalSpace = true;

-		gridData.grabExcessVerticalSpace = true;

-		_sashFormTopBottom.setLayoutData(gridData);

-

-		// Tree: Installable

-		//------------------

-		_tableTreeItems = new TableTree(_sashFormTopBottom, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER | SWT.CHECK);

-

-		String[] columnTitles = { UpdateManagerStrings.getString("S_Component"), UpdateManagerStrings.getString("S_Installed"), UpdateManagerStrings.getString("S_Available"), UpdateManagerStrings.getString("S_Status"), UpdateManagerStrings.getString("S_Provider")};

-		int[] iColumnWeight = { 40, 15, 15, 15, 15 };

-		TableLayout layoutTable = new TableLayout();

-

-		for (int i = 0; i < columnTitles.length; i++) {

-			TableColumn tableColumn = new TableColumn(_tableTreeItems.getTable(), SWT.NONE);

-			tableColumn.setText(columnTitles[i]);

-			ColumnLayoutData cLayout = new ColumnWeightData(iColumnWeight[i], true);

-			layoutTable.addColumnData(cLayout);

-		}

-

-		_tableTreeItems.getTable().setLinesVisible(true);

-		_tableTreeItems.getTable().setHeaderVisible(true);

-		_tableTreeItems.getTable().setLayout(layoutTable);

-		_tableTreeItems.getTable().addMouseMoveListener(this);

-		_tableTreeItems.getTable().addMouseTrackListener(this);

-

-		_tableTreeItems.addSelectionListener(this);

-

-		gridData = new GridData();

-		gridData.horizontalAlignment = GridData.FILL;

-		gridData.verticalAlignment = GridData.FILL;

-		gridData.grabExcessHorizontalSpace = true;

-		gridData.grabExcessVerticalSpace = true;

-		_tableTreeItems.setLayoutData(gridData);

-

-		// Text: Description

-		//------------------

-		_textDescription = new Text(_sashFormTopBottom, SWT.WRAP | SWT.READ_ONLY | SWT.MULTI | SWT.BORDER);

-		gridData = new GridData();

-		gridData.horizontalAlignment = GridData.FILL;

-		gridData.verticalAlignment = GridData.FILL;

-		gridData.heightHint = 50;

-		_textDescription.setLayoutData(gridData);

-

-		_sashFormTopBottom.setWeights(new int[] { 80, 20 });

-

-		setControl(compositeContent);

-

-		setPageComplete(false);

-	}

-	/**

-	 * 

-	 */

-	public IUMRegistry getRegistryAt(String strLocation) {

-

-		IUMRegistry registry = (IUMRegistry) _hashRegistryCache.get(strLocation);

-

-		// Create new entry if not found

-		//------------------------------

-		if (registry == null) {

-			URL url = null;

-

-			try {

-				url = new URL(strLocation);

-			}

-			catch (MalformedURLException ex) {

-				return null;

-			}

-

-			registry = _wizard._updateManager.getRegistryAt(url);

-

-			if (registry != null) {

-				_hashRegistryCache.put(strLocation, registry);

-			}

-		}

-

-		return registry;

-	}

-	/**

-	 * 

-	 */

-	public UMWizardTreeItem[] getSelectedItems() {

-

-		UMWizardTreeItem[] items = null;

-

-		// Obtain all selected items

-		//--------------------------

-		TableTreeItem[] treeItemChildren = _tableTreeItems.getItems();

-

-		// Place them into an array

-		//-------------------------

-		Hashtable hashProducts = new Hashtable();

-		Hashtable hashComponents = new Hashtable();

-		Hashtable hashComponentEntries = new Hashtable();

-

-		for (int i = 0; i < treeItemChildren.length; ++i) {

-			getSelectedItemsRecursive(treeItemChildren[i], hashProducts, hashComponents, hashComponentEntries);

-		}

-

-		// Copy items to an array

-		//-----------------------

-		items = new UMWizardTreeItem[hashProducts.size() + hashComponents.size() + hashComponentEntries.size()];

-

-		// Products

-		//---------

-		Object[] objArray = hashProducts.values().toArray();

-		System.arraycopy(objArray, 0, items, 0, objArray.length);

-

-		// Components

-		//-----------

-		objArray = hashComponents.values().toArray();

-		System.arraycopy(objArray, 0, items, hashProducts.size(), objArray.length);

-

-		// Component Entries

-		//------------------

-		objArray = hashComponentEntries.values().toArray();

-		System.arraycopy(objArray, 0, items, hashProducts.size() + hashComponents.size(), objArray.length);

-

-		return items;

-	}

-	/**

-	 * 

-	 */

-	public void getSelectedItemsRecursive(TableTreeItem treeItem, Hashtable hashProducts, Hashtable hashComponents, Hashtable hashComponentEntries) {

-

-		// Obtain all selected items

-		//--------------------------

-		UMWizardTreeItem umTreeItem = null;

-

-		if (treeItem.getChecked() == true) {

-			umTreeItem = (UMWizardTreeItem) treeItem.getData();

-

-			if (umTreeItem != null) {

-				if (umTreeItem._iType == UpdateManagerConstants.TYPE_PRODUCT) {

-

-					// Remove duplicates by storing newer ones only

-					//---------------------------------------------

-					if (hashProducts.containsKey(umTreeItem._strId) == true) {

-						UMWizardTreeItem umTreeItemPrevious = (UMWizardTreeItem) hashProducts.get(umTreeItem._strId);

-						if (((IProductDescriptor) umTreeItem._descriptorAvailable).compare((IProductDescriptor) umTreeItemPrevious._descriptorAvailable) > 0) {

-							hashProducts.remove(umTreeItem._strId);

-							hashProducts.put(umTreeItem._strId, umTreeItem);

-						}

-					}

-					else {

-						hashProducts.put(umTreeItem._strId, umTreeItem);

-					}

-				}

-

-				else if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT) {

-

-					// Remove duplicates by storing newer ones only

-					//---------------------------------------------

-					if (hashComponents.containsKey(umTreeItem._strId) == true) {

-						UMWizardTreeItem umTreeItemPrevious = (UMWizardTreeItem) hashComponents.get(umTreeItem._strId);

-						if (((IComponentDescriptor) umTreeItem._descriptorAvailable).compare((IComponentDescriptor) umTreeItemPrevious._descriptorAvailable) > 0) {

-							hashComponents.remove(umTreeItem._strId);

-							hashComponents.put(umTreeItem._strId, umTreeItem);

-						}

-					}

-					else {

-						hashComponents.put(umTreeItem._strId, umTreeItem);

-					}

-				}

-

-				else if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY) {

-

-					// Add only if the parent product has not been selected

-					//-----------------------------------------------------

-					TableTreeItem treeItemParent = treeItem.getParentItem();

-					if (treeItemParent.getChecked() == false) {

-

-						// Remove duplicates by storing newer ones only

-						//---------------------------------------------

-						if (hashComponentEntries.containsKey(umTreeItem._strId) == true) {

-							UMWizardTreeItem umTreeItemPrevious = (UMWizardTreeItem) hashComponentEntries.get(umTreeItem._strId);

-							if (((IComponentEntryDescriptor) umTreeItem._descriptorEntry).compare((IComponentEntryDescriptor) umTreeItemPrevious._descriptorEntry) > 0) {

-								hashComponentEntries.remove(umTreeItem._strId);

-								hashComponentEntries.put(umTreeItem._strId, umTreeItem);

-							}

-						}

-						else {

-							hashComponentEntries.put(umTreeItem._strId, umTreeItem);

-						}

-					}

-				}

-			}

-		}

-

-		// Do child items

-		//---------------

-		TableTreeItem[] treeItemChildren = treeItem.getItems();

-

-		for (int i = 0; i < treeItemChildren.length; ++i) {

-			getSelectedItemsRecursive(treeItemChildren[i], hashProducts, hashComponents, hashComponentEntries);

-		}

-

-		return;

-	}

-	/**

-	 */

-	public String getURLDescription(String strURL) {

-

-		if (_treeSetLocations != null && _treeSetLocations.size() > 0) {

-			Iterator iter = _treeSetLocations.iterator();

-			URLNamePair pair = null;

-			while (iter.hasNext() == true) {

-				pair = (URLNamePair) iter.next();

-				if (pair._getURL().equals(strURL) == true) {

-					if (pair._getName() != null && pair._getName().length() > 0) {

-						return pair._getName();

-					}

-				}

-			}

-		}

-

-		return strURL;

-	}

-	/**

-	 * Obtains a list of registered component URLs from the local update registry.

-	 * Obtains a list of bookmarked URLs from the persistent data.

-	 * Creates a tree for all of the URLs.

-	 */

-	protected void initializeContent() {

-

-		if (_bRefreshRequired == false) {

-			return;

-		}

-

-		// Add all selected locations to a set

-		//------------------------------------

-		_treeSetLocations = new TreeSet(new UMWizardURLNamePairComparator());

-

-		// Obtain predefined locations strings from location page

-		//-------------------------------------------------------

-		UMWizardPageLocations pageLocations = (UMWizardPageLocations) _wizard.getPage("locations");

-

-		URLNamePair[] pairs = pageLocations.getSelectedPredefinedLocations();

-

-		for (int i = 0; i < pairs.length; ++i) {

-			_treeSetLocations.add(pairs[i]);

-		}

-

-		// Obtain additional locations strings from location page

-		//-------------------------------------------------------

-		pairs = pageLocations.getSelectedAdditionalLocations();

-

-		for (int i = 0; i < pairs.length; ++i) {

-			_treeSetLocations.add(pairs[i]);

-		}

-

-		// Obtain local registry in case there are installed versions

-		//-----------------------------------------------------------

-		final IUMRegistry registryLocal = _wizard._updateManager.getRegistryManager().getCurrentRegistry();

-

-		final Vector vectorRegistries = new Vector();

-		final Vector vectorURLsFailed = new Vector();

-

-		_tableTreeItems.setRedraw(false);

-

-		// Create an operation that read and create a registry for each location

-		//----------------------------------------------------------------------

-		IRunnableWithProgress operation = new IRunnableWithProgress() {

-			public void run(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException {

-

-				_progressMonitor = progressMonitor;

-

-				progressMonitor.beginTask(UpdateManagerStrings.getString("S_Reading") + ":", _treeSetLocations.size());

-

-				URLNamePair pair = null;

-				IUMRegistry registry = null;

-

-				Iterator iter = _treeSetLocations.iterator();

-

-				boolean bUrlOk = false;

-

-				while (iter.hasNext() == true) {

-

-					bUrlOk = false;

-

-					// Obtain the registry for the URL

-					// This will download the information

-					//-----------------------------------

-					pair = (URLNamePair) iter.next();

-

-					progressMonitor.subTask(pair._getName());

-

-					// Attempt to open the stream

-					//---------------------------

-					try {

-						URL url = new URL(pair._getURL());

-						url = UMEclipseTree.appendTrailingSlash(url);

-						Response response = URLHandler.open(url);

-						// we open the url to get authenticated.  response code not

-						// important at this point

-					/*	if (response.getResponseCode() == IStatusCodes.HTTP_OK) {

-							InputStream stream = response.getInputStream();

-

-							if (stream != null) {

-								stream.close();*/

-								bUrlOk = true;

-					//		}

-					//	}

-					}

-					catch (Exception ex) {

-					}

-

-					if (bUrlOk == true) { 

-						registry = getRegistryAt(pair._getURL());

-

-						// Add it to the list

-						//-------------------

-						if (registry != null)

-							vectorRegistries.add(registry);

-					}

-					else {

-						vectorURLsFailed.add(pair);

-					}

-

-					progressMonitor.worked(1);

-				}

-				progressMonitor.done();

-

-				_progressMonitor = null;

-			}

-		};

-

-		// Run the operation

-		//------------------

-		try {

-			_wizard.getContainer().run(true, true, operation);

-		}

-		catch (InterruptedException e) {

-		}

-		catch (InvocationTargetException e) {

-		}

-

-		// Create a new tree

-		//------------------

-		_treeSetItems = new TreeSet(new UMWizardTreeItemComparator());

-

-		// Create an operation that will fill the tree with information

-		// Location URL A

-		//   products

-		//     Product A

-		//     Product B

-		//   components

-		//     Component A

-		//     Component B

-		// Location URL B

-		// ...

-		//-------------------------------------------------------------

-		operation = new IRunnableWithProgress() {

-			public void run(IProgressMonitor progressMonitor) throws InvocationTargetException {

-

-				IUMRegistry registryRemote = null;

-

-				for (int i = 0; i < vectorRegistries.size(); ++i) {

-					registryRemote = (IUMRegistry) vectorRegistries.elementAt(i);

-					addLocationToTree(registryRemote, registryLocal, progressMonitor);

-				}

-			}

-		};

-

-		// Run the operation

-		//------------------

-		try {

-			_wizard.getContainer().run(true, true, operation);

-		}

-		catch (InterruptedException e) {

-			return;

-			//		System.out.println( "Interrupted" );

-		}

-		catch (InvocationTargetException e) {

-			//		System.out.println( "Invocation" );

-		}

-

-		_tableTreeItems.setRedraw(true);

-

-		// Create tree widget items for each update manager tree item

-		//-----------------------------------------------------------

-		connectToTree();

-

-		StringBuffer strbMessage = new StringBuffer();

-

-		// Determine whether there are any updatable items

-		//------------------------------------------------

-		if (_tableTreeItems.getItemCount() == 0)

-			strbMessage.append(UpdateManagerStrings.getString("S_No_installable_items_were_found") + "\n\n");

-

-		// Determine if any locations could not be accessed

-		//-------------------------------------------------

-		if (vectorURLsFailed.size() > 0) {

-			strbMessage.append(UpdateManagerStrings.getString("S_Unable_to_access_the_following_locations") + ":");

-			for (int i = 0; i < vectorURLsFailed.size(); ++i) {

-				strbMessage.append("\n   ");

-				strbMessage.append(((URLNamePair) vectorURLsFailed.elementAt(i))._getName());

-				strbMessage.append(" (");

-				strbMessage.append(((URLNamePair) vectorURLsFailed.elementAt(i))._getURL());

-				strbMessage.append(")");

-			}

-		}

-

-		if (strbMessage.length() > 0) {

-			MessageDialog.openInformation(getControl().getShell(), UpdateManagerStrings.getString("S_Information"), strbMessage.toString());

-		}

-

-		// Reset refresh flag

-		//-------------------

-		_bRefreshRequired = false;

-

-		return;

-	}

-	/**

-	 */

-	public int isInstallableComponent(TableTreeItem treeItemComponent) {

-

-		UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItemComponent.getData();

-

-		// False if none available to install

-		//-----------------------------------

-		if (umTreeItem._descriptorAvailable == null) {

-			return -1;

-		}

-

-		// True if not yet installed

-		//--------------------------

-		if (umTreeItem._descriptorCurrent == null) {

-			return UpdateManagerConstants.OK_TO_INSTALL;

-		}

-

-		// True if installable

-		//--------------------

-		return ((IComponentDescriptor) umTreeItem._descriptorAvailable).isInstallable((IComponentDescriptor) umTreeItem._descriptorCurrent);

-	}

-	/**

-	 * @return int

-	 * @param treeItemComponent org.eclipse.swt.custom.TableTreeItem

-	 */

-	public int isInstallableComponentEntry(TableTreeItem treeItemComponentEntry) {

-

-		UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItemComponentEntry.getData();

-

-		// False if none available to install

-		//-----------------------------------

-		if (umTreeItem._descriptorEntry == null) {

-			return -1;

-		}

-

-		// Is the product installable?

-		//----------------------------

-		TableTreeItem treeItemProduct = treeItemComponentEntry.getParentItem();

-

-		int iProductInstallable = isInstallableProduct(treeItemProduct);

-

-		// If the product is not installable, disable if mandatory component

-		//------------------------------------------------------------------

-		if (iProductInstallable != UpdateManagerConstants.OK_TO_INSTALL) {

-			if (umTreeItem._descriptorEntry.isOptionalForInstall() == false) {

-				return iProductInstallable;

-			}

-		}

-

-		return umTreeItem._descriptorEntry.isInstallable((IComponentDescriptor) umTreeItem._descriptorCurrent);

-	}

-	/**

-	 * @return int

-	 * @param treeItemComponent org.eclipse.swt.custom.TableTreeItem

-	 */

-	public int isInstallableProduct(TableTreeItem treeItemProduct) {

-

-		UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItemProduct.getData();

-

-		// False if none available to install

-		//-----------------------------------

-		if (umTreeItem._descriptorAvailable == null) {

-			return -1;

-		}

-

-		// True if not yet installed

-		//--------------------------

-		else if (umTreeItem._descriptorCurrent == null) {

-			return UpdateManagerConstants.OK_TO_INSTALL;

-		}

-

-		// True if installable

-		//--------------------

-		return ((IProductDescriptor) umTreeItem._descriptorAvailable).isInstallable((IProductDescriptor) umTreeItem._descriptorCurrent);

-	}

-	/**

-	 * 

-	 */

-	public boolean isInstallableRecursive(TableTreeItem treeItem) {

-

-		boolean bInstallable = false;

-

-		UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItem.getData();

-

-		// True if product or component is checked

-		//----------------------------------------

-		if (treeItem.getChecked() == true) {

-			if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT || umTreeItem._iType == UpdateManagerConstants.TYPE_PRODUCT || umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY) {

-				return true;

-			}

-		}

-

-		// Check all children

-		//-------------------

-		TableTreeItem[] treeItemChildren = treeItem.getItems();

-

-		for (int i = 0; i < treeItemChildren.length; ++i) {

-			if (isInstallableRecursive(treeItemChildren[i]) == true) {

-				return true;

-			}

-		}

-

-		return false;

-	}

-	/**

-	 * Sent when the mouse pointer passes into the area of

-	 * the screen covered by a control.

-	 */

-	public void mouseEnter(org.eclipse.swt.events.MouseEvent e) {

-	}

-	/**

-	 * Sent when the mouse pointer passes out of the area of

-	 * the screen covered by a control.  Erases the description text area.

-	 */

-	public void mouseExit(MouseEvent e) {

-		if (_strDescription != _wizard._strEmpty) {

-			_textDescription.setText(_wizard._strEmpty);

-			_strDescription = _wizard._strEmpty;

-		}

-	}

-	/**

-	 * Sent when the mouse pointer hovers (that is, stops moving

-	 * for an (operating system specified) period of time) over

-	 * a control.

-	 */

-	public void mouseHover(MouseEvent e) {

-	}

-	/**

-	 * Determines which item the mouse is over.  Sets the text in the description text area to the description of the item.

-	 */

-	public void mouseMove(MouseEvent e) {

-

-		// Table item

-		//-----------

-		TableItem tableItem = _tableTreeItems.getTable().getItem(new Point(e.x, e.y));

-

-		// TableTree item

-		//---------------

-		if (tableItem != null) {

-

-			TableTreeItem tableTreeItem = (TableTreeItem) tableItem.getData();

-

-			// UMWizardTreeItem

-			//---------------------- 

-			if (tableTreeItem != null) {

-

-				UMWizardTreeItem item = (UMWizardTreeItem) tableTreeItem.getData();

-

-				// Description string

-				//-------------------

-				if (item != null) {

-					if (item._strDescription != null) {

-						if (_strDescription != item._strDescription) {

-							_textDescription.setText(item._strDescription);

-							_strDescription = item._strDescription;

-						}

-					}

-					else {

-						if (_strDescription != _wizard._strEmpty) {

-							_textDescription.setText(_wizard._strEmpty);

-							_strDescription = _wizard._strEmpty;

-						}

-					}

-				}

-				else if (_strDescription != _wizard._strEmpty) {

-					_textDescription.setText(_wizard._strEmpty);

-					_strDescription = _wizard._strEmpty;

-				}

-

-			}

-		}

-		else if (_strDescription != _wizard._strEmpty) {

-			_textDescription.setText(_wizard._strEmpty);

-			_strDescription = _wizard._strEmpty;

-		}

-	}

-	/**

-	 * @return boolean

-	 */

-	public boolean performCancel() {

-

-		if (_progressMonitor == null)

-			return true;

-

-		_progressMonitor.setCanceled(true);

-		return false;

-	}

-	/**

-	 */

-	protected boolean setCheckedComponent(TableTreeItem treeItemComponent) {

-

-		if (treeItemComponent.getChecked() == false) {

-			int iInstallable = isInstallableComponent(treeItemComponent);

-

-			setTreeItemChecked(treeItemComponent, iInstallable == 0);

-			return iInstallable == 0;

-		}

-

-		return true;

-	}

-	/**

-	 */

-	protected boolean setCheckedComponentEntry(TableTreeItem treeItemComponentEntry) {

-

-		if (treeItemComponentEntry.getChecked() == false) {

-

-			UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItemComponentEntry.getData();

-

-			int iInstallable = isInstallableComponentEntry(treeItemComponentEntry);

-

-			if (iInstallable == 0) {

-

-				// Set checked the product and all of its mandatory components

-				//------------------------------------------------------------

-				TableTreeItem treeItemProduct = treeItemComponentEntry.getParentItem();

-

-				boolean bInstallableProduct = setCheckedProduct(treeItemProduct);

-

-				// If the product is not installable, disable if mandatory component

-				//------------------------------------------------------------------

-				if (bInstallableProduct == false) {

-

-					if (umTreeItem._descriptorEntry.isOptionalForInstall() == false) {

-						if (treeItemComponentEntry.getChecked() == true)

-							treeItemComponentEntry.setChecked(false);

-						return false;

-					}

-				}

-			}

-

-			setTreeItemChecked(treeItemComponentEntry, iInstallable == 0);

-			umTreeItem._descriptorEntry.isSelected(iInstallable == 0);

-

-			return iInstallable == 0;

-		}

-

-		return true;

-	}

-	/**

-	 * This routine assumes that the checkbox was unchecked and is currently checked

-	 */

-	protected boolean setCheckedProduct(TableTreeItem treeItemProduct) {

-

-		if (treeItemProduct.getChecked() == false) {

-

-			int iInstallable = isInstallableProduct(treeItemProduct);

-

-			setTreeItemChecked(treeItemProduct, iInstallable == 0);

-

-			if (iInstallable == 0) {

-

-				TableTreeItem[] treeItemChildren = treeItemProduct.getItems();

-

-				UMWizardTreeItem umTreeItem = null;

-

-				for (int i = 0; i < treeItemChildren.length; ++i) {

-					setCheckedComponentEntry(treeItemChildren[i]);

-				}

-			}

-

-			return iInstallable == 0;

-		}

-

-		return true;

-	}

-	/**

-	 * This routine assumes that the checkbox was unchecked and is currently checked.

-	 */

-	protected boolean setCheckedURL(TableTreeItem treeItemURL) {

-

-		TableTreeItem[] treeItemChildren = treeItemURL.getItems();

-		UMWizardTreeItem umTreeItem = null;

-

-		for (int i = 0; i < treeItemChildren.length; ++i) {

-			umTreeItem = (UMWizardTreeItem) treeItemChildren[i].getData();

-

-			if (umTreeItem._iType == UpdateManagerConstants.TYPE_PRODUCT) {

-				setCheckedProduct(treeItemChildren[i]);

-			}

-			else if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT) {

-				setCheckedComponent(treeItemChildren[i]);

-			}

-		}

-

-		// Always checked

-		//---------------

-		if (treeItemURL.getChecked() == false)

-			treeItemURL.setChecked(true);

-

-		return true;

-	}

-	/**

-	 */

-	protected void setTreeItemChecked(TableTreeItem treeItem, boolean bChecked) {

-

-		if (bChecked == true) {

-			if (treeItem.getChecked() == false)

-				treeItem.setChecked(true);

-		}

-		else {

-			if (treeItem.getChecked() == true)

-				treeItem.setChecked(false);

-		}

-	}

-	/**

-	 */

-	public void setTreeItemChecked(boolean bChecked) {

-	}

-	/**

-	 */

-	public void setTreeItemUncheckedRecursiveBackward(TableTreeItem treeItem) {

-

-		if (treeItem.getChecked() != false) {

-			treeItem.setChecked(false);

-		}

-

-		TableTreeItem treeItemParent = treeItem.getParentItem();

-

-		if (treeItemParent != null) {

-			setTreeItemUncheckedRecursiveBackward(treeItemParent);

-		}

-	}

-	/**

-	 */

-	public void setTreeItemUncheckedRecursiveForward(TableTreeItem treeItem) {

-

-		if (treeItem.getChecked() != false) {

-

-			treeItem.setChecked(false);

-			/*

-					UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItem.getData();

-			

-					if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY) {

-			

-						if (umTreeItem._descriptorEntry.isOptionalForInstall() == true) {

-							umTreeItem._descriptorEntry.isSelected(false);

-						}

-					}

-			*/

-		}

-

-		TableTreeItem[] treeItemChildren = treeItem.getItems();

-

-		for (int i = 0; i < treeItemChildren.length; ++i) {

-			setTreeItemUncheckedRecursiveForward(treeItemChildren[i]);

-		}

-	}

-	/**

-	 * 

-	 */

-	public void setVisible(boolean bVisible) {

-

-		super.setVisible(bVisible);

-

-		if (bVisible == true) {

-			_sashFormTopBottom.layout();

-			initializeContent();

-

-		}

-	}

-	/**

-	 * Sent when default selection occurs in the control.

-	 */

-	public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {

-	}

-	/**

-	 * Sent when selection occurs in the control.

-	 */

-	public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {

-

-		// Checkbox: Show latest versions only

-		//------------------------------------

-		if (e.widget == _buttonShowLatestOnly) {

-			_bShowLatestOnly = _buttonShowLatestOnly.getSelection();

-			_bRefreshRequired = true;

-			initializeContent();

-		}

-

-		// TableTreeItem: Checkbox

-		//------------------------

-		else if (e.widget == _tableTreeItems && e.detail == SWT.CHECK) {

-

-			// Set page complete to false in case there are

-			// no selected items, or until selection is determined to be valid

-			//----------------------------------------------------------------

-			setPageComplete(false);

-

-			TableTreeItem treeItem = (TableTreeItem) e.item;

-

-			UMWizardTreeItem umTreeItem = (UMWizardTreeItem) treeItem.getData();

-

-			boolean bChecked = treeItem.getChecked();

-

-			// Check

-			//------

-			if (bChecked == true) {

-				// Temporarily uncheck

-				//--------------------

-				treeItem.setChecked(false);

-

-				if (umTreeItem._iType == UpdateManagerConstants.TYPE_URL)

-					setCheckedURL(treeItem);

-

-				else if (umTreeItem._iType == UpdateManagerConstants.TYPE_PRODUCT)

-					setCheckedProduct(treeItem);

-

-				else if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT)

-					setCheckedComponent(treeItem);

-

-				else if (umTreeItem._iType == UpdateManagerConstants.TYPE_COMPONENT_ENTRY)

-					setCheckedComponentEntry(treeItem);

-			}

-

-			// Uncheck

-			//--------

-			else {

-				switch (umTreeItem._iType) {

-					case UpdateManagerConstants.TYPE_COMPONENT_ENTRY :

-						umTreeItem._descriptorEntry.isSelected(false);

-						if (umTreeItem._descriptorEntry.isOptionalForInstall() == false)

-							setTreeItemUncheckedRecursiveBackward(treeItem);

-						break;

-

-					default :

-						setTreeItemUncheckedRecursiveBackward(treeItem);

-						setTreeItemUncheckedRecursiveForward(treeItem);

-						break;

-				}

-			}

-

-			// Determine if page is complete

-			//------------------------------

-			boolean bPageComplete = false;

-

-			TableTreeItem[] treeItems = _tableTreeItems.getItems();

-

-			for (int i = 0; i < treeItems.length; ++i) {

-				if (isInstallableRecursive(treeItems[i]) == true) {

-					setPageComplete(true);

-					break;

-				}

-			}

-		}

-

-		return;

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstalling.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstalling.java
deleted file mode 100644
index 7eb1bb8..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageInstalling.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistory.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistory.java
deleted file mode 100644
index 9589619..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistory.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistoryComplete.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistoryComplete.java
deleted file mode 100644
index 84a9d61..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLaunchHistoryComplete.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLocations.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLocations.java
deleted file mode 100644
index d61bfbb..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageLocations.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLComplete.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLComplete.java
deleted file mode 100644
index 582c842..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLComplete.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstall.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstall.java
deleted file mode 100644
index 4057a14..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstall.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstallable.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstallable.java
deleted file mode 100644
index 0e87c19..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstallable.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstalling.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstalling.java
deleted file mode 100644
index ba49c34..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPageURLInstalling.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPersistentProperties.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPersistentProperties.java
deleted file mode 100644
index 9cd1af7..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardPersistentProperties.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentNew.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentNew.java
deleted file mode 100644
index cdf3a47..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentNew.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentRevert.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentRevert.java
deleted file mode 100644
index 908d541..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentRevert.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentURLInstall.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentURLInstall.java
deleted file mode 100644
index 5c08941..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentURLInstall.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentUpdate.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentUpdate.java
deleted file mode 100644
index f686d65..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardProductComponentUpdate.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItem.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItem.java
deleted file mode 100644
index 57ebf4a..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItem.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItemComparator.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItemComparator.java
deleted file mode 100644
index 96c1981..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardTreeItemComparator.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.eclipse.update.internal.ui;

-/*

- * (c) Copyright IBM Corp. 2000, 2001.

- * All Rights Reserved.

- */

-

-/**

- * 

- */

-import java.util.Comparator;

-public class UMWizardTreeItemComparator implements Comparator {

-	/**

-	 * UpdateManagerTreeItemComparator constructor comment.

-	 */

-	public UMWizardTreeItemComparator() {

-		super();

-	}

-	/**

-	 * Compares its two arguments for order.  Returns a negative integer,

-	 * zero, or a positive integer as the first argument is less than, equal

-	 * to, or greater than the second.<p>

-	 *

-	 * The implementor must ensure that <tt>sgn(compare(x, y)) ==

-	 * -sgn(compare(y, x))</tt> for all <tt>x</tt> and <tt>y</tt>.  (This

-	 * implies that <tt>compare(x, y)</tt> must throw an exception if and only

-	 * if <tt>compare(y, x)</tt> throws an exception.)<p>

-	 *

-	 * The implementor must also ensure that the relation is transitive:

-	 * <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y, z)&gt;0))</tt> implies

-	 * <tt>compare(x, z)&gt;0</tt>.<p>

-	 *

-	 * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt>

-	 * implies that <tt>sgn(compare(x, z))==sgn(compare(y, z))</tt> for all

-	 * <tt>z</tt>.<p>

-	 *

-	 * It is generally the case, but <i>not</i> strictly required that 

-	 * <tt>(compare(x, y)==0) == (x.equals(y))</tt>.  Generally speaking,

-	 * any comparator that violates this condition should clearly indicate

-	 * this fact.  The recommended language is "Note: this comparator

-	 * imposes orderings that are inconsistent with equals."

-	 * 

-	 * @return a negative integer, zero, or a positive integer as the

-	 *         first argument is less than, equal to, or greater than the

-	 *         second. 

-	 * @throws ClassCastException if the arguments' types prevent them from

-	 *         being compared by this Comparator.

-	 */

-	public int compare(java.lang.Object o1, java.lang.Object o2) {

-

-		if (o1 instanceof UMWizardTreeItem && o2 instanceof UMWizardTreeItem) {

-			if (((UMWizardTreeItem) o1)._strName != null && ((UMWizardTreeItem) o2)._strName != null) {

-				return ((UMWizardTreeItem) o1)._strName.compareTo(((UMWizardTreeItem) o2)._strName);

-			}

-		}

-

-		return 0;

-	}

-}
\ No newline at end of file
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardURLNamePairComparator.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardURLNamePairComparator.java
deleted file mode 100644
index 59cd313..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UMWizardURLNamePairComparator.java
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UserValidationDialog.java b/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UserValidationDialog.java
deleted file mode 100644
index 8645286..0000000
--- a/update/org.eclipse.update/src/org/eclipse/update/internal/ui/UserValidationDialog.java
+++ /dev/null
Binary files differ