blob: dfe9b9daeff71dc6360c868dd27c2b69ad8dbc8a (
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
|
/*******************************************************************************
* Copyright (c) 2017 Red Hat Inc. 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:
* Red Hat Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.linuxtools.internal.changelog.core.editors;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.presentation.PresentationReconciler;
import org.eclipse.jface.text.rules.DefaultDamagerRepairer;
public class GNUPresentationReconciler extends PresentationReconciler {
public GNUPresentationReconciler() {
GNUElementScanner scanner = new GNUElementScanner();
DefaultDamagerRepairer dr = new DefaultDamagerRepairer(scanner);
setDamager(dr, GNUPartitionScanner.CHANGELOG_EMAIL);
setRepairer(dr, GNUPartitionScanner.CHANGELOG_EMAIL);
dr = new GNUFileEntryDamagerRepairer(scanner);
setDamager(dr, GNUPartitionScanner.CHANGELOG_SRC_ENTRY);
setRepairer(dr, GNUPartitionScanner.CHANGELOG_SRC_ENTRY);
dr = new MultilineRuleDamagerRepairer(scanner);
setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
}
}
|