Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: af587ee591f3d170e525bb78f7850309b10547cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*******************************************************************************
 * Copyright (c) 2008 Symbian Software Systems, 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:
 *     Andrew Ferguson (Symbian) - Initial implementation - [api] enable document setup participants to customize behaviour based on resource being opened - https://bugs.eclipse.org/bugs/show_bug.cgi?id=208881
 *******************************************************************************/
package org.eclipse.core.filebuffers.tests;

import org.junit.Before;

import org.eclipse.core.internal.filebuffers.TextFileBufferManager;

import org.eclipse.core.filebuffers.LocationKind;


/**
 * @since 3.4
 */
public class TextFileManagerDocCreationTests extends AbstractFileBufferDocCreationTests {

	@Before
	public void setUp() {
		fManager= new TextFileBufferManager();
	}

	@Override
	protected void assertDocumentContent(String expectedContent, String path, LocationKind locKind) {
		if (locKind != LocationKind.IFILE) {
			/**  {@link TextFileBufferManager} does not deal with {@link LocationKind#IFILE} */
			super.assertDocumentContent(expectedContent, path, locKind);
		}
	}

	@Override
	protected LocationKind[] getSupportLocationKinds() {
		return new LocationKind[] {LocationKind.LOCATION, LocationKind.NORMALIZE};
	}
}

Back to the top