Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 454882

Summary: Allow specifying dependencies for adapters.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF CommonAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2014-12-11 08:41:23 EST
An adapter can have dependencies to other adapters. For example, the FXRelocateOnDragPolicy depends on the FXResizeRelocatePolicy. Therefore, if a FXRelocateOnDragPolicy is bound as an adapter for a specific part. That part has to provide a FXResizeRelocatePolicy as an adapter as well. Otherwise, the configuration is inconsistent.

There should be a way of declaring those dependencies and a tool to check if they are fulfilled given a specific configuration.
Comment 1 Alexander Nyßen CLA 2015-11-26 02:45:06 EST
I am not sure wether a general mechanism is needed here. Each adapter that implements the IAdaptable.Bound interface may do respective checks in its setAdaptable() method, or when being activated (if its activatable). Resolving this als WORKSFORME though.