Beispiel #1
0
    def __init__(self, id=None, model=None):
        UML.Presentation.__init__(self, id, model)
        EditableTextSupport.__init__(self)
        StereotypeSupport.__init__(self)

        def update(event):
            self.request_update()

        self._watcher = self.watcher(default_handler=update)

        self.watch("subject").watch(
            "subject.appliedStereotype.classifier.name",
            self.on_element_applied_stereotype,
        )
Beispiel #2
0
    def __init__(self, id=None):
        UML.Presentation.__init__(self)
        EditableTextSupport.__init__(self)
        StereotypeSupport.__init__(self)

        self._id = id

        # properties, which should be saved in file
        self._persistent_props = set()

        def update(event):
            self.request_update()
        self.watcher = EventWatcher(self, default_handler=update)

        self.watch('subject') \
            .watch('subject.appliedStereotype.classifier.name', self.on_element_applied_stereotype)
Beispiel #3
0
 def draw(self, context):
     EditableTextSupport.draw(self, context)
Beispiel #4
0
 def post_update(self, context):
     EditableTextSupport.post_update(self, context)
Beispiel #5
0
 def pre_update(self, context):
     EditableTextSupport.pre_update(self, context)
Beispiel #6
0
 def draw(self, context):
     EditableTextSupport.draw(self, context)
Beispiel #7
0
 def post_update(self, context):
     EditableTextSupport.post_update(self, context)
Beispiel #8
0
 def pre_update(self, context):
     EditableTextSupport.pre_update(self, context)