commit | e3c69718271e56d238ac3f0f2644c36166f23603 | [log] [tgz] |
---|---|---|
author | Nicholas Pacini <nicholas.pacini@intecs.it> | Tue Apr 28 09:37:23 2020 +0200 |
committer | Nicholas Pacini <nicholas.pacini@intecs.it> | Tue Apr 28 09:37:23 2020 +0200 |
tree | 28bff21ed199ebda26172313a654c584e71aa077 | |
parent | f98a9db2b12aa1daa810f26b17612d6c0d129f5b [diff] |
small fix for show/hide ChRtSpecification command
diff --git a/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java b/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java index b2b187f..b88d9db 100644 --- a/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java +++ b/plugins/org.polarsys.chess.commands/src/org/polarsys/chess/commands/ShowRTInformationCommand.java
@@ -122,7 +122,10 @@ if (temp instanceof BasicCompartmentImpl){ Iterator iter2 = ((BasicCompartmentImpl) temp).getPersistedChildren().iterator(); while (iter2.hasNext()){ - showHideRT((Shape)iter2.next(), visibility); + Object obj = iter2.next(); + if(obj instanceof Shape){ + showHideRT((Shape)obj, visibility); + } } } }