Go to the documentation of this file.
82 vector<Factory*>::const_iterator iter;
86 EditPart* busEditPart = (*iter)->createEditPart(
89 if (busEditPart != NULL) {
92 (*iter)->createEditPart(
99 bridgeEditPart->
source() != NULL);
104 if (editPolicy != NULL) {
108 return bridgeEditPart;
void setSource(EditPart *source)
Bus * destinationBus() const
void setSelectable(bool selectable)
void installEditPolicy(EditPolicy *editpolicy)
EditPart * target() const
virtual EditPolicy * createBridgeEditPolicy()
EditPart * source() const
void registerFactory(Factory *factory)
#define assert(condition)
void setModel(TTAMachine::MachinePart *model)
void setFigure(Figure *figure)
void setTarget(EditPart *target)
BridgeFactory(EditPolicyFactory &editPolicyFactory)
EditPolicyFactory & editPolicyFactory_
Factory which creates edit policies for edit parts.
virtual EditPart * createEditPart(TTAMachine::MachinePart *component)
std::vector< Factory * > factories_
Registered factories.