blob: f60b6a90f46bce070ed617be5f8a2423c0eea8ac (
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
|
/*******************************************************************************
* Copyright (c) 2008, 2014 Angelo Zerr 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:
* Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
*******************************************************************************/
package org.eclipse.papyrus.internal.infra.gmfdiag.css.xml.engine;
import org.eclipse.e4.ui.css.core.dom.properties.css2.ICSSPropertyBackgroundHandler;
import org.eclipse.e4.ui.css.core.dom.properties.css2.ICSSPropertyFontHandler;
import org.eclipse.e4.ui.css.core.dom.properties.css2.ICSSPropertyTextHandler;
import org.eclipse.e4.ui.css.core.engine.CSSEngine;
import org.eclipse.e4.ui.css.core.impl.engine.CSSEngineImpl;
/**
* {@link CSSEngine} implementation to apply style sheet to XML DOM.
*
* @since 2.3.0
*/
// FIXME this has been cloned from the Platform_UI repository to fix a problem introduced by Bug 534764
public class CSSXMLEngineImpl extends CSSEngineImpl {
public CSSXMLEngineImpl() {
// Register XML CSS Property Background Handler
super.registerCSSPropertyHandler(ICSSPropertyBackgroundHandler.class,
CSSPropertyBackgroundXMLHandler.INSTANCE);
// Register XML CSS Property Text Handler
super.registerCSSPropertyHandler(ICSSPropertyTextHandler.class,
CSSPropertyTextXMLHandler.INSTANCE);
// Register XML CSS Property Font Handler
super.registerCSSPropertyHandler(ICSSPropertyFontHandler.class,
CSSPropertyFontXMLHandler.INSTANCE);
}
@Override
public void reapply() {
// TODO Auto-generated method stub
}
}
|