Changeset 2124

Show
Ignore:
Timestamp:
09/14/07 12:32:04 (10 months ago)
Author:
wrobe..@pld-linux.org
Message:

- merged changes 2120:2122 from trunk which fix bug #78

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/branches/gaphor-0.12/gaphor/adapters/propertypages.py

    r2084 r2124  
    184184        for attr in self._item.subject.ownedAttribute: 
    185185            if not attr.association: 
    186                 yield [attr.name, attr] 
     186                yield [attr.render(), attr] 
    187187 
    188188 
     
    210210    def _get_rows(self): 
    211211        for operation in self._item.subject.ownedOperation: 
    212             yield [operation.name, operation] 
     212            yield [operation.render(), operation] 
    213213 
    214214 
     
    446446 
    447447 
    448 def create_tree_view(model, names): 
     448def create_tree_view(model, names, tip=""): 
    449449    """ 
    450450    Create a tree view for a editable tree model. 
     
    464464    tree_view.connect('key_press_event', swap_on_keypress) 
    465465 
    466     tip = """\ 
     466    tip = tip + """ 
    467467Press ENTER to edit item, BS/DEL to remove item. 
    468468Use -/= to move items up or down.\ 
     
    743743        self.model = ClassAttributes(self.context) 
    744744         
    745         tree_view = create_tree_view(self.model, (_('Attributes'),)) 
     745        tip = """\ 
     746Add and edit class attributes according to UML syntax. Attribute syntax examples 
     747- attr 
     748- + attr: int 
     749- # /attr: int 
     750""" 
     751        tree_view = create_tree_view(self.model, (_('Attributes'),), tip) 
    746752        page.pack_start(tree_view) 
    747753 
     
    790796 
    791797        self.model = ClassOperations(self.context) 
    792         tree_view = create_tree_view(self.model, (_('Operation'),)) 
     798        tip = """\ 
     799Add and edit class operations according to UML syntax. Operation syntax examples 
     800- call() 
     801- + call(a: int, b: str) 
     802- # call(a: int: b: str): bool 
     803""" 
     804        tree_view = create_tree_view(self.model, (_('Operation'),), tip) 
    793805        page.pack_start(tree_view) 
    794806