Exemplo n.º 1
0
 protected void handle(TypesEvents.SignatureInterfaceMappingUpdatedEvent evt) {
   ObjRef simRef = evt.getSignatureInterfaceMappingRef();
   evt.getSignatureInterfaceMappingAssembly().getMappingThing().setLineStyle(SWT.LINE_SOLID);
   if (simRef != null) {
     if (AS.xarch.isInstanceOf(simRef, "options#OptionalSignatureInterfaceMapping")) {
       if (OptionsUtils.isOptional(AS.xarch, simRef)) {
         evt.getSignatureInterfaceMappingAssembly().getMappingThing().setLineStyle(SWT.LINE_DASH);
       }
     }
   }
 }
Exemplo n.º 2
0
 protected void handle(StructureEvents.InterfaceUpdatedEvent evt) {
   ObjRef interfaceRef = evt.getInterfaceRef();
   evt.getInterfaceAssembly().getBoxBorderThing().setLineStyle(SWT.LINE_SOLID);
   if (interfaceRef != null) {
     if (AS.xarch.isInstanceOf(interfaceRef, "options#OptionalInterface")) {
       if (OptionsUtils.isOptional(AS.xarch, interfaceRef)) {
         evt.getInterfaceAssembly().getBoxBorderThing().setLineStyle(SWT.LINE_DASH);
       }
     }
   }
 }
Exemplo n.º 3
0
 protected void handle(StructureEvents.LinkUpdatedEvent evt) {
   ObjRef linkRef = evt.getLinkRef();
   evt.getLinkAssembly().getSplineThing().setLineStyle(SWT.LINE_SOLID);
   if (linkRef != null) {
     if (AS.xarch.isInstanceOf(linkRef, "options#OptionalLink")) {
       if (OptionsUtils.isOptional(AS.xarch, linkRef)) {
         evt.getLinkAssembly().getSplineThing().setLineStyle(SWT.LINE_DASH);
       }
     }
   }
 }
Exemplo n.º 4
0
 protected void handle(StructureEvents.BrickUpdatedEvent evt) {
   ObjRef brickRef = evt.getBrickRef();
   evt.getBrickAssembly().getBoxBorderThing().setLineStyle(SWT.LINE_SOLID);
   if (brickRef != null) {
     if (AS.xarch.isInstanceOf(brickRef, "options#OptionalComponent")
         || AS.xarch.isInstanceOf(brickRef, "options#OptionalConnector")) {
       if (OptionsUtils.isOptional(AS.xarch, brickRef)) {
         evt.getBrickAssembly().getBoxBorderThing().setLineStyle(SWT.LINE_DASH);
       }
     }
   }
 }