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
No related branches found
No related tags found
No related merge requests found
...@@ -165,8 +165,12 @@ aspect Navigation { ...@@ -165,8 +165,12 @@ aspect Navigation {
to PetriNet.allDinerosTransitions() to PetriNet.allDinerosTransitions()
for petriNet(); 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; coll java.util.Set<Arc> PetriNet.allArcs() [new java.util.HashSet()] root PetriNet;
Arc contributes this Arc contributes this
to PetriNet.allArcs() to PetriNet.allArcs()
for petriNet(); for petriNet();
......
...@@ -14,6 +14,8 @@ aspect ComplexElementsConverter{ ...@@ -14,6 +14,8 @@ aspect ComplexElementsConverter{
private static StringBuffer clipToolSpecificsFormattedXmlBuffer(String toolName, String toolVersion, StringBuffer formattedXmlBuffer) { private static StringBuffer clipToolSpecificsFormattedXmlBuffer(String toolName, String toolVersion, StringBuffer formattedXmlBuffer) {
System.out.println("Clipping: " + formattedXmlBuffer);
if (formattedXmlBuffer != null) { if (formattedXmlBuffer != null) {
int endCharsLength = 15; int endCharsLength = 15;
...@@ -27,7 +29,8 @@ aspect ComplexElementsConverter{ ...@@ -27,7 +29,8 @@ aspect ComplexElementsConverter{
indexGt = formattedXmlBuffer.indexOf(">"); 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(0, indexGt + 1);
formattedXmlBuffer.delete(formattedXmlBuffer.length() - endCharsLength, formattedXmlBuffer.length()); 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