Commit 14c6f08e authored by Romain Bioteau's avatar Romain Bioteau
Browse files

Merge pull request #358 from bonitasoft/BS-11112_tycho_0.24

BS-11112 Update tycho to 0.22
parents 68ef9f66 9949cffd
......@@ -123,4 +123,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
version="0.0.0"
unpack="false"/>
<plugin
id="org.bonitasoft.studio.expression.editor.win32"
os="win32"
ws="win32"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
</feature>
......@@ -447,17 +447,6 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
version="0.0.0"
unpack="false"/>
<plugin
id="org.bonitasoft.studio.expression.editor.win32"
os="win32"
ws="win32"
arch="x86,x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="org.codehaus.groovy.eclipse.dsl"
download-size="0"
......@@ -599,4 +588,10 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
version="0.0.0"
unpack="false"/>
<plugin
id="apache-xerces"
download-size="0"
install-size="0"
version="2.9.0"/>
</feature>
......@@ -5,5 +5,5 @@ Bundle-SymbolicName: org.bonitasoft.studio.expression.editor.win32;singleton:=tr
Bundle-Version: 7.2.0.qualifier
Bundle-Vendor: BonitaSoft S.A.
Fragment-Host: org.bonitasoft.studio.expression.editor;bundle-version="6.0.0"
Eclipse-PlatformFilter: (& (osgi.ws=win32) (osgi.os=win32))
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-PlatformFilter: (& (osgi.ws=win32) (osgi.os=win32))
/*******************************************************************************
* Copyright (C) 2015 Bonitasoft S.A.
* Bonitasoft is a trademark of Bonitasoft SA.
* This software file is BONITASOFT CONFIDENTIAL. Not For Distribution.
* For commercial licensing information, contact:
* Bonitasoft, 32 rue Gustave Eiffel – 38000 Grenoble
* or Bonitasoft US, 51 Federal Street, Suite 305, San Francisco, CA 94107
*******************************************************************************/
package org.eclipse.gmf.runtime.lite.svg;
import java.io.IOException;
import java.io.InterruptedIOException;
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
import org.apache.batik.util.XMLResourceDescriptor;
import org.apache.xerces.parsers.SAXParser;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public class CustomSAXSVGDocumentFactory extends SAXSVGDocumentFactory {
public CustomSAXSVGDocumentFactory() {
super(XMLResourceDescriptor.getXMLParserClassName());
}
/*
* (non-Javadoc)
* @see org.apache.batik.dom.util.SAXDocumentFactory#createDocument(org.xml.sax.InputSource)
*/
@Override
protected Document createDocument(InputSource is) throws IOException {
try {
final XMLReader parser = new SAXParser();
parser.setContentHandler(this);
parser.setDTDHandler(this);
parser.setEntityResolver(this);
parser.setErrorHandler((errorHandler == null) ? this : errorHandler);
parser.setFeature("http://xml.org/sax/features/namespaces",
true);
parser.setFeature("http://xml.org/sax/features/namespace-prefixes",
true);
parser.setFeature("http://xml.org/sax/features/validation",
isValidating);
parser.setProperty("http://xml.org/sax/properties/lexical-handler",
this);
parser.parse(is);
} catch (final SAXException e) {
final Exception ex = e.getException();
if (ex != null && ex instanceof InterruptedIOException) {
throw (InterruptedIOException) ex;
}
throw new IOException(e.getMessage());
}
currentNode = null;
final Document ret = document;
document = null;
locator = null;
return ret;
}
}
......@@ -23,7 +23,6 @@ import javax.xml.xpath.XPathFactory;
import org.apache.batik.bridge.BridgeContext;
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
import org.apache.batik.util.XMLResourceDescriptor;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.geometry.Rectangle;
......@@ -74,8 +73,8 @@ public class SVGFigure extends Figure {
if (uri == null) {
return;
}
final String parser = XMLResourceDescriptor.getXMLParserClassName();
final SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory(parser);
final SAXSVGDocumentFactory factory = new CustomSAXSVGDocumentFactory();
try {
Document document;
if (documentsMap.containsKey(uri)) {
......
......@@ -10,8 +10,8 @@
<name>Bonita Studio</name>
<properties>
<!--forceContextQualifier -->
<tychoVersion>0.21.0</tychoVersion>
<tychoExtrasVersion>0.21.0</tychoExtrasVersion>
<tychoVersion>0.22.0</tychoVersion>
<tychoExtrasVersion>0.22.0</tychoExtrasVersion>
<os-jvm-flags></os-jvm-flags>
<bundle.version>7.2.0-SNAPSHOT</bundle.version>
<ui.designer.version>1.2.8</ui.designer.version>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment