blob: 2bfcc8a4634c7de81f54f6a75a2d6278f27ee33f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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;
}
}