Skip to content

Instantly share code, notes, and snippets.

@Elrhino
Last active October 27, 2015 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elrhino/453389c6429c98256290 to your computer and use it in GitHub Desktop.
Save Elrhino/453389c6429c98256290 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
public static final Slot SLOT_CONTENT = new Slot();
private final ToasterPresenterWidget toasterPresenterWidget;
@Inject
LauncherPresenter(
EventBus eventBus,
MyView view,
MyProxy proxy,
ToasterPresenterWidget toasterPresenterWidget) {
super(eventBus, view, proxy, ApplicationPresenter.SLOT_MAIN);
this.toasterPresenterWidget = toasterPresenterWidget;
getView().setUiHandlers(this);
setInSlot(SLOT_CONTENT, toasterPresenterWidget);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment