Skip to content

Commit

Permalink
- code cleanup
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/branches/ports@2623 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
wrobell committed Jan 18, 2009
1 parent d4b8d02 commit fba3462
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gaphor/adapters/components/connectorconnect.py
Expand Up @@ -76,12 +76,13 @@ def create_uml(self, connector, component, assembly, iface):
iface
Instance of Interface UML metaclass.
"""
connector.subject = assembly

end = self.element_factory.create(UML.ConnectorEnd)
end.role = iface
end.partWithPort = self.element_factory.create(UML.Port)
assembly.end = end

connector.subject = assembly
component.subject.ownedPort = end.partWithPort


Expand Down
5 changes: 2 additions & 3 deletions gaphor/diagram/connector.py
Expand Up @@ -136,9 +136,8 @@ def __init__(self, id):

def on_connector_end(self, event):
if isinstance(event, UML.event.AssociationAddEvent):
if self.subject is event.element:
self.end = event.new_value
self._interface.text = self.end.role.name
self.end = event.new_value
self._interface.text = self.end.role.name


def draw_tail(self, context):
Expand Down

0 comments on commit fba3462

Please sign in to comment.