Changeset 2251
- Timestamp:
- 03/04/08 12:05:46 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/adapters/__init__.py
r2165 r2251 3 3 import gaphor.adapters.editors 4 4 5 from gaphor.adapters.states import vertexconnect 5 import gaphor.adapters.states.vertexconnect 6 import gaphor.adapters.states.propertypages gaphor/trunk/gaphor/diagram/states/transition.py
r2247 r2251 24 24 self._guard = self.add_text('guard.specification.value', editable=True) 25 25 self.add_watch(UML.Transition.guard) 26 self.add_watch(UML.Constraint.specification) 27 self.add_watch(UML.LiteralSpecification.value) 26 28 27 29 28 30 def postload(self): 31 """ 32 Load guard specification information. 33 """ 29 34 if self.subject and self.subject.guard: 30 self._guard.text = self.subject.guard. constraint.value35 self._guard.text = self.subject.guard.specification.value 31 36 super(TransitionItem, self).postload() 32 37 … … 41 46 42 47 48 def set_guard(self, value): 49 self.subject.guard.specification.value = value 50 self._guard.text = value 51 52 43 53 # vim:sw=4:et:ai
