Ok my first slice is up and ready 

https://pharo.fogbugz.com/f/cases/11656/In-HelpTopic-when-a-subtopic-is-added-the-subtopic-does-not-point-back-to-its-owner
<https://pharo.fogbugz.com/f/cases/11656/In-HelpTopic-when-a-subtopic-is-added-the-subtopic-does-not-point-back-to-its-owner>
  


I uploaded all 3 files created by monticello for the slice. Take a look and
tell me if I had anything wrong :) 

here is the summary of the enhancement 

" When subtopic are added to topic HelpTopic does not track the ownership of
a topic. So its impossible to say if a HelpTopic instance has an owner
(another topic that uses it as subtopic) and if yes what is that owner. I
have added a owner instance variable to the class instance and I also forced
both addSubtopic: and subtopics: methods to add self as owner of subtopics
added. I also created a test to test ownership which was added to the
corresponding Test package. I attach the slice with the code. 

This is my first slice , please advice for any further action."

I want to use owner instance variable as a way to track the hierarchy of
subtopics. Because the way HelpTopic classes works right now when you add a
subtopic , the topic knows that it has subtopics and which subtopics are but
the subtopics themselves which are also instances of HelpTopic they don't
know who the owner is.

As it currently is the hierarchy is handled by the help tool TreeMoprh , but
I did not like the fact that it depends on a moph to find out ownership of
subtopics.  

So I am open to suggestions, ideas and thoughts. I will probably further
extend HelpTopic , but this was my first slice so I decided to start small. 



--
View this message in context: 
http://forum.world.st/Extending-HelpTopic-tp4709645.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to