Skip to content

Commit

Permalink
[NONE] Remove duplicate binding in logo example.
Browse files Browse the repository at this point in the history
Fixed that content part factory was bound twice.
  • Loading branch information
nyssen committed Oct 31, 2016
1 parent 4887db5 commit 9daa0d3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,6 @@ protected void bindIRootPartAsPaletteViewerAdapter(MapBinder<AdapterKey<?>, Obje
.in(AdaptableScopes.typed(IViewer.class));
}

@Override
protected void bindIViewerAdaptersForContentViewer(MapBinder<AdapterKey<?>, Object> adapterMapBinder) {
super.bindIViewerAdaptersForContentViewer(adapterMapBinder);
// bind content part factory
adapterMapBinder.addBinding(AdapterKey.defaultRole()).to(MvcLogoExampleContentPartFactory.class);
}

protected void bindPaletteElementPartAdapters(MapBinder<AdapterKey<?>, Object> adapterMapBinder) {
adapterMapBinder.addBinding(AdapterKey.defaultRole()).to(HoverOnHoverPolicy.class);
adapterMapBinder.addBinding(AdapterKey.defaultRole()).to(CreateAndTranslateOnDragPolicy.class);
Expand Down

0 comments on commit 9daa0d3

Please sign in to comment.