PT 152579435 - Add hint message in quick in-place dialogue

This commit is contained in:
nsingh
2017-11-16 10:13:21 -08:00
parent fc0f149463
commit dbc8995c86
2 changed files with 7 additions and 0 deletions

View File

@@ -237,6 +237,8 @@ public class GotoSymbolDialog extends PopupDialog {
// }
// });
pattern.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
pattern.setMessage(model.getSearchBoxHintMessage());
SwtConnect.connect(pattern, model.getSearchBox());
TreeViewer viewer = new TreeViewer(dialogArea, SWT.SINGLE);

View File

@@ -27,6 +27,7 @@ import com.google.common.collect.ImmutableSet;
public class GotoSymbolDialogModel {
private static final String SEARCH_BOX_HINT_MESSAGE = "@/ -> request mappings, @+ -> beans, @> -> functions, @ -> all spring elements";
private static final boolean DEBUG = false;//(""+Platform.getLocation()).contains("kdvolder");
private static void debug(String string) {
if (DEBUG) {
@@ -149,6 +150,10 @@ public class GotoSymbolDialogModel {
public LiveVariable<String> getSearchBox() {
return searchBox;
}
public String getSearchBoxHintMessage() {
return SEARCH_BOX_HINT_MESSAGE;
}
public LiveExpression<String> getStatus() {
return status;