diff options
author | Henrik Rentz-Reichert | 2013-03-18 12:29:02 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2013-03-18 12:32:34 +0000 |
commit | 9513659be2fe1163d19b7289b6cb7f765cfa3597 (patch) | |
tree | bb73ba159a8690c10ba0e2b99154d5255096b073 | |
parent | 75842b8eb4f3667a29994af688c7ce969d455cd8 (diff) | |
download | org.eclipse.etrice-9513659be2fe1163d19b7289b6cb7f765cfa3597.tar.gz org.eclipse.etrice-9513659be2fe1163d19b7289b6cb7f765cfa3597.tar.xz org.eclipse.etrice-9513659be2fe1163d19b7289b6cb7f765cfa3597.zip |
[core.room.ui] fix in outline for derived actor classes
-rw-r--r-- | plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/outline/RoomOutlineTreeProvider.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/outline/RoomOutlineTreeProvider.java b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/outline/RoomOutlineTreeProvider.java index a3494be8c..73f5461c2 100644 --- a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/outline/RoomOutlineTreeProvider.java +++ b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/outline/RoomOutlineTreeProvider.java @@ -79,9 +79,13 @@ public class RoomOutlineTreeProvider extends DefaultOutlineTreeProvider { protected void _createChildren(IOutlineNode parentNode, ActorClass ac) {
Object nodeName = parentNode.getText();
- if(parentNode.getText() instanceof StyledString)
+ if (parentNode.getText() instanceof StyledString)
nodeName = ((StyledString)parentNode.getText()).getString();
- if(nodeName.equals(ac.getName()))
+
+ // if the parent is the top node of an actor class it starts with the actor class name
+ // (eventually followed by 'extends')
+ // otherwise it is one of the Interface/Structure/Behavior nodes
+ if (((String)nodeName).startsWith(ac.getName()))
createChildren1(parentNode, ac);
else
createChildren2(parentNode, ac);
|