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

Bug 478901

Summary: Enhance extensibility of policies by making their internally used operations accessible for subclasses.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: nyssen, xavier.jacques.external
Version: 0.2.0   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M4   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2015-10-02 08:44:29 EDT
Some of the policies (FXBendPolicy, FXChangeViewportPolicy, FXResizeConnectionPolicy, and FXTransformConnectionPolicy) cannot be propertly extended due to internally used operations (FXBendOperation and FXChangeViewportOperation) being unaccessible from subclasses.

The policies should either provide their operations as protected fields, or allow access to the operations via protected accessor methods.
Comment 1 Alexander Nyßen CLA 2015-11-19 12:57:18 EST
*** Bug 482345 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Nyßen CLA 2015-11-19 12:58:54 EST
With the introduction of AbstractTransactionPolicy (see bug #481906), this is already solved pretty much for all transaction policies, as the operation is generally accessible. However, the interaction policies (e.g. FXMarqueeOnDragPolicy) still do not expose their information to subclasses.
Comment 3 Matthias Wienand CLA 2016-05-27 03:16:00 EDT
I resolved this ticket as fixed for 4.0.0 M4 because it looks like the policies can already be properly extended.