mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 14:08:40 +00:00
use suggest values also for default suggestions in string liste editor
This commit is contained in:
+1
@@ -46,6 +46,7 @@ public class AdminConsoleEntryPoint extends AbstractSailingEntryPoint implements
|
||||
|
||||
@Override
|
||||
protected void doOnModuleLoad() {
|
||||
GWT.debugger();
|
||||
Highcharts.ensureInjectedWithMore();
|
||||
super.doOnModuleLoad();
|
||||
EntryPointHelper.registerASyncService((ServiceDefTarget) mediaService, RemoteServiceMappingConstants.mediaServiceRemotePath);
|
||||
|
||||
+6
@@ -1,5 +1,8 @@
|
||||
package com.sap.sse.gwt.client.controls.listedit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.event.dom.client.KeyUpEvent;
|
||||
@@ -82,6 +85,9 @@ public class StringListEditorComposite extends ListEditorComposite<String> {
|
||||
for (String suggestValue : suggestValues) {
|
||||
inputOracle.add(suggestValue);
|
||||
}
|
||||
List<String> defaultSuggestions = new ArrayList<>();
|
||||
Util.addAll(suggestValues, defaultSuggestions);
|
||||
this.inputOracle.setDefaultSuggestionsFromText(defaultSuggestions);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user