Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
9949cffd
Commit
9949cffd
authored
Dec 28, 2015
by
Romain Bioteau
Browse files
BS-11112 Update tycho to 0.22
* Always use apache SaxParser for svg
parent
68ef9f66
Changes
6
Hide whitespace changes
Inline
Side-by-side
bundles/features/platform-specific-feature/feature.xml
View file @
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>
bundles/features/studio-feature/feature.xml
View file @
9949cffd
...
...
@@ -447,17 +447,6 @@ 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"
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 <http://www.gnu.org/licenses/>.
version=
"0.0.0"
unpack=
"false"
/>
<plugin
id=
"apache-xerces"
download-size=
"0"
install-size=
"0"
version=
"2.9.0"
/>
</feature>
bundles/plugins/org.bonitasoft.studio.expression.editor.win32/META-INF/MANIFEST.MF
View file @
9949cffd
...
...
@@ -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))
patched-plugins/org.eclipse.gmf.runtime.lite.svg/src/org/eclipse/gmf/runtime/lite/svg/CustomSAXSVGDocumentFactory.java
0 → 100644
View file @
9949cffd
/*******************************************************************************
* 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
;
}
}
patched-plugins/org.eclipse.gmf.runtime.lite.svg/src/org/eclipse/gmf/runtime/lite/svg/SVGFigure.java
View file @
9949cffd
...
...
@@ -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
Custom
SAXSVGDocumentFactory
();
try
{
Document
document
;
if
(
documentsMap
.
containsKey
(
uri
))
{
...
...
pom.xml
View file @
9949cffd
...
...
@@ -10,8 +10,8 @@
<name>
Bonita Studio
</name>
<properties>
<!--forceContextQualifier -->
<tychoVersion>
0.2
1
.0
</tychoVersion>
<tychoExtrasVersion>
0.2
1
.0
</tychoExtrasVersion>
<tychoVersion>
0.2
2
.0
</tychoVersion>
<tychoExtrasVersion>
0.2
2
.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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment