Exemplo n.º 1
0
 def toolbox_metaclass(self):
     return PlacementTool(self.view,
                          item_factory=self._namespace_item_factory(
                              items.MetaclassItem,
                              UML.Class,
                              'metaclass',
                              name='Class'),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 2
0
    def toolbox_history_pseudostate(self):
        def set_state(item):
            item.subject.kind = 'shallowHistory'

        return PlacementTool(self.view,
                             item_factory=self._item_factory(
                                 items.HistoryPseudostateItem, UML.Pseudostate,
                                 set_state),
                             handle_index=SE,
                             after_handler=self._after_handler)
Exemplo n.º 3
0
    def toolbox_initial_pseudostate(self):
        def set_state(item):
            item.subject.kind = 'initial'

        return PlacementTool(self.view,
                             item_factory=self._item_factory(
                                 items.InitialPseudostateItem, UML.Pseudostate,
                                 set_state),
                             handle_index=SE,
                             after_handler=self._after_handler)
Exemplo n.º 4
0
 def toolbox_actor(self):
     return PlacementTool(self.view,
                          item_factory=self._namespace_item_factory(
                              items.ActorItem, UML.Actor),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 5
0
 def toolbox_final_state(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.FinalStateItem, UML.FinalState),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 6
0
 def toolbox_ellipse(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(items.Ellipse),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 7
0
 def toolbox_stereotype(self):
     return PlacementTool(self.view,
                          item_factory=self._namespace_item_factory(
                              items.ClassItem, UML.Stereotype),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 8
0
 def toolbox_profile(self):
     return PlacementTool(self.view,
                          item_factory=self._namespace_item_factory(
                              items.PackageItem, UML.Profile),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 9
0
 def toolbox_connector(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.ConnectorItem),
                          after_handler=self._after_handler)
Exemplo n.º 10
0
 def toolbox_implementation(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.ImplementationItem),
                          after_handler=self._after_handler)
Exemplo n.º 11
0
 def toolbox_generalization(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.GeneralizationItem),
                          after_handler=self._after_handler)
Exemplo n.º 12
0
 def toolbox_dependency(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.DependencyItem),
                          after_handler=self._after_handler)
Exemplo n.º 13
0
 def toolbox_comment_line(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.CommentLineItem),
                          after_handler=self._after_handler)
Exemplo n.º 14
0
 def toolbox_comment(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.CommentItem, UML.Comment),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 15
0
 def toolbox_usecase_association(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.AssociationItem),
                          after_handler=self._after_handler)
Exemplo n.º 16
0
 def toolbox_include(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.IncludeItem),
                          after_handler=self._after_handler)
Exemplo n.º 17
0
 def toolbox_flow(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(items.FlowItem),
                          after_handler=self._after_handler)
Exemplo n.º 18
0
 def toolbox_interaction(self):
     return PlacementTool(self.view,
                          item_factory=self._namespace_item_factory(
                              items.InteractionItem, UML.Interaction),
                          handle_index=SE,
                          after_handler=self._after_handler)
Exemplo n.º 19
0
 def toolbox_message(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.MessageItem),
                          after_handler=self._after_handler)
Exemplo n.º 20
0
 def toolbox_extension(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(
                              items.ExtensionItem),
                          after_handler=self._after_handler)
Exemplo n.º 21
0
 def toolbox_line(self):
     return PlacementTool(self.view,
                          item_factory=self._item_factory(items.Line),
                          after_handler=self._after_handler)