/** * Creates a new PDE State containing bundles from the given URLs. * * @param target urls of target bundles * @param addResolver whether to add a resolver to the state * @param removeDuplicates whether to remove duplicate conflicting bundles from the state * @param monitor progress monitor */ public PDEState(URL[] target, boolean addResolver, boolean removeDuplicates, IProgressMonitor monitor) { long start = System.currentTimeMillis(); fAuxiliaryState = new PDEAuxiliaryState(); // We no longer try and restore from a cached state as it had no performance benefit createNewTargetState(addResolver, target, monitor); if (removeDuplicates) { removeDuplicatesFromState(fState); } initializePlatformProperties(); createTargetModels(fState.getBundles()); clearOldCache(); if (PDECore.DEBUG_MODEL) System.out.println("Time to create state: " + (System.currentTimeMillis() - start) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$ }