Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 85ce0e58ad5ce726379038fd26081fcee17b14ca (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
/*******************************************************************************
 * Copyright (c) 2018 Manish Khurana , Nathan Ridge 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
 *******************************************************************************/

package org.eclipse.lsp4e.cpp.language;

import org.eclipse.cdt.internal.ui.text.CAutoIndentStrategy;
import org.eclipse.cdt.ui.CUIPlugin;

/*
 * 	Class to re-use existing auto-indentation support of CEditor in Generic Editor of LSP4E-CPP.
 */

public class AutoIndentStrategyCPP extends CAutoIndentStrategy {

	public AutoIndentStrategyCPP() {
		// TODO: Pass in the project so the auto edit strategy respects the project's preferences.
		super(CUIPlugin.getDefault().getTextTools().getDocumentPartitioning(), null, true);
	}
}

Back to the top