Skip to content
Snippets Groups Projects
Commit ca99becb authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

fixed toolspecifics export, navigation for dinerosplaces

parent 3076c575
Branches
No related tags found
No related merge requests found
......@@ -165,6 +165,10 @@ aspect Navigation {
to PetriNet.allDinerosTransitions()
for petriNet();
coll java.util.Set<DinerosPlace> PetriNet.allDinerosPlaces() [new java.util.HashSet()] root PetriNet;
DinerosPlace contributes this
to PetriNet.allDinerosPlaces()
for petriNet();
coll java.util.Set<Arc> PetriNet.allArcs() [new java.util.HashSet()] root PetriNet;
Arc contributes this
......
......@@ -14,6 +14,8 @@ aspect ComplexElementsConverter{
private static StringBuffer clipToolSpecificsFormattedXmlBuffer(String toolName, String toolVersion, StringBuffer formattedXmlBuffer) {
System.out.println("Clipping: " + formattedXmlBuffer);
if (formattedXmlBuffer != null) {
int endCharsLength = 15;
......@@ -27,7 +29,8 @@ aspect ComplexElementsConverter{
indexGt = formattedXmlBuffer.indexOf(">");
}
if (toolNameLenth > 0 || toolVersionLength > 0) {
if ((toolNameLenth > 0 || toolVersionLength > 0)
&& formattedXmlBuffer.toString().contains("tool=\"" + toolName + "\"")) {
formattedXmlBuffer.delete(0, indexGt + 1);
formattedXmlBuffer.delete(formattedXmlBuffer.length() - endCharsLength, formattedXmlBuffer.length());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment