/******************************************************************************* * Copyright (c) 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.core.tests.resources.refresh; import org.eclipse.core.resources.*; import org.eclipse.core.resources.refresh.*; import org.eclipse.core.tests.resources.session.TestBug316182; /** * Refresh provider depicting bug 316182. */ public class Bug316182RefreshProvider extends RefreshProvider { @Override public IRefreshMonitor installMonitor(IResource resource, IRefreshResult result) { try { IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("project_TestBug316182"); project.getPersistentProperties(); project.getDefaultCharset(); project.getContentTypeMatcher(); } catch (Exception e) { // remember the exception TestBug316182.CAUGHT_EXCEPTION = e; } return null; } }