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

Bug 467343

Summary: Replace bindings to IViewer adaptable scope within MvcFxModule to bind to FXViewer adaptable scope.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.1.0   
Target Milestone: 3.10.0 (Mars) RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-05-14 14:35:20 EDT
There are two bindings within MvcFxModule, which bind Node-parameterized types to the adaptable scope of IViewer:

protected void bindContentBehaviorPartPool() {
  binder().bind(new TypeLiteral<ContentPartPool<Node>>(){}).in(AdaptableScopes.typed(IViewer.class));
}

protected void bindFocusModel() {
  binder().bind(new TypeLiteral<FocusModel<Node>>(){}).in(AdaptableScopes.typed(IViewer.class));
}

This does not really harm anyone at the moment, but it would be cleaner to bind them to FXViewer scope instead of IViewer scope, as both models are parameterized with Nodes.
Comment 1 Alexander Nyßen CLA 2015-05-14 14:45:31 EDT
Changed that Node-parameterized bindings of ContentPartPool and FocusModel are now bound to FXViewer adaptable scope. Verified that this does not affect the scoping of both.

Pushed changes to origin/master. Resolving as fixed in 3.10.0RC1.