Bug 174272 FileStoreEditorInput needs to be restorable
3.3 M5 The FileStoreEditorInput needs to restorable on startup. Therefore it needs to return an IPersistableElement and there needs to be an element factory.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
}
		
		return editorReg.getDefaultEditor(file.getName(), contentType);
	}
	/**
	 * Extracts and returns the <code>IResource</code>s in the given
	 * selection or the resource objects they adapts to.
	 * 
	 * @param originalSelection
	 *            the original selection, possibly empty
	 * @return list of resources (element type: <code>IResource</code>),
	 *         possibly empty
	 */
	public static List computeSelectedResources(
			IStructuredSelection originalSelection) {
		List resources = null;
		for (Iterator e = originalSelection.iterator(); e.hasNext();) {
			Object next = e.next();
			Object resource = null;
			if (next instanceof IResource) {
				resource = next;
			} else if (next instanceof IAdaptable) {
				resource = ((IAdaptable) next).getAdapter(IResource.class);
			}
			if (resource != null) {
				if (resources == null) {
					
					
					resources = new ArrayList(originalSelection.size());
				}