Menu

#68 Adapter selection view crashes

Pipistrelle 2.1
open
nobody
None
1
2015-07-27
2015-07-27
John Barnes
No

To re-produce the problem in a composition which has one or more adapter factories available.
Right-click on a component which has a connection then click on "Connectivity ...".
Click on a button in the "Adaptors" column to open the view for managing adapters on a connection.
Click on "Edit" then click on "Add Adapter" to open the view for adding adapters.

The scenario is illustrated in the attached screenshot AddAdapter.PNG.

Click on the button for any of the adapters to see details of an adapter.

An exception is thrown by the Contract at line 27 of TableFormLinkages.cs:

        Contract.Requires(mode == MenuControlExtension.ModeOptions.Browse || mode == MenuControlExtension.ModeOptions.EditNoCancel,
            "Adapting composition consumers/adapters so user has to get it right! if editing");

The Contract fails because mode was set to "Edit" in line 111 of TableFormLinkages.cs:

        selector.Initialise(Owner, Host, MenuControlExtension.ModeOptions.Edit);

As a local workaround I changed the mode in line 111 to EditNoCancel.

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB