Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
8d4c414d
Commit
8d4c414d
authored
Mar 20, 2019
by
Ludovic Apvrille
Browse files
New clone function with bug resolved
parent
67f0c309
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
modeling/DIPLODOCUS/SmartCardProtocol.xml
View file @
8d4c414d
This diff is collapsed.
Click to expand it.
src/main/java/ui/TDiagramPanel.java
View file @
8d4c414d
...
...
@@ -654,6 +654,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
sb
.
append
(
s
);
sb
.
append
(
"\n"
);
sb
.
append
(
getXMLTail
());
return
sb
;
}
...
...
@@ -679,7 +680,7 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
// LinkedList<TGComponent> ruteoList = this.componentList;
//
for
(
TGComponent
tgc
:
this
.
getAllComponent
()){
for
(
TGComponent
tgc
:
this
.
getAllComponent
List
()){
//for (TGComponent tgc : this.componentList) {
if
((
selected
==
false
)
||
(
tgc
.
isSelected
()))
{
if
((
tgc
.
getFather
()
==
null
)
||
(
cloneEvenIfNonNullFather
))
{
...
...
@@ -694,6 +695,9 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
}
}
}
if
(
cloneEvenIfNonNullFather
)
{
TraceManager
.
addDev
(
"sb=\n"
+
sb
);
}
return
sb
;
}
...
...
@@ -1060,23 +1064,6 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
return
ll
;
}
//issue 186
// get all list of all primitive components, composite components and connectors
public
List
<
TGComponent
>
getAllComponent
()
{
List
<
TGComponent
>
ll
=
new
LinkedList
<
TGComponent
>();
ll
.
addAll
(
this
.
componentList
);
for
(
TGComponent
tgc
:
this
.
componentList
)
{
if
(
tgc
instanceof
TMLCCompositeComponent
)
{
for
(
TGComponent
tg
:
((
TMLCCompositeComponent
)
tgc
).
getRecursiveAllInternalComponent
())
{
if
(
tg
instanceof
TMLCCompositeComponent
)
{
ll
.
add
(
tg
);
}
}
ll
.
addAll
(((
TMLCCompositeComponent
)
tgc
).
getAllPrimitiveComponents
());
}
}
return
ll
;
}
// Adding connector
public
void
addingTGConnector
()
{
...
...
src/main/java/ui/tmlcompd/TMLComponentTaskDiagramPanel.java
View file @
8d4c414d
...
...
@@ -1028,7 +1028,7 @@ public class TMLComponentTaskDiagramPanel extends TDiagramPanel implements TDPWi
for
(
TMLCPath
path
:
paths
)
{
path
.
checkRules
();
if
(
path
.
hasError
())
{
TraceManager
.
addDev
(
"Path error:"
+
path
.
getErrorMessage
());
//
TraceManager.addDev("Path error:" + path.getErrorMessage());
faultyPaths
.
add
(
path
);
//error = path.getErrorMessage();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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