Changeset 2251

Show
Ignore:
Timestamp:
03/04/08 12:05:46 (2 months ago)
Author:
wrobe..@pld-linux.org
Message:

- added transition property page to allow to edit Transition.guard

specification

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/adapters/__init__.py

    r2165 r2251  
    33import gaphor.adapters.editors 
    44 
    5 from gaphor.adapters.states import vertexconnect 
     5import gaphor.adapters.states.vertexconnect 
     6import gaphor.adapters.states.propertypages 
  • gaphor/trunk/gaphor/diagram/states/transition.py

    r2247 r2251  
    2424        self._guard = self.add_text('guard.specification.value', editable=True) 
    2525        self.add_watch(UML.Transition.guard) 
     26        self.add_watch(UML.Constraint.specification) 
     27        self.add_watch(UML.LiteralSpecification.value) 
    2628 
    2729 
    2830    def postload(self): 
     31        """ 
     32        Load guard specification information. 
     33        """ 
    2934        if self.subject and self.subject.guard: 
    30             self._guard.text = self.subject.guard.constraint.value 
     35            self._guard.text = self.subject.guard.specification.value 
    3136        super(TransitionItem, self).postload() 
    3237 
     
    4146 
    4247 
     48    def set_guard(self, value): 
     49        self.subject.guard.specification.value = value 
     50        self._guard.text = value 
     51 
     52 
    4353# vim:sw=4:et:ai