@AssistedInject public CodeAssistantImpl( @Assisted final DocumentPartitioner partitioner, @Assisted TextEditor textEditor, NotificationManager notificationManager) { this.notificationManager = notificationManager; processors = new HashMap<>(); res.defaultSimpleListCss().ensureInjected(); res.autocompleteComponentCss().ensureInjected(); res.popupCss().ensureInjected(); this.partitioner = partitioner; this.textEditor = textEditor; }
@Inject public NavigateToFileViewImpl( CoreLocalizationConstant locale, NavigateToFileViewImplUiBinder uiBinder, AutoCompleteResources autoCompleteResources, Resources resources) { this.locale = locale; this.resources = resources; css = autoCompleteResources.autocompleteComponentCss(); css.ensureInjected(); setWidget(uiBinder.createAndBindUi(this)); setAutoHideEnabled(true); setAnimationEnabled(true); getElement().getStyle().setProperty("boxShadow", "0 2px 4px 0 rgba(0, 0, 0, 0.50)"); getElement().getStyle().setProperty("borderRadius", "0px"); }
@Inject public FindActionViewImpl( Resources resources, KeyBindingAgent keyBindingAgent, ActionManager actionManager, AutoCompleteResources autoCompleteResources, ToolbarResources toolbarResources, FindActionViewImplUiBinder uiBinder) { this.resources = resources; this.keyBindingAgent = keyBindingAgent; this.actionManager = actionManager; this.toolbarResources = toolbarResources; this.presentationFactory = new PresentationFactory(); css = autoCompleteResources.autocompleteComponentCss(); css.ensureInjected(); DockLayoutPanel rootElement = uiBinder.createAndBindUi(this); setWidget(rootElement); setAutoHideEnabled(true); setAnimationEnabled(true); layoutPanel.setWidgetHidden(actionsPanel, true); layoutPanel.setHeight("60px"); addCloseHandler(event -> delegate.onClose()); includeNonMenu.addValueChangeHandler( event -> { includeNonMenu.getElement().setAttribute("checked", Boolean.toString(event.getValue())); delegate.nameChanged(nameField.getText(), event.getValue()); }); }