Community
Participate
Working Groups
We must re-write this dialog for the new version of the Facet metamodel: org.eclipse.emf.facet.widgets.table.ui.internal.jface.dialog.PresentabilityQuerySelectionDialog The dialog should now allow selecting a boolean ETypedElement instead of a query, because the new version of the Facet metamodel doesn't have standalone "queries". Queries are replaced by ETypedElements (attributes, references and operations) contained by a Facet or EClass. This new dialog should be testable without SWTBot, with a dialog API. And it should not interact with the Facet manager directly.
I have committed a new generic ETypedElement selection dialog in: org.eclipse.emf.facet.efacet.ui.dialogs.IETypedElementSelectionDialog it can be opened from: org.eclipse.emf.facet.efacet.ui.dialogs.IETypedElementSelectionDialogFactory the unit tests for the ETypedElement selection dialog are in: org.eclipse.emf.facet.efacet.tests.internal.ETypedElementsSelectionDialogTests The new dialog to choose an ETypedElement to determine what contents are allowed in a table is based on the generic ETypedElement selection dialog. Its interface is: org.eclipse.emf.facet.widgets.table.ui.dialog.IAllowedContentsETypedElementSelectionDialog Committed in revision 1582. This bug is still missing unit tests for the new AllowedContentsETypedElementSelectionDialog. These tests will have to be written once this new dialog is integrated with the new table.
I committed a refactoring of the ETypedElement selection dialog and accompanying unit tests in revision 1654, to extract a re-usable ETypedElement selection widget with a public API, and to open the dialog from a list of ETypedElements instead of relying on a viewer filter passed to the dialog. And I adapted the "allowed contents" ETypedElement selection dialog.
I adapted the tests to the dialog API changes in revision 2111.